simulate.tree: simulate.tree

Description Usage Arguments Author(s)

View source: R/simulate_trees.R

Description

Simulates genealogies under the coalescent

Usage

1
2
3
4
## S3 method for class 'tree'
simulate(n = 10, N = 1, sampling = "iso",
  args = "-T -G 0.1", Ne = 1, max = 1, simulator = NULL,
  sample = NULL, ...)

Arguments

n

Number of samples

N

Number of genealogies or trees

sampling

It can take two values: iso or hetero. If the sampling scheme is (iso) it generates an isochronous genealogy (all samples at time 0). Otherwise, it assumes it is heterochronous sampling.If hetero, you need to specify samples

args

String of characters for ms

Ne

The standard is set to 1. It takes any function as input for the demographic model

max

(optional) for thinning simulator. It is an upper bound on 1/Ne

simulator

It can either be null, ms or thinning. If null, it uses ape rcoal.

sample

It takes a matrix of two columns. The first column inciates the number of samples and the second column the sampling times

Author(s)

Julia Palacios julia.pal.r@gmail.com


georgeshirreff/multiNe documentation built on May 17, 2019, 1:15 a.m.