Learn R Programming

mlPhaser (version 0.01)

remGeno: Extract haplotype from genotype

Description

Attempts to extract a haplotype from a genotype

Usage

remGeno(haplotype, genotypeList)

Arguments

haplotype
The haplotype to be removed
genotypeList
The genotype in list of lists format.

Value

A list giving the original haplotype extracted (haplotype), a table of TRUE/FALSE for each locus with TRUE if the allele was successfully extracted (passTable), and a list giving the genotype remaining after extraction (remList).

Details

Tries to extract a single haplotype from a compound genotype and return, amongst other things, the remainder genotype.