| .maf | R Documentation |
Calculates the minor allele frequency (MAF) for a single SNP coded as: 0 = AA, 1 = AB, 2 = BB, and 9 = missing.
.maf(snp)
snp |
A numeric vector of genotypes for one SNP. Values must be 0, 1, 2, or 9 (missing). |
A single numeric value: the minor allele frequency (MAF).
snp_data <- c(0, 0, 1, 2, 2, 9)
.maf(snp_data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.