Package phase
Class PhaseBaum2
java.lang.Object
phase.PhaseBaum2
- All Implemented Interfaces:
PhaseBaum
Interface PhaseBaum2 updates the estimated genotype phase
of specified samples.
Instances of class PhaseBaum2 are not thread-safe.
-
Constructor Summary
ConstructorsConstructorDescriptionPhaseBaum2(PbwtPhaseIbs phaseIbs) Creates aPhaseLSBauminstance from the specified data. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the number of target samples.voidphase(int sample) Estimates and stores the phased haplotypes for the specified sample
-
Constructor Details
-
PhaseBaum2
Creates aPhaseLSBauminstance from the specified data.- Parameters:
phaseIbs- the IBS haplotype segments- Throws:
NullPointerException- ifphaseIBS == null
-
-
Method Details
-
nTargSamples
public int nTargSamples()Returns the number of target samples.- Specified by:
nTargSamplesin interfacePhaseBaum- Returns:
- the number of target samples
-
phase
public void phase(int sample) Estimates and stores the phased haplotypes for the specified sample- Specified by:
phasein interfacePhaseBaum- Parameters:
sample- a sample index- Throws:
IndexOutOfBoundsException- ifsample < 0 || sample >= this.nTargSamples()
-