PopulationSim | R Documentation |
Simulate population with substructure using Balding-Nichols model.
PopulationSim(sites, thetak, pthresh = 0.1, beta = 1)
sites |
Number of sites simulated. |
thetak |
An x-length vector of Fsts for x ancestral subpopulations (ancestral subpopulations vs total ancestral population). |
pthresh |
A threshold to avoid low frequency SNPs. 0.1 if not provided. |
beta |
Shape parameter for beta distribution for simulating original allele frequency. 1 if not provided. |
A matrix of allele frequencies in ancestral subpopulations.
HapdipPedigreeSim()
PopulationSim(1000,c(0.05,0.15,0.25))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.