reduceRedundantList: Remove redundant haplotype groups

Description Usage Arguments Details Value

Description

Removes redundant groups of haplotypes from a common list.

Usage

1
  reduceRedundantList(startList)

Arguments

startList

A list of haplotype groups (each is a list of haplotypes).

Details

The recursive method recurseHaplos of finding groups of consistent haplotypes does not differentiate, re-arranged versions of the same set. e.g. keeps aaa/bbb AND bbb/aaa. This function removes that redundancy from the results. uses the length of intersect to determine if two lists contain all the same elements.

Value

A list of haplotype groups but each group is unique.


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