Probability distributed time delays: integrating spatial effects into temporal models
© Marquez-Lago et al. 2010
Received: 16 October 2009
Accepted: 4 March 2010
Published: 4 March 2010
Skip to main content
© Marquez-Lago et al. 2010
Received: 16 October 2009
Accepted: 4 March 2010
Published: 4 March 2010
In order to provide insights into the complex biochemical processes inside a cell, modelling approaches must find a balance between achieving an adequate representation of the physical phenomena and keeping the associated computational cost within reasonable limits. This issue is particularly stressed when spatial inhomogeneities have a significant effect on system's behaviour. In such cases, a spatially-resolved stochastic method can better portray the biological reality, but the corresponding computer simulations can in turn be prohibitively expensive.
We present a method that incorporates spatial information by means of tailored, probability distributed time-delays. These distributions can be directly obtained by single in silico or a suitable set of in vitro experiments and are subsequently fed into a delay stochastic simulation algorithm (DSSA), achieving a good compromise between computational costs and a much more accurate representation of spatial processes such as molecular diffusion and translocation between cell compartments. Additionally, we present a novel alternative approach based on delay differential equations (DDE) that can be used in scenarios of high molecular concentrations and low noise propagation.
Our proposed methodologies accurately capture and incorporate certain spatial processes into temporal stochastic and deterministic simulations, increasing their accuracy at low computational costs. This is of particular importance given that time spans of cellular processes are generally larger (possibly by several orders of magnitude) than those achievable by current spatially-resolved stochastic simulators. Hence, our methodology allows users to explore cellular scenarios under the effects of diffusion and stochasticity in time spans that were, until now, simply unfeasible. Our methodologies are supported by theoretical considerations on the different modelling regimes, i.e. spatial vs. delay-temporal, as indicated by the corresponding Master Equations and presented elsewhere.
Biological systems are characterized by complex spatial structure, low diffusion rates, or entail acute spatial dependencies, requiring spatially resolved simulations. Consequently, a system's behavior can vary considerably compared to its well-mixed representation, a fact that has been previously shown through spatially-resolved models [1–4]. In recent years, it has become evident that one must incorporate spatial aspects in a model in order to achieve two main purposes. First, to understand 'how and when' spatial processes play key roles within actual cellular processes, affecting their modeling outcomes and interpretation. Secondly, to learn how to incorporate such spatial effects in a reliable and accurate manner.
The most straightforward spatial technique is the representation of chemical kinetics through reaction-diffusion partial differential equations. However, this deterministic approach is only valid when dealing with large molecular concentrations and when noise is not amplified throughout the system. If at least one of these conditions fails to hold, one must rely on spatial stochastic simulators, which can be discrete or continuous and have different levels of spatial resolution .
Stochastic spatially-resolved simulations are, in general, very costly as compared with their solely temporal counterparts. By consequence, one should always keep in mind the trade-off between simulation time and level of resolution. The highly resolved end of the spectrum is represented by lattice and off-lattice particle methods [5–7]. Particle methods can provide very detailed simulations of highly complex systems at the cost of exceedingly large amounts of computational time and, possibly, restrictions on the size of the simulation domain. Hence, such detailed simulations can often only yield short simulation time spans that may not be of interest to the experimentalists.
An alternative to particle methods, albeit still computationally expensive in many scenarios, is the discretization of the Reaction-Diffusion Master Equation (RDME) into reactive neighboring sub-volumes. In  the authors provide the specific outline for extending discrete stochastic simulators to the RDME regime, while the algorithms in [9, 10] provide clever extensions using the ideas behind the 'next reaction method' . Furthermore, there is an algorithm that accurately coarse-grains the RDME , yielding considerably shorter computational times.
However, there are certain scenarios in which all of the above methods can still be computationally expensive, especially for long simulation time spans. It is at this point when one should remember that, by incorporating delays into temporal models, one can in principle account for myriads of microscopic steps [12, 13], if the delays are posed correctly. In other words, by incorporating delays into a temporal model one can capture essential information on a macroscopic level, each delay encompassing sets of biochemical processes or transport and events on a microscopic time scale that would otherwise render us unable to compute cell dynamics in real-time. Some examples for the use of delays in modeling biochemical reaction networks can be found, for instance, in [14–16], where it can be readily observed that the consideration of delays is not only practical, but many times essential for capturing the dynamics accurately.
Having this in mind, we introduce a methodology that indirectly incorporates spatial features and effects into temporal models, by means of using tailored distributed delays in a discrete stochastic setting. This idea is compatible with modular or 'plug and play' models, a common concept used in synthetic biology [17–19], that we now propose to extrapolate to include spatial effects in arbitrary cellular processes. In our methodology each 'plug' would correspond to a delay distribution describing a diffusion-driven event that can be obtained from single suitable in silico or in vitro experiments. For the former, the single spatial simulations are relatively inexpensive as they only describe diffusion inside or between compartments for single events and not a whole process. Once the delay distributions for single events are fed into a delayed stochastic solver, they provide the 'raw material' necessary to obtain myriads of different stochastic trajectories, accounting for molecular motion at one or several stages. Ideally, these can describe a full downstream pathway or cellular process, where these diffusion profiles can allow us to explore variations in our model (such as the order or number of cellular events) or even study related/similar cellular processes and signaling pathways. Nevertheless, both translocational feedbacks (switching back and forth between compartments) and strongly-coupled delayed scenarios (i.e. several delayed reactions compete for the same reactants) may pose limitations in terms of accuracy, if using fixed distributions in the whole simulation timecourse, due to non-negligible effects from time-varying delay distributions. These topics will be described in detail in our Results section.
We apply our method to a variety of scenarios of molecular translocation and association processes, reaching a good compromise between accuracy and computational costs. Our simulations, as compared to those yielded by ChemCell (a single-particle tracking algorithm developed in Sandia National Laboratories , see Methods), show high accuracy while being computed several orders of magnitude faster. Additionally, we present a methodology based on delay differential equations that can be used in scenarios of high molecular concentrations and low noise propagation.
Our methodology is composed of two steps: distribution fitting and stochastic simulation. The first step is crucial and will determine how accurate the method is compared to a highly resolved particle tracking method. The second step is achieved by using a generalization of the SSA for chemical kinetics with delays (DSSA) [12, 20, 21], where a constant delay is no longer considered, but a distribution from which individual delays are to be drawn. Initially, the reaction rate constant of a delayed reaction is set to a high value such that its waiting time is relatively small compared to the sampled delays. This condition is not necessary, and will be later on removed or replaced. Nevertheless, in simple translocation scenarios it can be used without loss of accuracy, achieving higher computational savings. For easier referencing, we will refer to this new methodology as dDSSA (distributed delay stochastic simulation algorithm).
Intuitively, if one has to assign a 'delay' for a certain process to happen, the first idea that may come to mind is to measure the duration of such event in each repetition of an experiment performed under 'identical' conditions. With this in mind, one may think of a 'diffusion delay' as the first passage time of a molecule into a predefined subset of the domain or possible chemical state. For instance, if a molecular species is initially localized in the cytosol but bound to translocate to the nucleus, one can measure how long each molecule takes to translocate, associate a delay to each arrival time, and draw statistics on it. Some experimental techniques that can be used for deriving such delay distributions are: real-time production of single protein molecules , GFP time-courses describing compartmental localization , or 'tagging' proteins with explicit localization signals (the most common of which are nuclear import and export). A second example might be measuring delays associated with dimer formation by measuring particle collision times. Even though such resolved data is often unavailable and one merely has an average parameter such as the mean-square displacement, the diffusion constant or the binding rate constant, one can still benefit from first passage abstractions [24, 25] or stochastic simulations portraying random diffusion and directed transport.
For the purposes of this paper we obtained the delay distributions directly from single ChemCell simulations. To represent a diffusion dependent event (such as a translocation to a different compartment, or collision between two molecules) by means of a temporal delay, we generated appropriate probability and cumulative distribution functions (PDF and CDF, respectively). Namely, for a particular initial condition characterized by molecular concentrations and particle locations, one can record the time at which the next molecule performs the event in question, be it translocation or molecular collision, from which a certain CDF can be derived given that the sample of experiments is large enough. It is worth highlighting that the derivation of any delay distribution requires only a few (most times only one) relatively inexpensive spatial simulations, the results of which are fed into the DSSA algorithm yielding myriads of stochastic scenarios at 'solely temporal simulation' costs.
where we integrate over the volume V in which the particle is diffusing. For the delay stochastic simulation algorithm we only need this CDF, P(t a ≤ t), of the delay/arrival time distribution. However, it should be noted that the PDF of arrival times is given by dP(t a ≤ t)/dt.
subject to appropriate boundary and initial conditions and characterized by the particles' diffusion constant D and the geometry of the spatial domain. Here, the advective term is only needed when modelling diffusion processes with directed transport. The boundary conditions are usually mixed Neumann-Dirichlet conditions corresponding to reflective and absorbing boundaries, depending on the specific geometry of the problem. For instance, diffusion from inside the nucleus to the cytoplasm, diffusion from the cytoplasm into the nucleus, or diffusion from the extracellular matrix into a cell all have distinctive boundary conditions that allow for 'driving' molecular directionality. In the case of translocation between different compartments, there is always at least one boundary condition that describes the absorbing barrier, for example that of the membrane separating the 'donor' from the 'receiving' compartments.
Analytic solutions to the diffusion equation can be obtained, albeit rarely and many times under a variety of simplifying conditions regarding the domain geometry, the initial and boundary conditions. Actually, for many relevant applications, analytic closed solutions are simply impossible to obtain. In these cases we can use numerical techniques that approximate the real solution with a maximal error up to a predefined user-specified value. For instance, one could numerically solve the diffusion equation on an arbitrary domain using pre-compiled software, such as COMSOL (or equivalent), or opt for a tailored discretization technique, using finite differences or finite elements.
In terms of our temporal framework, compartments are introduced via additional species such that identical biological species are distinguished according to the compartment where they are localized. Translocation processes are then modelled as delayed unary reactions whereas bimolecular reactions, i.e. associations of two molecules, depend on how fast these molecules diffuse and their reaction radius. Another novel feature of our methodology is that, since bimolecular reactions are diffusion-driven, they are also modelled by incorporating a delay. This is particularly useful when accounting for low diffusion rates, anisotropies, or spatial patterns far away from well-mixedness.
Several delay stochastic simulation algorithms have been developed in order to take account of intrinsic noise and delays associated with reactions [12, 20, 21, 26]. Here, we extend the DSSA by Barrio et al. (see Methods and ) but it should be noted that other DSSA implementations might be equally suitable, assuming they account for 'consuming reactions' (such as [20, 21]).
In order for the DSSA to be applicable, we adapted the algorithm such that delays are no longer considered to be constant but are actually drawn from the CDFs derived in the first step (modification M1). The associated reaction rates are all set to an arbitrary, high value, ensuring that the waiting times are rather small compared to the delays. However, one should pay careful attention while doing so, as this might add a bias towards delayed reactions in systems with competing reactions. For such, a further modification will be introduced later in this paper.
For the purpose of incorporating spatial effects, all delayed reactions are considered as consuming. In the original DSSA implementation  this implied that once a delayed reaction was drawn the corresponding reactants were no longer available for any future reactions, in order to not violate conservation of mass. There are two considerations at hand. First, that delayed translocation reactions may compete with other non-delayed reactions for the same reactants. Second, the reaction rates for delayed reactions are much larger than those for non-delayed reactions. All together, when choosing a delayed reaction, removing the reactants from the system would highly bias the dynamics towards diffusion.
In order to account for this, the DSSA was further modified, such that reactants that are assigned to diffusion/translocation reactions can still be chosen as reactants in other non-delayed reactions. In this case the translocation reaction will be cancelled and replaced by the non-delayed reaction (modification M2). In this way, competition between a delayed translocation reaction and a non-delayed reaction can still be accurately modelled. It should be noted that this is not equivalent to treating translocation delays as non-consuming reactions.
As will be shown below, this approach loses its compensating effect in the case of two (or more) delayed reactions that are competing for a common reactant. This is an effect of setting all rate constants for delayed reactions to an arbitrary high value, such that the waiting time to the next reaction becomes rather small compared to the delay. As a consequence, two competing delayed unary reactions will have identical propensities. However, in the case of competition with/between binary reactions, the difference in the reactions' propensities is exclusively due to the number/s of molecules from reactant species other than the common reactant. Such larger numbers of molecules imply that the corresponding delayed reaction is preferentially occurring, regardless of diffusion rates, spatial inhomogeneities, and other effects. This is rather unrealistic and in such scenarios the standard DSSA approach will fail in capturing the reaction dynamics properly. Allowing reactants to switch the delayed reaction they are participating in (modification M2), would slow down the simulation due to 'indecisive' reactants (i.e. reactants that switch multiple times before being eventually consumed) and would still not capture correctly the biophysical nature of the diffusion-driven association processes.
In order to tackle these limitations we propose an additional, yet more radical, modification to the original DSSA (modification M3). This modification is only applicable to scenarios solely composed by sets of delayed reactions, and comes along with a conceptual change in the way the simulation advances in time. Here, the selection of reactions will be based on their delay distributions instead of their propensities. Namely, for each possible reaction a delay is drawn from its corresponding delay distribution and, for each subset of coupled reactions, the minimum of the corresponding delays determines the reaction that is chosen to occur in the future. Bear in mind that all delayed reactions are consuming and, hence, once a reaction is chosen, its reactants are taken out of the pool of available molecules. Once no more reactions are possible, the simulation continues at the time of the next delayed reaction update.
Generally, deviation of the temporal approximation from the spatiotemporal dynamics can also be due to the time-variant spatial configuration of molecules in the cellular compartments and would require state-/time-dependent delay distributions. This is not a shortcoming of the simulation algorithm, as drawing from a state-dependent distribution does not involve substantial changes in the implementation, but rather an impracticality of the methodology, given the efforts needed to obtain multiple state-dependent delay distributions. However, depending on the reaction network to be modelled, the approximation can already be improved considerably by using piecewise delay distributions with only very few steps. In other words, appropriate delay distributions will be considered during selected time windows throughout the simulation. Each of these distributions is now able to capture the underlying delay mechanisms more accurately, be it for spatial inhomogeneities or abrupt changes in molecular concentrations. We refer to any form of time or state-dependent selection of delay distributions as modification M4.
We also explored different membrane permeability scenarios, that is, probabilities with which a particle will enter a different compartment once localized in close proximity to its boundary. For all ChemCell simulations shown here we set permeability of the nuclear membrane to 100%. However, we benchmarked our methodology by studying changes of the permeability, directly reflected in the delay distributions, and our simulations yielded equally accurate results (data not shown).
In order to illustrate the overall accuracy of the temporal approximation we calculated a total relative error at each time point. Namely, the sum of the absolute differences between two simulations (ChemCell and dDSSA) over all species, divided over the total number of molecules in the system. It should be noted, however, that in some applications one might be concerned with the error in a particular species, as opposed to the reported total relative error (which can be considered an upper bound with respect to the former). For other specificities in each considered scenario, we refer to the captions of the corresponding simulation plots. All dDSSA simulations were performed until a steady state was reached and include either modification M1 (with or without modification M2) or modification M3 (with or without modification M4).
Scenarios 4 and 5 are schematically shown in Figure 2b. They portray the nuclear translocation of 1000 clustered A n particles inside the cytosol, followed by a subsequent binary reaction taking place inside the nucleus (Scenario 4), and a possible further translocation of the product back to the cytosol (Scenario 5). In these cases, we split the problem into several distinct delayed-steps and obtained the corresponding delay distributions τ1,...,τN for each process, from separate ChemCell runs. This is a necessary step when including binary reactions, and which we will refer to as 'delay splitting'. In this case, the nuclear localization statistics from the full scenario simulation led to τ1. In order to derive τ2 we 'froze' in space the location of each A n as they entered the nucleus. We then used these coordinates as initial condition for the particles A n , which were set to diffuse and associate with B n , while the timing of each of these events was recorded yielding the CDF for τ2. Lastly, we computed τ3 by recording the translocation times of C n , by running ChemCell with an initial spatial location obtained from the full scenario simulation, as each association of A n and B n yielded a product C n . These precautions were taken as the initial position of A c was clustered inside the cytosol, which largely biases a uniform entry to the nucleus, and all events therein.
In Scenario 6 (Figure 2c) we explored the issue of competing delayed reactions stemming from two molecular species, A c and D c , entering the nucleus and binding to the same partner species B n . As was mentioned before, such a scenario may pose challenges for our initial methodology as an effect of setting all rate constants for delayed reactions to a certain high value. This comes in contrast to all previously considered test cases (as they do not include any competing binding reactions), where the delayed reactions rate constants could be fixed to an arbitrarily high value, or where using modification M3 resulted in enhanced accuracy. The reason behind these shortcomings comes down to highly variable delay distributions, for which better approximations are yet to be derived.
As was mentioned above, a better approximation could possibly be gained by state-variant delay distributions. Obtaining this information is, for obvious reasons, rather time consuming. However, one might be able to balance the effect of time-/state-varying delay distributions by tuning the reaction rate of the dominant delayed reaction, and this can even be done in a simple 'trial and error' manner. Figures 6e, f show that with such tuning (in this case choosing k = 0.015 s-1), one can obtain good simulation results: the steady states are almost perfectly matched (+/- 2 molecules), only in the first ten seconds can larger differences of about 100 molecules between ChemCell and dDSSA simulation be observed for A n , B n , and C n . However, it should be noted that such fitting of parameters is only possible on a case-by-case basis, and is independent of our methodology, as with any other kinetic rate optimization technique.
Scenarios 7 and 8 are schematically shown in Figure 2d and 2e. Here, nuclear A n has to translocate first to the cytosol (becoming A c ) in order to be able to dimerize (Scenario 7) or bind to a species initially localized in the cell membrane (Scenario 8), respectively. For both scenarios we used 'delay splitting' and obtained two separate delay distributions from ChemCell, one for the translocation reaction, the other for the homodimer/heterodimer formation.
In summary, one can observe that, in the absence of acute changes in delay distributions, both ChemCell and our methodology yield strikingly similar results. However, in the case of our method (and any modification therein), the delay distributions were obtained from a handful of spatially resolved, albeit less computationally costly, runs, highlighting the fact that numerous stochastic trajectories portraying accurate average dynamics can also be obtained from single translocation profiles, at much lower computational cost.
Lastly, it is important to ask: how well is a purely temporal deterministic model able to mimic the spatiotemporal dynamics of such rather simple reaction networks? To answer and illustrate this question let us focus on Scenario 5, for which we shall follow the standard ODE approach and set up a system of five ODEs modelling translocation of A c and C n as unimolecular reactions with associated rate constants.
Note that each molecular species in the dDSSA is now related to itself and the corresponding buffer in the DDE methodology. For instance, A c in dDSSA is related to A c and B1 in the DDE model. However, ODEs stiffness, due to widely differing eigenvalues, is a general problem when trying to estimate parameters using evolutionary algorithms as the process can rapidly become very inefficient.
In our case, due to acute stiffness and the introduction of delay parameters as variables, we first estimated all nine parameters (rate constants k1- k6 and the delays τ1-τ3) manually, namely by changing single parameters one by one. Upon finding a reasonably good initial parameter set, we used the evolutionary strategy and fitness function described above for fine-tuning. Figures 9c and 9d display the system dynamics for the best evolved parameter set after 100 generations over 10 evolutionary runs and the corresponding relative error. As could be expected, the DDE model has lower errors than the ODE model and the dDSSA model performs best (Figures 9e and 9f), although not significantly better than the DDE model. It should be noted that this is the case given the high molecular concentrations, while for smaller numbers of molecules and/or greater noise sensitivity one should expect greater differences between the DDE and dDSSA methods. Nevertheless, the DDE approach can be useful in its own right when dealing with large numbers of molecules (when the DSSA becomes naturally slow) or as part of a hybrid algorithm.
Evidently, the highly resolved spatiotemporal stochastic simulations with ChemCell are computationally more costly than the purely temporal stochastic simulations using the dDSSA. All dDSSA simulations are several orders of magnitude faster than ChemCell, depending on the number of reactions and molecules, cellular and nuclear volume, and diffusion constants of the molecular species. For instance, a single simulation of Scenario 5 representing 500 seconds of real-time dynamics takes more than 15 minutes on an Intel Core2 Quad processor system (Q6600, 2.4 GHz) when using ChemCell, while the dDSSA with modification M1 takes only about 0.3 seconds on a computer with Intel Core 2 Duo CPU (T9300, 2.5 GHz). This would mean that for many reaction-diffusion scenarios one can roughly expect three orders of magnitude shorter computation times. Moreover, our dDSSA implementation is currently written in Matlab, while ChemCell is implemented in C. This is worth noting as one generally expects considerable speedups for codes implemented in C as compared to Matlab (usually by several orders of magnitude). In view of the huge difference in simulation times and coding language, we omit a detailed comparison of runtimes. However, one can foresee where the large gap between computation times stems from, and the speed-up one in principle could expect. Especially in the scenario of low numbers of reacting molecules diffusing in large volumes and/or with slow diffusion rates reactions will rarely occur. Hence, ChemCell (or any other particle simulator) will spend a large proportion of their runtime on diffusion steps without any reactions happening.
We have introduced two temporal-methodologies that incorporate spatial effects accurately, by means of probability distributed delays and/or particle buffers. Furthermore, we showed that our method's accuracy is exceptionally good for a wide range of scenarios incorporating chemical reactions and explicit molecular translocation between compartments. However, certain scenarios might pose additional challenges that require special treatment, such as kinetic rate transformation, introduction of artificial species or combination with other techniques (such as spatial SSAs), to further increase accuracy. These critical scenarios refer to cases in which the delay distributions are time dependent.
For instance, particles that are initially in a specific spatial configuration might diffuse and, when returning to their original compartment, create a significantly different spatial configuration. Such 'feedbacks' require a time-varying delay distribution profile. Two ways to account for this are analytical abstractions and/or the introduction of intermediate-step artificial species in the simulation, as described in modification M4.
Despite the limitation observed in cases where the delay distributions are time dependent, our methodology provides a very intuitive yet accurate way to describe cell signalling dynamics in a wide range of settings. The convenience of the discrete stochastic methodology presented in this paper is that, once the delay distributions are obtained, one can compute as many stochastic trajectories as necessary, while keeping computational times several orders of magnitude shorter than any spatially resolved method. Furthermore, delay models might succeed when mimicking directed transport mechanisms (by using an appropriate delay distribution) while particle tracking tools that do not support directed transport will fail.
We anticipate the use of our methodology will greatly aid the understanding of signalling pathways, incorporating non-negligible spatial effects in relatively fast simulations. For instance, new insights may be gained by revisiting well-known problems, such as the genetic toggle switch , by considering the effects of wide ranges molecular diffusion in gene expression, in relevant simulation time spans. Other direct applications may lie in the assessment of information transmission efficiency in signalling pathways limited by diffusion, such as the MAPK cascade.
Biological systems are in many cases characterized by complex spatial structure, low diffusion rates, and low numbers of molecules, hence requiring spatially resolved simulations. However, these detailed spatially-resolved simulations can often only yield short simulation time spans that may not be of any interest to the experimentalists.
Here, we have presented effective ways of introducing spatial aspects into temporal models for a wide range of signaling scenarios and settings, yielding more accurate chemical kinetics in meaningful simulation times that are of actual biological interest. In such cases, we have shown that our discrete stochastic method achieves an accuracy that would never be attained using a solely temporal method, albeit at similarly low computational costs. Our research suggests that spatial heterogeneities can be well captured and modeled by means of time delayed processes with specific delay distributions, stemming from molecular diffusion profiles and the geometry of the cell and/or compartment analyzed. In some cases, this may provide new insights into complicated cellular processes and in a significantly shorter time frame than highly resolved spatial models. More research is needed in order to guarantee accuracy whenever two or more delayed reactions compete for a common reactant. Nevertheless, we hypothesize the consideration of fine-grained or theoretical time-varying delay distributions will greatly enhance accuracy whenever delays vary significantly, due to time or spatial restrictions (work in progress).
It is yet to be shown the cases and the extent to which our methodology could be incorporated into a coarse grained delayed simulator , achieving even shorter computational times.
ChemCell is an off-lattice stochastic particle simulator developed at Sandia National Laboratories , where a cell can be represented as a collection of compartments with semi-permeable internal and external boundaries. Irrespective of molecular weight or chemical state, this software treats organic molecules as particles that diffuse via Brownian motion and are allowed to react with near-by particles in a probabilistic sense and with accordance to user-specified chemical reactions. Hence, the simulator time stepping procedure is divided into three stages: particle motion, neighbour finding and reactions.
Particles can be constrained to move within a compartment (3D) or a membrane (2D motion), or are allowed to translocate within compartments while considering user-specified membrane permeability. Permeability is defined as a cross-relation between each species and each membrane, ranging between the values 0 (impermeable) and 1 (fully permeable). The movement of a diffusing particle is considered to be the product of two/three 1D Gaussians, depending on whether the particle is constrained to diffuse within a membrane or compartment(s) and is independent of other particle's motions. The new coordinates of each particle are updated at each time step, upon which particles are tested to determine whether they are lying inside a new compartment. If so, a random number is generated to determine whether the particle will translocate to the new compartment, upon comparison with the user-specified permeability.
All molecule pairs closer to a pre-defined cut-off distance R will be considered as potential reaction partners, which will react with a probability P relative to the expected number of reactions happening during the time step (for details see ). So, the second stage of the time stepping procedure is achieved by binning the particles, where each bin's size depends on the cut-off value R. Consequently, two particles will be able to interact if and only if they lie in the same adjacent bins.
The last stage involves looping over the particles with reaction partners, for which a reaction will happen according to the above mentioned probability.
In the SSA the time between two reactions is regarded as the waiting time until the next reaction occurs, while reactions happen instantaneously. Unlike non-delayed reactions, delayed reactions trigger a state change at a future time point determined by the associated delay. In the implementation by Barrio et al.  the DSSA proceeds as the SSA as long as there are no delayed reactions scheduled within the next time step. Otherwise, it ignores the selected waiting time and rather continues from the scheduled update time point after updating the state according to the corresponding delayed reaction.
The algorithm separates waiting time and delay as this is a more natural representation of chemical kinetics. In the period between selection and update of a delayed reaction that consumes reactants other reactions can occur that consume the same reactants. By updating the delayed reaction this can lead to negative molecular numbers for the reactants. Therefore, reactants and products of delayed consuming reactions must be updated separately, namely when the delayed reaction is selected and when it is completed, respectively. In case a delayed reaction is non-consuming this aspect can be ignored. A more detailed description of the DSSA can be found in Barrio et al. .
TML and AL thank Stanly Steinberg for helpful comments on the methodology. TML thanks Steve Plimpton and Alex Slepoy for providing her with a copy of ChemCell. All authors thank the reviewers for helpful comments on the manuscript.
This article is published under license to BioMed Central Ltd. This is an Open Access article distributed under the terms of the Creative Commons Attribution License (http://creativecommons.org/licenses/by/2.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.