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.
Constructor | Description |
---|---|
ImpLSBaum(ImpData impData,
ImpIbs ibsHaps) |
Creates a
LSHapBaum instance from the specified data. |
Modifier and Type | Method | Description |
---|---|---|
ImpData |
impData() |
Return the input data for genotype imputation
|
StateProbs |
impute(int targHap) |
Returns HMM state probabilities at genotyped markers for the
specified target haplotype.
|
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.
targHap
- a target haplotype indexjava.lang.IndexOutOfBoundsException
- if
targHap < 0 || hap >= this.impData().nTargHaps()
public ImpData impData()