Skip to content

This GitHub repository serves as documentation and reproduction source for our article: Augustin D, Lambert B, Robinson M, Wang K, Gavaghan D (2023) Simulating clinical trials for model-informed precision dosing: Using warfarin treatment as a use case.

Notifications You must be signed in to change notification settings

DavAug/mipd-warfarin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simulating clinical trials for model-informed precision dosing: Using warfarin treatment as a use case

This GitHub repository serves as documentation and reproduction source for the results published in Frontiers in Pharmacology, 14, 1270443. It contains the raw data, the data derived during the analysis, the model specifications (SBML format) and executable scripts (Python scripts as well as Jupyter notebooks).

Looking at the results

The results are documented by multiple notebooks. To open the notebooks, please follow the links below:

  1. MIPD trial results & dosing strategies of models

To inspect the scripts used to generate data, implement models and to estimate model parameters, please follow the links below:

Datasets

Clinical dataset published by Warfarin Consortium (March 2008):

  1. INR measurements under maintenance warfarin treatment [Raw dataset] [Preprocessing script]

Simulated measurements:

  1. Clinical trial phase I [Data-generating script]
  2. Clinical trial phase II [Data-generating script]
  3. Clinical trial phase III [Data-generating script]
  4. MIPD trial cohort [Data-generating script]
  5. MIPD trial results: Regression model [Data-generating script]
  6. MIPD trial results: Deep RL model [Data-generating script]
  7. MIPD trial results: PKPD model [Data-generating script]

Model implementations

  1. Warfarin clinical trial model [SBML file (in vivo model)] [SBML file (INR test model)] [Parameters]
  2. Regression model [Training script] [Model weights]
  3. Deep RL model [Training script] [Model weights]
  4. PKPD model [SBML file] [Inference script (CTI)] [Inference script (CTII)] [Inference script (CTIII)] [Posterior distribution]

MIPD trial simulation

Scripts used in all MIPD trial simulations:

  1. Monitoring data simulation

Scripts specific to the different MIPD models:

  1. Regression model
  2. Deep RL model
  3. PKPD model

Reproducing the results

To reproduce the results, the GitHub repository can be cloned, and the scripts can be executed locally. For ease of execution, we prepared a Makefile that runs the scripts in the correct order. Please find a step-by-step instruction how to install the dependencies and how to reproduce the results, once the repostory has been cloned.

1. Install dependencies

  • 1.1 Install CVODE (myokit uses CVODE to solve ODEs)

For Ubuntu:

apt-get update && apt-get install libsundials-dev

For MacOS:

brew update-reset && brew install sundials

For Windows: No action required. Myokit installs CVODE automatically.

  • 1.2 Install Python dependencies
pip install -r requirements.txt

2. Reproduce results

You can reproduce the results using the Makefile. First install nbconvert which helps to execute the notebooks from the terminal

pip install nbconvert

You can now reproduce all data and figures in the article using

make all

This may take a while (hours to days), because you are re-running all scripts sequentially.

To reproduce only the plots from the existing data you can run

make run_mipd_trial_deep_rl_model

You can also run each script individually, but be aware that some scripts are dependent on the data derived in other scripts.

About

This GitHub repository serves as documentation and reproduction source for our article: Augustin D, Lambert B, Robinson M, Wang K, Gavaghan D (2023) Simulating clinical trials for model-informed precision dosing: Using warfarin treatment as a use case.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published