(* 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 = { ACA[t], CAR1[t], ERK2[t], PKA[t], REGA[t], excAMP[t], incAMP[t] }; initialValues = { ACA[0] == 3.39, CAR1[0] == 2.45, ERK2[0] == 1.13, PKA[0] == 1.6, REGA[0] == 0.9, excAMP[0] == 0.48, incAMP[0] == 1.2 }; rates = { v1, v10, v11, v12, v13, v14, v2, v3, v4, v5, v6, v7, v8, v9 }; rateEquations = { v1 -> k1*CAR1[t], v10 -> k10*incAMP[t]*REGA[t], v11 -> k11*ACA[t], v12 -> k12*excAMP[t], v13 -> k13*excAMP[t], v14 -> k14*CAR1[t], v2 -> k2*ACA[t]*PKA[t], v3 -> k3*incAMP[t], v4 -> k4*PKA[t], v5 -> k5*CAR1[t], v6 -> k6*ERK2[t]*PKA[t], v7 -> k7, v8 -> k8*ERK2[t]*REGA[t], v9 -> k9*ACA[t] }; parameters = { k1 -> 2.0, k10 -> 0.8, k11 -> 0.7, k12 -> 4.9, k13 -> 23.0, k14 -> 4.5, k2 -> 0.9, k3 -> 2.5, k4 -> 1.5, k5 -> 0.6, k6 -> 0.8, k7 -> 1.0, k8 -> 1.3, k9 -> 0.3, compartment -> 1.0 }; assignments = { }; events = { }; speciesAnnotations = { excAMP[t]->"http://identifiers.org/chebi/CHEBI:17489", excAMP[t]->"http://identifiers.org/kegg.compound/C000575" }; reactionAnnotations = { }; units = { {"time" -> "", "metabolite" -> "", "extent" -> ""} }; (* Time evolution *) odes = { ACA'[t] == 1.0*v1 -1.0*v2, CAR1'[t] == 1.0*v13 -1.0*v14, ERK2'[t] == 1.0*v5 -1.0*v6, PKA'[t] == 1.0*v3 -1.0*v4, REGA'[t] == 1.0*v7 -1.0*v8, excAMP'[t] == 1.0*v11 -1.0*v12, incAMP'[t] == 1.0*v9 -1.0*v10 }; 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]}]