public class ConsensusPhaser
extends java.lang.Object
ConsensusPhaser
contains a static method for
calculating a consensus phasing from multiple estimated haplotype pairs
for an individual.Modifier and Type | Method and Description |
---|---|
static java.util.List<HapPair> |
run(java.util.List<HapPair> hapPairs)
Returns a list of consensus haplotype pairs (one pair per individual)
sorted in order of increasing sample index.
|
public static java.util.List<HapPair> run(java.util.List<HapPair> hapPairs)
hapPairs
- a list of haplotype pairsjava.lang.IllegalArgumentException
- if
(hapPairs.get(j).markers().equals(hapPairs.get(k).markers() == false)
for any j, k
satisfying 0 <= j < k < hapPairs.size()
java.lang.IllegalArgumentException
- if
(hapPairs.get(j).samples().equals(hapPairs.get(k).samples() == false)
for any j, k
satisfying 0 <= j < k < hapPairs.size()
java.lang.NullPointerException
- if hapPairs == null