minorAllele: Compute minor allele frequency

Description Usage Arguments Author(s) See Also Examples

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)


Search within the adegenet package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.