Package phase
Class PhaseLS
- java.lang.Object
-
- phase.PhaseLS
-
public class PhaseLS extends java.lang.ObjectClass
PhaseLSestimated genotypes phase using a haploid Li and Stephens hidden Markov model. It uses a rolling window of reference haplotypes for phasing each sample.Instances of class
PhaseLSare not thread-safe.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidrun(PhaseData phaseData, EstPhase estPhase, Regress recombRegress)Estimates and stores phased haplotypes for the target samples.
-
-
-
Method Detail
-
run
public static void run(PhaseData phaseData, EstPhase estPhase, Regress recombRegress)
Estimates and stores phased haplotypes for the target samples. The returned haplotypes are ordered by increasing sample index.- Parameters:
phaseData- the input data for an iteration of genotype phasingestPhase- the estimated sample phaserecombRegress- used for regression of state-switch probability on inter-marker genetic distance- Throws:
java.lang.IllegalArgumentException- ifnItsRemaining < 1java.lang.NullPointerException- if any parameter isnullor if any element ofphaseisnull
-
-