minorAllele: Compute minor allele frequency

Description Usage Arguments Author(s) See Also Examples

View source: R/minorAllele.R

Description

This function computes the minor allele frequency for each locus in a genind object. To test if loci are polymorphic, see the function isPoly.

Usage

1

Arguments

x

a genind object

Author(s)

Thibaut Jombart [email protected]

See Also

isPoly

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 

## LOAD DATA
data(nancycats)

## COMPUTE ALLELE FREQUENCIES
x <- nancycats
apply(tab(x, freq=TRUE),2,mean, na.rm=TRUE)

## GET MINOR ALLELE FREQUENCY
m.freq <- minorAllele(x)
m.freq

## End(Not run)

adegenet documentation built on May 29, 2017, 5:54 p.m.