HapdipPedigreeSim | R Documentation |
Simulate a haplodiploidy population pedigree and calculate kinships from a few subpopulations
HapdipPedigreeSim(
ancestrygenomatrix,
pedigree,
ancestry = NA,
ancestryprop = NA
)
ancestrygenomatrix |
A matrix of allele frequencies in ancestral subpopulations. |
pedigree |
A data frame describing the simulation of a pedigree. See pedigree. |
ancestry |
A matrix including dirichlet params for the admixture of ancestral subpopulations. Rows denote ancestral subpopulations. Columns denote different admixture schemes. |
ancestryprop |
A vector with the length of number of column of ancestry denoting the probability of drawing individuals from each admixed populations. Average sampling if none give. |
Kinships of PairsOfInterest from simulated populations.
PopulationSim()
,
kinship()
ancestrygenomatrix<-PopulationSim(1000,c(0.05,0.15,0.25))
ancestry<-matrix(c(6,2,0.3,2,6,0.3),nrow=3)
HapdipPedigreeSim(ancestrygenomatrix,pedigree,ancestry)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.