Skip to content

Commit b75065b

Browse files
committed
Add amici spline application example
1 parent 70e3af0 commit b75065b

File tree

9 files changed

+2762
-1
lines changed

9 files changed

+2762
-1
lines changed

doc/example.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,4 @@ Application examples
6767

6868
example/conversion_reaction.ipynb
6969
example/synthetic_data.ipynb
70+
example/example_amici_splines_swameye/example_amici_splines_Swameye2003.ipynb
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
conditionId conditionName
2+
condition1
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
observableId simulationConditionId measurement time noiseParameters observableTransformation
2+
tSTAT5_au condition1 1.0000 0 0.084 lin
3+
tSTAT5_au condition1 0.9275 2 0.046 lin
4+
tSTAT5_au condition1 0.7923 4 0.038 lin
5+
tSTAT5_au condition1 0.7778 6 0.032 lin
6+
tSTAT5_au condition1 0.7053 8 0.033 lin
7+
tSTAT5_au condition1 0.6522 10 0.037 lin
8+
tSTAT5_au condition1 0.5894 12 0.039 lin
9+
tSTAT5_au condition1 0.5894 14 0.040 lin
10+
tSTAT5_au condition1 0.6377 16 0.030 lin
11+
tSTAT5_au condition1 0.6425 18 0.028 lin
12+
tSTAT5_au condition1 0.6908 20 0.030 lin
13+
tSTAT5_au condition1 0.6908 25 0.031 lin
14+
tSTAT5_au condition1 0.7585 30 0.032 lin
15+
tSTAT5_au condition1 0.8068 40 0.040 lin
16+
tSTAT5_au condition1 0.9275 50 0.046 lin
17+
tSTAT5_au condition1 0.9710 60 0.082 lin
18+
pSTAT5_au condition1 0.3315 2 0.050 lin
19+
pSTAT5_au condition1 0.8645 4 0.066 lin
20+
pSTAT5_au condition1 0.9635 6 0.070 lin
21+
pSTAT5_au condition1 0.9279 8 0.065 lin
22+
pSTAT5_au condition1 0.8162 10 0.051 lin
23+
pSTAT5_au condition1 0.7553 12 0.053 lin
24+
pSTAT5_au condition1 0.7680 14 0.051 lin
25+
pSTAT5_au condition1 0.8416 16 0.040 lin
26+
pSTAT5_au condition1 0.7680 18 0.040 lin
27+
pSTAT5_au condition1 0.8010 20 0.048 lin
28+
pSTAT5_au condition1 0.7832 25 0.052 lin
29+
pSTAT5_au condition1 0.8086 30 0.054 lin
30+
pSTAT5_au condition1 0.4888 40 0.055 lin
31+
pSTAT5_au condition1 0.2782 50 0.044 lin
32+
pSTAT5_au condition1 0.2553 60 0.071 lin
33+
pEpoR_au condition1 0.01713 0 lin
34+
pEpoR_au condition1 0.145 2 lin
35+
pEpoR_au condition1 0.2442 4 lin
36+
pEpoR_au condition1 0.7659 6 lin
37+
pEpoR_au condition1 1 8 lin
38+
pEpoR_au condition1 0.8605 10 lin
39+
pEpoR_au condition1 0.7829 12 lin
40+
pEpoR_au condition1 0.5705 14 lin
41+
pEpoR_au condition1 0.6217 16 lin
42+
pEpoR_au condition1 0.331 18 lin
43+
pEpoR_au condition1 0.3388 20 lin
44+
pEpoR_au condition1 0.3116 25 lin
45+
pEpoR_au condition1 0.05062 30 lin
46+
pEpoR_au condition1 0.02504 40 lin
47+
pEpoR_au condition1 0.01163 50 lin
Lines changed: 282 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,282 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<sbml xmlns="http://www.sbml.org/sbml/level2/version4" level="2" version="4">
3+
<model id="swameye2003">
4+
<listOfUnitDefinitions>
5+
<unitDefinition id="time" name="time">
6+
<listOfUnits>
7+
<unit kind="second" exponent="1" scale="0" multiplier="60"/>
8+
</listOfUnits>
9+
</unitDefinition>
10+
</listOfUnitDefinitions>
11+
<listOfCompartments>
12+
<compartment id="cyt" spatialDimensions="3" size="1.4" constant="true"/>
13+
<compartment id="nuc" spatialDimensions="3" size="0.45" constant="true"/>
14+
</listOfCompartments>
15+
<listOfSpecies>
16+
<species id="pEpoR" compartment="cyt" initialConcentration="0.0" hasOnlySubstanceUnits="false" boundaryCondition="false" constant="false"/>
17+
<species id="STAT5" compartment="cyt" initialConcentration="1" hasOnlySubstanceUnits="false" boundaryCondition="false" constant="false"/>
18+
<species id="pSTAT5" compartment="cyt" initialConcentration="0" hasOnlySubstanceUnits="false" boundaryCondition="false" constant="false"/>
19+
<species id="pSTAT5_pSTAT5" compartment="cyt" initialConcentration="0" hasOnlySubstanceUnits="false" boundaryCondition="false" constant="false"/>
20+
<species id="npSTAT5_npSTAT5" compartment="nuc" initialConcentration="0" hasOnlySubstanceUnits="false" boundaryCondition="false" constant="false"/>
21+
<species id="nSTAT5_1" compartment="nuc" initialConcentration="0" hasOnlySubstanceUnits="false" boundaryCondition="false" constant="false"/>
22+
<species id="nSTAT5_2" compartment="nuc" initialConcentration="0" hasOnlySubstanceUnits="false" boundaryCondition="false" constant="false"/>
23+
<species id="nSTAT5_3" compartment="nuc" initialConcentration="0" hasOnlySubstanceUnits="false" boundaryCondition="false" constant="false"/>
24+
<species id="nSTAT5_4" compartment="nuc" initialConcentration="0" hasOnlySubstanceUnits="false" boundaryCondition="false" constant="false"/>
25+
<species id="nSTAT5_5" compartment="nuc" initialConcentration="0" hasOnlySubstanceUnits="false" boundaryCondition="false" constant="false"/>
26+
<species id="nSTAT5_6" compartment="nuc" initialConcentration="0" hasOnlySubstanceUnits="false" boundaryCondition="false" constant="false"/>
27+
<species id="nSTAT5_7" compartment="nuc" initialConcentration="0" hasOnlySubstanceUnits="false" boundaryCondition="false" constant="false"/>
28+
<species id="nSTAT5_8" compartment="nuc" initialConcentration="0" hasOnlySubstanceUnits="false" boundaryCondition="false" constant="false"/>
29+
<species id="nSTAT5_9" compartment="nuc" initialConcentration="0" hasOnlySubstanceUnits="false" boundaryCondition="false" constant="false"/>
30+
</listOfSpecies>
31+
<listOfParameters>
32+
<parameter id="k1" value="1.95" constant="true"/>
33+
<parameter id="k2" value="0.11" constant="true"/>
34+
<parameter id="k3" value="98400" constant="true"/>
35+
<parameter id="k4" value="1.49" constant="true"/>
36+
</listOfParameters>
37+
<listOfReactions>
38+
<reaction id="reaction1" reversible="false">
39+
<listOfReactants>
40+
<speciesReference species="STAT5" stoichiometry="1"/>
41+
</listOfReactants>
42+
<listOfProducts>
43+
<speciesReference species="pSTAT5" stoichiometry="1"/>
44+
</listOfProducts>
45+
<listOfModifiers>
46+
<modifierSpeciesReference species="pEpoR"/>
47+
</listOfModifiers>
48+
<kineticLaw>
49+
<math xmlns="http://www.w3.org/1998/Math/MathML">
50+
<apply>
51+
<times/>
52+
<ci> cyt </ci>
53+
<ci> k1 </ci>
54+
<ci> STAT5 </ci>
55+
<ci> pEpoR </ci>
56+
</apply>
57+
</math>
58+
</kineticLaw>
59+
</reaction>
60+
<reaction id="reaction2" reversible="false">
61+
<listOfReactants>
62+
<speciesReference species="pSTAT5" stoichiometry="2"/>
63+
</listOfReactants>
64+
<listOfProducts>
65+
<speciesReference species="pSTAT5_pSTAT5" stoichiometry="1"/>
66+
</listOfProducts>
67+
<kineticLaw>
68+
<math xmlns="http://www.w3.org/1998/Math/MathML">
69+
<apply>
70+
<times/>
71+
<ci> cyt </ci>
72+
<ci> k2 </ci>
73+
<apply>
74+
<power/>
75+
<ci> pSTAT5 </ci>
76+
<cn type="integer"> 2 </cn>
77+
</apply>
78+
</apply>
79+
</math>
80+
</kineticLaw>
81+
</reaction>
82+
<reaction id="reaction3" reversible="false">
83+
<listOfReactants>
84+
<speciesReference species="pSTAT5_pSTAT5" stoichiometry="1"/>
85+
</listOfReactants>
86+
<listOfProducts>
87+
<speciesReference species="npSTAT5_npSTAT5" stoichiometry="1"/>
88+
</listOfProducts>
89+
<kineticLaw>
90+
<math xmlns="http://www.w3.org/1998/Math/MathML">
91+
<apply>
92+
<times/>
93+
<ci> cyt </ci>
94+
<ci> k3 </ci>
95+
<ci> pSTAT5_pSTAT5 </ci>
96+
</apply>
97+
</math>
98+
</kineticLaw>
99+
</reaction>
100+
<reaction id="reaction4_01" reversible="false">
101+
<listOfReactants>
102+
<speciesReference species="npSTAT5_npSTAT5" stoichiometry="1"/>
103+
</listOfReactants>
104+
<listOfProducts>
105+
<speciesReference species="nSTAT5_1" stoichiometry="2"/>
106+
</listOfProducts>
107+
<kineticLaw>
108+
<math xmlns="http://www.w3.org/1998/Math/MathML">
109+
<apply>
110+
<times/>
111+
<ci> nuc </ci>
112+
<ci> k4 </ci>
113+
<ci> npSTAT5_npSTAT5 </ci>
114+
</apply>
115+
</math>
116+
</kineticLaw>
117+
</reaction>
118+
<reaction id="reaction4_02" reversible="false">
119+
<listOfReactants>
120+
<speciesReference species="nSTAT5_1" stoichiometry="1"/>
121+
</listOfReactants>
122+
<listOfProducts>
123+
<speciesReference species="nSTAT5_2" stoichiometry="1"/>
124+
</listOfProducts>
125+
<kineticLaw>
126+
<math xmlns="http://www.w3.org/1998/Math/MathML">
127+
<apply>
128+
<times/>
129+
<ci> nuc </ci>
130+
<ci> k4 </ci>
131+
<ci> nSTAT5_1 </ci>
132+
</apply>
133+
</math>
134+
</kineticLaw>
135+
</reaction>
136+
<reaction id="reaction4_03" reversible="false">
137+
<listOfReactants>
138+
<speciesReference species="nSTAT5_2" stoichiometry="1"/>
139+
</listOfReactants>
140+
<listOfProducts>
141+
<speciesReference species="nSTAT5_3" stoichiometry="1"/>
142+
</listOfProducts>
143+
<kineticLaw>
144+
<math xmlns="http://www.w3.org/1998/Math/MathML">
145+
<apply>
146+
<times/>
147+
<ci> nuc </ci>
148+
<ci> k4 </ci>
149+
<ci> nSTAT5_2 </ci>
150+
</apply>
151+
</math>
152+
</kineticLaw>
153+
</reaction>
154+
<reaction id="reaction4_04" reversible="false">
155+
<listOfReactants>
156+
<speciesReference species="nSTAT5_3" stoichiometry="1"/>
157+
</listOfReactants>
158+
<listOfProducts>
159+
<speciesReference species="nSTAT5_4" stoichiometry="1"/>
160+
</listOfProducts>
161+
<kineticLaw>
162+
<math xmlns="http://www.w3.org/1998/Math/MathML">
163+
<apply>
164+
<times/>
165+
<ci> nuc </ci>
166+
<ci> k4 </ci>
167+
<ci> nSTAT5_3 </ci>
168+
</apply>
169+
</math>
170+
</kineticLaw>
171+
</reaction>
172+
<reaction id="reaction4_05" reversible="false">
173+
<listOfReactants>
174+
<speciesReference species="nSTAT5_4" stoichiometry="1"/>
175+
</listOfReactants>
176+
<listOfProducts>
177+
<speciesReference species="nSTAT5_5" stoichiometry="1"/>
178+
</listOfProducts>
179+
<kineticLaw>
180+
<math xmlns="http://www.w3.org/1998/Math/MathML">
181+
<apply>
182+
<times/>
183+
<ci> nuc </ci>
184+
<ci> k4 </ci>
185+
<ci> nSTAT5_4 </ci>
186+
</apply>
187+
</math>
188+
</kineticLaw>
189+
</reaction>
190+
<reaction id="reaction4_06" reversible="false">
191+
<listOfReactants>
192+
<speciesReference species="nSTAT5_5" stoichiometry="1"/>
193+
</listOfReactants>
194+
<listOfProducts>
195+
<speciesReference species="nSTAT5_6" stoichiometry="1"/>
196+
</listOfProducts>
197+
<kineticLaw>
198+
<math xmlns="http://www.w3.org/1998/Math/MathML">
199+
<apply>
200+
<times/>
201+
<ci> nuc </ci>
202+
<ci> k4 </ci>
203+
<ci> nSTAT5_5 </ci>
204+
</apply>
205+
</math>
206+
</kineticLaw>
207+
</reaction>
208+
<reaction id="reaction4_07" reversible="false">
209+
<listOfReactants>
210+
<speciesReference species="nSTAT5_6" stoichiometry="1"/>
211+
</listOfReactants>
212+
<listOfProducts>
213+
<speciesReference species="nSTAT5_7" stoichiometry="1"/>
214+
</listOfProducts>
215+
<kineticLaw>
216+
<math xmlns="http://www.w3.org/1998/Math/MathML">
217+
<apply>
218+
<times/>
219+
<ci> nuc </ci>
220+
<ci> k4 </ci>
221+
<ci> nSTAT5_6 </ci>
222+
</apply>
223+
</math>
224+
</kineticLaw>
225+
</reaction>
226+
<reaction id="reaction4_08" reversible="false">
227+
<listOfReactants>
228+
<speciesReference species="nSTAT5_7" stoichiometry="1"/>
229+
</listOfReactants>
230+
<listOfProducts>
231+
<speciesReference species="nSTAT5_8" stoichiometry="1"/>
232+
</listOfProducts>
233+
<kineticLaw>
234+
<math xmlns="http://www.w3.org/1998/Math/MathML">
235+
<apply>
236+
<times/>
237+
<ci> nuc </ci>
238+
<ci> k4 </ci>
239+
<ci> nSTAT5_7 </ci>
240+
</apply>
241+
</math>
242+
</kineticLaw>
243+
</reaction>
244+
<reaction id="reaction4_09" reversible="false">
245+
<listOfReactants>
246+
<speciesReference species="nSTAT5_8" stoichiometry="1"/>
247+
</listOfReactants>
248+
<listOfProducts>
249+
<speciesReference species="nSTAT5_9" stoichiometry="1"/>
250+
</listOfProducts>
251+
<kineticLaw>
252+
<math xmlns="http://www.w3.org/1998/Math/MathML">
253+
<apply>
254+
<times/>
255+
<ci> nuc </ci>
256+
<ci> k4 </ci>
257+
<ci> nSTAT5_8 </ci>
258+
</apply>
259+
</math>
260+
</kineticLaw>
261+
</reaction>
262+
<reaction id="reaction4_10" reversible="false">
263+
<listOfReactants>
264+
<speciesReference species="nSTAT5_9" stoichiometry="1"/>
265+
</listOfReactants>
266+
<listOfProducts>
267+
<speciesReference species="STAT5" stoichiometry="1"/>
268+
</listOfProducts>
269+
<kineticLaw>
270+
<math xmlns="http://www.w3.org/1998/Math/MathML">
271+
<apply>
272+
<times/>
273+
<ci> nuc </ci>
274+
<ci> k4 </ci>
275+
<ci> nSTAT5_9 </ci>
276+
</apply>
277+
</math>
278+
</kineticLaw>
279+
</reaction>
280+
</listOfReactions>
281+
</model>
282+
</sbml>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
observableId observableFormula observableTransformation noiseFormula noiseDistribution
2+
tSTAT5_au scale_tSTAT5 * (STAT5 + pSTAT5 + 2 * pSTAT5_pSTAT5) lin noiseParameter1_tSTAT5_au normal
3+
pSTAT5_au scale_pSTAT5 * (pSTAT5 + 2 * pSTAT5_pSTAT5) lin noiseParameter1_pSTAT5_au normal
4+
pEpoR_au pEpoR lin sigma_pEpoR_abs + sigma_pEpoR_rel * pEpoR normal
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
parameterId parameterScale lowerBound upperBound nominalValue estimate
2+
k1 log10 0.001 100000 1.95 1
3+
k2 log10 0.001 100000 0.11 1
4+
k3 log10 0.001 1000000 98400 1
5+
k4 log10 0.001 100000 1.49 1
6+
scale_tSTAT5 log10 0.01 100 0.95 1
7+
scale_pSTAT5 log10 0.01 100 1.25 1
8+
sigma_pEpoR_abs log10 0.001 1 0.0274 0
9+
sigma_pEpoR_rel log10 0.001 1 0.10 0

0 commit comments

Comments
 (0)