MyNixOS website logo
Description

Gillespie's Stochastic Simulation Algorithm for Impatient People.

A fast, scalable, and versatile framework for simulating large systems with Gillespie's Stochastic Simulation Algorithm ('SSA'). This package is the spiritual successor to the 'GillespieSSA' package originally written by Mario Pineda-Krch. Benefits of this package include major speed improvements (>100x), easier to understand documentation, and many unit tests that try to ensure the package works as intended. Cannoodt and Saelens et al. (2021) <doi:10.1038/s41467-021-24152-2>.

CRANStatus CRANDownloads R-CMD-check DOI CoverageStatus

GillespieSSA2: Gillespie’s Stochastic Simulation Algorithm for impatient people.

GillespieSSA2 is a fast, scalable, and versatile framework for simulating large systems with Gillespie’s Stochastic Simulation Algorithm (SSA) (Cannoodt et al. 2021). This package is the spiritual successor to the GillespieSSA package originally written by Mario Pineda-Krch (Pineda-Krch 2008).

GillespieSSA2 has the following added benefits:

  • The whole algorithm is run in Rcpp which results in major speed improvements (>100x). Even your propensity functions (reactions) are being compiled to Rcpp!
  • Parameters and variables have been renamed to make them easier to understand.
  • Many unit tests try to ensure that the code works as intended.

The SSA methods currently implemented are: Exact (ssa_exact()), Explicit tau-leaping (ssa_etl()), and the Binomial tau-leaping (ssa_btl()).

Install

You can install:

  • the latest released version from CRAN with

    install.packages("GillespieSSA2")
    
  • the latest development version from github with

    devtools::install_github("rcannood/GillespieSSA2", build_vignettes = TRUE)
    

If you encounter a bug, please file a minimal reproducible example on the issues page.

Examples

The following example models are available:

  • Introduction to GillespieSSA2:
    vignette("an_introduction", package="GillespieSSA2")
  • Converting from GillespieSSA to GillespieSSA2:
    vignette("converting_from_GillespieSSA", package="GillespieSSA2")
  • Decaying-Dimerization Reaction Set:
    vignette("decaying_dimer", package="GillespieSSA2")
  • SIRS metapopulation model:
    vignette("epi_chain", package="GillespieSSA2")
  • Linear Chain System:
    vignette("linear_chain", package="GillespieSSA2")
  • Pearl-Verhulst Logistic Growth model:
    vignette("logistic_growth", package="GillespieSSA2")
  • Lotka Predator-Prey model:
    vignette("lotka_predator_prey", package="GillespieSSA2")
  • Radioactive Decay model:
    vignette("radioactive_decay", package="GillespieSSA2")
  • Rosenzweig-MacArthur Predator-Prey model:
    vignette("rm_predator_prey", package="GillespieSSA2")
  • Kermack-McKendrick SIR model:
    vignette("sir", package="GillespieSSA2")

References

Cannoodt, Robrecht, Wouter Saelens, Louise Deconinck, and Yvan Saeys. 2021. “Spearheading Future Omics Analyses Using Dyngen, a Multi-Modal Simulator of Single Cells.” Nature Communications 12 (1). https://doi.org/10.1038/s41467-021-24152-2.

Pineda-Krch, Mario. 2008. “GillespieSSA: Implementing the Stochastic Simulation Algorithm in r.” Journal of Statistical Software 25 (12). https://doi.org/10.18637/jss.v025.i12.

Metadata

Version

0.3.0

License

Unknown

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows