Ribba2012: glioma growth and treatment

This model describes proliferating tissue (P), quiescent tissue (Q), damaged quiescent tissue (Qp), and effective treatment exposure (C). Their sum Pstar describes the model's tumour-size output. Drug action damages tumour tissue, followed by delayed loss or return to proliferation. It offers a compact example of a tumour shrinking after treatment and subsequently regrowing.

The SBML retains its embedded CC0 notice. The reference image is a BioModels curation artifact, not a result generated by our R script.

Run and outputs

run-1.R is the short article example: load the unchanged SBML, build it, simulate, and display the tumour-diameter curve. Run it from the article directory (content/sbml-models-in-r):

source('code/ribba2012/run-1.R')

run-0.R retains the full comparison, numerical convergence check, and saved outputs. From the repository root:

Rscript content/sbml-models-in-r/code/ribba2012/run-0.R

The comparison script also accepts the article or model directory as the working directory. Heta exports and compiled C++ files are generated in R's local temporary directory. Only DynMSR, mrgsolve, a compatible Heta Compiler, and the C++ build tools required by mrgsolve are needed for the R run. No Python installation is needed to use the included digitized reference CSV. The following outputs are saved by run-0.R:

The effective initial conditions are C=1, P=7.13, Q=41.2, Qp=0; there are no additional doses. Source parameters are lambda_P=0.121, k_PQ=0.00295, k_Qp_P=0.0031, delta_QP=0.0087, gamma=0.729, KDE=0.24, and K=100. The baseline uses mrgsolve's observed defaults rtol=1e-8, atol=1e-8; the convergence run uses rtol=1e-11, atol=1e-13 on the same output grid.

Reproduction result

The supplied BioModels curation curve is reproduced to raster precision without changing parameters or equations. Pstar starts at 48.33 mm, reaches a minimum of 46.523151 mm at 6.3 months on the output grid, and reaches 96.337861 mm at 100 months. Against 437 points extracted from the curation PNG, the RMSE is 0.110248 mm and the maximum absolute residual is 0.260541 mm. The vertical image scale is 0.316456 mm/pixel. Tightening solver tolerances changes Pstar by at most 4.53e-7 mm.

These diagnostics support agreement with the curation image; they are not an acceptance threshold for clinical or scientific validation. The PNG contains no original numerical time grid. digitize-reference.py (Python + Pillow) extracts blue curve pixels using explicitly documented axis calibration into reference-digitized.csv; interpolation is used to compare different time grids. Pixel rounding, line thickness, and axis calibration contribute to residuals. This is neither exact artifact equality nor a comparison with original patient measurements.

Differences from the publication

Inspection of the author-provided full text identified differences that prevent calling this a verified reproduction of the paper itself:

The original XML has deliberately not been repaired or tuned to improve agreement. For the article, say "reproduce the BioModels curation simulation". Reproducing a particular original-paper treatment schedule would require a separately documented scenario and reconciliation of the differences above.

Heta extension: repeated treatment cycles

index.heta includes the original SBML unchanged and adds a TimeSwitcher that adds 1 to the current C at months 2, 4, 6, 8, and 10. Together with the supplied initial C(0)=1, this gives six treatment cycles with accumulation. This differs from the paper's reset-to-1 convention. The two-month interval is an illustrative scenario, not a clinical dosing recommendation or a reproduction of patient treatment histories.

Run source('ribba2012/run-2.R') from content/sbml-models-in-r/code to compare one cycle with six cycles. The Heta project is loaded and compiled once. param(mrgs_model, repeat_cycle__active__ = 0) disables the periodic event for the baseline; setting it to 1 enables the additional cycles. The script displays exposure and total tumour diameter. A checked plot is retained in ../../img/ribba2012-repeated-cycles.png. To regenerate the saved plot, open a PNG device before sourcing the script and close it afterward.

Compilation and both simulations completed successfully with Heta Compiler 0.12.4 and the same R/package versions recorded above. The additive-cycle scenario was rerun on 2026-11-24: its minimum diameter is 34.84577 mm at 28.7 months on the 0.1-month output grid. Output at the event time itself is the pre-event value; the following output reflects the new dose. Additional cycles produce a deeper, longer decrease in total diameter, followed by regrowth after treatment stops. The original SBML/publication differences listed above still apply.