## Population modeling of tumor growth kinetics and bayesian predictions.

Program to perform predictions of individual tumor growth with bayesian inference (in particular, backward prediction of the initiation time of the tumor).

Program requirements

These programs must be installed to run the code: - python 3.6.7 - R 3.5.1 - MonolixSuite2019

Python packages

** to install mlx_py copy the following lines (see mlx_py in modules): from rpy2 import robjects robjects.r(‘install.packages('R6')’) robjects.r(‘install.packages('RJSONIO')’) robjects.r(‘install.packages('/Applications/', repos = NULL, type='source',, INSTALL_opts ='–no-multiarch')’) #the path might change.

To run the code

Launch the file to run the code. In the file it is possible to chose the data set (cell line name), the models to perform the analysis, the error model and the number of observations to take into account for the backward prediction.

The program first divides the data set into n subsets that will be used to perform the k-fold cross validation. Then the following options can be run: - NLME analysis of the entire data set - backward prediction with bayesian inference (k-fold cross validation): - NLME analysis of the subsets - backward predictions with stan - backward predictions with likelihood maximization


Results are organized as follows inside the folder folder_results/cell_line_name (specified in the file): - global monolix analysis: a summary is created (summary_global_population_analysis.pdf) with the results relative to each model. In the subfolder global_monolix_analysis/ there are files and subfolders with the detailed analysis of the nonlinear mixed effects modeling of each tumor growth equation. - backward predictions: a summary is created (summary_backward_predictions.pdf) with the relative errors of each model obtained with bayesian inference and likelihood maximization (detailed results and figures are in prediction_summary). Individual prediction plots can be found in backward_prediction/model_name, in case of bayesian inference, and in backward_prediction_lm/model_name, in case of likelihood maximization. The files .db contain the workspace with the results of backward predictions for each individual. The folders named with numbers contain the test set and the learning test used for the k-fold cross validation with the monolix analysis of the learning set. The parameter distributions found are used then as prior distribution to perform bayesian inference.

How to add a new data set

It is possible to add a new data set. Data must be saved in a txt file with three columns (ID, Time, Observation) and each row contains the observation of an individual at a certain time. The new data set must be declared in the function import_data in

How to add a new tumor growth model

Tumor growth models are defined in (for the Monolix analysis and backward predictions using likelihood maximization) and in (for backward predictions using Bayesian inference). All the models defined in must be defined in