Skip to content

Commit d2db5ba

Browse files
dweindlm-philipps
andauthored
Doc: Clean up visualization examples (#236)
The visualization examples were pretty redundant. Merged them into a single notebook. Removed redundant blocks. Furthermore: * Don't use deprecated `Problem.from_files` * Simplify by not loading all files separately * Fix grammar / typos * Add replicate plot example * Make plots more readable * ... :eyes: https://petab--236.org.readthedocs.build/projects/libpetab-python/en/236/example/example_visualization.html# Co-authored-by: Maren Philipps <[email protected]>
1 parent 1bebd15 commit d2db5ba

File tree

10 files changed

+517
-637
lines changed

10 files changed

+517
-637
lines changed

doc/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@
8484
# myst_nb options
8585
# https://myst-nb.readthedocs.io/en/latest/configuration.html
8686
nb_execution_mode = "force"
87-
87+
nb_execution_raise_on_error = True
88+
nb_execution_show_tb = True
8889

8990
source_suffix = {
9091
".rst": "restructuredtext",

doc/example.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ The following examples should help to get a better idea of how to use the PEtab
1010

1111
example/example_petablint.ipynb
1212
example/example_visualization.ipynb
13-
example/example_visualization_without_visspec.ipynb
14-
example/example_visualization_with_visspec.ipynb
1513

1614
Examples of systems biology parameter estimation problems specified in PEtab
1715
can be found in the `systems biology benchmark model collection <https://github.com/Benchmarking-Initiative/Benchmark-Models-PEtab>`_.
Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
plotId plotTypeSimulation plotTypeData datasetId xValues legendEntry
2-
plot1 LinePlot provided model1_data1_pEGFR_tot time Data 1, pEGFR total
3-
plot1 LinePlot provided model1_data2_pEGFR_tot time Data 2, pEGFR total
4-
plot1 LinePlot provided model1_data3_pEGFR_tot time Data 3, pEGFR total
5-
plot1 LinePlot provided model1_data4_pEGFR_tot time Data 4, pEGFR total
6-
plot1 LinePlot provided model1_data5_pEGFR_tot time Data 5, pEGFR total
7-
plot1 LinePlot provided model1_data6_pEGFR_tot time Data 6, pEGFR total
8-
plot2 LinePlot provided model1_data1_pAkt_tot time Data 1, pAkt total
9-
plot2 LinePlot provided model1_data2_pAkt_tot time Data 2, pAkt total
10-
plot2 LinePlot provided model1_data3_pAkt_tot time Data 3, pAkt total
11-
plot2 LinePlot provided model1_data4_pAkt_tot time Data 4, pAkt total
12-
plot2 LinePlot provided model1_data5_pAkt_tot time Data 5, pAkt total
13-
plot2 LinePlot provided model1_data6_pAkt_tot time Data 6, pAkt total
14-
plot3 LinePlot provided model1_data1_pS6_tot time Data 1, pS6 total
15-
plot3 LinePlot provided model1_data2_pS6_tot time Data 2, pS6 total
16-
plot3 LinePlot provided model1_data3_pS6_tot time Data 3, pS6 total
17-
plot3 LinePlot provided model1_data4_pS6_tot time Data 4, pS6 total
18-
plot3 LinePlot provided model1_data5_pS6_tot time Data 5, pS6 total
19-
plot3 LinePlot provided model1_data6_pS6_tot time Data 6, pS6 total
1+
plotId plotTypeData datasetId xValues legendEntry
2+
plot1 provided model1_data1_pEGFR_tot time Data 1, pEGFR total
3+
plot1 provided model1_data2_pEGFR_tot time Data 2, pEGFR total
4+
plot1 provided model1_data3_pEGFR_tot time Data 3, pEGFR total
5+
plot1 provided model1_data4_pEGFR_tot time Data 4, pEGFR total
6+
plot1 provided model1_data5_pEGFR_tot time Data 5, pEGFR total
7+
plot1 provided model1_data6_pEGFR_tot time Data 6, pEGFR total
8+
plot2 provided model1_data1_pAkt_tot time Data 1, pAkt total
9+
plot2 provided model1_data2_pAkt_tot time Data 2, pAkt total
10+
plot2 provided model1_data3_pAkt_tot time Data 3, pAkt total
11+
plot2 provided model1_data4_pAkt_tot time Data 4, pAkt total
12+
plot2 provided model1_data5_pAkt_tot time Data 5, pAkt total
13+
plot2 provided model1_data6_pAkt_tot time Data 6, pAkt total
14+
plot3 provided model1_data1_pS6_tot time Data 1, pS6 total
15+
plot3 provided model1_data2_pS6_tot time Data 2, pS6 total
16+
plot3 provided model1_data3_pS6_tot time Data 3, pS6 total
17+
plot3 provided model1_data4_pS6_tot time Data 4, pS6 total
18+
plot3 provided model1_data5_pS6_tot time Data 5, pS6 total
19+
plot3 provided model1_data6_pS6_tot time Data 6, pS6 total
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
plotId plotTypeSimulation plotTypeData datasetId xValues
2-
plot1 LinePlot provided model1_data1_pEGFR_tot time
3-
plot2 LinePlot provided model1_data2_pEGFR_tot time
4-
plot2 LinePlot provided model1_data3_pEGFR_tot time
5-
plot3 LinePlot provided model1_data4_pEGFR_tot time
6-
plot3 LinePlot provided model1_data5_pEGFR_tot time
7-
plot3 LinePlot provided model1_data6_pEGFR_tot time
1+
plotId plotTypeData datasetId xValues
2+
plot1 provided model1_data1_pEGFR_tot time
3+
plot2 provided model1_data2_pEGFR_tot time
4+
plot2 provided model1_data3_pEGFR_tot time
5+
plot3 provided model1_data4_pEGFR_tot time
6+
plot3 provided model1_data5_pEGFR_tot time
7+
plot3 provided model1_data6_pEGFR_tot time
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
format_version: 1
2+
parameter_file:
3+
problems:
4+
- condition_files:
5+
- Isensee_experimentalCondition.tsv
6+
measurement_files:
7+
- Isensee_measurementData.tsv
8+
observable_files: []
9+
sbml_files: []
10+
visualization_files:
11+
- Isensee_visualizationSpecification.tsv
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
format_version: 1
2+
parameter_file:
3+
problems:
4+
- condition_files:
5+
- Isensee_experimentalCondition.tsv
6+
measurement_files:
7+
- Isensee_measurementData.tsv
8+
observable_files: []
9+
sbml_files: []

0 commit comments

Comments
 (0)