View source: R/fonctionsSimul.R
gen.simuSampleFreq | R Documentation |
Returns the number of alleles transmitted to specified probands from ancestors
gen.simuSampleFreq( gen, pro, ancestors, stateAncestors, simulNo = "5000")
gen |
An object of class GLgen obtained with gen.genealogy, gen.lineages or gen.branching. Required. |
pro |
Vector of proband id numbers to be included. Required. |
ancestors |
Vector of ancestors id numbers to be included. Required. |
stateAncestors |
Required vector indicating, for each ancestor in ancestors, the genotype state: 0 = no disease allele present 1 = 1 disease allele present 2 = 2 disease alleles present |
simulNo |
Number of simulations to perform. Default is 5000. |
A data frame containing for each row (one row per proband): Alleles.transmitted.0 Alleles.transmitted.1 Alleles.transmitted.2
gen.genealogy
gen.simuProb
gen.simuSet
gen.simuSample
data(geneaJi)
genJi<-gen.genealogy(geneaJi)
gen.simuSampleFreq(genJi, pro=c(1,29), ancestors=c(20,25),stateAncestors=c(2,1), simulNo = 1000)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.