correctStretches {ABHgenotypeR} | R Documentation |
Correct short miscalled stretches based on flanking alleles.
correctStretches(inputGenos = "genotypes", maxHapLength = 1)
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. |
A genotype object in which short miscalled stretches are corrected if both flanking alleles match.
## Not run: corrStretchGenos <- correctStretches(genotypes, maxHapLength = 3)