maf: Minor Allele Frequencies

Description Usage Arguments Value Author(s) See Also Examples

View source: R/maf.R

Description

Calculate minor allele frequencies for each locus.

Usage

1
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

1
2
3
4
5
6
7
8
9
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)

strataG documentation built on Feb. 28, 2020, 9:07 a.m.