Abstract
It has been established that there is an inherent limit to the accuracy of the reaction-diffusion master equation. Specifically, there exists a fundamental lower bound on the mesh size, below which the accuracy deteriorates as the mesh is refined further. In this paper we extend the standard reaction-diffusion master equation to allow molecules occupying neighboring voxels to react, in contrast to the traditional approach in which molecules react only when occupying the same voxel. We derive reaction rates, in two dimensions as well as three dimensions, to obtain an optimal match to the more fine-grained Smoluchowski model, and show in two numerical examples that the extended algorithm is accurate for a wide range of mesh sizes, allowing us to simulate systems that are intractable with the standard reaction-diffusion master equation. In addition, we show that for mesh sizes above the fundamental lower limit of the standard algorithm, the generalized algorithm reduces to the standard algorithm. We derive a lower limit for the generalized algorithm which, in both two dimensions and three dimensions, is on the order of the reaction radius of a reacting pair of molecules.
I. INTRODUCTION
Stochastic modeling has become a ubiquitous tool in the study of biochemical reaction networks [1–5], as the traditional approach of deterministic modeling has been shown to be unsuitable for some systems where species are present in low copy numbers, or systems with spatial inhomogeneities [3, 6]. Instead stochastic, spatially homogenous or inhomogeneous, models are employed.
Stochastic modeling can be carried out on multiple different scales. For processes occurring on the time scales typical of living cells we consider three different modeling scales: the spatially homogeneous well-mixed scale, the mesoscopic spatially heterogeneous scale, and the microscopic particle-tracking scale. In this paper the focus is on spatially heterogeneous modeling.
A prevalent model on the mesoscopic scale is the standard reaction-diffusion master equation, in which diffusion of individual molecules is modeled by discrete jumps between voxels, while reactions occur with a given intensity once molecules occupy the same voxel. The next subvolume method (NSM) [7] is an efficient algorithm for generating single trajectories of the system. The NSM has been implemented in several software packages, including URDME [8], PyURDME (www.pyurdme.org), STEPS [9], and MesoRD [10]. It is also available as a part of larger simulation frameworks such as StochSS (www.stochss.org) and E-Cell [11].
On the microscopic scale we model the molecules as hard spheres moving by normal diffusion. We track the continuous position of individual molecules, and molecules react with a probability upon collision. This model is commonly referred to as the Smoluchowski model [12], with the addition of a Robin boundary condition at the reaction radius of a pair of molecules. Algorithms aimed at accurately and efficiently simulating the Smoluchowski model for general systems have been implemented in E-Cell [11], Smoldyn [13], and MCell [14].
It has previously been shown that there is an inherent bound of several reaction radii on the spatial accuracy of the standard RDME compared to the Smoluchowski model [15, 16]. It was shown in [16] that by choosing correct mesoscopic reaction rates, the standard RDME could be made accurate all the way down to this lower bound. However, for mesh resolutions below this lower bound, the accuracy deteriorates.
In this paper we generalize the standard RDME by allowing molecules occupying neighboring voxels to react. Henceforth we refer to this generalization as the generalized RDME. The acronym RDME usually refers to the standard RDME, but to minimize the possibility of confusion as to which of the algorithms we are referring to, we will adopt the acronym sRDME for the standard RDME and gRDME for the generalized RDME. Similar generalizations have been considered previously in [17, 18]. In [17], Isaacson discretizes the Doi model [19] to obtain a convergent RDME. In [18], reaction rates are derived for a spherical model and applied to the RDME on a Cartesian mesh. In this paper we take a fundamentally different approach. By deriving reaction rates to match certain statistics of the Smoluchowski model, we arrive at analytical expressions for the reaction rates, and show that this approach yields accurate results down to a fundamental lower limit on the mesh size. This mesh size will be on the order of the reaction radius of two molecules.
Importantly, we derive reaction rates under specific assumptions on the dynamics of dissociating molecules, and we show with a simple example that not doing so may lead to reaction rates that are inaccurate for certain systems. We thus argue that it is crucial to take dissociations into account in the derivation of reaction rates for the gRDME.
The outline of the paper is as follows. In Section II we review the Smoluchowski model and the sRDME, and how they are connected through the mesoscopic reaction rates. In Section III we describe the generalized algorithm, and derive accurate mesoscopic reaction rates as well as the lower limit on the mesh size. Finally, in Section IV, we study two numerical examples, demonstrating the accuracy of the gRDME and how it can be used to simulate systems that are intractable with the sRDME.
II. BACKGROUND
A. Microscopic level
At this level of modeling we track the continuous position of individual molecules, modeled by hard spheres and moving by normal diffusion. Each species Si has a diffusion constant Di and a radius of σi, called the reaction radius. Consider two molecules, one of species S1 and one of species S2, with positions x1n and x2n at time tn. The molecules can react according to , where S3 is some product. The probability distribution function (PDF) p(x1, x2, t|x1n, x2n, tn) represents the probability that the positions of the molecules are given by x1 and x2 at time t; p then satisfies the Smoluchowski equation
| (1) |
with a reactive Robin boundary condition
| (2) |
where D = D1 + D2, σ = σ1 + σ2 is the sum of the reaction radii, ka is the microscopic reaction rate, and
| (3) |
The initial condition is given by
| (4) |
and, since we assume that there is no outer boundary, we enforce p(‖x2 − x1‖ → ∞, t) = 0.
It can be shown that with the change of variables
| (5) |
| (6) |
we obtain two independent equations, where the equation for Y describes free diffusion, while the equation for y becomes
| (7) |
with the boundary condition
| (8) |
The initial condition becomes py(y, tn) = δ(y − yn), and the outer boundary condition is now py(‖y‖ → ∞, t) = 0. This equation can be solved analytically in 3D [20], but the solution is difficult and expensive to evaluate numerically. Applying an operator split method to (7)–(8) can significantly simplify the process of sampling new positions from the PDF [21].
An S3 molecule is assumed to dissociate according to an exponential distribution with mean kd. Following a dissociation, the two products S1 and S2 are placed in contact a distance of σ apart.
A system of more than two molecules is not amenable to the direct approach of solving for the full PDF, due to the high dimensionality of the problem. A common approach is instead to approximate the full problem as a set of one- and two-body problems, by dividing the system into subsets of single and pairs of molecules according to the distances between them. We can obtain a good approximation of the full problem by updating each subset independently during short time steps Δt. This algorithm is commonly referred to as Green’s function reaction dynamics (GFRD) [22, 23]. All microscale computations in this paper are carried out using a variant of the GFRD algorithm described in [21].
B. Standard reaction-diffusion master equation
At the mesoscopic scale the simulation domain is discretized by N non-overlapping voxels, and diffusion is modeled as discrete jumps between the nodes of the voxels. The mesh may be either a Cartesian mesh, or an unstructured, tetrahedral (3D) or triangular (2D) mesh. A Cartesian mesh is suitable if the domain is simple, for instance a square or a cube, while an unstructured mesh has advantages for complicated domains. The jump coefficients between voxels are given by 2D/h2 in the case of a Cartesian mesh, where h is the width of a voxel and D the diffusion rate of the molecule. For an unstructured mesh, the jump coefficients can be obtained from a finite element discretization of the diffusion equation [24]. Reactions occur with some intensity when molecules occupy the same voxel.
Let p(x, t|xn, tn) be the probability that the system is found in state x at time t, given that it was in state xn at time tn. For brevity of notation, let p(x, t) = p(x, t|xn, tn). Let xi· and x·j denote the i-th row and the j-th column of the N × S state matrix x, respectively, where S is the number of species of the system. The sRDME is given by
| (9) |
where the propensity functions of the M chemical reactions are denoted by air(xi), μir are the stoichiometry vectors associated with the reactions, dijk are the jump coefficients, and νijk are stoichiometry vectors for diffusion events.
The sRDME is in general too high-dimensional to be solved by direct approaches. An alternative approach is to generate individual trajectories of the system with stochastic simulations. The NSM [7] is an efficient algorithm frequently used for that purpose.
C. Reaction rates for the standard reaction-diffusion master equation
Consider a system of two molecules, one of species S1 and one of species S2, that react according to , where ka and kd are the microscopic reaction rates. Assume that the molecules diffuse in a square (2D) or cube (3D) with periodic boundary conditions. Without loss of generality, assume that the S1 molecule is fixed at the origin, and that the S2 molecule diffuses freely with a diffusion rate D. The S2 molecule is initialized according to a uniform distribution.
Let be the mean association time of the two molecules on the mesoscopic scale, and let τmicro(ka) be the mean association time on the microscopic scale. Under the assumption that holds, it is shown in [15, 16] that the mesoscopic association rate is given by
| (10) |
where d is the dimension,
| (11) |
and
| (12) |
The microscopic parameters are σ, the sum of the reaction radii of the molecules, D, the sum of the diffusion constants, and ka, the microscopic reaction rate. To simplify the notation somewhat, we let . For a reversible reaction we match the mean binding time for , where
| (13) |
Let and denote the average rebinding times—that is, the average time until two molecules react, given that they have just dissociated—on the mesoscopic and microscopic scale, respectively. Again, to simplify notation, we let . The rebinding times can be written in terms of the average binding times
| (14) |
| (15) |
where, for simplicty of notation, and τmicro(ka → ∞) are denoted by and τmicro(∞), respectively. That (14) and (15) hold can be realized by considering the following argument. Given a uniform initial distribution, τmeso(∞) is the time until the molecules are in the same voxel for the first time. By subtracting that time from the total binding time, we obtain the rebinding time. A similar argument holds for the microscopic case. We immediately see that because holds, the rebinding times will match if and only if . This holds for , and consequently
| (16) |
| (17) |
| (18) |
As a mesoscopic dissociation event is a combination of microscopic dissociation and the diffusion required to get well-mixed in a voxel, we require that should hold. For we cannot match the mean binding time while satisfying , and the accuracy of the sRDME consequently deteriorates with decreasing h. Thus, is the finest spatial resolution attainable with the sRDME.
For a given , we can compute the error in rebinding time as
| (19) |
where the right-hand side thus is a measure of how well-resolved a system is. Details of the above theory can be found in [16].
III. THE GENERALIZED REACTION-DIFFUSION MASTER EQUATION
In the sRDME, molecules react only when they occupy the same voxel. In this section we extend this approach by allowing molecules occupying neighboring voxels to react. To connect the sRDME to the microscopic Smoluchowski model we determined the rate with which molecules react when occupying the same voxel. For the gRDME we need to obtain the rates for molecules occupying the same voxel, but also the rates for molecules occupying neighboring voxels. In [15, 16] we derive rates for the sRDME by matching the mean association times on the two scales. To uniquely determine both of the rates for the gRDME we need an additional constraint.
In Sec. IIIA we outline the algorithm, and in Sec. IIIB we derive mesoscopic parameters by trying to match certain statistics of the microscopic model to the corresponding statistics on the mesoscopic scale. In Sec. IIIC we determine the dissociation rate of a reversibly reacting pair of molecules, and in Sec. IIID we collect the results and summarize the algorithm.
A. Generalized reactions
Consider a domain Ω discretized by a Cartesian mesh, and a single reversible reaction . In the gRDME we allow reactions between molecules occupying neighboring voxels. Thus, if a molecule of species S1 occupies the same voxel as a molecule of species S2, they react with an intensity given by k0. If the molecules instead occupy neighboring voxels they react with an intensity of k1, where two voxels are neighbors if they share one side.
We can choose k0 and k1 freely, with the restriction that the total intensity should be constant. Call the total intensity . Let d be the dimension. Then, since each voxel has 2d neighbors, k0 and k1 must satisfy
| (20) |
Thus we can write
| (21) |
| (22) |
where 0 ≤ r ≤ 1/(2d).
Now assume that a molecule of species S3 dissociates. We must determine where to place the two products S1 and S2. It may seem natural to place them in the same voxel with probability 1 − 2dr, and in neighboring voxels with probability 2dr. While this arguably would yield the most accurate results compared to microscopic simulations for a single reversible reaction, we show below that this approach is unsuitable in general.
First consider the single irreversible dissociation given by
| (23) |
In this case the microscopic and mesoscopic rates will be the same; thus , and the products are placed in the same voxel. Now consider that in addition to (23) we have the following reactions:
| (24) |
| (25) |
Again, (24) is an irreversible unimolecular reaction and thus the mesoscopic and microscopic rates are the same. Now, if k* is large, the system (23)–(25) will be well approximated by
| (26) |
Had we derived rates for reaction (25) assuming that dissociating molecules are placed in neighboring voxels with some probability, we can see that the sequence (26) will be incorrectly simulated, as S1 and S2 are placed in the same voxel with probability 1 when P dissociates. Specifically, the rebinding dynamics of and S2 will be incorrect, as the rebinding time will depend on whether they were produced from a dissociating S3 or a dissociating P.
To summarize:
Reactive molecules occupying the same voxel react with intensity .
Reactive molecules in neighboring voxels react with intensity .
When a molecule dissociates, the products are placed in the same voxel with probability 1.
The parameters r and now have to be determined from the microscopic parameters ka, σ and D.
B. Reaction rates
Consider the reversible reaction . Assume that the initial state of the system is given by one molecule of species S1 and one molecule of species S2 in a square (2D) or a cubic (3D) domain Ω of width L with periodic boundary conditions. For simplicity, and without loss of generality, assume that the S1 molecule is fixed at the origin while the S2 molecule has a uniform initial distribution and a diffusion rate D = D1 + D2. On the microscopic scale the S2 molecule moves by continuous Brownian motion. On the mesoscopic scale, Ω is subdivided into non-overlapping squares or cubes of width h. The S2 molecule thus jumps between voxels with a total intensity of kj = 2dD/h2 in dimension d. Let denote the average time until the molecules react on the mesoscopic scale in the gRDME.
For the sRDME, it was shown in [15, 16] that by enforcing the constraint τmeso = τmicro we obtain mesoscopic reaction rates as given by (10). In addition, it was shown that approaches from above as . Therefore it seems reasonable to require that with the gRDME we obtain an approximation of that is equal to or better than the approximation we obtain with the sRDME. The first constraint is therefore that the mean binding time agrees between the mesoscopic and the microscopic scales
| (27) |
and the second constraint will be that, given (27), and r minimize the difference between the rebinding times at the mesoscopic and microscopic scales; that is, we want to minimize
| (28) |
under the assumption that (27) holds, where τmeso,r is the average binding time (dependent on r and ), and where is the average rebinding time in the gRDME. Note that with (27) satisfied we have and .
1. Mean mesoscopic binding time
Again, assume that we have species S1 and S2, with one molecule of each, and that the S1 molecule is fixed. The S2 molecule is initialized according to a uniform distribution, and diffuses with diffusion rate D.
We start by deriving the mesoscopic mean binding time. To this end, let denote the average number of diffusive jumps required for the S2 molecule to reach a voxel at distance i from the S1 molecule, where the distance between two voxels is defined to be the smallest number of discrete jumps required to move from one voxel to the other. Let the set of all voxels at a distance i from the S1 molecule be denoted by di (note that d0 will then be a set of only one voxel; specifically the voxel occupied by the S1 molecule), let tj denote the average time for a diffusive jump, and let τi denote the average time for the S2 and the S1 molecule to react, given that the S2 molecule is occupying a voxel at distance i from the S1 molecule. Thus, tj = h2/(2dD), and
| (29) |
The first term, , represents the average time required for the S2 molecule to reach d1. The second term, τ1, represents the remaining time until the molecules react, given that the S2 molecule occupies a voxel in d1.
a. Derivation of
In this section we show that
| (30) |
where C2 and C3 are defined in (12). Let denote the average number of steps required to diffuse from di to dj. We also show that
| (31) |
To obtain (30) we first note that
| (32) |
In [26] it is shown that
| (33) |
Let be the average number of steps required to return to d0, given that we start in d0. The first jump of a molecule starting in d0 always transfers the molecule to d1, so we find that
| (34) |
We know that , shown in [25]. By combining (32), (33), and (34), we obtain (30).
To obtain (31) we note that we can write as
| (35) |
To see that the above equality holds, start by considering a molecule in d0. The first jump transfers the molecule to d1; the second jump transfers it back to the origin with a probability of 1/(2d), or to d2 with a probability of (2d − 1)/(2d). The average number of steps required to reach d0 from d2, is given by the average number of steps to reach d1 plus the average number of steps to reach d0, given that the molecule starts in d1. Now, solving (35) for yields (31).
b. Derivation of τ1
To obtain τmeso,r for ka < ∞, it remains to determine τ1. To that end, assume that the S2 molecule occupies a voxel in d1, and that the intensity with which the molecules react in d1 is given by . Then, to maintain a total intensity of , the molecules must react with an intensity of in d0. We require that r ≥ 0, and that 0 ≤ 1 − 2dr ≤ 1. To simplify the notation we let be denoted by p1, and by p0.
Let and denote the average time until the next event fires, given that the S2 molecule occupies a voxel in d0 or d1, respectively. Then and .
By assumption, the S2 molecule initially occupies a voxel in d1. The next event can either be: (1) a diffusive jump, with probability p1/(p1 + tj), or (2) a reaction event with probability tj/(p1 + tj).
Now assume that the next event is a diffusion event. Then: (1.1) the molecule jumps to d2 with probability (2d − 1)/2d, or (1.2) the molecule jumps to d0 with probability 1/(2d). Assume that the molecule jumps to d0. Then the next event is: (1.2.1) a reaction with probability tj/(p0 + tj), or (1.2.2) diffusion to d1 with probability p0/(p0 + tj). Thus, if the molecule is in the state (1.2), the time until the molecules react is given by
| (36) |
Now instead assume that the molecule is in the state (1.1). The molecules cannot react until the S2 molecule reaches d1, and thus the average time until the molecules react is given by
| (37) |
where is given by (31). To summarize:
The S2 molecule initially occupies a voxel in d1, and the S1 molecule is fixed in d0.
- The S2 molecule diffuses with probability p1/(p1 + tj).
-
(1.1)The S2 molecule jumps to d2 with probability (2d − 1)/(2d). The average remaining time until the S1 and S2 molecules react is given by τ2.
-
(1.2)The S2 molecule jumps to d0 with probability 1/(2d).
-
(1.2.1)The S1 and S2 molecules react with probability tj/(p0 + tj).
-
(1.2.2)The S2 molecule diffuses to d1 with probability p0/(p0 + tj). The average remaining time until the S1 and S2 molecules react is given by τ1.
-
(1.2.1)
-
(1.1)
The S1 and S2 molecules react with probability tj/(p1 + tj).
Putting it all together, we obtain
| (38) |
By inserting (36) and (37) into (38) and solving for τ1 we obtain
| (39) |
| (40) |
after some cumbersome but straightforward algebra, where (40) follows by assuming N ≫ 1.
c. Analytical expression for τmeso,r
Now, using (29), (30), and (40) we find that
| (41) |
d. Lower limit on the voxel size
It is of interest to know the smallest voxel size h for which we can match the mesoscopic mean binding time, τmeso,r, with the microscopic mean binding time, τmicro. In [15, 16] this problem was solved in the case of the sRDME for a general reversible reaction . Similar results in the case of the gRDME can be obtained for the case of an irreversible reaction with ka → ∞. As we will see in Eqs. (74)–(75), the lower bound for ka → ∞ is in fact a fundamental lower bound for the gRDME.
We now let be the smallest voxel size for which we can choose reaction rates such that . It is easy to see that exists; the average time until two molecules on the mesoscopic scale occupy the same or neighboring voxels diverges in 2D and 3D, thus there must exist a smallest mesh size for which the mesoscopic mean binding time can match the mean microscopic binding time. We do not have analytical results for τmicro on a square or a cube, but given that L ≫ σ is satisfied, an excellent approximation is provided by
| (42) |
where
| (43) |
and where kCK = 4πσDka/(4πσD + ka) is the classical mesoscopic reaction rate, valid for large volumes, derived by Collins and Kimball in [27]. The expression in 2D was derived in [28], following the approach devised in [29].
Since molecules are allowed to react with molecules occupying neighboring voxels, we obtain
| (44) |
and thus
| (45) |
We know from (30), and we have tj = h2/(2dD) by definition. We now obtain by solving
| (46) |
for h.
In 3D, (46) becomes
| (47) |
since for N ≫ 1, and kCK → 4πσD as ka → ∞. Solving (47) for h yields
| (48) |
In 2D, (46) becomes
| (49) |
and for ka → ∞, we have
| (50) |
In (50) we used that λ ≈ 0 for L ≫ σ. Now (49) reduces to
| (51) |
We can rewrite the equation above to get
| (52) |
Solving for h yields
| (53) |
To summarize, we find that
| (54) |
2. Mean mesoscopic rebinding time
To satisfy the second constraint (28) we need both the microscopic and the mesoscopic mean rebinding times. The microscopic rebinding time is derived in [16], as
| (55) |
The mesoscopic rebinding time is simply given by
| (56) |
as τ0 by definition is the time until an S1 and an S1 molecule react, given that they start in the same voxel. We have already derived τ0 in terms of τ1 in (36), and we thus obtain
| (57) |
3. Solving for r and
We now want r and to satisfy the constraints (27) and (28). It will prove useful to divide the problem into two cases:
| (58) |
| (59) |
It turns out that in case 1 we get r = 0, effectively reducing the generalized algorithm to the standard algorithm.
a. Case 1
We assume that r and have been chosen to satisfy the first constraint (27) and then show that for we have
| (60) |
Since , it immediately follows that for , the gRDME and the sRDME agree.
We first note that we already know that
| (61) |
| (62) |
where τi, as previously defined, is the average time until the molecules react, given that the S2 molecule is in di. The superscript g indicates that it is the average time in the case of the gRDME, and omission of the superscript indicates that it is the average time in the case of the sRDME.
We have assumed that (27) is satisfied and consequently
| (63) |
where the second equality follows from (30) and (33). We know that , so we get
| (64) |
Thus
| (65) |
| (66) |
| (67) |
We have already shown that
| (68) |
| (69) |
Now (67) becomes
| (70) |
| (71) |
By definition, , so (71) becomes
| (72) |
| (73) |
Since 1 − 2dr ≤ 1, we have (1 − 2dr)−1 ≥ 1, and so (73) is satisfied for all r and . Thus (65) holds for all r and .
What remains is to determine r and for .
b. Case 2
We will proceed in two steps. First we show that for with we have
| (74) |
| (75) |
for and 1 − 2dr = 0, and for
| (76) |
Note that we have already shown that we can satisfy (27) at least down to . The assumption means, in words, that the average time until two molecules react, given that they are one voxel apart, is much longer than the average time until the first event, given that they occupy the same voxel. Unless the microscopic reaction rate is very high, this should be a reasonable assumption for most systems. The necessity of this assumption is realized by considering two molecules in the same voxel. Now, if the average microscopic rebinding time is smaller than the average time until the first diffusion event on the mesoscopic scale, we could not hope to find mesoscopic rates that will yield a match between the mesoscopic rebinding time and the microscopic rebinding time.
To show that (74) and (75) hold, we first note that we already know that
| (77) |
and from assuming , it follows that
| (78) |
and thus
| (79) |
Eqs. (39) and (40) yield, for 1 − 2dr = 0 and ,
| (80) |
We now have
| (81) |
and thus (74) holds. Since we have assumed and 1 − 2dr = 0, we get
| (82) |
and we have shown that (75) holds.
It remains to show (76). To this end, we simply note that
| (83) |
since for . Thus
| (84) |
and (76) follows.
The second step is to show that for , still assuming , we have
| (85) |
| (86) |
for
| (87) |
| (88) |
where
| (89) |
We show this by first noting that we already know that
| (90) |
| (91) |
| (92) |
Consequently we satisfy (85) if
| (93) |
which, by (39) and (40), approximately holds if
| (94) |
To satisfy (86), we must, by (91) and (92), satisfy
| (95) |
Subtracting both the right-hand and left-hand side of (95) from (94), we obtain
| (96) |
By definition, and tj = h2/(2dD), so (96) yields, after some straight-forward algebra,
| (97) |
Since and , (97) becomes
| (98) |
| (99) |
With as in (99), we want to find r such that (95) is satisfied. Since , we obtain
| (100) |
| (101) |
| (102) |
Since tj = h2/2dD and p0 = 1/(1 − 2dr)ka, (102) becomes
| (103) |
We expand the first term of the left-hand side to get
| (104) |
Thus
| (105) |
and (103) becomes
| (106) |
yielding
| (107) |
Inserting r above into (99) yields (87).
It remains to show that and 0 < r < 1/(2d) hold for and r given by (87) and (88). We first show that Q > 1, from which r > 0 follows. Thus we should show that
| (108) |
holds. We start by showing that (108) holds in 3D. By (30),
| (109) |
for N ≫ 1. We have already shown that
| (110) |
so (108) becomes
| (111) |
| (112) |
Since , and, by assumption, , we obtain
| (113) |
Thus Q > 1, and, as a consequence, r > 0. In 2D we have
| (114) |
| (115) |
| (116) |
In 2D, similarly as in the 3D case, we have . Thus
| (117) |
| (118) |
Since, by assumption,
| (119) |
and
| (120) |
we obtain
| (121) |
Thus Q > 1 holds in both 2D and 3D, and we have r > 0. Note that with Q > 1, follows immediately. It remains to show r < 1/(2d). To this end, we simply note that
| (122) |
where
| (123) |
holds, since Q > 1.
Thus 0 < r < 1/(2d) and for .
C. Dissociation rates
Consider the same setup as before, with one S1 molecule and one S2 molecule reacting reversibly according to . Above we have determined how to choose the mesoscopic association rates, so what remains is to determine the dissociation rate. This can be done completely analogously to the case of the sRDME. We thus follow the approach of [16], and conclude that we must have
| (124) |
to obtain a steady state on the mesoscopic scale that matches the steady state of the microscopic scale. Thus it follows immediately that for , we should have
| (125) |
because holds.
D. Summary of the algorithm
Assume that we have a cubic (3D) or square (2D) domain of width L, discretized by a Cartesian mesh with voxels of width h. Consider a reversible reaction , where ka and kd are the microscopic reaction rates. Let D = D1 + D2, where D1 and D2 are the diffusion rates of species S1 and S2, respectively. Let σ = σ1 + σ2 be the reaction radius of an S1 and an S2 molecule.
The critical mesh sizes are given by
| (126) |
for the sRDME, and the critical mesh sizes for the gRDME are given by
| (127) |
We now wish to simulate this system on the mesoscopic scale with the gRDME. The results of this section can be summarized as follows:
For : The gRDME reduces to the sRDME. Thus r = 0 and . Molecules react only when occupying the same voxel. The dissociation rate is given by , as shown in [16].
For : We match both the mean binding time, and the mean rebinding time, of the S1 and S2 molecules by choosing r and as in (87) and (88). Now molecules react with an intensity of when occupying neighboring voxels, and with an intensity of when occupying the same voxel. The dissociation rate is simply given by .
For we can no longer match the mean rebinding time, and the accuracy deteriorates with decreasing h.
IV. NUMERICAL RESULTS
A. Rebinding-time distributions
Consider a system of two species S1 and S2, with one molecule of each. The S1 molecule is fixed at the origin, while the S2 molecule diffuses freely in space. In [16] it was shown that the sRDME matched the microscopic rebinding-time distribution for a reversibly reacting pair down to . For t < t*, the behavior is inevitably going to be different, as the accuracy of the sRDME is inherently limited by the spatial resolution.
With the gRDME, we can match both the average binding times as well as the average rebinding times for , and thus we could hope that also the error in distribution will be small at timescales of .
In Fig. 1 we compare the microscopic rebinding-time distribution (obtained using the microscopic algorithm described in [21]) to the rebinding-time distribution for the gRDME. As we can see, there is a good match down to a spatial resolution of approximately σ. For the finest meshes, the behavior at really short time scales is incorrect due to dissociating particles starting in the same voxel, but not reacting until they are in neighboring voxels. This introduces an error on the order of the voxel size, which will be on the order of the size of the molecules.
FIG. 1.
In (a) and (b) we have plotted the rebinding-time distributions in 3D. For the sRDME we have a good match between the microscopic and mesoscopic simulations for , while the average rebinding time is underestimated for finer meshes. For the gRDME we see that the microscopic and mesoscopic distributions agree well for down to spatial resolution almost on the order of the size of the molecules, or a temporal resolution of approximately . In (c) and (d) we have plotted the rebinding-time distributions in 2D. The conclusions are the same as for the 3D case. The parameters in (a) and (b) are given by σ = 2 × 10−9 m, D = 2 × 10−12 m2 s−1, L = 5.145 × 10−7 m, and ka = 10−18 m3 s−1. The parameters in (c) and (d) are given by σ = 2 × 10−9 m, D = 2 × 10−14 m2 s−1, L = 5.2 × 10−7 m, and ka = 10−12 m2 s−1.
B. Convergence of the generalized RDME
The dynamics of some systems is resolved only at a fine spatial resolution. In particular, it has been shown that fast rebinding events can affect e.g. the response time of a MAPK pathway [6]. We consider the system
| (128) |
which has a behavior similar to the MAPK pathway of [6]. Due to the possibility of fast rebinding events, the long-term dynamics of the system is affected by spatial correlations between newly produced molecules.
We start with an initial population of 100 S1 molecules, with none of the other species present. The system is simulated for 2s, during which we sample the state of the system at 201 evenly distributed points between t = 0 and t = 2. We simulate the system with both the sRDME, as well as with the gRDME, for different voxel sizes. Let 𝒮 = {S1, S11, S12, S2, S21, S22, S3}. We define the error, E(h), to be
| (129) |
where is the average population of S at time ti, obtained with the microscopic algorithm from [21], and where denotes the average population of S at time ti obtained at the mesoscopic scale with voxel size h.
After a dissociation of either an S1 or S2 molecule from (128), the products can rebind quickly to produce an S2 or S3 molecule, respectively. On the microscopic scale, the products are in contact after a dissociation event, and thus the spatial correlation will be significant. At the mesoscopic scale, the products are placed in the same voxel after a dissociation. If the voxel size is large compared to the size of the molecules, the spatial correlation will be less than on the microscale. Thus, to simulate (128) accurately, we would expect a fine mesh resolution to be required.
Let σi be the reaction radius of molecule Si, and σij the reaction radius of molecule Sij. The parameters of the model are given by
| (130) |
For simplicity, we let all species have the same diffusion rate, D = 10−12 m2 s−1. The S1 molecules are initialized uniformly in a cube of volume 10−18 m3.
There is a critical lower bound on the mesh size associated with each of the system’s bimolecular reaction events
| (131) |
We know that for , we are unable to match both the mesoscopic mean association time and the mesoscopic mean rebinding time to the corresponding microscopic quantities. Thus, for h > max{h1, h2}, we will overestimate the rebinding time for both reactions, and consequently underestimate the average S3 concentration.
For h2 > h > h1 the dynamics is less obvious; we are underestimating the average rebinding time for the first reaction, but overestimating the average rebinding time for the second. As we can see in Fig. 2 (b), the positive and negative errors partly cancel out in this regime. At first the error decreases with decreasing h, but as we approach h1, it starts to increase again. The behavior of the sRDME is hard to predict, and a priori we cannot be sure that a particular choice of h is suitable.
FIG. 2.
In (a) we plot the average number of S3 molecules as a function of time. As we can see, for a larger value of the voxel size h, we underestimate the number of S3 molecules. For a very fine mesh, the number of S3 molecules is overestimated with the sRDME. Somewhere in between we may obtain a good approximation compared to the microscopic results also with the sRDME, but then the concentration of other species in the system will be incorrect. For simulations with the generalized algorithm, the average number of S3 molecules is underestimated for coarse meshes, but as we refine the mesh, the dynamics approach that of the microscopic simulations. In (b) we see that the total error, as defined in (129), decreases down to a mesh size of h1 for the gRDME, while the error for the sRDME first decreases slightly but then increases as we refine the mesh further. We obtain an almost perfect match between the microscopic simulations and the gRDME as h approaches h1, and all the way down to h2,g. The average on the microscopic scale is based on 2000 trajectories, giving 95% confidence intervals of width less than 0.2% of the mean for most time points, and the mesoscopic results are based on approximately 500 trajectories, giving 95% confidence intervals of width less than 1.0% of the mean for most time points.
In contrast, we see that the gRDME has a more predictable behavior, converging with decreasing h, and yielding an almost perfect match for h < h1. The difference in behavior is due to the gRDME matching the average rebinding time also for , all the way down to .
At the finest mesh sizes a diffusion event will move a particle a distance on the order of the radius of the molecules. Thus, for a dilute system such as the above, it is worth noting that an efficient microscopic method taking advantage of the large distances between molecules will be significantly faster than the gRDME. For the problem above, the algorithm in [21] is more than an order of magnitude faster than the gRDME at the finest mesh sizes (one realization on the microscopic scale took around 8s, while a simulation with the gRDME at the finest mesh size took around 150s; note that both implementations were crude and not optimized). However, in the case of a less dilute system, we expect the gRDME to be more competitive. The execution time on the microscopic scale increases almost quadratically with the number of molecules, but linearly with the number of molecules on the mesoscopic scale. A possible application of the gRDME is in hybrid methods, where part of the system can be simulated at the coarser sRDME scale, and only some parts of the system at the most fine-grained and expensive gRDME scale.
V. SUMMARY
For the sRDME there is a lower bound on the mesh size, , below which the accuracy deteriorates. For we match the mean binding time of two molecules with the mesoscopic reaction rate given by ρ(d)(ka, h). For we match both the mean binding time and the mean rebinding time of the two molecules.
Some systems display fine-grained dynamics, requiring a fine spatial resolution to be simulated at the mesoscopic scale. By generalizing the sRDME to allow reactions between molecules in neighboring voxels, we obtain a lower bound on the mesh size given by , where is on the order of the reaction radius of a pair of molecules. We derived analytical expressions for the reaction rates, and showed that we match both the mean binding time and the mean rebinding time for . For , the gRDME and the sRDME agree.
We studied the accuracy of the gRDME in two numerical examples. In the first example we showed that we not only match the mean rebinding time for , but that we also obtain a good match between the rebinding-time distributions at the two scales. In the second example we considered a system that cannot be accurately simulated with the sRDME, as the mesh resolution required is below the fundamental lower limit . We showed that with the gRDME we are able to simulate the system to high accuracy, and we showed that we obtain convergence to the microscopic simulations with decreasing mesh size h.
Acknowledgments
This work was funded by NSF Grant No. DMS-1001012, NIGMS of the NIH under Grant No. R01-GM113241-01, Institute of Collaborative Biotechnologies Grant No. W911NF-09-D-0001 from the U.S. Army Research Office, NIBIB of the NIH under Grant No. R01-EB014877-01, and U.S. DOE Grant No. DE-SC0008975. The content of this paper is solely the responsibility of the authors and does not necessarily represent the official views of these agencies.
References
- 1.Lawson MJ, Drawert B, Khammash M, Petzold L. Spatial stochastic dynamics enable robust cell polarization. PLoS Comput. Biol. 2013;9(7):e1003139. doi: 10.1371/journal.pcbi.1003139. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 2.Howard M, Rutenberg AD. Pattern formation inside bacteria: fluctuations due to the low copy number of proteins. Phys. Rev. Lett. 2003;90(12):128102. doi: 10.1103/PhysRevLett.90.128102. [DOI] [PubMed] [Google Scholar]
- 3.Elf J, Fange D. Noise induced Min phenotypes in E. coli. PLoS Comput. Biol. 2006;2(6):e80. doi: 10.1371/journal.pcbi.0020080. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 4.Sturrock M, Hellander A, Marsavinos A, Chaplain M. Spatial stochastic modeling of the hes1 pathway: Intrinsic noise can explain heterogeneity in embryonic stem cell differentiation. J. Roy. Soc. Interface. 2013;10(80):20120988. doi: 10.1098/rsif.2012.0988. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 5.Sturrock M, Hellander A, Aldakheel S, Petzold L, Chaplain M. The role of dimerisation and nuclear transport in the hes1 gene regulatory network. Bull. Math. Biol. 2013;76(4):766–798. doi: 10.1007/s11538-013-9842-5. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 6.Takahashi K, Tănase-Nicola S, ten Wolde PR. Spatio-temporal correlations can drastically change the response of a MAPK pathway. Proc. Natl. Acad. Sci. USA. 2010;107(6):2473–2478. doi: 10.1073/pnas.0906885107. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 7.Elf J, Ehrenberg M. Spontaneous separation of bi-stable biochemical systems into spatial domains of opposite phases. Syst. Biol. 2004;1(2):230–236. doi: 10.1049/sb:20045021. [DOI] [PubMed] [Google Scholar]
- 8.Drawert B, Engblom S, Hellander A. URDME: a modular framework for stochastic simulation of reaction-transport processes in complex geometries. BMC Syst. Biol. 2012;6(1):76. doi: 10.1186/1752-0509-6-76. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 9.Hepburn I, Chen W, Wils S, De Schutter E. STEPS: efficient simulation of stochastic reaction-diffusion models in realistic morphologies. BMC Syst. Biol. 2012;6(35):425–437. doi: 10.1186/1752-0509-6-36. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 10.Hattne J, Fange D, Elf J. Stochastic reaction-diffusion simulation with MesoRD. Bioinformatics. 2005;21(12):2923–2924. doi: 10.1093/bioinformatics/bti431. [DOI] [PubMed] [Google Scholar]
- 11.Tomita M, Hashimoto K, Takahashi K, Shimizu TS, Matsuzaki Y, Miyoshi F, Saito K, Tanida S, Yugi K, Venter JC, Hutchison CA. E-cell: software environment for whole-cell simulation. Bioinformatics. 1999;15(1):72–84. doi: 10.1093/bioinformatics/15.1.72. [DOI] [PubMed] [Google Scholar]
- 12.Smoluchowski Mv. Versuch einer mathematischen Theorie der Koagulationskinetik kolloider Lösungen. Z phys. Chemie. 1917;92(2):129–168. [Google Scholar]
- 13.Andrews SS, Addy NJ, Brent R, Arkin AP. Detailed simulations of cell biology with Smoldyn 2.1. PLoS Comput. Biol. 2010;6(3):e1000705. doi: 10.1371/journal.pcbi.1000705. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 14.Kerr Rex A, Bartol Thomas M, Kaminsky Boris, Dittrich Markus, Chang Jen-Chien Jack, Baden Scott B, Sejnowski Terrence J, Stiles Joel R. Fast Monte Carlo simulation methods for biological reaction-diffusion systems in solution and on surfaces. SIAM J. Sci. Comput. 2008;30(6):3126–3149. doi: 10.1137/070692017. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 15.Hellander S, Hellander A, Petzold LR. Reaction-diffusion master equation in the microscopic limit. Phys. Rev. E. 2012;85(4):042901. doi: 10.1103/PhysRevE.85.042901. [DOI] [PubMed] [Google Scholar]
- 16.Hellander S, Hellander A, Petzold LR. Reaction rates for mesoscopic reaction-diffusion kinetics. Phys. Rev. E. 2015;91(2):023312. doi: 10.1103/PhysRevE.91.023312. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 17.Isaacson S. A convergent reaction-diffusion master equation. J. Chem. Phys. 2013;139(5):054101. doi: 10.1063/1.4816377. [DOI] [PubMed] [Google Scholar]
- 18.Fange D, Berg OG, Sjöberg P, Elf J. Stochastic reaction-diffusion kinetics in the microscopic limit. PNAS. 2010;107(46):19820–19825. doi: 10.1073/pnas.1006565107. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 19.Doi M. Second quantization representation for classical many-particle system. J. Phys. A: Math. Gen. 1976;9(9):1465–1477. [Google Scholar]
- 20.Jaeger JC, Carslaw HS. Conduction of Heat in Solids. Oxford University Press; 1959. [Google Scholar]
- 21.Hellander S, Lötstedt P. Flexible single molecule simulation of reaction-diffusion processes. J. Comput. Phys. 2011;230(10):3948–3965. [Google Scholar]
- 22.van Zon JS, ten Wolde PR. Green’s-function reaction dynamics: A particle-based approach for simulating biochemical networks in time and space. J. Chem. Phys. 2005;123(23):234910. doi: 10.1063/1.2137716. [DOI] [PubMed] [Google Scholar]
- 23.van Zon JS, ten Wolde PR. Simulating biochemical networks at the particle level and in time and space: Green’s-function reaction dynamics. Phys. Rev. Lett. 2005;94(12):128103. doi: 10.1103/PhysRevLett.94.128103. [DOI] [PubMed] [Google Scholar]
- 24.Engblom S, Ferm L, Hellander A, Lötstedt P. Simulation of stochastic reaction-diffusion processes on unstructured meshes. J. Sci. Comput. 2009;31(3):1774–1797. [Google Scholar]
- 25.Montroll EW, Weiss GH. Random walks on lattices. II. J. Math. Phys. 1965;6(2):167–181. [Google Scholar]
- 26.Montroll EW. Random walks on lattices III: Calculation of first-passage times with application to exciton trapping on photosynthetic units. J. Math. Phys. 1969;10(4):753–765. [Google Scholar]
- 27.Collins FC, Kimball GE. Diffusion-controlled reaction rates. J. Colloid Sci. 1949;4(4):425–437. [Google Scholar]
- 28.Fange D, Berg OG, Sjöberg P, Elf J. Stochastic reaction-diffusion kinetics in the microscopic limit. Proc. Natl. Acad. Sci. USA. 2010;107(46):19820–19825. doi: 10.1073/pnas.1006565107. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 29.Agmon N, Szabo A. Theory of reversible diffusion-influenced reactions. J. Chem. Phys. 1990;92(9):5270. [Google Scholar]


