breedFst {relSim} | R Documentation |
Breed a population with an approximate level of
(
)
Description
This function simulates a population with an approximate level of population substructure. This is achieved by subdividing a population into equal sized subpopulations and allowing them to breed within themselves for
generations, where is
the number of individuals in each subpopulation. This will produce a
population with an estimated coancestry coefficient approximately equal to
Usage
breedFst(Freqs, theta = 0.01, N = 10000, ns = 10, DNAtools = FALSE)
Arguments
Freqs |
A list with an element, |
theta |
A desired level of inbreeding, where |
N |
Total population size |
ns |
The number of subpopulations. |
DNAtools |
If |
Value
An object of class 'population' which is a list with the following elements
-
profiles
- a vector of profiles where the level of inbreeding is approximately equal to -
nProfiles
- the total number of individuals in the population -
nSubpops
- the number of sub-populations in the population -
nLoci
- the number of loci each individual is typed at -
theta
- the desired level of substructure in the population. The actual value will be near to this. -
Freqs
- a Freq object representing the ancestral frequencies of the population
Author(s)
James M. Curran
Examples
data(USCaucs)
pop = breedFst(USCaucs)