-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from paulflang/pl/sbmlopt
Pl/sbmlopt
- Loading branch information
Showing
25 changed files
with
24,904 additions
and
5,451 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import os | ||
import petab | ||
from libsbml import writeSBMLToFile | ||
base_dir = os.path.dirname(os.path.abspath(__file__)) | ||
|
||
# Options | ||
fig2yaml = { | ||
"Figure 9": os.path.join(base_dir, "v4.0.0", "results_20230307", "v4.0.0_plot.yaml"), | ||
"Figure S10": os.path.join(base_dir, "v3.0.1", "results_20220421", "v3.0.1_plot.yaml"), | ||
"Figure S11": os.path.join(base_dir, "v3.2.0", "results_20220421", "v3.2.0_plot.yaml") | ||
} | ||
|
||
for yaml in fig2yaml.values(): | ||
# Load PEtab problem | ||
petab_problem = petab.Problem.from_yaml(yaml) | ||
doc = petab.sbml.get_model_for_condition(petab_problem, "wt")[0] | ||
doc.setLevelAndVersion(3, 1) | ||
model = doc.getModel() | ||
for s in model.getListOfSpecies(): | ||
s.setHasOnlySubstanceUnits(True) | ||
fn = os.path.splitext(yaml)[0].rstrip("plot") + "optimized.sbml" | ||
writeSBMLToFile(doc, fn) |
4,345 changes: 4,345 additions & 0 deletions
4,345
versions/v3.0.1/results_20220421/v3.0.1_optimized.sbml
Large diffs are not rendered by default.
Oops, something went wrong.
6,563 changes: 6,563 additions & 0 deletions
6,563
versions/v3.2.0/results_20220421/v3.2.0_optimized.sbml
Large diffs are not rendered by default.
Oops, something went wrong.
205 changes: 0 additions & 205 deletions
205
versions/v4.0.0/results_20230120/plot_sacess_400_manu.py
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.