Last chance! 50% off unlimited learning
Sale ends in
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)
a genind object
Thibaut Jombart t.jombart@imperial.ac.uk
isPoly
if (FALSE) {
## 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
}
Run the code above in your browser using DataLab