correctUndercalledHets {ABHgenotypeR}R Documentation

Correct undercalled heterozygous sites based on flanking alleles.

Description

Correct undercalled heterozygous sites based on flanking alleles.

Usage

correctUndercalledHets(inputGenos = "genotypes", maxHapLength = 1)

Arguments

inputGenos

A genotypes list object.

maxHapLength

The maximum length of not heterozygous stretches flanked by heterzygous sites that are changed to heterozygous. If set to 1 (default) only HAH or HBH will be corrected. If set to 2, both HAH and HAAH (or HBH and HBBH) will be corrected.

Value

A genotype object in which undercalled heterozygous sites are corrected if both flanking alleles match.

Examples

## Not run: corrUndHetsGenos <- correctUndercalledHets(genotypes, maxHapLength = 3)

[Package ABHgenotypeR version 1.0.1 Index]