Package imp
Class ImpLSBaum
- java.lang.Object
-
- imp.ImpLSBaum
-
public class ImpLSBaum extends java.lang.Object
Class
ImpLSBaum
implements a Baum hidden Markov model forward and backward algorithms for computing HMM state probabilities at genotyped markers using IBS-matched reference haplotypes.Instances of class
ImpLSBaum
are not thread-safe.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImpData
impData()
Return the input data for genotype imputationStateProbs
impute(int targHap)
Returns HMM state probabilities at genotyped markers for the specified target haplotype.
-
-
-
Method Detail
-
impute
public StateProbs impute(int targHap)
Returns HMM state probabilities at genotyped markers for the specified target haplotype. States with probabilities that are small and inconsequential are excluded from the returned state probabilities.
- Parameters:
targHap
- a target haplotype index- Returns:
- HMM state probabilities at genotyped markers for the specified target haplotype
- Throws:
java.lang.IndexOutOfBoundsException
- iftargHap < 0 || hap >= this.impData().nTargHaps()
-
impData
public ImpData impData()
Return the input data for genotype imputation- Returns:
- the input data for genotype imputation
-
-