recurseHaplos: Recurse to get haplo groups

Description Usage Arguments Details Value

Description

Recursive function to extract valid groups of haplotypes explaining a genotype

Usage

1
  recurseHaplos(validHaplotypes, remGenotype, group)

Arguments

validHaplotypes

A list of haplotypes to choose from

remGenotype

The remaining part of the genotype

group

The valid group to this point.

Details

This recursive function subtracts haplotypes from a genotypes to find 'groups' of haplotypes that can fully explain a genotype. To make the function general and cope with ploidy > 2, I made it recursive. It will keep going until it has run out of genotype and/or it has run out of valid haplotypes. This should probably stay as an internal function because of its recursive nature. N.B. requires access to a globally accessible storage variable: validHaploGroups

Value

NULL. N.B. requires access to a globally accessible storage variable: validHaploGroups


mlPhaser documentation built on May 2, 2019, 7:59 a.m.