2024-07-20
We generally want to understand pathogen-immune response dynamics with the eventual goal of intervening with drugs or vaccines.
Modeling of drugs is a big area. In the pharma industry, this is knows as pharmacometrics (PM/PMX) or pharmacokinetic/pharmacodynamic (PK/PD) modeling. The term Quantitative Systems Pharmacology (QSP) is also used for mechanistic models.
Simplest assumption: Drug effect is constant.
\[ \begin{aligned} \dot{B} & = g B(1-\frac{B}{B_{max}}) - d_B B - pBI \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 - k_IBI - 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^n}{C^n+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.
Definitions/letters for some parameters might have changed between apps. Make sure you call/define them correctly.
This might be a bit challenging, but we’ll assist.