Coal.Theta.Sim: Coal.Theta.Sim: function to simulate a vector (k.vec) of...

View source: R/Coal.Theta.Sim.R

Coal.Theta.SimR Documentation

Coal.Theta.Sim: function to simulate a vector (k.vec) of mutation counts given a vector of locus lengths (l.vec), vector of sample numbers (n.vec)

Description

This function returns k.vec, l.vec, n.vec from simulating under the coalescent model, with the results written to 'out.file'

Usage

Coal.Theta.Sim(theta, n.vec, l.vec, num.loci)

Arguments

theta

Population size parameter theta

num.loci

Number of loci to simulate

n.list

List containing the number of samples for each locus

l.list

List containing the number of samples for each locus

Examples

Sim.Results <- Coal.Sim(theta = 0.01, n.vec = c(10,10,10), l.vec = c(100,100,100), num.loci = 3)

Returns:
k.vec = # of mutations for each unique data pattern
n.vec = # of samples for each unique data pattern
l.vec = # of sites for each unique data pattern
c.vec = # of counts of each unique data pattern

radamsRHA/ThetaMater documentation built on April 25, 2024, 10:11 a.m.