View source: R/Coal.Theta.Sim.R
Coal.Theta.Sim | R Documentation |
This function returns k.vec, l.vec, n.vec from simulating under the coalescent model, with the results written to 'out.file'
Coal.Theta.Sim(theta, n.vec, l.vec, num.loci)
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 |
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.