Learn R Programming

⚠️There's a newer version (0.7.2) of this package.Take me there.

coala (version 0.2.1)

A Framework for Coalescent Simulation

Description

Coalescent simulators can rapidly simulate biological sequences evolving according to a given model of evolution. You can use this package to specify such models, to conduct the simulations and to calculate additional statistics from the results. It relies on existing simulators for doing the simulation, and currently supports the programs 'ms', 'msms' and 'scrm'. It also supports finite-sites mutation models by combining the simulators with the program 'seq-gen'.

Copy Link

Version

Install

install.packages('coala')

Monthly Downloads

657

Version

0.2.1

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Paul Staab

Last Published

November 17th, 2015

Functions in coala (0.2.1)

create_segsites

Segregating Sites
activate_msms

Use the simulator msms
activate_ms

Use the simulator ms
feat_outgroup

Adds an outgroup to a demographic model
calc_sumstats_from_data

Calculate summary statistics for biological data
feat_mutation

Feature: Mutation
feat_pop_merge

Feature: Population Merge
activate_seqgen

Use seq-gen for simulating finite sites mutation models
conv_to_ms_arg.growth

Generate command line arguments for features
par_zero_inflation

Zero inflation for Parameters
get_outgroup

Getters for coalescent models
coala-package

A Framework for Coalescent Simulation in R
feat_size_change

Adds an instantaneous change of the population size of one population to a model.
sumstat_class

Base Class for Summary Statistics
+.coalmodel

Add a feature or parameter to a model
feat_unphased

Feature: Unphased
sumstat_four_gamete

A Summary Statistic based on the Four-Gamete-Condition
sumstat_omega

Calculates the Omega Statistic from Simulations
scale_model

Function that downscales a coalescent model
simulate.coalmodel

Simulates data according to a demographic model
list_simulators

Returns the available simulators
sumstat_ihh

Integrated Extended Haplotype Homozygosity
feat_growth

Adds an exponential growth or decline of the size of one population to a model.
locus_single

Add one locus or multiple loci to a Model
sumstat_nucleotide_div

Calculates the Nucleodite Diversity Pi
feat_sample

Creates a feature that represents the sampling from one population
create_locus_trio

Combines three segregating sites to a locus trio
sumstat_trees

Returns ancestral tress in NEWICK format from simulations
check_model

Check which simulator can simulate a model
par_variation

Let the parameter values vary between different loci
locus_trio

Adds a trio of loci to a group
search_executable

Search the working directory and the run path for an executable
par_expr

Define Model parameters
sumstat_jsfs

Calculates the Joint Site Frequency Spectrum from simulations
sumstat_tajimas_d

Tajima's D
coal_model

Creates a coalescent model
sumstat_file

Returns files with the raw results of simulations
sumstat_sfs

Calculates the Site Frequency Spectrum from simulations
sumstat_dna

Returns the Segregation Sites Statistics from simulations
sumstat_seg_sites

Returns the Segregation Sites Statistics from simulations
calc_jsfs

Calculates the JSFS for two populations
feat_selection

Adds positive selection to a model
sumstat_mcmf

The MCMF Summary Statistic
feat_recombination

Feature: Recombination
feat_migration

Add migration/gene flow between two populations to a demographic model