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
consensusG(GdP, cat.levels=NULL, gmax=FALSE, het=FALSE)
a GdataPed
object
order of genotyping error rate categories, with most reliable category first
logical; if a most represented genotype exists should it be saved
logical; should heterozygotes be saved over homozygotes - overrides cat.levels
a GdataPed
object