Home | About | Journals | Submit | Contact Us | Français |

**|**BMC Bioinformatics**|**v.5; 2004**|**PMC408466

Formats

Article sections

- Abstract
- Background
- Implementation
- Numerical methods
- Results and discussion
- Conclusions
- Availability and requirements
- Authors' contributions
- References

Authors

Related links

BMC Bioinformatics. 2004; 5: 24.

Published online 2004 March 8. doi: 10.1186/1471-2105-5-24

PMCID: PMC408466

David Adalsteinsson: ude.cnu.htama@divad; David McMillen: ac.otnorotu.mtu@nellimcm; Timothy C Elston: ude.cnu.htama@notslet

Received 2003 November 7; Accepted 2004 March 8.

Copyright © 2004 Adalsteinsson et al; licensee BioMed Central Ltd. This is an Open Access article: verbatim copying and redistribution of this article are permitted in all media for any purpose, provided this notice is preserved along with the article's original URL.

This article has been cited by other articles in PMC.

Intrinsic fluctuations due to the stochastic nature of biochemical reactions can have large effects on the response of biochemical networks. This is particularly true for pathways that involve transcriptional regulation, where generally there are two copies of each gene and the number of messenger RNA (mRNA) molecules can be small. Therefore, there is a need for computational tools for developing and investigating stochastic models of biochemical networks.

We have developed the software package Biochemical Network Stochastic Simulator (BioNetS) for efficiently and accurately simulating stochastic models of biochemical networks. BioNetS has a graphical user interface that allows models to be entered in a straightforward manner, and allows the user to specify the type of random variable (discrete or continuous) for each chemical species in the network. The discrete variables are simulated using an efficient implementation of the Gillespie algorithm. For the continuous random variables, BioNetS constructs and numerically solves the appropriate chemical Langevin equations. The software package has been developed to scale efficiently with network size, thereby allowing large systems to be studied. BioNetS runs as a BioSpice agent and can be downloaded from http://www.biospice.org. BioNetS also can be run as a stand alone package. All the required files are accessible from http://x.amath.unc.edu/BioNetS.

We have developed BioNetS to be a reliable tool for studying the stochastic dynamics of large biochemical networks. Important features of BioNetS are its ability to handle hybrid models that consist of both continuous and discrete random variables and its ability to model cell growth and division. We have verified the accuracy and efficiency of the numerical methods by considering several test systems.

Mathematical modeling of complex biological networks has a lengthy history [1-5]. In the past, the standard approach for modeling these systems has been to derive ordinary differential equations (ODEs) based on the law of mass action for the concentrations of the biochemical species involved in the network [6-16]. Experimental studies [17-19] have demonstrated, however, that stochastic effects can be significant in cellular reactions, particularly in the case of transcriptional regulation, where generally there are two copies of each gene and the number of messenger RNA (mRNA) molecules can be small. A number of recent experimental and modeling studies have addressed the role of fluctuations in gene expression [20-31]. Many modeling studies have employed the well-established Gillespie Monte Carlo algorithm [32] or one of its more recent variants [33,34]. These algorithms offer an exact solution to the stochastic evolution of chemical systems, but they are computationally very expensive. A much more efficient approach is to approximate the species as continuous variables and formulate the problem in terms of stochastic differential equations (SDEs), often referred to as chemical Langevin equations [24,28,35]. This approximation works remarkably well for many cases, even when the number of particles involved is as small as ten, and the resulting simulations can run orders of magnitude more quickly than the discrete Monte Carlo approach. In other cases, when some or all of the particle numbers are very small, the system may need to be modeled using the discrete approach, or a hybrid method in which some species are treated discretely while others are evolved using the continuum approximation. With the increasing interest in formulating accurate models of large biochemical networks, there is a need for reliable software packages that correctly incorporate stochastic effects, yet are fast enough to simulate large interconnected sets of reacting species (as found, for example, in signaling cascades or genetic regulatory networks). We have developed the BIOchemical NETwork Stochastic Simulator, "BioNetS," to meet this need. BioNetS is capable of performing full discrete simulations using an efficient implementation of the Gillespie algorithm. It is also able to set up and solve the chemical Langevin equations, which are a good approximation to the discrete dynamics in the limit of large abundances. Finally, BioNetS can handle hybrid models in which chemical species that are present in low abundances are treated discretely, whereas those present at high abundances are handled continuously. Thus, the user can pick the simulation method that is best suited to their needs. All aspects of the software are highly optimized for efficiency.

The remainder of this manuscript is arranged in the following way. In the Implementation section, the mathematical background for the Gillespie method, chemical Langevin equations and hybrid models is presented, along with a discussion of the numerical algorithms used in BioNetS. Under Results and Discussion we provide a brief introduction to BioNetS along with several examples. The examples serve two purposes: 1) to illustrate how to use the software and 2) to verify its efficiency and accuracy. More complete documentation can be found at http://x.amath.unc.edu/BioNetS, and in the documentation included with the package.

We first develop the mathematical methodology on which BioNetS is built. Readers interested in using BioNetS without going into its underlying structure can proceed directly to the Results and discussion section.

BioNetS makes use of elementary reactions (zeroth, first and second order). The following examples illustrates each type of reaction:

