MasterBayes (version 2.55)

genotype.list: Genotype Objects for all Loci

Description

Creates a list of genotype objects from a matrix or data.frame of multilocus genotypes.

Usage

genotype.list(G, marker.type="MSW")

Arguments

G

matrix or data.frame of multilocus genotypes with individuals down the rows and loci across columns. Adjacent columns are taken to be the same 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).

Value

list of genotype objects for all loci

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

genotype

Examples

Run this code
# NOT RUN {
  data(WarblerG)

  G<-genotype.list(WarblerG[,-1])
  summary(G[[1]])
# }

Run the code above in your browser using DataLab