Package phase
Class PhaseBaum1
- java.lang.Object
-
- phase.PhaseBaum1
-
public class PhaseBaum1 extends java.lang.ObjectClass
PhaseBaum1implements the forward and backward algorithms for a haploid Li and Stephens hidden Markov model.Instances of class
PhaseBaum1are not thread-safe.
-
-
Constructor Summary
Constructors Constructor Description PhaseBaum1(PhaseIbs phaseIbs)Creates aPhaseLSBauminstance from the specified data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intnTargSamples()Returns the number of target samples.voidphase(int sample)Estimates and stores the phased haplotypes for the specified sample
-
-
-
Constructor Detail
-
PhaseBaum1
public PhaseBaum1(PhaseIbs phaseIbs)
Creates aPhaseLSBauminstance from the specified data.- Parameters:
phaseIbs- the IBS haplotype segments- Throws:
java.lang.NullPointerException- ifphaseIBS == null
-
-
Method Detail
-
nTargSamples
public int nTargSamples()
Returns the number of target samples.- Returns:
- the number of target samples
-
phase
public void phase(int sample)
Estimates and stores the phased haplotypes for the specified sample- Parameters:
sample- a sample index- Throws:
java.lang.IndexOutOfBoundsException- ifsample < 0 || sample >= this.nTargSamples()
-
-