(* Generated by JWS Online *) (* This is an experimental feature of JWS Online. Please report any mistakes.*) (* Note that the following notable SBML entities or features are not supported in notebook outputyet: *) (* Events *) (* Constraints *) (* Units and UnitDefinitions *) (* AlgebraicRules *) (* conversionFactors *) variables = { M[t], P[t] }; initialValues = { M[0] == 0.0, P[0] == 0.0 }; rates = { DBT, ProteinD, TC, TL, mRNAD }; rateEquations = { DBT -> (CYTOPLASM*(DBT\[LetterSpace]k2*P[t] + (2*DBT\[LetterSpace]k1*P[t])/(1 + (1 + 8*DBT\[LetterSpace]Keq*P[t])^0.5)))/(DBT\[LetterSpace]J + P[t]), ProteinD -> CYTOPLASM*ProteinD\[LetterSpace]D*P[t], TC -> (CYTOPLASM*TC\[LetterSpace]Vm)/(1 + (P[t]^2*(1 - 2/(1 + (1 + 8*TC\[LetterSpace]Keq*P[t])^0.5))^2)/(4*TC\[LetterSpace]Pcrit^2)), TL -> CYTOPLASM*TL\[LetterSpace]V*M[t], mRNAD -> CYTOPLASM*mRNAD\[LetterSpace]D*M[t] }; parameters = { N\[LetterSpace]A -> 6.0221367*^+23, EmptySet -> 0.0, TC\[LetterSpace]Vm -> 1.0, TC\[LetterSpace]Pcrit -> 0.1, TC\[LetterSpace]Keq -> 200.0, TL\[LetterSpace]V -> 0.5, mRNAD\[LetterSpace]D -> 0.1, ProteinD\[LetterSpace]D -> 0.1, DBT\[LetterSpace]k1 -> 10.0, DBT\[LetterSpace]k2 -> 0.03, DBT\[LetterSpace]J -> 0.05, DBT\[LetterSpace]Keq -> 200.0, CYTOPLASM -> 1.0, default -> 1.0 }; assignments = { }; events = { }; speciesAnnotations = { P[t]->"http://identifiers.org/uniprot/P07663" }; reactionAnnotations = { }; units = { {"time" -> "", "metabolite" -> "", "extent" -> ""} }; (* Time evolution *) odes = { M'[t] == 1.0*TC -1.0*mRNAD, P'[t] == 1.0*TL -1.0*ProteinD -1.0*DBT }; timeCourse = NDSolve[Join[odes, initialValues]//.rateEquations//.assignments//.parameters, variables, {t, 0, 100}]; (* Steady-state solution initialized with result of time evolution *) findRootEquations = odes /.D[_[t],t]->0; findRootVariables = Partition[Flatten[{#, #/.timeCourse/.t->100} &/@variables],2]; steadyStateVariables = FindRoot[findRootEquations//.rateEquations//.assignments//.parameters, findRootVariables, MaxIterations->100] fluxes = #//.assignments//.parameters/.steadyStateVariables&/@rateEquations (* Plot the time evolution of the variables *) plotTable=Table[Plot[variables[[i]]/.parameters/.timeCourse,{t,0,100},PlotLegends->variables[[i]],PlotRange->Full],{i,Length[variables]}]