Package phase
Class LowFreqPhaseIbs
- java.lang.Object
-
- phase.LowFreqPhaseIbs
-
- All Implemented Interfaces:
PhaseIbs
public final class LowFreqPhaseIbs extends java.lang.Object implements PhaseIbs
Class
LowFreqPhaseIbsidentifies haplotypes that share a long IBS segment or a low frequency variant with a specified haplotype in a specified genomic interval.Instances of
LowFreqPhaseIbsare immutable.
-
-
Constructor Summary
Constructors Constructor Description LowFreqPhaseIbs(PhaseData phaseData)Constructs a newLowFreqPhaseIbsobject 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
-
LowFreqPhaseIbs
public LowFreqPhaseIbs(PhaseData phaseData)
Constructs a newLowFreqPhaseIbsobject from the specified data.- Parameters:
phaseData- the current input data for updating genotype phase estimates at high-frequency markers- Throws:
java.lang.IllegalArgumentException- iffpd.hiFreqTargGT().markers().equals(phaseData.targGT().markers()) == falsejava.lang.NullPointerException- iffpd == null || phaseData == 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
-
-