In the above reactions, the calligraphic letters denote a single molecule of a chemical species. The number of molecules of a particular species in the system at time *t *is denoted with uppercase letters (e.g., *A*(*t*), *B*(*t*), *A_B*(*t*), and *V*(*t*)). All the rate constants, γ, δ, and *k*_{1}*-k*_{6}, have units of per time. Eq. 1 represents a process in which a molecule *A *is produced when the reaction proceeds in the forward direction and is degraded in the reverse direction. In the forward direction the reaction is zeroth order and proceeds with an average rate of γ. In the backward direction, the reaction is first order, and the average rate of degradation is δ*A*(*t*). The forward reaction in Eq. 2 represents a process in which chemical species *A *is converted to species *B*. In this case *A *and *B *might represent two different conformations of the same molecule. In Eq. 2 both the forward and backward reactions are first order because the reaction rates are proportional to the respective concentrations. The forward reaction given in Eq. 3 is a second order reaction in which an *A *molecule and a *B *molecule come together to form the complex *A_B*. The average rate for the reaction is *k*_{1}*A*(*t*)*B*(*t*). The backward reaction is a first order reaction in which *A_B *dissociates at an average rate of *k*_{2}*A_B*(*t*). In Eq. 4 the forward reaction produces a molecule *V*. The difference between this reaction and the forward reaction in Eq. 1 is that the average rate is *k*_{3}*V*(*t*). This leads to exponential growth of *V(t)*. This reaction is particularly useful if *V*(*t*) is interpreted as the cell volume. In the backward reaction, two *V *molecules come together and degrade one of the *V *molecules. The average rate for this reaction is *k*_{4}*V*(*t*)(*V*(*t*) - 1). The *V*(*t*) - 1 term arises because two of *V*(*t*) molecules must be chosen to react. This type of term also arises in reactions that produce homodimers. This reaction eventually stops the exponential growth of *V*. The net effect of these two reactions is to produce logistic growth. The total average reaction rate for the set of reactions given in Eqs. 1–4 is

where *F*_{i }and *B*_{i }are the average forward and backward rates, respectively, for the *i*th reaction.

