consensus: Identify the consensus genotype call among a group of samples

Description Usage Arguments Details Value

Description

Identify the consensus genotype call among a group of samples

Usage

1
consensus(gty, nas.allowed = 0, ...)

Arguments

gty

a genotypes object

nas.allowed

maximum proportion of missing genotypes to ignore

...

ignored

Details

Define the "consensus" genotype to be the genotype with greatest frequency among a group of samples, with ties broken in favor of the major allele. This function computes that consensus ignoring missing values, and then masks sites with missingness greater than nas.allowed.

Value

a named vector of consensus genotypes, with length equal to number of rows in gty


andrewparkermorgan/argyle documentation built on May 10, 2019, 11:08 a.m.