1
|
Loman TE, Ma Y, Ilin V, Gowda S, Korsbo N, Yewale N, Rackauckas C, Isaacson SA. Catalyst: Fast and flexible modeling of reaction networks. PLoS Comput Biol 2023; 19:e1011530. [PMID: 37851697 PMCID: PMC10584191 DOI: 10.1371/journal.pcbi.1011530] [Citation(s) in RCA: 8] [Impact Index Per Article: 4.0] [Reference Citation Analysis] [Abstract] [MESH Headings] [Grants] [Track Full Text] [Journal Information] [Subscribe] [Scholar Register] [Received: 06/03/2023] [Accepted: 09/19/2023] [Indexed: 10/20/2023] Open
Abstract
We introduce Catalyst.jl, a flexible and feature-filled Julia library for modeling and high-performance simulation of chemical reaction networks (CRNs). Catalyst supports simulating stochastic chemical kinetics (jump process), chemical Langevin equation (stochastic differential equation), and reaction rate equation (ordinary differential equation) representations for CRNs. Through comprehensive benchmarks, we demonstrate that Catalyst simulation runtimes are often one to two orders of magnitude faster than other popular tools. More broadly, Catalyst acts as both a domain-specific language and an intermediate representation for symbolically encoding CRN models as Julia-native objects. This enables a pipeline of symbolically specifying, analyzing, and modifying CRNs; converting Catalyst models to symbolic representations of concrete mathematical models; and generating compiled code for numerical solvers. Leveraging ModelingToolkit.jl and Symbolics.jl, Catalyst models can be analyzed, simplified, and compiled into optimized representations for use in numerical solvers. Finally, we demonstrate Catalyst's broad extensibility and composability by highlighting how it can compose with a variety of Julia libraries, and how existing open-source biological modeling projects have extended its intermediate representation.
Collapse
Affiliation(s)
- Torkel E. Loman
- Sainsbury Laboratory, University of Cambridge, Cambridge, United Kingdom
- Computer Science and AI Laboratory (CSAIL), Massachusetts Institute of Technology, Cambridge, Massachusetts, United States of America
| | - Yingbo Ma
- JuliaHub, Cambridge, Massachusetts, United States of America
| | - Vasily Ilin
- Department of Mathematics, University of Washington, Seattle, Washington, United States of America
| | - Shashi Gowda
- Department of Mathematics, Massachusetts Institute of Technology, Cambridge, Massachusetts, United States of America
| | - Niklas Korsbo
- Pumas-AI, Baltimore, Maryland, United States of America
| | - Nikhil Yewale
- Department of Applied Mechanics, Indian Institute of Technology Madras, Chennai, India
| | - Chris Rackauckas
- Computer Science and AI Laboratory (CSAIL), Massachusetts Institute of Technology, Cambridge, Massachusetts, United States of America
- JuliaHub, Cambridge, Massachusetts, United States of America
- Pumas-AI, Baltimore, Maryland, United States of America
| | - Samuel A. Isaacson
- Department of Mathematics and Statistics, Boston University, Boston, Massachusetts, United States of America
| |
Collapse
|
2
|
Ghosh D, De RK. Block Search Stochastic Simulation Algorithm (BlSSSA): A Fast Stochastic Simulation Algorithm for Modeling Large Biochemical Networks. IEEE/ACM TRANSACTIONS ON COMPUTATIONAL BIOLOGY AND BIOINFORMATICS 2022; 19:2111-2123. [PMID: 33788690 DOI: 10.1109/tcbb.2021.3070123] [Citation(s) in RCA: 1] [Impact Index Per Article: 0.3] [Reference Citation Analysis] [Abstract] [MESH Headings] [Track Full Text] [Subscribe] [Scholar Register] [Indexed: 06/12/2023]
Abstract
Stochastic simulation algorithms are extensively used for exploring stochastic behavior of biochemical pathways/networks. Computational cost of these algorithms is high in simulating real biochemical systems due to their large size, complex structure and stiffness. In order to reduce the computational cost, several algorithms have been developed. It is observed that these algorithms are basically fast in simulating weakly coupled networks. In case of strongly coupled networks, they become slow as their computational cost become high in maintaining complex data structures. Here, we develop Block Search Stochastic Simulation Algorithm (BlSSSA). BlSSSA is not only fast in simulating weakly coupled networks but also fast in simulating strongly coupled and stiff networks. We compare its performance with other existing algorithms using two hypothetical networks, viz., linear chain and colloidal aggregation network, and three real biochemical networks, viz., B cell receptor signaling network, FceRI signaling network and a stiff 1,3-Butadiene Oxidation network. It has been shown that BlSSSA is faster than other algorithms considered in this study.
Collapse
|
3
|
Thanh VH, Korpela D, Orponen P. Cotranscriptional Kinetic Folding of RNA Secondary Structures Including Pseudoknots. J Comput Biol 2021; 28:892-908. [PMID: 33902324 DOI: 10.1089/cmb.2020.0606] [Citation(s) in RCA: 0] [Impact Index Per Article: 0] [Reference Citation Analysis] [Abstract] [Key Words] [Track Full Text] [Journal Information] [Subscribe] [Scholar Register] [Indexed: 11/12/2022] Open
Abstract
Computational prediction of ribonucleic acid (RNA) structures is an important problem in computational structural biology. Studies of RNA structure formation often assume that the process starts from a fully synthesized sequence. Experimental evidence, however, has shown that RNA folds concurrently with its elongation. We investigate RNA secondary structure formation, including pseudoknots, that takes into account the cotranscriptional effects. We propose a single-nucleotide resolution kinetic model of the folding process of RNA molecules, where the polymerase-driven elongation of an RNA strand by a new nucleotide is included as a primitive operation, together with a stochastic simulation method that implements this folding concurrently with the transcriptional synthesis. Numerical case studies show that our cotranscriptional RNA folding model can predict the formation of conformations that are favored in actual biological systems. Our new computational tool can thus provide quantitative predictions and offer useful insights into the kinetics of RNA folding.
Collapse
Affiliation(s)
- Vo Hong Thanh
- Department of Computer Science, Aalto University, Espoo, Finland.,Certara UK Limited (Simcyp Division), Sheffield, United Kingdom
| | - Dani Korpela
- Department of Computer Science, Aalto University, Espoo, Finland
| | - Pekka Orponen
- Department of Computer Science, Aalto University, Espoo, Finland
| |
Collapse
|
4
|
Simoni G, Reali F, Priami C, Marchetti L. Stochastic simulation algorithms for computational systems biology: Exact, approximate, and hybrid methods. WILEY INTERDISCIPLINARY REVIEWS-SYSTEMS BIOLOGY AND MEDICINE 2019; 11:e1459. [PMID: 31260191 DOI: 10.1002/wsbm.1459] [Citation(s) in RCA: 10] [Impact Index Per Article: 1.7] [Reference Citation Analysis] [Abstract] [Key Words] [Track Full Text] [Subscribe] [Scholar Register] [Received: 01/18/2019] [Revised: 05/28/2019] [Accepted: 05/31/2019] [Indexed: 12/19/2022]
Abstract
Nowadays, mathematical modeling is playing a key role in many different research fields. In the context of system biology, mathematical models and their associated computer simulations constitute essential tools of investigation. Among the others, they provide a way to systematically analyze systems perturbations, develop hypotheses to guide the design of new experimental tests, and ultimately assess the suitability of specific molecules as novel therapeutic targets. To these purposes, stochastic simulation algorithms (SSAs) have been introduced for numerically simulating the time evolution of a well-stirred chemically reacting system by taking proper account of the randomness inherent in such a system. In this work, we review the main SSAs that have been introduced in the context of exact, approximate, and hybrid stochastic simulation. Specifically, we will introduce the direct method (DM), the first reaction method (FRM), the next reaction method (NRM) and the rejection-based SSA (RSSA) in the area of exact stochastic simulation. We will then present the τ-leaping method and the chemical Langevin method in the area of approximate stochastic simulation and an implementation of the hybrid RSSA (HRSSA) in the context of hybrid stochastic-deterministic simulation. Finally, we will consider the model of the sphingolipid metabolism to provide an example of application of SSA to computational system biology by exemplifying how different simulation strategies may unveil different insights into the investigated biological phenomenon. This article is categorized under: Models of Systems Properties and Processes > Mechanistic Models Analytical and Computational Methods > Computational Methods.
Collapse
Affiliation(s)
- Giulia Simoni
- The Microsoft Research-University of Trento Centre for Computational and Systems Biology (COSBI), Rovereto, TN, Italy
| | - Federico Reali
- The Microsoft Research-University of Trento Centre for Computational and Systems Biology (COSBI), Rovereto, TN, Italy
| | - Corrado Priami
- The Microsoft Research-University of Trento Centre for Computational and Systems Biology (COSBI), Rovereto, TN, Italy.,Department of Computer Science, University of Pisa, Pisa, Italy
| | - Luca Marchetti
- The Microsoft Research-University of Trento Centre for Computational and Systems Biology (COSBI), Rovereto, TN, Italy
| |
Collapse
|
5
|
Thanh VH. Efficient anticorrelated variance reduction for stochastic simulation of biochemical reactions. IET Syst Biol 2019; 13:16-23. [PMID: 30774112 DOI: 10.1049/iet-syb.2018.5035] [Citation(s) in RCA: 0] [Impact Index Per Article: 0] [Reference Citation Analysis] [Abstract] [Track Full Text] [Journal Information] [Subscribe] [Scholar Register] [Indexed: 11/19/2022] Open
Abstract
We investigate the computational challenge of improving the accuracy of the stochastic simulation estimation by inducing negative correlation through the anticorrelated variance reduction technique. A direct application of the technique to the stochastic simulation algorithm (SSA), employing the inverse transformation, is not efficient for simulating large networks because its computational cost is similar to the sum of independent simulation runs. We propose in this study a new algorithm that employs the propensity bounds of reactions, introduced recently in their rejection-based SSA, to correlate and synchronise the trajectories during the simulation. The selection of reaction firings by our approach is exact due to the rejection-based mechanism. In addition, by applying the anticorrelated variance technique to select reaction firings, our approach can induce substantial correlation between realisations, hence reducing the variance of the estimator. The computational advantage of our rejection-based approach in comparison with the traditional inverse transformation is that it only needs to maintain a single data structure storing propensity bounds of reactions, which is updated infrequently, hence achieving better performance.
Collapse
Affiliation(s)
- Vo Hong Thanh
- Department of Computer Science, Aalto University, Espoo, Finland and The Microsoft Research - University of Trento Centre for Computational and Systems Biology (COSBI) Rovereto, Italy.
| |
Collapse
|
6
|
Thanh VH, Marchetti L, Reali F, Priami C. Incorporating extrinsic noise into the stochastic simulation of biochemical reactions: A comparison of approaches. J Chem Phys 2018; 148:064111. [PMID: 29448774 DOI: 10.1063/1.5016338] [Citation(s) in RCA: 8] [Impact Index Per Article: 1.1] [Reference Citation Analysis] [Abstract] [Track Full Text] [Journal Information] [Subscribe] [Scholar Register] [Indexed: 01/15/2023] Open
Abstract
The stochastic simulation algorithm (SSA) has been widely used for simulating biochemical reaction networks. SSA is able to capture the inherently intrinsic noise of the biological system, which is due to the discreteness of species population and to the randomness of their reciprocal interactions. However, SSA does not consider other sources of heterogeneity in biochemical reaction systems, which are referred to as extrinsic noise. Here, we extend two simulation approaches, namely, the integration-based method and the rejection-based method, to take extrinsic noise into account by allowing the reaction propensities to vary in time and state dependent manner. For both methods, new efficient implementations are introduced and their efficiency and applicability to biological models are investigated. Our numerical results suggest that the rejection-based method performs better than the integration-based method when the extrinsic noise is considered.
Collapse
Affiliation(s)
- Vo Hong Thanh
- The Microsoft Research-University of Trento Centre for Computational and Systems Biology (COSBI), Piazza Manifattura 1, 38068 Rovereto (TN), Italy
| | - Luca Marchetti
- The Microsoft Research-University of Trento Centre for Computational and Systems Biology (COSBI), Piazza Manifattura 1, 38068 Rovereto (TN), Italy
| | - Federico Reali
- The Microsoft Research-University of Trento Centre for Computational and Systems Biology (COSBI), Piazza Manifattura 1, 38068 Rovereto (TN), Italy
| | - Corrado Priami
- The Microsoft Research-University of Trento Centre for Computational and Systems Biology (COSBI), Piazza Manifattura 1, 38068 Rovereto (TN), Italy
| |
Collapse
|
7
|
Thanh VH. A Critical Comparison of Rejection-Based Algorithms for Simulation of Large Biochemical Reaction Networks. Bull Math Biol 2018; 81:3053-3073. [PMID: 29981002 DOI: 10.1007/s11538-018-0462-y] [Citation(s) in RCA: 5] [Impact Index Per Article: 0.7] [Reference Citation Analysis] [Abstract] [Key Words] [Track Full Text] [Journal Information] [Subscribe] [Scholar Register] [Received: 04/20/2018] [Accepted: 06/29/2018] [Indexed: 11/30/2022]
Abstract
The rejection-based simulation technique has been applying to improve the computational efficiency of the stochastic simulation algorithm (SSA) in simulating large reaction networks, which are required for a thorough understanding of biological systems. We compare two recently proposed simulation methods, namely the composition-rejection algorithm (SSA-CR) and the rejection-based SSA (RSSA), aiming for this purpose. We discuss the right interpretation of the rejection-based technique used in these algorithms in order to make an informed choice when dealing with different aspects of biochemical networks. We provide the theoretical analysis as well as the detailed runtime comparison of these algorithms on concrete biological models. We highlight important factors that are omitted in previous analysis of these algorithms. The numerical comparison shows that for reaction networks where the search cost is expensive then SSA-CR is more efficient, and for reaction networks where the update cost is dominant, often the case in practice, then RSSA should be the choice.
Collapse
Affiliation(s)
- Vo Hong Thanh
- Department of Computer Science, Aalto University, Espoo, Finland. .,The Microsoft Research, University of Trento Centre for Computational and Systems Biology (COSBI), Rovereto, Italy.
| |
Collapse
|
8
|
Widmer LA, Stelling J. Bridging intracellular scales by mechanistic computational models. Curr Opin Biotechnol 2018; 52:17-24. [PMID: 29486391 DOI: 10.1016/j.copbio.2018.02.005] [Citation(s) in RCA: 5] [Impact Index Per Article: 0.7] [Reference Citation Analysis] [Abstract] [Track Full Text] [Journal Information] [Subscribe] [Scholar Register] [Received: 12/18/2017] [Accepted: 02/11/2018] [Indexed: 12/31/2022]
Abstract
The impact of intracellular spatial organization beyond classical compartments on processes such as cell signaling is increasingly recognized. A quantitative, mechanistic understanding of cellular systems therefore needs to account for different scales in at least three coordinates: time, molecular abundances, and space. Mechanistic mathematical models may span all these scales, but corresponding multi-scale models need to resolve mechanistic details on small scales while maintaining computational tractability for larger ones. This typically results in models that combine different levels of description: from a microscopic representation of chemical reactions up to continuum dynamics in space and time. We highlight recent progress in bridging these model classes and outline current challenges in multi-scale models such as active transport and dynamic geometries.
Collapse
Affiliation(s)
- Lukas Andreas Widmer
- Department of Biosystems Science and Engineering and Swiss Institute of Bioinformatics, ETH Zürich, Basel, Switzerland; Systems Biology PhD Program, Life Science Zurich Graduate School, Zurich, Switzerland
| | - Jörg Stelling
- Department of Biosystems Science and Engineering and Swiss Institute of Bioinformatics, ETH Zürich, Basel, Switzerland.
| |
Collapse
|
9
|
Thanh VH. Stochastic simulation of biochemical reactions with partial-propensity and rejection-based approaches. Math Biosci 2017; 292:67-75. [PMID: 28782515 DOI: 10.1016/j.mbs.2017.08.001] [Citation(s) in RCA: 4] [Impact Index Per Article: 0.5] [Reference Citation Analysis] [Abstract] [Key Words] [Track Full Text] [Journal Information] [Subscribe] [Scholar Register] [Received: 06/23/2016] [Revised: 01/04/2017] [Accepted: 08/03/2017] [Indexed: 02/08/2023]
Abstract
We present in this paper a new exact algorithm for improving performance of exact stochastic simulation algorithm. The algorithm is developed on concepts of the partial-propensity and the rejection-based approaches. It factorizes the propensity bounds of reactions and groups factors by common reactant species for selecting next reaction firings. Our algorithm provides favorable computational advantages for simulating of biochemical reaction networks by reducing the cost for selecting the next reaction firing to scale with the number of chemical species and avoiding expensive propensity updates during the simulation. We present the details of our new algorithm and benchmark it on concrete biological models to demonstrate its applicability and efficiency.
Collapse
Affiliation(s)
- Vo Hong Thanh
- The Microsoft Research - University of Trento Centre for Computational and Systems Biology, Piazza Manifattura 1, Rovereto 38068, Italy.
| |
Collapse
|
10
|
Thanh VH, Zunino R, Priami C. Efficient stochastic simulation of biochemical reactions with noise and delays. J Chem Phys 2017; 146:084107. [DOI: 10.1063/1.4976703] [Citation(s) in RCA: 11] [Impact Index Per Article: 1.4] [Reference Citation Analysis] [Track Full Text] [Journal Information] [Subscribe] [Scholar Register] [Indexed: 12/17/2022] Open
Affiliation(s)
- Vo Hong Thanh
- The Microsoft Research—University of Trento Centre for Computational and Systems Biology, Piazza Manifattura 1, Rovereto 38068, Italy
| | - Roberto Zunino
- Department of Mathematics, University of Trento, Trento, Italy
| | - Corrado Priami
- The Microsoft Research—University of Trento Centre for Computational and Systems Biology, Piazza Manifattura 1, Rovereto 38068, Italy and Department of Mathematics, University of Trento, Trento, Italy and Department of Computer Science, Stanford University, Stanford, California 94305, USA
| |
Collapse
|
11
|
Thanh VH, Priami C, Zunino R. Accelerating rejection-based simulation of biochemical reactions with bounded acceptance probability. J Chem Phys 2016; 144:224108. [DOI: 10.1063/1.4953559] [Citation(s) in RCA: 8] [Impact Index Per Article: 0.9] [Reference Citation Analysis] [Track Full Text] [Journal Information] [Subscribe] [Scholar Register] [Indexed: 11/14/2022] Open
|