For the rest of this section, we assume that the volume of the cell is not changing and only consider Eqs. 1–3. In the Examples we consider a case in which the volume is changing. If *A*(*t*), *B*(*t*) and *A_B*(*t*) are present in large numbers, then the law of mass action can be applied to derive equations that govern the concentrations [*A*]= *A*(*t*)/*V*, [*B*]= *B*(*t*)/*V *and [*AB*]= *A_B*(*t*)/*V*, where *V *is the cell volume. These equations are

The primed rate constants indicate that they have been appropriately scaled by the volume (i.e, *k'*_{3}= *k*_{3}*V *and γ' = γ/*V*), and, therefore, have units of either per time per concentration or concentration per time. Note that to convert to units of molar, we also have to appropriately scale the rate constants by Avagadro's number. Eqs. 6–8 represent a macroscopic description of the process, because they ignore fluctuations in the concentration that arise from the stochastic nature of chemical reactions.

In general, *A*(*t*), *B*(*t*) and *A_B*(*t*) are random variables that take on any nonnegative integer value. The Gillespie algorithm [32] can be used to generate sample paths of the process. This algorithm assumes that the random time Δ*T*_{i}, between the *i*th and *i *+ 1 reaction, is exponentially distributed. For the simple example given by Eqs. 1–3, the mean waiting time between reactions, which characterizes the exponential distribution, is μ_{ΔTi }= γ + δ *A*(*t*_{i}) + *k*_{1}*A*(*t*_{i}) + *k*_{2}*B*(*t*_{i}) + *k*_{3}*A*(*t*_{i})*B*(*t*_{i}) + *k*_{4}*A_B*(*t*_{i}), where *t*_{i }is the time at which the ith reaction occurred. Therefore, *t*_{i}^{+1} = *t*_{i }+ Δ*T*_{i}. Once the time at which the next reaction occurs has been determined, the following probabilities are used to determine which reaction occurred:

Once the reaction has been determined, the chemical species are updated accordingly. As discussed in the Numerical methods section, BioNetS uses an efficient implementation of the Gillespie algorithm [33].

Another description of discrete stochastic processes is achieved through use of the master equation that governs how the probabilities of the various random variables in the process evolve in time. Let *p*_{a, b,a_b}(*t*) = Pr [*A*(*t*) = *a*, *B*(*t*) = *b*, *A_B*(*t*) = *a_b*], then *P*_{a,b,a_b}(*t*) satisfies the master equation

The master equation is the starting point for deriving various approximate schemes for describing the system [28]. In the next section, we discuss an approximate scheme that is valid in the limit of large, but finite molecule numbers. The simplest approximation scheme is achieved by considering the first moments of the process. We will use over bars to denote averaging. For example, . Eq. 15 can be used to derive equations that govern the time evolution of all the first moments. Because of the second order reaction in Eq. 3, the equations for the means are coupled to the second moments. In fact, the *n*th moment equations contain terms that involve the *n*+ l moments. Thus, there is no closure to the system. The simplest closure scheme is to assume that all moments factorize (e.g., ). This represents the macroscopic limit in which fluctuations are ignored. In this limit, we recover Eqs. 6–8 from the master equation.

The general form of the master equation for a system consisting of *N *chemical species and *M *reactions is

where **n **is a N-dimensional vector of species numbers, *F*_{i }and *B*_{i }are the backward and forward rates for the *i*th reaction, and the vectors δ_{i }contain the stoichiometric constants for the ith reaction. For the simple model given by Eqs. 1–3, *N *= 3, *M *= 3, and *p*_{n}(*t*) = Pr[*A*(*t*) = *n*_{1}, *B*(*t*) = *n*_{2}, and *A_B*(*t*) = *n*_{3}]. The forward and backward rates are *F*_{1 }= γ, *B*_{1 }= δ*n*_{1}, *F*_{2 }= *k*_{1}*n*_{1}, *B*_{2 }= *k*_{2}*n*_{2}, *F*_{3 }= *k*_{3}*n*_{1}*n*_{2}, and *B*_{3 }= *k*_{4}*n*_{3}. The δ_{i }vectors are the rows of the stoichiometric matrix

The (*i,j*) element in the above matrix represents the change in the *j*th chemical species when the *i*th reaction proceeds in the forward direction.

If the molecule numbers are large as compared to 1, then the master equation Eq. 16 can be approximated by the continuous process [28,35]

where

This result can be derived in several ways. One method is to note that Eq. 15 represents a second order finite differencing of Eq. 18, with a grid size of 1. Another method is to make use of the shift operator

where *f*(*n*) is an arbitrary smooth function and for our purposes *k *is an integer. If the shift operator is used in Eq. 15, the diffusion limit is achieved when the Taylor series expansion given in Eq. 21 is truncated at *j *= 2.

Sample paths consistent with Eq. 18 can be generated using the following set of SDEs

where the *w*_{k}(*t*) are independent Gaussian white noise processes. These equations are often referred to as the chemical Langevin equations. For Eqs. 1 – 3, the explicit form of the SDEs are

BioNetS generates numerical solutions to the SDEs given by Eq. 22 using either an explicit or semi-implicit Euler method. The form of these methods is

where ε = 0 for the explicit method and ε = 1 for the semi-implicit method and the *Z*_{k}(*t*) are independent standard normal random variables. The advantage of using the chemical Langevin equations is that in the appropriate parameter regime, numerical solutions to the set of SDEs given by Eq. 22 can be generated much more efficiently than using the Gillespie algorithm. We expand upon this point in the Examples section. Higher order numerical algorithms for SDEs are available [36], but the noise structure of the chemical Langevin equations makes these schemes very cumbersome to implement. In the Examples, we verify that the Euler methods given by Eq. 26 are sufficient to produce reliable results. We note that the Δ matrix is generally sparse, and BioNetS takes advantage of this sparseness to optimize the efficiency of the two Euler methods (see Numerical Methods, below).

It is often desirable to allow some of the chemical species to be treated as continuous random variables and some to be treated discretely. This is particularly true for the case of transcriptional regulation by transcription factors. In this situation there can be as few as one DNA/transcription factor binding site and mRNA abundances can be as small as 10 or fewer. In contrast, protein abundances can be in the thousands. The technical difficulty with implementing hybrid schemes that include both discrete and continuous random variables is that the Gillespie method requires constant transition rates between reactions. This may not be the case, if some of the chemical species are evolving continuously in time. BioNetS overcomes this problem in one of two ways.

Let *N*_{d }<*N *be the number of discrete chemical species and *M*_{d }≤ *M *the number of reactions that produce a change in one of the *N*_{d }chemical species. The overall reaction rate at time *t*_{j }for the discrete set of chemical species is

If the time step Δ*t *for the SDEs is small enough such that

then *p*_{t }is approximately the probability of a transition in Δ*t*. In the above equation ε is a user specified tolerance. The probability of two discrete transitions in Δ*t *is proportional to (Δ*t*)^{2}. Choosing ε < 0.1, which means the probability of two reactions in Δ*t *is less than 0.01, generally produces good results. However, this should be verified on a case by case basis. At each time step, BioNetS checks to verify that Ineq. 28 is satisfied for the specified ε. If so, a uniform random number *R *is generated and compared against *p*_{t}. If *R < p*_{t}, then a transition occurred and the conditional probability *R/p*_{t }is used to determine which of the discrete transitions occurred. If *p*_{t }> ε, then the discrete reactions determine the fastest time scale in the system. In this case the Gillespie algorithm is used to update the discrete reactions, and the random time step
Δ*t*_{j }is used to update the SDEs.

A pseudo-code description of the above algorithm is displayed in Table Table33:

BioNetS generates code that is tailored to efficiently simulate biochemical reactions. The optimization techniques used by BioNetS allows the software to simulate large systems in reasonable times without requiring high-end computational hardware.

Techniques used to optimize the Gillespie method are:

• For the discrete variables, the program uses data structures that allow only the chemical species and reaction rates that are affected by the current reaction to be updated.

• A bisection search is used to determine which reaction occurred.

The code has both an explicit and a semi-implicit solver, for simulating the chemical Langevin equations. The user specifies at runtime which method to use. By default the semi-implicit solver will be used. The semi-implicit solver uses Newton's method to solve the implicit equations, and for that the program needs to compute the Jacobian and solve a linear system at each iteration. For updating the chemical Langevin equations and hybrid models optimization techniques include:

• The sparse nature of the stoichiometric matrix is used to efficiently store and per form matrix operations.

• After every reaction, only the species and reaction rates affected by that reaction are updated. This can be seen in the Rates.cpp file, where all the different cases have been worked out and written for optimal execution speed.

• The Jacobian is sparse, and the code takes full advantage of this fact. The program solves and factorizes the Jacobian using sparse methods. Before the code generation, BioNetS computes the entries in the Jacobian symbolically and finds a permutation that decreases the number of fill-ins during the LU factorization. As a result, no zero entries are saved, and the sparse structure is fully exploited. The sparse structure is then used in the LU solve. In the code, no pivots are visible, and no if-statements are left.

In this section we present several examples which serve as illustrations of how to use BioNetS and test the accuracy and efficiency of the numerical methods. One particular concern is the accuracy of the Euler methods. While these methods are only of order , we show that when the approximations that lead to the chemical Langevin equations are valid, the difference between the numerical solutions of the SDEs and the exact discrete Gillespie method are negligible. Currently, the graphical user interface to BioNetS runs on the Macintosh OS X operating system, though the software will generate portable C/C++ code that can be compiled and run in any computing environment. The files needed to install and run BioNetS can be downloaded from http://x.amath.unc.edu/BioNetS. The following examples illustrate the way in which models are entered and run in BioNetS. More detailed documentation is available with the software package.

We begin with a simple system that consists of the following two reactions:

In this system, monomer molecules *M *are produced at an average rate γ and degraded at an average rate δ_{m}*M*(*t*). Two monomers can then bind to form a dimer molecule *D*. The average forward and backward rates for the this reaction are *k*_{1}*M*(*t*)(*M*(*t*) - 1) and *k*_{2}*D*(*t*), respectively. The dimers are degraded at a rate δ_{d}. We will treat two cases. In the first case the cell volume is assumed to be constant, and in the second case the cell is allowed to grow and divide. To model cell growth, the cell volume *V*_{c }is treated as a random variable *V*_{c }=
α*V*, where *V *is a non-negative discrete random variable and α represents a unit of volume. The random variable *V *is governed by the reaction

The above reaction causes *V *to grow exponentially fast with an average rate of *k*_{3}. Note that logistic growth is produced when the backward reaction in Eq. 32 is included.

We start by considering the simple case in which the volume of the cell remains constant. To use BioNetS follow these steps. Copy BioNetS onto your machine, and double click to launch. Help is included as part of the program, and accessed from the Help menu. The Help document will walk you through all the steps needed to enter reactions and run the simulator.

The user interface asks you to enter the reaction and corresponding rate constants in the top part of the script window as shown in Fig. Fig.1a.1a. In the bottom part of the script window, you can toggle between panels. The Species panel is shown in Fig. Fig.1a1a and allows the user to specify how the simulator treats each chemical species, discrete or continuous. The Constants panel lists the order in which the rate constants are referenced. The Output panel allows the user to specify the ouput type. There are two ways to generate program output, either binary or ASCII. Binary output is based on MATLAB binary files, so it is possible to drive the program with MATLAB and use MATLAB's plotting routines to view the output. It is also possible to generate time series and histograms of the data from within BioNetS. Using ASCII files for I/O allows the simulator to be run through shell scripts. The Executable panel allows the user to generate either an executable file or source code. BioNetS generates portable C/C++ code that can be compiled and run in any computing environment. BioNetS can directly compile the C/C++ code. However, this requires the Developer tools, included on all recent Apple machines and available directly from http://developer.apple.com for free. The compiled code can then be run from within BioNetS. The Comments panel is available for the user to enter descriptive comments about the model.

A) A screen shot of BioNetS that illustrates how the dimerization example with constant volume is entered. The tabs at the bottom of the screen allow the user to enter various options. B) A screen shot that illustrates how the dimerization example with **...**

To run BioNetS as a BioSpice agent, you need to move the source directory onto a OAA-supported system. Once there, open up the MakeOAA file and specify the locations of your oaalib folder. Then just type "make -f MakeOAA" (without the quotes) to create the agent.

Figures Figures2A2A and and2B2B show plots of time series for the monomer number generated by BioNetS. The parameter values used to generate these figures are given in the caption. Figure Figure2A2A is the result obtained when *M *and *D *are treated as discrete variables. Figure Figure2B2B is the result from the chemical Langevin equations. The solid line shown in both panels is the result from the following equations for the first moments:

A) A single realization of *M*(*t*) for the discrete process. B) A single realization of *M*(*t*) produced by the chemical Langevin equations. The solid line in both panels is the result produced from Eqs. 33 and 34. The parameter values used to generate these **...**

Figure Figure3A3A shows the probability density function (PDF) of the dimer concentration at various times for the discrete and continuous case. Notice that for all times, the agreement between the two different methods is very good. At the final time, *t *= 200 s, the system has reached steady state. These figures indicate that the chemical Langevin equations are accurately capturing the dynamics and steady-state behavior of the discrete system.

In this section we describe how cell growth and division can be modeled using BioNetS. We will assume that the cell is experiencing exponential growth up until the time it divides. As discussed above, the cell volume *V*_{c }= α*V *is treated as a random variable. In this model cell division occurs when *V *exceeds a threshold value *V*_{max}. Note that the choice of *V*_{max }influences the degree of variability observed in the cell division times: cells growing from *V *= 1 to *V*_{max }= 2 will have a large amount of variability in their division times, while those growing from *V *= 100 to *V*_{max }= 200 will have less variable times, and those ranging from *V *= 1000 to *V*_{max }= 2000 will be still less variable. Changing the range of *V *in this way requires rescaling the relationship of *V *to the cell volume by adjusting the value of α. When cell division occurs the volume is halved, and the proteins are randomly divided between the two cells using a binomial distribution. Only one of the daughter cells is tracked. Because second order reactions require two molecules to collide, the rate constants for these reactions should scale like *k*_{1 }= *k*'_{1}/*V*_{c}. We also assume that the production rate of monomers scales as γ = γ'*V*_{c}. This is a reasonable assumption, because as the cell grows the transcription and translation machinery increases. These assumptions produce the following rate equations for the concentrations

The terms in Eqs. 35 and 36 that involve *k*_{3 }arise because of dilution due to cell growth. We use the same parameter values as in the constant volume case except δ_{m }= 1 and δ_{d }= 0. The cell growth rate is *k*_{3 }= 0.02 (assuming a scaling of 1 time unit to one minute, this yields an average cell division time of ln 2/*k*_{3 } 35 minutes, typical for bacteria), the scale factor for the cell volume is α = 1 (for simplicity), and *V*_{max }= 100. With these choices of parameter values, Eqs. 35 and 36 are identical with Eqs. 33 and 34, and we expect the average behavior of this system to be similar to that of the constant volume case.

The screen shot shown in Fig. Fig.1B1B illustrates how this model is entered into BioNetS. Figure Figure4A4A shows the time series for the volume and monomer number treating each variable discretely. The results for the continuous case are virtually identical. In Fig. Fig.4B4B the concentration is plotted as a function of time. This figure should be compared with Fig. Fig.2A.2A. The solid line in Fig. Fig.4B4B is the result from solving Eqs. 35–37. Figure Figure3B3B shows the PDFs for the dimer concentration at various times. Both the discrete and continuous results are shown. By comparing Fig. Fig.3A3A with Fig. Fig.3B,3B, we see not surprisingly that for this simple example the main effect of volume growth is to act as an additional noise source and increase the variability of the distributions.

We next use BioNetS to simulate a two gene system that has been studied in the literature [37]. In this system, the protein *A *coded for by gene *a *acts as an activator for gene *a *and gene *r*, by binding to the promoter regions, *P*_{a }and P_{r}, of the respective gene. This increases the rate of *mRNA*_{a }and *mRNA*_{r }production by a factor α_{a}and α_{r}, respectively. The protein R, acts as a represser for both genes by binding to *A *to form the inactive complex *A_R*. All gene products, mRNA and protein, are actively degraded. However, the heterodimer *A_R *protects the *R *subunit from degradation. The system consists of 9 chemical species and the following 14 biochemical reactions:

Figure Figure55 shows the way this system is entered into BioNetS.

An interesting feature of the system is that it is capable of producing sustained oscillations [37]. Figure Figure6A6A shows a times series for the repressor protein number when all the chemical species are treated as discrete random variables. The values of the rate constants used to generate this figure are listed in Fig. Fig.55.

Sample paths for the repressor protein number. Panel A is the fully discrete case and Panel B is the hybrid model.

The chemical species *P*_{a}, *P*_{r}, *P*_{r}_*A*, and *P*_{r}_*A *are binary random variables: they can only take on the values 0 or 1. Therefore, these species can not be approximated as continuous random variables. All the other chemical species appear in sufficient quantities to justify the continuum approximation. Figure Figure6B6B shows a time series corresponding to Fig. Fig.6A6A using the hybrid model. The hybrid model was run using the semi-implicit Euler method, and for these parameter values, runs 3 times faster than full model. Visually, the agreement between the two methods appears good. To test the accuracy of the Euler method, we used BioNetS to construct 2-D histograms of *R *versus *mRN A*_{r}. The results for the discrete and hybrid models are shown in Figs. Figs.7B7B and and7B.7B. To construct these histograms 10, 000 oscillations were used. Excellent agreement between the discrete and hybrid model is seen. This indicates that the hybrid model is accurately sampling the steady-state distribution. To verify that the hybrid model faithfully captures the dynamics of the system, we computed the power spectra of both models. The results are shown in Figs. Figs.8A8A and and8B.8B. Again, excellent agreement is seen between the discrete and hybrid model.

2-D histograms of repressor mRNA number versus repressor protein number. Red indicates regions of large frequency (i.e., where the system spends a lot of time) and blue indicates regions of low frequency. Panel A is for the discrete system and Panel B **...**

Using standard techniques in modern molecular biology, it is possible to design novel systems of promoter-gene pairs, such that virtually any desired regulatory network architecture may be instantiated; such networks are often called "synthetic gene networks." Recent implementations have included direct negative [22] and positive [23] feedback, a bistable switch [12], an oscillator [11], an intercellular communication system [38], and a bimodal self-activating system [39].

In this example, we use BioNetS to implement a model of a simple, open-loop network based around a novel engineered promoter, which has been designed and constructed by N. Guido and J. J. Collins at Boston University. The promoter, called *O*_{R}*O*_{lac}, combines the *O*_{lac}, *O*_{R}1, and *O*_{R}2 operator sites, so that it is repressed by the lac repressor protein (LacI) and activated by the lambda repressor protein (CI); see Fig. Fig.9.9. Experiments have been conducted in which the promoter, along with other sites to produce the activator and repressor proteins, is integrated into a high copy number plasmid and inserted into a strain of *Escherichia coli*. The promoter's activity is observed using a fluorescent reporter, Green Fluorescent Protein (GFP). A detailed modeling study with direct comparisons to experimental results has been carried out using a fully discrete stochastic approach, and will be reported elsewhere (McMillen *et al.*, manuscript in preparation). Our goal here is to provide a reasonably complex test case to evaluate the performance of BioNetS.

Schematic of the *O*_{R}*O*_{lac }engineered promoter. The promoter fuses three operator sites, one of which (*O*_{lac}) yields repression when the LacI tetramer is bound to it, while binding of the CI dimer to *O*_{R}2 yields approximately ten-fold activation (the *O*_{R}1 site **...**

The processes to be captured by the model are: transcription and degradation of mRNA strands; translation of mRNA into protein; degradation of protein; formation of protein multimers (dimers in the case of CI, tetramers in the case of LacI); LacI binding to isopropyl-β-D-thiogalactopyranoside (IPTG), a chemical inducer that reduces LacI's binding affinity for *O*_{lac}; and protein-DNA binding at the *O*_{R}*O*_{lac }promoter's operator sites. We define the following chemical species: *G*, GFP; *M*_{g}, mRNA coding for GFP; *X*, CI monomer; *X*_{2}, CI dimer; *M*_{x}, mRNA coding for CI; *D*_{x}, the arabinose-inducible *pBAD *promoter site producing CI; *Y*, LacI monomer; *Y*_{2}, LacI dimer; *Y*_{4}, LacI tetramer; *I*_{0}, IPTG (present in massive excess and thus taken to be constant); *Y*_{I}, LacI tetramer bound to IPTG; *M*_{y}, mRNA coding for LacI; and *D*_{y}, the *P*_{L}*tetO*1 site constitutively producing LacI. In addition to these, we define species *D*_{0 }through *D*_{8}, representing the various permutations of proteins bound to the three operator sites in the *O*_{R}*O*_{lac }promoter (see Table for a list). There are twelve combinatorial possibilities, but we eliminate three of them on the basis that CI *(X*_{2}*) *binding *O*_{R}2 but not*O*_{R}1 is unlikely, because of the low binding affinitity of CI for *O*_{R}2 compared to*O*_{R}1. Table also lists the effect on the basal rate of production when the promoter is in each state. This reflects the regulatory effect of the proteins; for example, CI bound to *O*_{R}2 leads to a 10-fold increase in transcription rate, while LacI bound to *O*_{lac }halts transcription completely (note that we assume in the event of simultaneous binding of activator and repressor, repression "wins" and transcription is halted).

The following irreversible reactions represent the processes of transcription, translation, and degradation:

As in previous reactions, the caligraphic letters represent individual molecules of each species. We scale all times and rates by the cell division time.

Experimental measurements generally provide equilibrium rather than rate constants, and thus when writing reversible reactions we use the following notational convention: a reaction with equilibrium constant *K *has forward rate constant *KR *and backward rate constant *R*, where *R *is a scaling factor which sets the speed at which the reaction approaches equilibrium (we will consider three values of *R: *1, 10, and 100). Using this notation, we represent protein-protein binding with the following set of reactions

Finally, protein-DNA binding is given by:

In all, the system consists of 21 species, participating in 34 reactions. The reactions are entered into BioNetS using the same method described in the previous examples. We use BioNetS' ability to represent individual species as either discrete or continuous to formulate three versions of the model: fully discrete, fully continuous, and a hybrid version in which the DNA species *D*_{0 }through *D*_{8 }are discrete while all other species are continuous. We vary the value of *R*, the scaling factor for reversible reactions, and keep all other parameters fixed at the following nondimensionalized values: β_{g }= 0.1, β_{y }= 1, β_{x }= 0.5, β_{T }= 10, γ_{mrna }= 3.5, γ_{prot }= 0.7, *K*_{y }= 0.01, *K*_{y2 }= 0.1, *K*_{yI }= 2 × 10^{-6}, *K*_{x }= 0.05, *K*_{1 }= 0.3, *K*_{2 }= 2*K*_{1},*K*_{3 }= 0.008, *K*_{4 }= 1.4 × l0^{-4}K_{3}, *I*_{0 }= 1 × 10^{6}.

To evaluate the steady-state probability distributions produced by the reaction system, simulations 250000 cell cycles in length were used to accumulate histograms (a built-in feature of BioNetS) of the number of molecules of GFP (species *G)*, for each of the three versions of the model. As Fig. 10A shows, the resulting distributions are essentially identical, indicating that the continuum approximations used in the fully continuous and hybrid forms of the model were valid. Not all species in the system are well approximated as continuous variables: Fig. 10B shows the continuous probability distribution for species *D*_{8}, representing a promoter fully populated with two CI dimers and a LacI tetramer-IPTG complex. This situation is very rare in our parameter regime, and the system spends essentially all of its time with *D*_{8 }= 0. The fully continuous model, however, fluctuates into negative values, indicating that the continuum approximation has broken down. This does not significantly affect the distribution for GFP because the other, more common DNA states dominate the system's behavior; note, however, that if we were considering genomic DNA rather than a high copy number plasmid, we would not be able to employ a fully continuous model. The hybrid model, by treating the DNA species as continuous, eliminates the fluctuations into negative values. In general, the appropriate approximations will depend on both the system and the variables of interest: in the present example, if we were interested in the behavior of the operator sites themselves, we would not be able to use the fully continuous version of the model, but as a model solely of GFP expression the approximation suffices. Comparisons between types of models should be made to test the underlying assumptions, and BioNetS facilitates this process.

A) Probability densities of GFP molecules, for three versions of the *O*_{R}*O*_{lac }promoter model. Densities were generated by accumulating statistics in runs 250000 cell cycles in duration. (*Solid line*) Fully discrete model. (*Dashed line*) Fully continuous model. **...**

We used simulations 200 cell cycles in length to test the speed at which the three model versions ran. In each case, 200 simulations were run using a consistent set of 200 different random seeds; all runs were started with identical initial conditions. For the fully continuous and hybrid systems, the semi-implicit scheme was numerically stable and yielded consistent histograms for all time step sizes between *dt = *0.001 and *dt = *0.5, but the latter corresponds to just two time points per cell division cycle (recall that all times are scaled by the cell division time), and we chose instead to sample 20 points per cycle and set *dt = *0.05. As shown in Table Table2,2, the fully continuous method was always fastest, with the degree of improvement over the exact, fully discrete method depending strongly on the value of *R*, the scaling factor for the reversible reaction rates. For *R = *1, the fully continuous method was only 1.4-fold faster than the fully discrete method, but as *R *is increased this speed advantage increases to over 4-fold at *R = *10, then to over 30-fold at *R = *100. (Note that the speed advantage of the fully continuous over the fully discrete method increases with the abundances of the chemical species. Shifting parameters to generate higher protein numbers can yield cases in which the continuum approximation is hundreds of times faster than the discrete approach; runs not shown here.) Use of a hybrid discrete/continuous method did not, for this particular model system, offer any speed gain over the fully discrete approach; the increased time involved in computing the Jacobian for the semi-implicit method is more time-consuming than simply simulating the reactions directly. Optimizing efficiency requires testing various potential approaches, and BioNetS makes this a simple process.

We have developed BioNetS to be a reliable tool for studying the stochastic dynamics of large chemical networks. The software allows the user to specify which of the chemical species in the network should be treated as discrete random variables and which can be approximated as continuous random variables. The software is highly optimized for speed and should be be able to simulate networks consisting of hundreds of chemical species. We have verified the accuracy of the numerical methods by considering several test systems (a dimerization reaction, a chemical oscillator, and an engineered promoter), each of which shows excellent agreement between the fully discrete version and the fully or partially continuous versions. Our hope is that BioNetS, by providing a simple, user-friendly interface, will allow biological experimentalists to formulate biochemical reaction models of their systems quickly and easily, ideally increasing the number of systems in which direct comparisons are available between models and experimental results. Clearly, not every possible biological system can be captured in the current version of BioNetS, and its capabilities will continue to grow in the future. We wish to encourage users, or potential users, to contact us regarding which additional features would be most helpful to them.

• **Project name: **BlOchemical NETwork Stochastic Simulator (BioNetS)

• **Project home page: **http://x.amath.unc.edu/BioNetS

• **Operating system:**

* User interface: Macintosh OS X, version 10.2 or above.

* Generated source code: Ability to compile portable C++ code. Makefiles included for OS X and Linux.

• **Programming language: **C++.

• **Other requirements: **None.

• **License: **BSD license.

• **Restrictions on use by non-academics: **None.

DA wrote the BioNetS code in its entirety, providing the user interface, the numerical optimizations and the code generator. TE provided the mathematical derivations, carried out the dimer and oscillator examples, wrote an initial draft of the paper, and worked with DA on the algorithms and numerical methods. DM revised and finalized the paper, provided the engineered promoter example, and worked extensively with DA on testing and debugging of the software. All authors read, edited, and approved the final version of the paper.

This work was supported by DARPA grant F30602-01-2-0579. D. Adalsteinsson acknowledges support by the Alfred P. Sloan Foundation.

- Glass L, Kauffman S. The logical analysis of continuous, nonlinear biochemical control networks. J Theor Biol. 1973;39:103–129. [PubMed]
- Kauffman S. The large-scale structure and dynamics of gene control circuits: An ensemble approach. J Theor Biol. 1974;44:167–190. [PubMed]
- Savageau M. Comparison of classical and autogenous systems of regulation in inducible operons. Nature. 1974;252:546–549. [PubMed]
- Glass L. Classification of biological networks by their qualitative dynamics. J Theor Biol. 1975;54:85–107. [PubMed]
- Tyson J, Othmer H. The dynamics of feedback control circuits in biochemical pathways. Progr Theor Biol. 1978;5:1–60.
- Ackers G, Johnson A, Shea M. Quantitative model for gene regulation by λ phage repressor. Proc Natl Acad Sci USA. 1982;79:1129–1133. [PubMed]
- Shea M, Ackers G. The O
_{R }control system of bacteriophage lambda: A physical-chemical model for gene regulation. J Mol Biol. 1985;181:211–230. [PubMed] - Reinitz J, Vaisnys J. Theoretical and experimental analysis of the phage lambda genetic switch implies missing levels of co-operativity. J Theor Biol. 1990;145:295–318. [PubMed]
- Keller A. Model genetic circuits encoding autoregulatory transcription factors. J Theor Biol. 1995;172:169–185. doi: 10.1006/jtbi.1995.0014. [PubMed] [Cross Ref]
- Mestl T, Lemay C, Glass L. Chaos in high-dimensional neural and gene networks. Physica D. 1996;98:33–52. doi: 10.1016/0167-2789(96)00086-3. [Cross Ref]
- Elowitz M, Leibler S. A synthetic oscillatory network of transcriptonal regulators. Nature. 2000;403:335–338. doi: 10.1038/35002125. [PubMed] [Cross Ref]
- Gardner T, Cantor C, Collins J. Construction of a genetic toggle switch in
*Escherichia coli*. Nature. 2000;403:339–342. doi: 10.1038/35002131. [PubMed] [Cross Ref] - Endy D, You L, Yin J, Molineux I. Computation, prediction, and experimental tests of fitness for bacteriophage T7 mutants with permuted genomes. Proc Natl Acad Sci USA. 2000;97:5375–5380. doi: 10.1073/pnas.090101397. [PubMed] [Cross Ref]
- Hasty J, Isaacs F, Dolnik M, McMillen D, Collins J. Designer gene networks: Towards fundamental cellular control. Chaos. 2001;11:207–220. doi: 10.1063/1.1345702. [PubMed] [Cross Ref]
- Santillán M, Mackey M. Dynamic regulation of the tryptophan operon: A modeling study and comparison with experimental data. Proc Natl Acad Sci USA. 2001;98:1364–1369. doi: 10.1073/pnas.98.4.1364. [PubMed] [Cross Ref]
- McMillen D, Kopell N, Hasty J, Collins J. Synchronizing genetic relaxation oscillators by intercell signaling. Proc Natl Acad Sci USA. 2002;99:679–684. doi: 10.1073/pnas.022642299. [PubMed] [Cross Ref]
- Spudich J, Koshland DEJ. Non-genetic individuality: Chance in the single cell. Nature. 1976;262:467–471. [PubMed]
- Ross I, Browne C, Hume D. Transcription of individual genes in eukaryotic cells occurs randomly and infrequently. Immunol Cell Biol. 1994;72:177–185. [PubMed]
- Hume D. Probability in transcriptional regulation and its implications for leukocyte differentiation and inducible gene expression. Blood. 2000;96:2323–2328. [PubMed]
- Arkin A, Ross J, McAdams H. Stochastic kinetic analysis of developmental pathway bifurcation in phage λ -infected
*Escherichia coli*cells. Genetics. 1998;149:1633–1648. [PubMed] - Barkai N, Leibler S. Biological rhythms: Circadian clocks limited by noise. Nature. 2000;403:267. [PubMed]
- Becskei A, Serrano L. Engineering stability in gene networks by autoregulation. Nature. 2000;405:590–593. doi: 10.1038/35014651. [PubMed] [Cross Ref]
- Becskei A, Séraphin B, Serrano L. Positive feedback in eukaryotic gene networks: cell differentiation by graded to binary response conversion. EMBO J. 2001;20:2528–2535. doi: 10.1093/emboj/20.10.2528. [PubMed] [Cross Ref]
- Bialek W. In Advances in Neural Information Processing Systems. Vol. 13. Cambridge: The MIT Press; 2001. Stability and noise in biochemical switches; pp. 103–109.
- Elowitz M, Levine A, Siggia E, Swain P. Stochastic gene expression in a single cell. Science. 2002;297:1183–1186. doi: 10.1126/science.1070919. [PubMed] [Cross Ref]
- Hasty J, Pradines J, Dolnik M, Collins J. Noise-based switches and amplifiers for gene expression. Proc Natl Acad Sci USA. 2000;97:2075–2080. doi: 10.1073/pnas.040411297. [PubMed] [Cross Ref]
- Ko M. A stochastic model for gene induction. J Theor Biol. 1991;153:181–194. [PubMed]
- Kepler T, Elston T. Stochasticity in transcriptional regulation: origins, consequences, and mathematical representations. Biophys J. 2001;81:3116–3136. [PubMed]
- McAdams H, Arkin A. Stochastic mechanisms in gene expression. Proc Natl Acad Sci USA. 1997;94:814–819. doi: 10.1073/pnas.94.3.814. [PubMed] [Cross Ref]
- Ozbudak E, Thattai M, Kurtser I, Grossman A, van Oudenaarden A. Regulation of noise in the expression of a single gene. Nature Genet. 2002;31:69–73. doi: 10.1038/ng869. [PubMed] [Cross Ref]
- Thattai M, van Oudenaarden A. Intrinsic noise in gene regulatory networks. Proc Natl Acad Sci USA. 2001;98:8614–8619. doi: 10.1073/pnas.151588598. [PubMed] [Cross Ref]
- Gillespie D. Exact stochastic simulation of coupled chemical reactions. J Phys Chem. 1977;81:2340–2361.
- Gibson M, Bruck J. Efficient exact stochastic simulation of chemical systems with many species and many channels. J Phys Chem. 2000;104:1876–1889. doi: 10.1021/jp993732q. [Cross Ref]
- Gillespie D. Approximate accelerated stochastic simulation of chemically reacting systems. J Phys Chem. 2001;115:1716–1733. doi: 10.1063/1.1378322. [Cross Ref]
- Gardiner C. Handbook of stochastic methods: For physics, chemistry and the natural sciences. Berlin: Springer Verlag; 1996.
- Kloeden P, Platen E. Numerical solution of stochastic differential equations. Berlin: Springer Verlag; 1992.
- Vilar J, Kueh H, Barkai N, Leibler S. Mechanisms of noise-resistance in genetic oscillators. Proc Natl Acad Sci USA. 2002;99:5988–5992. doi: 10.1073/pnas.092133899. [PubMed] [Cross Ref]
- Weiss R, Knight T. Engineered communications for microbial robotics. In: Condon A, Rozenberg G, editor. In DNA6: Sixth International Meeting on DNA Based Computers: June 13–17 2000; Leiden, Netherlands. Berlin: Springer Verlag; 2001.
- Isaacs F, Hasty J, Cantor C, Collins J. Prediction and measurement of an autoregulatory genetic module. Proc Natl Acad Sci USA. 2003;100:7714–7719. doi: 10.1073/pnas.1332628100. [PubMed] [Cross Ref]

Articles from BMC Bioinformatics are provided here courtesy of **BioMed Central**

PubMed Central Canada is a service of the Canadian Institutes of Health Research (CIHR) working in partnership with the National Research Council's national science library in cooperation with the National Center for Biotechnology Information at the U.S. National Library of Medicine(NCBI/NLM). It includes content provided to the PubMed Central International archive by participating publishers. |