Learn R Programming

mlPhaser (version 0.01)

listValidHaplotypes: List valid haplotypes

Description

Select valid haplotypes (from a list) for a genotype

Usage

listValidHaplotypes(genotype, haplotypes, ploidy = 2)

Arguments

genotype
The genotype. Can be in data.frame or list of list format.
haplotypes
The haplotypes. Can be in data.frame or list of lists format.
ploidy
How many alleles per locus. Default=2.

Value

A list of valid haplotypes (each as a list).

Details

Tests a set of haplotypes against a genotype to see if they are contained within.