R: Compute minor allele frequency

minorAllele {adegenet} | R Documentation

## Compute minor allele frequency

### 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

    minorAllele(x)

### Arguments

`x` | a genind object

### Author(s)

Thibaut Jombart t.jombart@imperial.ac.uk

### See Also

`isPoly`

### Examples

    ## 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)

[Package adegenet version 2.1.4 Index]