Science Score: 23.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
  • .zenodo.json file
  • DOI references
    Found 30 DOI reference(s) in README
  • Academic publication links
  • Committers with academic emails
    1 of 3 committers (33.3%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (16.0%) to scientific vocabulary
Last synced: 11 months ago · JSON representation

Repository

Basic Info
  • Host: GitHub
  • Owner: rcannood
  • Language: R
  • Default Branch: master
  • Size: 7.73 MB
Statistics
  • Stars: 3
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created over 4 years ago · Last pushed over 4 years ago
Metadata Files
Readme

README.Rmd

---
output: 
  github_document:
    toc: TRUE
editor_options: 
  chunk_output_type: console
---




[![R-CMD-check](https://github.com/rcannood/GillespieSSA/workflows/R-CMD-check/badge.svg)](https://github.com/rcannood/GillespieSSA/actions)


# `GillespieSSA`: Gillespie's Stochastic Simulation Algorithm (SSA)

```{r setup, include = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  out.width = "100%",
  fig.path = "man/figures/",
  message = FALSE,
  dpi = 300
)
library(tidyverse)
set.seed(1)

submission_to_cran <- TRUE
```

**GillespieSSA** provides a simple to use, intuitive, and extensible interface to several stochastic simulation algorithms for generating simulated trajectories of finite population continuous-time model. Currently it implements Gillespie's exact stochastic simulation algorithm (Direct method) and several approximate methods (Explicit tau-leap, Binomial tau-leap, and Optimized tau-leap). 

The package also contains a library of template models that can be run as demo models and can easily be customized and extended. Currently the following models are included, decaying-dimerization reaction set, linear chain system, logistic growth model, Lotka predator-prey model, Rosenzweig-MacArthur predator-prey model, Kermack-McKendrick SIR model, and a metapopulation SIRS model.

## Install

You can install **GillespieSSA** from CRAN using

```R
install.packages("GillespieSSA")
```

Or, alternatively, you can install the development version of GillespieSSA from GitHub using

```R
devtools::install_github("rcannood/GillespieSSA", build_vignettes = TRUE)
```

## Examples

The following example models are available:

```{r vignettes, results='asis', echo=FALSE}
walk(
  list.files("vignettes", pattern = "*.Rmd"),
  function(file) {
    title <- 
      read_lines(paste0("vignettes/", file)) %>% 
      keep(~grepl("^title: ", .)) %>% 
      gsub("title: \"(.*)\"", "\\1", .)
    vignette_name <- gsub("\\.Rmd", "", file)
    markdown_name <- gsub("\\.Rmd", ".md", file)
    cat(
      "* ",
      ifelse(submission_to_cran, "", "["),
      title, 
      ifelse(submission_to_cran, "", paste0("](vignettes/", markdown_name, ")")),
      ": ",
      "`vignette(\"", vignette_name, "\", package=\"GillespieSSA\")`\n",
      sep = ""
    )
  }
)
```

```{r rerun_vignettes, include = FALSE}
rerun_vignettes <- FALSE
if (rerun_vignettes) {
  for (file in list.files("vignettes", pattern = "*.Rmd", full.names = TRUE)) {
    cat("Running '", file, "'\n", sep = "")
    rmarkdown::render(file, output_format = "github_document")
  }
}
```

## Latest changes
Check out `news(package = "GillespieSSA")` or [NEWS.md](NEWS.md) for a full list of changes.



```{r news, echo=FALSE, results="asis"}
cat(dynutils::recent_news())
```

## References

 * Brown D. and Rothery P. 1993. Models in biology: mathematics, statistics, and computing. John Wiley & Sons.
 * Cao Y., Li H., and Petzold L. 2004. Efficient formulation of the stochastic simulation algorithm for chemically reacting systems. J. Chem. Phys. 121:4059-4067. [doi:10.1063/1.1778376](https://doi.org/10.1063/1.1778376)
 * Cao Y., Gillespie D.T., and Petzold L.R. 2006. Efficient step size selection for the tau-leaping method. J. Chem. Phys. 124:044109. [doi:10.1063/1.2159468](https://doi.org/10.1063/1.2159468)
 * Cao Y., Gillespie D.T., and Petzold L.R. 2007. Adaptive explicit tau-leap method with automatic tau selection. J. Chem. Phys. 126:224101. [doi:10.1063/1.2745299](https://doi.org/10.1063/1.2745299)
 * Chatterjee A., Vlachos D.G., and Katsoulakis M.A. 2005. Binomial distribution based tau-leap accelerated stochastic simulation. J. Chem. Phys. 122:024112. [doi:10.1063/1.1833357](https://doi.org/10.1063/1.1833357)
 * Gillespie D.T. 1977. Exact stochastic simulation of coupled chemical reactions. J. Phys. Chem. 81:2340. [doi:10.1021/j100540a008](https://doi.org/10.1021/j100540a008)
 * Gillespie D.T. 2001. Approximate accelerated stochastic simulation of chemically reacting systems. J. Chem. Phys. 115:1716-1733. [doi:10.1063/1.1378322](https://doi.org/10.1063/1.1378322)
 * Gillespie D.T. 2007. Stochastic simulation of chemical kinetics. Annu. Rev. Chem. 58:35 [doi:10.1146/annurev.physchem.58.032806.104637](https://doi.org/10.1146/annurev.physchem.58.032806.104637)
 * Kot M. 2001. Elements of mathematical ecology. Cambridge University Press. [doi:10.1017/CBO9780511608520](https://doi.org/10.1017/CBO9780511608520)
 * Pineda-Krch M. 2008. Implementing the stochastic simulation algorithm in R. Journal of Statistical Software 25(12): 1-18. [doi: 	10.18637/jss.v025.i12](https://doi.org/10.18637/jss.v025.i12)
 * Pineda-Krch M., Blok H.J., Dieckmann U., and Doebeli M. 2007. A tale of two cycles --- distinguishing quasi-cycles and limit cycles in finite predator-prey populations. Oikos 116:53-64. [doi:10.1111/j.2006.0030-1299.14940.x](https://doi.org/10.1111/j.2006.0030-1299.14940.x)

Owner

  • Name: Robrecht Cannoodt
  • Login: rcannood
  • Kind: user
  • Location: Ghent, Belgium
  • Company: Data Intuitive

Data science engineer at Data Intuitive.

GitHub Events

Total
Last Year

Committers

Last synced: over 1 year ago

All Time
  • Total Commits: 85
  • Total Committers: 3
  • Avg Commits per committer: 28.333
  • Development Distribution Score (DDS): 0.094
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Robrecht Cannoodt r****d@g****m 77
Mario Pineda-Krch m****a@u****u 7
Mario Pineda-Krch m****a@m****a 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: over 1 year ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • cran 446 last-month
  • Total docker downloads: 43,390
  • Total dependent packages: 2
  • Total dependent repositories: 4
  • Total versions: 11
  • Total maintainers: 1
cran.r-project.org: GillespieSSA

Gillespie's Stochastic Simulation Algorithm (SSA)

  • Versions: 11
  • Dependent Packages: 2
  • Dependent Repositories: 4
  • Downloads: 446 Last month
  • Docker Downloads: 43,390
Rankings
Docker downloads count: 0.6%
Dependent packages count: 13.7%
Dependent repos count: 14.6%
Average: 19.3%
Stargazers count: 27.8%
Forks count: 27.8%
Downloads: 31.1%
Maintainers (1)
Last synced: 11 months ago

Dependencies

DESCRIPTION cran
  • R >= 2.0.0 depends
  • grDevices * imports
  • graphics * imports
  • methods * imports
  • stats * imports
  • utils * imports
  • knitr * suggests
  • rmarkdown * suggests
  • testthat * suggests