Package phase
Class PbwtPhaseIbs
- java.lang.Object
-
- phase.PbwtPhaseIbs
-
- All Implemented Interfaces:
PhaseIbs
public final class PbwtPhaseIbs extends java.lang.Object implements PhaseIbs
Class
PbwtPhaseIBSuses the Positional Burrows-Wheeler Transform (PBWT) to find long IBS haplotypes for each sample that contain a specified small genomic interval.Instances of class
PBWTare thread-safe.Reference: Durbin, R. 2014. Bioinformatics 30(9):1266–1272. doi:10.1093/bioinformatics/btu014
-
-
Constructor Summary
Constructors Constructor Description PbwtPhaseIbs(PhaseData phaseData, boolean useBwd)Constructs a newPbwtPhaseIBSinstance from the specified data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddIbsHaps(int hap, int step, PhaseStates phaseStates)Adds haplotypes that are IBS with the specified haplotype to the HMM state space.PhaseDataphaseData()Returns the input data for the next phase update.
-
-
-
Constructor Detail
-
PbwtPhaseIbs
public PbwtPhaseIbs(PhaseData phaseData, boolean useBwd)
Constructs a newPbwtPhaseIBSinstance from the specified data.- Parameters:
phaseData- the current input data for genotype phasinguseBwd-trueif reverse order PBWT should be used- Throws:
java.lang.NullPointerException- ifphaseData == null
-
-
Method Detail
-
phaseData
public PhaseData phaseData()
Description copied from interface:PhaseIbsReturns the input data for the next phase update.
-
addIbsHaps
public void addIbsHaps(int hap, int step, PhaseStates phaseStates)Description copied from interface:PhaseIbsAdds haplotypes that are IBS with the specified haplotype to the HMM state space.- Specified by:
addIbsHapsin interfacePhaseIbs- Parameters:
hap- a haplotype indexstep- an index of a genomic intervalphaseStates- the object for constructing the HMM state space
-
-