Learn R Programming

pedtricks (version 0.4.2)

extractA: Allele Frequencies

Description

Extracts allele frequencies from genotype data

Usage

extractA(G, marker.type = "MSW")

Value

list of allele frequencies at each loci

Arguments

G

data frame or list of genotype objects

marker.type

"MSW" or "MSC" for co-dominant markers with Wang's (2004) model of genotyping error or CERVUS's model of genotyping error (Marshall, 1998) or "AFLP" for dominant markers.

Author

Jarrod Hadfield j.hadfield@ed.ac.uk

Examples

Run this code
# \donttest{
data(WarblerG)

A <- extractA(WarblerG)
A[[1]]
# }

Run the code above in your browser using DataLab