maf | R Documentation |
Calculate minor allele frequencies for each locus.
maf(g, by.strata = FALSE, maf.within = FALSE)
g |
a gtypes object. |
by.strata |
logical - return results grouped by strata? |
maf.within |
if |
A vector or matrix of minor allele frequencies at each locus.
Eric Archer eric.archer@noaa.gov
alleleFreqs
data(msats.g)
maf(msats.g)
# minor allele identified from all indivudals
maf(msats.g, by.strata = TRUE)
# minor allele identified within each strata
maf(msats.g, by.strata = TRUE, maf.within = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.