maf2genoFreq | R Documentation |
Calculate the genotype frequencies at a bi-allelic SNP, from its minor allele frequency, assuming Hardy-Weinberg equilibrium.
maf2genoFreq(maf)
maf |
frequency of the minor allele, a |
vector of genotype frequencies
Timothee Flutre
## Not run: set.seed(1859)
genos <- sample(x=c(0,1,2), size=n, replace=TRUE, prob=maf2genoFreq(maf))
table(genos)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.