Learn R Programming

ABHgenotypeR (version 1.0.1)

correctStretches: Correct short miscalled stretches based on flanking alleles.

Description

Correct short miscalled stretches based on flanking alleles.

Usage

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

Arguments

inputGenos
A genotypes list object.
maxHapLength
The maximum length of stretches flanked by non-heterzygous sites that are changed. If set to 1 (default) only AXA or BXB will be corrected. If set to 2, both AXA and AXYA (or BXB and BXYB) will be corrected.

Value

A genotype object in which short miscalled stretches are corrected if both flanking alleles match.

Examples

Run this code
## Not run: corrStretchGenos <- correctStretches(genotypes, maxHapLength = 3)

Run the code above in your browser using DataLab