(* 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 = { lck\[LetterSpace]active[t], lck\[LetterSpace]inactive[t], phosphatase\[LetterSpace]active[t], phosphatase\[LetterSpace]inactive[t] }; initialValues = { lck\[LetterSpace]active[0] == 0.0, lck\[LetterSpace]inactive[0] == 0.0, phosphatase\[LetterSpace]active[0] == 0.6, phosphatase\[LetterSpace]inactive[0] == 0.6 }; rates = { v1, v10, v2, v3, v4, v5, v6, v7, v8, v9 }; rateEquations = { v1 -> r\[LetterSpace]l, v10 -> d2*phosphatase\[LetterSpace]active[t], v2 -> n1*lck\[LetterSpace]active[t]*phosphatase\[LetterSpace]active[t], v3 -> k1*lck\[LetterSpace]inactive[t], v4 -> m1*lck\[LetterSpace]active[t]^n*lck\[LetterSpace]inactive[t], v5 -> d0*lck\[LetterSpace]inactive[t], v6 -> d1*lck\[LetterSpace]active[t], v7 -> k2*phosphatase\[LetterSpace]inactive[t], v8 -> m2*lck\[LetterSpace]active[t]*phosphatase\[LetterSpace]inactive[t], v9 -> n2*phosphatase\[LetterSpace]active[t] }; parameters = { d0 -> 0.15, d1 -> 0.15, d2 -> 0.0, k1 -> 0.01, k2 -> 0.01, m1 -> 1.0, m2 -> 1.0, n -> 1.95, n1 -> 1.0, n2 -> 0.02, r\[LetterSpace]l -> 0.0, compartment -> 1.0 }; assignments = { lck\[LetterSpace]total -> lck\[LetterSpace]active[t] + lck\[LetterSpace]inactive[t] }; events = { }; speciesAnnotations = { }; reactionAnnotations = { v2->"http://identifiers.org/ec-code/3.1.3.48", v2->"http://identifiers.org/go/GO:0004725" }; units = { {"time" -> "", "metabolite" -> "", "extent" -> ""} }; (* Time evolution *) odes = { lck\[LetterSpace]active'[t] == 1.0*v3 +1.0*v4 -1.0*v2 -1.0*v6, lck\[LetterSpace]inactive'[t] == 1.0*v1 +1.0*v2 -1.0*v3 -1.0*v4 -1.0*v5, phosphatase\[LetterSpace]active'[t] == 1.0*v7 +1.0*v8 -1.0*v9 -1.0*v10, phosphatase\[LetterSpace]inactive'[t] == 1.0*v9 -1.0*v7 -1.0*v8 }; 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]}]