maf: Minor Allele Frequencies

View source: R/maf.R

mafR Documentation

Minor Allele Frequencies

Description

Calculate minor allele frequencies for each locus.

Usage

maf(g, by.strata = FALSE, maf.within = FALSE)

Arguments

g

a gtypes object.

by.strata

logical - return results grouped by strata?

maf.within

if by.strata = TRUE, identify minor allele within each strata independently? If FALSE minor allele is identified from all individuals.

Value

A vector or matrix of minor allele frequencies at each locus.

Author(s)

Eric Archer eric.archer@noaa.gov

See Also

alleleFreqs

Examples

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)


EricArcher/strataG documentation built on Feb. 12, 2023, 4:11 a.m.