PopulationSim: Simulate Population

View source: R/PopSims.R

PopulationSimR Documentation

Simulate Population

Description

Simulate population with substructure using Balding-Nichols model.

Usage

PopulationSim(sites, thetak, pthresh = 0.1, beta = 1)

Arguments

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.

Value

A matrix of allele frequencies in ancestral subpopulations.

See Also

HapdipPedigreeSim()

Examples

PopulationSim(1000,c(0.05,0.15,0.25))

YenWenWang/HapDipKinship documentation built on Jan. 20, 2025, 10:09 a.m.