Skip to content

Commit

Permalink
Merge pull request #7 from paulflang/pl/sbmlopt
Browse files Browse the repository at this point in the history
Pl/sbmlopt
  • Loading branch information
paulflang authored Mar 7, 2023
2 parents aab23e9 + 2468afb commit a8046b5
Show file tree
Hide file tree
Showing 25 changed files with 24,904 additions and 5,451 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,16 @@
.venv
.wenv
.wenv1
.vscode
*.our_rcp_workspace

*.diff
*.project
*trash*
*poster*
*presentation*
*_manu.pdf
*_manu.svg

# More specific
versions/test_cBNGL/
Expand Down
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![DOI](https://zenodo.org/badge/426996673.svg)](https://zenodo.org/badge/latestdoi/426996673)

`cell_cycle_petab` is a repository that stores several cell cycle model versions and their corresponding PEtab problems. The data in the measurement tables stems from snapshot measurements by [Stallaert et al. (2021)](https://github.com/paulflang/cell_cycle_time_course/blob/main/4i_stallaert/raw.md). Pseudo-time courses were reconstructed with [reCAT](https://github.com/tinglab/reCAT). Visualisations of these time courses can be found in the [cell_cycle_time_course](https://github.com/paulflang/cell_cycle_time_course) repository. The model generation process is documented in the [cell_cycle_model](https://github.com/paulflang/cell_cycle_model) repository. For further details, please refer to [Paul Lang's dissertation](https://ora.ox.ac.uk/objects/uuid:888439ad-99ac-4e89-9473-cc4864cf1e94).
`cell_cycle_petab` is a repository that stores several cell cycle model versions and their corresponding PEtab problems. The data in the measurement tables stems from snapshot measurements by [Stallaert et al. (2021)](https://github.com/paulflang/cell_cycle_time_course/blob/main/4i_stallaert/raw.md) in RPE1 cells. Pseudo-time courses were reconstructed with [reCAT](https://github.com/tinglab/reCAT). Visualisations of these time courses can be found in the [cell_cycle_time_course](https://github.com/paulflang/cell_cycle_time_course) repository. The model generation process is documented in the [cell_cycle_model](https://github.com/paulflang/cell_cycle_model) repository. For further details, please refer to [Paul Lang's dissertation](https://ora.ox.ac.uk/objects/uuid:888439ad-99ac-4e89-9473-cc4864cf1e94).

## Models

Expand Down Expand Up @@ -34,3 +34,12 @@ Figures for the manuscript *Reusable rule-based cell cycle model explains compar
- [`/versions/v3.2.0/results_20220421/plot_sacess_320_manu.py`](/versions/v3.2.0/results_20220421/plot_sacess_320_manu.py)
- [Figure 9](/versions/v4.0.0/results_20230120/v4.0.0_manu.png):
- [`/versions/v4.0.0/results_20230120/plot_sacess_400_manu.py`](/versions/v4.0.0/results_20230120/plot_sacess_400_manu.py)
- [Figure 10](/versions/v4.0.0/results_20230307/v4.0.0_manu.png):
- [`/versions/v4.0.0/results_20230307/plot_sacess_400_manu.py`](/versions/v4.0.0/results_20230307/plot_sacess_400_manu.py)

## Barebones SBML models fitted to RPE1 data

Barebones SBML files with parameters optimized to fit the time courses of RPE1 cells can be found for the following model versions:
- [v3.0.1](/versions/v3.0.1/results_20220421/v3.0.1_optimized.sbml)
- [v3.2.0](/versions/v3.2.0/results_20220421/v3.2.0_optimized.sbml)
- [v4.0.0](/versions/v4.0.0/results_20230307/v4.0.0_optimized.sbml)
Binary file removed versions/PEtab_PLang_problem_v23.xlsx
Binary file not shown.
Binary file removed versions/PEtab_PLang_problem_v25.xlsx
Binary file not shown.
Binary file removed versions/PEtab_PLang_problem_v26.xlsx
Binary file not shown.
Binary file removed versions/PEtab_PLang_problem_v27.xlsx
Binary file not shown.
Binary file removed versions/PEtab_PLang_problem_v28.xlsx
Binary file not shown.
Binary file removed versions/PEtab_PLang_problem_v29.xlsx
Binary file not shown.
Binary file removed versions/PEtab_PLang_problem_v30.xlsx
Binary file not shown.
Binary file removed versions/PEtab_PLang_problem_v31.xlsx
Binary file not shown.
Binary file removed versions/PEtab_PLang_problem_v32.xlsx
Binary file not shown.
Binary file removed versions/PEtab_PLang_problem_v33.xlsx
Binary file not shown.
Binary file removed versions/PEtab_PLang_problem_v34.xlsx
Binary file not shown.
Binary file removed versions/PEtab_PLang_problem_v35.xlsx
Binary file not shown.
Binary file removed versions/PEtab_PLang_problem_v37.xlsx
Binary file not shown.
Binary file removed versions/PEtab_PLang_problem_v38.xlsx
Binary file not shown.
Binary file removed versions/PEtab_PLang_problem_v39.xlsx
Binary file not shown.
22 changes: 22 additions & 0 deletions versions/substitute_sbml_pars.py
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 versions/v3.0.1/results_20220421/v3.0.1_optimized.sbml

Large diffs are not rendered by default.

6,563 changes: 6,563 additions & 0 deletions versions/v3.2.0/results_20220421/v3.2.0_optimized.sbml

Large diffs are not rendered by default.

205 changes: 0 additions & 205 deletions versions/v4.0.0/results_20230120/plot_sacess_400_manu.py

This file was deleted.

Binary file removed versions/v4.0.0/results_20230120/v4.0.0_manu.png
Binary file not shown.
Binary file removed versions/v4.0.0/results_20230307/v4.0.0_manu.pdf
Binary file not shown.
Loading

0 comments on commit a8046b5

Please sign in to comment.