Package phase
Class Stage2Baum
java.lang.Object
phase.Stage2Baum
Class Stage2Baum
applies the forward and backward algorithms
for a haploid Li and Stephens hidden Markov model at high-frequency markers,
and imputes missing genotypes and heterozygote phase at low-frequency
markers.
Instances of class Stage2Baum
are not thread-safe.
-
Constructor Summary
ConstructorsConstructorDescriptionStage2Baum
(LowFreqPhaseIbs phaseIbs, Stage2Haps stage2Haps) Creates aImputeBaum
instance from the specified data. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the number of target samples.void
phase
(int targSample) Estimates and stores the phased haplotypes for the specified sample.
-
Constructor Details
-
Stage2Baum
Creates aImputeBaum
instance from the specified data.- Parameters:
phaseIbs
- the IBS haplotypesstage2Haps
- an object for storing phased genotypes- Throws:
NullPointerException
- ifphaseIbs == null || stage2Haps == null
-
-
Method Details
-
nTargSamples
public int nTargSamples()Returns the number of target samples.- Returns:
- the number of target samples
-
phase
public void phase(int targSample) Estimates and stores the phased haplotypes for the specified sample.- Parameters:
targSample
- a sample index- Throws:
IndexOutOfBoundsException
- ifsample < 0 || sample >= this.nTargSamples()
-