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 aPhaseLSBaum
instance from the specified data. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the number of target samples.void
phase
(int sample) Estimates and stores the phased haplotypes for the specified sample
-
Constructor Details
-
PhaseBaum2
Creates aPhaseLSBaum
instance 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:
nTargSamples
in 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:
phase
in interfacePhaseBaum
- Parameters:
sample
- a sample index- Throws:
IndexOutOfBoundsException
- ifsample < 0 || sample >= this.nTargSamples()
-