Learn R Programming

MasterBayes (version 2.58)

consensusG: Obtains a consensus genotype from duplicate samples

Description

A function for obtaining a consensus genotype from duplicate samples. The amount of missing data is minimised, and preference is given to samples with lower genotyping error

Usage

consensusG(GdP, cat.levels=NULL, gmax=FALSE, het=FALSE)

Arguments

GdP

a GdataPed object

cat.levels

order of genotyping error rate categories, with most reliable category first

gmax

logical; if a most represented genotype exists should it be saved

het

logical; should heterozygotes be saved over homozygotes - overrides cat.levels

Value

GdP

a GdataPed object

See Also

GdataPed