View source: R/Coal.Theta.Sim.File.R
Coal.Theta.Sim.File | 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.File(theta, n.vec, l.vec, num.loci, out.file)
theta |
Population size parameter theta |
num.loci |
Number of loci to simulate |
out.file |
Outfile to write in alleles format |
n.list |
List containing the number of samples for each locus |
l.list |
List containing the number of samples for each locus |
example.data <- Coal.Theta.Sim.File(theta = 0.017, n.vec = c(5,7), l.vec = c(1,1), num.loci = 100, out.file = '~/Desktop/example.alleles')
Coal.Theta.Sim.File 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.