A Modified Stochastic Simulation Algorithm For Time-Dependent Intensity Rates
A Modified Stochastic Simulation Algorithm For Time-Dependent Intensity Rates
net/publication/261092283
CITATIONS READS
9 754
2 authors:
All content following this page was uploaded by Raluca Roxana Purnichescu Purtan on 28 September 2018.
Abstract — There are two main approaches in the modeling well-mixed chemical kinetic systems are based on
mathematical modeling of coupled systems of (bio)chemical the work of Gillespie [5][6], who developed the stochastic
reactions: continuous, represented by differential equations simulation algorithm (SSA) in two variants, the Direct and
whose variables are concentrations or discrete, represented by First Reaction Methods. More recently, Gibson and Bruck [4]
stochastic processes whose variables are numbers of molecules.
The latter approach is used mostly for biochemical systems with
created the Next Reaction Method and Cao et all [3]
a low to moderate number of molecules of certain species and this demonstrated that for certain classes of systems the Direct
kind of systems are typically modeled as continuous time – method can be faster than the Next Reaction method. The
discrete state Markov Process. There are exact stochastic stochastic simulation algorithm produces an exact solution to
algorithms to simulate state trajectories of discrete, stochastic the dynamical chemical system by simulating each molecular
systems and these algorithms are based on methods that are reaction event. For systems with fast reversible or numerous
rigorously equivalent to the Master Equation approach. Two of reactions, the exact simulation algorithm becomes
the most widely used methods for simulating the stochastic computationally costly.
dynamics of a chemical system are the exact stochastic simulation
algorithm (SSA, known also as Gillespie algorithm) and its The basic idea of the SSA is that, at each point in time, a
approximate variant, the tau-leaping algorithm. waiting time to the next reaction and the most likely reaction
This paper describes a modified version of SSA - First to occur must be sampled from a joint probability density
reaction method - by letting the intensity rates of the reactions to function. If the rate constants and/or the number of molecules
be functions of time. The importance of this adaptation is obvious in the system are large, then the time step of the algorithm can
when considering some classes of biological models (for example, be very small and a very large number of steps must be
the one involving circadian rhythm). The underlying assumptions employed for the completion of the simulation. Because of
are that the system is well stirred such that at any moment, each this, Gillespie [7] introduced the Poisson W -leap method (an
reactions occur with equal probability at any position, that each Euler-type method) in which more than one reaction are
allowed to fire in a given time interval W with a frequency
reaction, once occurred, completes instantaneously (there are no
reactions with delay involved) and that the system is non stiff
(there are no different time scales of the reactions involved). extracted from a Poisson distribution. Since then, many
extensions of this idea have been developed, most of them
Keywords — chemical kinetics, stochastic simulation regarding the improvement of the computational efficiency
algorithm, time-dependent intensity rates and finding efficient methods for simulating stiff systems. In
the last 10 years, especially in the biochemical field, the
I. INTRODUCTION variability in external factors (temperature fluctuation, change
in volume, circadian rhythms) has been taken more and more
Stochastic chemical kinetics describes the time evolution into account, and the need for mathematical models which can
of a well-stirred chemically reacting system in a way that include them increased. There have been limited studies
takes into account the fact that molecules dynamics come in concerning this subject [8], [1], [2]. A very interesting
whole numbers and exhibit some degree of randomness in extension of the SSA can be found in the recent paper [9]
their dynamical behavior. In the last 30 years, more and more where the rate constant is replaced with a random variable, i.e.
researchers are using this approach to chemical kinetics in the possess a stationary distribution with a known density.
analysis of cellular systems in biology, where small molecular
populations of only a few reactant species can lead to In this paper we extend the SSA (First Reaction method)
deviations from the predictions of the deterministic differential by letting the reaction intensity be a general function of time.
equations of classical chemical kinetics. In particular, we formulate an optimization problem and
discuss it for a class of non-negative and continuous functions
By representing the chemical reacting system as a jump from the point of view of numerical implementation and time
Markov process, the state of the system is modeled in terms of costs. We also come with new stopping conditions for the
molecule numbers (non-negative integers) and as a chemical proposed algorithm in terms of reaction chain verisimilitude.
reaction fire, discrete state transitions occur, in continuous Until now some conditions for non-negative populations of
time. Many of the existing numerical methods developed for
366
TABLE I System characteristics wP ( X t , t X s , s ) M
wt
¦ [ P( X t
vP , t X s , s ) u cP hP ( X t vP )
(4)
Type Reaction description hP ( x ) and vP ( x ) P 1
P ( X t , t X s , s ) u cP hP ( X t )]
h1 ( x ) x1 x2
R1 S1 S 2 o 2 S1 S 3
v1 (1, 1,1, 0) or, after replacing aP ( x ) with cP hP ( x ) :
1 wP ( X t , t X s , s ) M
h2 ( x ) x2 x3 ( x3 1)
wt
¦ [ P( X t
vP , t X s , s ) u a P ( X t vP )
(5)
R2 S 2 2 S3 o S4 2 P 1
367
(and will be the only reaction firing in the time interval As in the homogeneous case, we are interested to find the
[t , t dt ) , according to (1), (2) and (3)) is, naturally, the one time of the first event for each reaction. We shall generate a
with the smallest time of first event. sequence of M random variables ( r1 , r2 , ..., rP ,..., rM ) , uniform
In order to find the time of the first event for each reaction, distributed in (0,1) and the time of the first firing for the P -
is a common practice to generate a sequence of M random th reaction will be the positive solution W P (with a minimal
variables ( r1 , r2 , ..., rP ,..., rM ) , uniform distributed in (0,1) and
value, if there are multiple solutions) of the integral equation:
apply the Probability Integral Transform to obtain a
corresponding sequence of M random variables exponentially t W P §1·
distributed : aP ( x ) e
aP ( x ) W P
. The time of the first firing for the ³ aP ( X (t ), u ) du ln ¨ ¸ (6)
© rP ¹
t
1 §1· and the reaction that will fire is the reaction corresponding to
P -th reaction will be W P ln ¨ ¸ and the reaction
aP ( x ) © rP ¹ tmin min ^W P ` . Finally, updating the state vector with the
P 1... M
that will fire is the reaction corresponding to tmin min ^W P ` . corresponding state change vector and the incrementing the
P 1... M
time by tmin , the algorithm is running until a stop condition is
This is the main core of the First Reaction Method. enabled.
Updating the state vector with the corresponding state change
The classical stopping condition is: the number of desired
vector and the incrementing the time by t min , the algorithm is
steps or the sum of the populations dimensions.
running until a stop condition is enabled.
In addition we consider that the following criterion must
The First Reaction Method is the algorithm implementing be incorporated in the stop condition: strict negative values for
the above strategies. In [5], Gillespie proved that is an exact each one of the populations.
simulation algorithm.
Note that X (t ) is constant in the above integrals (i.e. the
III. MODIFIED FIRST REACTION METHOD ALGORITHM hP vectors are constants) because no reaction take place in the
Consider a system in which the probability rates cP are time interval >t , t W P
. In case of a time independent
time dependent, i.e. cP (t ) . For example, any modification in intensity (propensity) rate aP ( x ) , equation (6) becomes
the temperature or volume of the reacting system could lead to
1 §1·
changes in the specific probabilities rates cP (t ) . In WP ln ¨
¸ (the same as for the homogeneous case).
aP ( x ) © rP ¹
biochemistry is a well-known fact that external factors as
circadian rhythms can play a critical role in absorption and Another important aspect of the above approach is the
metabolize of different substances. Some of these external
influences have been monitored by repeatedly and carefully specific class of cP (t ) functions. In our future work we will
conducted experiments, so there is a large amount of data we study in depth this aspect.
can rely on for constructing some pertinent classes of specific
time dependent functions. Modified Algorithm for First Reaction Method
1) Initialization:
Using time dependent probability rates cP (t ) (at least for - Set the initial numbers of molecules for each species (in the
some of the reactions of the system), we have to change state vector X (t ) ) ;
accordingly the intensity rates: aP ( X (t ), t ) dt cP (t ) hP ( X (t )) dt .
- Set the specific probability rate constants cP (t ) for all
Every reaction is a non-homogeneous Poisson process. The
elemental reactions;
number of events for each reaction RP in any interval t1 , t 2 @
- Set the functions hP for all reactions;
has a Poisson distribution with parameter ³ aP ( X (t ), t ) dt .
t2
ª ³ t aP ( X (t ), t ) dt º e ³
t2
k aP ( X ( t ), t ) dt
2 t1
2) Calculate the propensity functions aP ( X (t ), t ) for each
P ^ X (t1 ) X (t 2 ) k `
¬ t 1 ¼
reaction .
k!
3) Generate the sequence of random numbers
It can be shown by straightforward calculations that
relations (1), (2) and (3) hold for time dependent intensity ^r1 , r2 ,..., rP ,...rM ` from a unit-interval uniform distribution.
rates.
368
4) For every reaction, find the positive solution W P (with a In spite of the fact the time increases for the simulation
minimal value, if there are multiple solutions) of the integral duration, the proposed algorithm solves the general problem of
time varying intensity rates in a general manner. The
t W P §1· numerical implementation can be adapted for each class of
equation ³ aP ( X (t ), u ) du ln ¨ ¸ ; functions characterizing the intensity rates and optimal
© rP ¹
t
solution that decrease the simulation duration can be found.
5) Find tmin min ^W P ` and store the index of the reaction IV. CONCLUSIONS AND FURTHER WORK
P 1... M
§ t , § ª t º 1 · T · where T denotes the period of the [5] D.T. Gillespie, “Exact stochastic simulation of coupled chemical
¨ ¨« » ¸ ¸ reactions”, Journal of Physical Chemistry, no.81, (1977)pp.2340-2361
© © ¬T ¼ ¹ ¹
[6] D.T. Gillespie, “A general method for numerically simulating the
considered function. stochastic time evolution of coupled chemical reactions”, J. Comput. Phys.,
no.22, 1976, pp.403-434
Also, keeping in mind that: aP ( X (t ), t ) dt cP (t ) hP ( X (t )) dt
[7] D.T. Gillespie, “Approximate accelerated stochastic simulation of
chemically reacting systems”, Journal of Chemical Physics, vol.115, no.4,
where, in fact, hP ( X (t )) has a constant value during the 2001, pp.1716-1733
numerical implementation of this step, one only has to [8] P. Lecca, “A time-dependent extension of Gillespie algorithm for
compute the intersection between the sinusoid and a straight biochemical stochastic S -calculus”, 2006, Proceedings of the 2006 ACM
line, parallel to the time axes denoting the constant: symposium on Applied Computing 23-27 April 2006, Dijon, pp.137-144
[9] C.Y Lee, “Stochastic simulation of biochemical systems with
1 §1 · randomly fluctuating rate constants”, 2012, arXiv:1202.1266[q-bio.QM]
ln ¨ ¸.
hP ( X (t )) © rP [10] T. Tian, K. Burrage, “Binomial leap methods for simulating
¹ stochastic chemical kinetics”, Journal of Chemical Physics, vol.121, no.21,
2004, pp.10356-10364
Other classes of functions can be found for which the
algorithm does not dramatically increase in terms of duration.
369