minorAllele | R Documentation |
This function computes the minor allele frequency for each locus in a genind object. To test if loci are polymorphic, see the function isPoly
.
minorAllele(x)
x |
a genind object |
Thibaut Jombart t.jombart@imperial.ac.uk
isPoly
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.