(* 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 = { IR[t], IRS[t], IRSiP[t], IRi[t], IRiP[t], IRins[t], IRp[t], X[t], Xp[t] }; initialValues = { IR[0] == 8.94067597532632, IRS[0] == 9.43998194225544, IRSiP[0] == 0.560018057744573, IRi[0] == 4.83863890758515*^-06, IRiP[0] == 0.424076631823384, IRins[0] == 0.59688996214639, IRp[0] == 0.0383525925240207, X[0] == 9.99635886407151, Xp[0] == 0.00364113592848386 }; rates = { v1a, v1b, v1c, v1d, v1e, v1g, v1r, v2, v3, vm2, vm3 }; rateEquations = { v1a -> ins*k1a*IR[t] + k1aBasic*IR[t], v1b -> k1b*IRins[t], v1c -> k1c*IRins[t], v1d -> k1d*IRp[t], v1e -> IRiP[t]*(k1e + (k1f*Xp[t])/(1 + Xp[t])), v1g -> k1g*IRp[t], v1r -> k1r*IRi[t], v2 -> (k21*(k22*IRiP[t] + IRp[t])*IRS[t])/(1 + km23*Xp[t]), v3 -> k3*IRSiP[t]*X[t], vm2 -> km2*IRSiP[t], vm3 -> km3*Xp[t] }; parameters = { ins -> 100.0, k1a -> 0.153418, k1aBasic -> 0.0383389, k1b -> 3.4699*^-06, k1c -> 0.574266, k1d -> 4.78844, k1e -> 5.25027*^-05, k1f -> 119.353, k1g -> 4.14899, k1r -> 37954.7, k21 -> 538004.0, k22 -> 1.7252*^-06, k3 -> 8.62917*^-05, km2 -> 262759.0, km23 -> 88.9096, km3 -> 0.132671, default -> 1.0 }; assignments = { IRmem -> 10*(IR[t] + IRins[t] + IRp[t]), measIRp -> 31.8*(IRiP[t] + IRp[t]), measIRS1 -> 21.2*IRSiP[t] }; events = { }; speciesAnnotations = { }; reactionAnnotations = { }; units = { {"time" -> "", "metabolite" -> "", "extent" -> ""} }; (* Time evolution *) odes = { IR'[t] == 1.0*v1b +1.0*v1g +1.0*v1r -1.0*v1a, IRS'[t] == 1.0*vm2 -1.0*v2, IRSiP'[t] == 1.0*v2 -1.0*vm2, IRi'[t] == 1.0*v1e -1.0*v1r, IRiP'[t] == 1.0*v1d -1.0*v1e, IRins'[t] == 1.0*v1a -1.0*v1b -1.0*v1c, IRp'[t] == 1.0*v1c -1.0*v1d -1.0*v1g, X'[t] == 1.0*vm3 -1.0*v3, Xp'[t] == 1.0*v3 -1.0*vm3 }; 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]}]