Methods in Ecology and EvolutionBioinformaticsPeer-reviewed journal article
TiPS: rapidly simulating trajectories and phylogenies from compartmental models
Gonché DaneshiD, Emma SaulnieriD, Olivier GascueliD, Marc ChoisyiD, Samuel AlizoniD
Abstract
We introduce TiPS, an R package to generate trajectories and phylogenetic trees associated with a compartmental model. Trajectories are simulated using Gillespies exact or approximate stochastic simulation algorithm, or a newly-proposed mixed version of the two. Phylogenetic trees are simulated from a trajectory under a backwards-in-time approach (i.e. coalescent). TiPS is based on the Rcpp package, allowing to combine the flexibility of R for model definition and the speed of C++ for simulations execution. The model is defined in R with a set of reactions, which allow capturing heterogeneity in life cycles or any sort of population structure. TiPS converts the model into C++ code and compiles it into a simulator that is interfaced in R via a function. Furthermore, the package allows defining time periods in which the models parameters can take different values. This package is particularly well suited for population genetics and phylodynamics studies that need to generate a large number of phylogenies used for population dynamics studies. This package is available on the CRAN at https://cran.r-project.org/package=TiPS.
- Citations
- 11
- FWCI
- 0.75
- Field percentile
- top 31%
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- PhylSim: A New Phylogenetic Tool for Modeling Trait Evolution and Speciation
P. Spivakovsky, Píetro Lió, Melody Susan Clark·bioRxiv·May 13, 2020
- Efficient pedigree recording for fast population genetics simulation
Jerome Kelleher, Kevin Thornton, … Peter L. Ralph·PLoS Computational BiologyPeer-reviewed·Nov 1, 2018
- ReMASTER: Improved phylodynamic simulation for BEAST 2.7
Timothy G. Vaughan·BioinformaticsPeer-reviewed·Jan 1, 2024
- SimPhy: Phylogenomic Simulation of Gene, Locus and Species Trees
Diego Mallo, Leonardo de Oliveira Martins, David Posada·bioRxiv·Jun 30, 2015
- PhyloCoalSimulations: A simulator for network multispecies coalescent models, including a new extension for the inheritance of gene flow
J. Fogg, E. S. Allman, C. Ane·bioRxiv·Jan 11, 2023
- ipcoal: An interactive Python package for simulating and analyzing genealogies and sequences on a species tree or network
Patrick McKenzie, Deren A. R. Eaton·BioinformaticsPeer-reviewed·May 5, 2020