An R package for the Monte Carlo simulation of sequence evolution
R
Clone or download
carview.php?tsp= Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
carview.php?tsp= PAMLdat Added ECM PAML dat files. Jan 6, 2014
carview.php?tsp= RData Relaoded empirical models. Jan 7, 2014
carview.php?tsp= cons_test Added consistency test results for the .Internal-less code. Feb 6, 2012
carview.php?tsp= examples Added example for ToleranceSubstitution. Apr 25, 2014
carview.php?tsp= misc Added script to recreate empirical codon models. Jan 6, 2014
carview.php?tsp= pkg DESCRIPTION update. Apr 25, 2014
carview.php?tsp= .gitignore * .gitignore update. Oct 27, 2010
carview.php?tsp= Alphabet.R Documentation read-through for Alphabet class Oct 8, 2010
carview.php?tsp= AminoAcidMatrices.R Class documentation read-through for AminoAcidMatrices.R Oct 8, 2010
carview.php?tsp= AminoAcidSubst.R Fixed PAMLdat path. Jan 6, 2014
carview.php?tsp= BinarySubst.R Class documentation read-through for BinarySubst.R Oct 8, 2010
carview.php?tsp= BrownianInsertor.R Fixed example line lengths. Jun 12, 2013
carview.php?tsp= COPYING Initial git commit. May 27, 2009
carview.php?tsp= COPYLEFT Added GPL v3 file. May 27, 2009
carview.php?tsp= CodonAlphabet.R CodonAlphabet is now ordered by the translation table - standard code Jan 6, 2014
carview.php?tsp= CodonModels.R Fix to decrease the runtime of the GY94 example. Mar 20, 2013
carview.php?tsp= CodonSubst.R Doc fix. Jan 6, 2014
carview.php?tsp= ContinuousDeletor.R Class documentation read-through for ContinuousDeletor.R Oct 8, 2010
carview.php?tsp= ContinuousInsertor.R Class documentation read-through for ContinuousInsertor.R Oct 8, 2010
carview.php?tsp= DiscreteDeletor.R Class documentation read-through for DiscreteDeletor.R Oct 8, 2010
carview.php?tsp= DiscreteInsertor.R Class documentation read-through for DiscreteInsertor.R Oct 8, 2010
carview.php?tsp= EmpiricalCodonMatrices.R Added classes handling empirical codon models. Jan 6, 2014
carview.php?tsp= Event.R Fixed example line lengths. Jun 12, 2013
carview.php?tsp= FieldDeletor.R Removed explicit loading of the compoisson package. Jan 7, 2014
carview.php?tsp= GeneralInDel.R Fixed example line lengths. Jun 12, 2013
carview.php?tsp= GeneralSubstitution.R Added accept/reject handling to substitution processes. May 6, 2014
carview.php?tsp= Makefile Version 3.0.0 Apr 25, 2014
carview.php?tsp= NucleotideModels.R Class documentation read-through for NucleotideModels.R Oct 8, 2010
carview.php?tsp= PSRoot.R updated get<ethodsList.PSRoot in order to be compatible with upcoming Dec 3, 2012
carview.php?tsp= PhyloSim.R Added accept/reject handling to substitution processes. May 6, 2014
carview.php?tsp= PopularAlphabets.R Class documentation read-through for PopularAlphabets.R Oct 8, 2010
carview.php?tsp= PopularSequences.R Removed scaleWithOmega. Oct 11, 2010
carview.php?tsp= Process.R Removed clone.PSRoot, using clone.Object instead. Jan 31, 2012
carview.php?tsp= QMatrix.R Class documentation read-through for QMatrix.R Oct 8, 2010
carview.php?tsp= README.md Added GSR link. Apr 30, 2013
carview.php?tsp= Sequence.R Fixed example line lengths. Jun 12, 2013
carview.php?tsp= Site.R * Simplified cumulative rate calculation. Oct 13, 2010
carview.php?tsp= ToleranceSubstitution.R Added Rd for ToleranceSubstitution. Apr 25, 2014

README.md

Gillespie algorithm

PhyloSim

PhyloSim is an extensible object-oriented framework for the Monte Carlo simulation of sequence evolution written in 100 percent R. It is built on the top of the R.oo and ape packages and uses the Gillespie algorithm to simulate substitutions, insertions and deletions.

PhyloSim was brought to you by the Goldman group from EMBL-EBI.

Catalogued on GSR

Publication

Botond Sipos, Tim Massingham, Gregory E Jordan and Nick Goldman (2011) PhyloSim - Monte Carlo simulation of sequence evolution in the R statistical computing environment - BMC Bioinformatics 12:104 doi:10.1186/1471-2105-12-104

Download an install

The released packages are available from CRAN.

Key features

  • Simulation of the evolution of a set of discrete characters with arbitrary states evolving by a continuous-time Markov process with an arbitrary rate matrix.

  • Explicit implementations of the most popular substitution models (nucleotide, amino acid and codon substitution models).

  • Simulation under the popular models of among-sites rate variation, like the gamma (+G) and invariant sites plus gamma (+I+G) models.

  • The possibility to simulate under arbitrarily complex patterns of among-sites rate variation by setting the site specific rates according to any R expression.

  • Simulation of one or more separate insertion and/or deletion processes acting on the sequences and which sample the insertion/deletion length from an arbitrary discrete distribution or an R expression (so all the probability distributions implemented in R are readily available for this purpose).

  • Simulation of the effects of variable functional constraints over the sites by site-process specific insertion and deletion tolerance parameters which determine the rejection probability of a proposed insertion/deletion.

  • The possibility of having a different set of processes and site-process specific parameters for every site, which allows for an arbitrary number of partitions in the simulated data.

  • The possibility to evolve sites by a combination of substitution processes along a single branch.

  • Simulation of heterotachy and other cases of non-homogeneous evolution by allowing the user to set "node hook" functions altering the site properties at internal nodes.

  • The possibility to export the counts of various events ("branch statistics") as phylo objects (see the man page of exportStatTree.PhyloSim).

  • See the man page of the PhyloSim class and the package vignette for more features and examples.

Building from source

The package can be built from the source by issuing make pack on a *nix system. The building process need the standard unix tools, Perl and R with the ape, R.oo, ggplot2 and compoisson packages installed.