View source: R/generate_data.R
GenGeno | R Documentation |
Generates genotypes in linkage equilibrium with accompanying annotations.
GenGeno(n, snps, maf_range = c(0.001, 0.005), prop_anno = c(0.5, 0.4, 0.1))
n |
Sample size. |
snps |
Number of SNP in the gene. |
maf_range |
Range of minor allele frequencies: c(MIN, MAX). |
prop_anno |
Proportions of annotations in each category. Length should equal the number of annotation categories. Default of c(0.5, 0.4, 0.1) is based on the approximate empirical frequencies of BMVs, DMVs, and PTVs. |
List containing the (n x snps) genotype matrix "geno" and the (snps x 1) annotation vector "anno".
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.