Learn R Programming

mlPhaser (version 0.01)

reduceRedundantList: Remove redundant haplotype groups

Description

Removes redundant groups of haplotypes from a common list.

Usage

reduceRedundantList(startList)

Arguments

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

Value

A list of haplotype groups but each group is unique.

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.