Description Usage Arguments Value Examples
Function to compute the minor allele frequency (MAF) of one or more genetic variants.
1 | compute_MAF(genodata)
|
genodata |
Numeric vector or dataframe containing the genetic variants in columns. Must be in allelic coding 0, 1, 2. |
A vector containing the minor allele frequencies of the variants.
1 2 3 4 5 6 7 8 | # Example of a single variant
set.seed(10)
genodata <- stats::rbinom(2000, 2, 0.3)
compute_MAF(genodata)
# Example of a set of variants
genodata <- generate_genodata()
compute_MAF(genodata)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.