Learn R Programming

MasterBayes (version 2.58)

GdataPed: GdataPed Object

Description

An object containing genotype data and the categories over which error rates may vary.

Usage

GdataPed(G, id = NULL, categories = NULL, perlocus=FALSE, marker.type="MSW")

Arguments

G

a list of genotype objects for each locus, or a data.frame to be coerced using genotype.list

id

a vector of individual identifiers associated with each genotype, individuals can have more than one observed genotype. If G is a data.frame to be coerced and has a column name id, this will be used.

categories

an optional vector indicating subsets of genotypes that have different error rates. If G is a data.frame to be coerced and has a column name categories, this will be used.

perlocus

if TRUE different error rates are estimated for each locus

marker.type

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

References

Marshall, T. C. et al (1998) Molecular Ecology 7 5 639-655 Kalinowski S.T. et al (2007) Molecular Ecology 16 5 1099-1106 Hadfield J. D. et al (2009) in prep

See Also

MCMCped

Examples

Run this code
# NOT RUN {
data(WarblerG)
GdP<-GdataPed(WarblerG)
# }

Run the code above in your browser using DataLab