-
Notifications
You must be signed in to change notification settings - Fork 28
Modeling time delays using the linear chain trick
Time delays can be modeled without using delay differential equations by applying the linear chain trick (MacDonald, 1976). The time-delayed reaction A_state -> B_state
is thereby replaced with a series of ODE states, the linear chain:
A_state -> X1 CUSTOM "k_in * A_state"
X1 -> X2 CUSTOM "k_delay * X1"
X2 -> X3 CUSTOM "k_delay * X2"
X3 -> X4 CUSTOM "k_delay * X3"
X4 -> X5 CUSTOM "k_delay * X4"
X5 -> X6 CUSTOM "k_delay * X5"
X6 -> X7 CUSTOM "k_delay * X6"
X7 -> B_state CUSTOM "k_out * X7"
For an infinite number of chain states, this technique is equivalent to a delay differential equations. The shorter the chain, the more smeared out the time course of B
becomes with respect to A
. However, a large number of chain states can unnecessarily increase model complexity and introduce large degrees of stiffness which increases computational cost. It is therefore desirable to not use overly long chains. To find the optimal size of the number of states (the chain length), one can apply the iterative algorithm described in Hauber et al., 2020:
Chose a arbitrary (not too low, 6 or 7 may be a good choice) chain length and introduce the auxiliary parameter ´k_skip´ that replaces ´k_delay´ in one of the equations:
A_state -> X1 CUSTOM "k_in * A_state"
X1 -> X2 CUSTOM "k_skip * X1"
X3 -> X4 CUSTOM "k_delay * X3"
X4 -> X5 CUSTOM "k_delay * X4"
X5 -> X6 CUSTOM "k_delay * X5"
X6 -> X7 CUSTOM "k_delay * X6"
X7 -> B_state CUSTOM "k_out * X7"
Fit the model to the dat, calculate the profile likelihood and investigate the confidence interval of ´k_skip´: Decrease the chain length by and repeat the above steps until ´k_skip´ changes from being non-identifiable with its confidence interval being infinitely extended towards positive infinity to being identifiable.
- MacDonald, N. (1976). Time delay in simple chemostat models. Biotechnology and bioengineering, 18(6), 805-812. ISO 690
- Hauber, A. L., Engesser, R., Vanlier, J., & Timmer, J. (2020). Estimating chain length for time delays in dynamical systems using profile likelihood. Bioinformatics, 36(6), 1848-1854. ISO 690
- Installation and system requirements
- Setting up models
- First steps
- Advanced events and pre-equilibration
- Computation of integration-based prediction bands
- How is the architecture of the code and the most important commands?
- What are the most important fields of the global variable ar?
- What are the most important functions?
- Optimization algorithms available in the d2d-framework
- Objective function, likelhood and chi-square in the d2d framework
- How to set up priors?
- How to set up steady state constraints?
- How do I restart the solver upon a step input?
- How to deal with integrator tolerances?
- How to implement a bolus injection?
- How to implement washing and an injection?
- How to implement a moment ODE model?
- How to run PLE calculations on a Cluster?