Compute minor allele frequency

Share:

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 t.jombart@imperial.ac.uk

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)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.