Invalid Date
We generally want to understand pathogen-immune response dynamics with the eventual goal of intervening with drugs, vaccines, etc.
Modeling of drugs is a big area in pharma knows as pharmacometrics (PM/PMX) or pharmacokinetic/pharmacodynamic (PK/PD) modeling. The term Quantitative Systems Pharmacology (QSP) is also used.
Simplest assumption: Drug effect is constant.
See the “PK/PD” app in DSAIRM.
\[ \begin{aligned} \dot{B} & = g B(1-\frac{B}{B_{max}}) - d_B B - kBI \color{blue}{- f(C)B}\\ \dot{I} & = r BI - d_I I \\ \color{blue}{\dot{C}} & \color{blue}{= ?} \end{aligned} \]
A drug at concentration \(C\) leads to extra killing of bacteria (PD). The drug has some time-course (PK).
\[ \begin{aligned} \dot{B} & = g B(1-\frac{B}{B_{max}}) - d_B B - kBI - eB\\ \dot{I} & = r BI - d_I I \\ \dot C & = - d_C C, \qquad C=C+C_0 \textrm{ at } t = t_{interval} \qquad \textrm{(PK)}\\ e & = E_{max} \frac{C^k}{C^k+C_{50}} \qquad \textrm{(PD)} \end{aligned} \]
Get the code/simulation model for the Basic Bacteria model and the PK/PD model, namely simulate_basicbacteria_ode.R
and simulate_pkpdmodel_ode.R
.
Take a look at both R files. All the stuff at the top (any line that starts with #'
) is just documentation and you can mostly ignore.
Make a copy of simulate_pkpdmodel_ode.R
. You can delete the documentation portion. Modify the code by replacing the \(U/I/V\) part of the model with the \(B/I\) part from the bacteria model.
This might be a bit challenging, but we’ll assist.