File tree Expand file tree Collapse file tree 4 files changed +23
-21
lines changed
src/sbmlsim/sensitivity/example Expand file tree Collapse file tree 4 files changed +23
-21
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,9 @@ def _sensitivity_parameters() -> list[SensitivityParameter]:
121121 )
122122
123123 sensitivity_path = Path (__file__ ).parent / "results"
124- console .print (SensitivityParameter .parameters_to_df (sensitivity_parameters ))
124+ df = SensitivityParameter .parameters_to_df (sensitivity_parameters )
125+ df .to_csv (sensitivity_path / "parameters.tsv" , sep = "\t " , index = False )
126+ console .print (df )
125127
126128 settings = {
127129 "cache_results" : True ,
@@ -166,8 +168,8 @@ def _sensitivity_parameters() -> list[SensitivityParameter]:
166168 )
167169
168170 sas = [
169- # sa_local,
170- sa_sampling ,
171+ sa_local ,
172+ # sa_sampling,
171173 # sa_sobol,
172174 # sa_fast,
173175 ]
Original file line number Diff line number Diff line change 11# model: simple_chain
2-
3- Autogenerated ODE System from SBML
4- with [ sbmlutils] ( https://github.com/matthiaskoenig/sbmlutils ) .
5-
2+ Autogenerated ODE System from SBML with [ sbmlutils] ( https://github.com/matthiaskoenig/sbmlutils ) .
63```
74time: [-]
85substance: [-]
@@ -13,26 +10,27 @@ length: [-]
1310```
1411
1512## Parameters ` p `
16-
1713```
18- k1 = 1.0 # [-]
19- liver = 1.0 # [-]
14+ Vli = 1.0 # [-] liver volume
15+ k1 = 1.0 # [-] rate S1 ➞ S2 conversion
16+ k2 = 1.0 # [-] rate S2 ➞ S3 conversion
2017```
2118
2219## Initial conditions ` x0 `
23-
2420```
25- S1 = 1.0 # [-/-] S1 in liver
26- S2 = 0.0 # [-/-] S2 in liver
21+ S1 = 1.0 # [-/-] S1 in Vli
22+ S2 = 0.0 # [-/-] S2 in Vli
23+ S3 = 0.0 # [-/-] S3 in Vli
2724```
2825
2926## ODE system
30-
3127```
3228# y
33- R1 = k1 * S1 # [-/-]
29+ R1 = k1 * S1 # [-/-] R1: S1 ➞ S2 conversion
30+ R2 = k2 * S2 # [-/-] R2: S2 ➞ S3 conversion
3431
3532# odes
36- d S1/dt = -R1 / liver # [-/-/-] S1
37- d S2/dt = R1 / liver # [-/-/-] S2
38- ```
33+ d S1/dt = -R1 / Vli # [-/-/-] S1
34+ d S2/dt = R1 / Vli - R2 / Vli # [-/-/-] S2
35+ d S3/dt = R2 / Vli # [-/-/-] S3
36+ ```
Original file line number Diff line number Diff line change 7777 # TODO: antimony & markdown
7878
7979 )
80-
80+ from sbmlutils .converters import odefac
81+ ode_factory = odefac .SBML2ODE .from_file (sbml_file = results .sbml_path )
82+ ode_factory .to_markdown (md_file = results .sbml_path .parent / f"{ results .sbml_path .stem } .md" )
8183 visualize_sbml (sbml_path = results .sbml_path )
Original file line number Diff line number Diff line change 2929 </rdf : Bag >
3030 </dcterms : creator >
3131 <dcterms : created rdf : parseType =" Resource" >
32- <dcterms : W3CDTF >2026-01-26T22:23:01Z </dcterms : W3CDTF >
32+ <dcterms : W3CDTF >2026-01-27T12:24:14Z </dcterms : W3CDTF >
3333 </dcterms : created >
3434 <dcterms : modified rdf : parseType =" Resource" >
35- <dcterms : W3CDTF >2026-01-26T22:23:01Z </dcterms : W3CDTF >
35+ <dcterms : W3CDTF >2026-01-27T12:24:14Z </dcterms : W3CDTF >
3636 </dcterms : modified >
3737 </rdf : Description >
3838 </rdf : RDF >
You can’t perform that action at this time.
0 commit comments