public class StateProbsFactory
extends java.lang.Object
Class StateProbsFactory stores HMM state probabilities
that that can be used to imputed impute missing HMM state probabilities
using linear interpolation.
Instances of class StateProbsFactory are not thread-safe.
| Constructor | Description |
|---|---|
StateProbsFactory(int nTargMarkers) |
Creates an
StateProbsFactory instance from the specified data. |
| Modifier and Type | Method | Description |
|---|---|---|
int |
nTargMarkers() |
Returns the number of target marker.
|
StateProbs |
stateProbs(int targHap,
int nStates,
int[][] hapIndices,
float[][] stateProbs) |
Stores the reference haplotypes and state probabilities that
will be used to imputed missing state probabilities using linear
interpolation.
|
public StateProbsFactory(int nTargMarkers)
StateProbsFactory instance from the specified data.nTargMarkers - the number of target markersjava.lang.IllegalArgumentException - if nTargMarkers <= 0public int nTargMarkers()
public StateProbs stateProbs(int targHap, int nStates, int[][] hapIndices, float[][] stateProbs)
Math.min(0.005f, 1.0f/nStates), then the reference haplotype,
the state probability at the marker, and the state probability at
the succeeding marker are stored.targHap - a target data haplotype indexnStates - the number of HMM states at each markerhapIndices - the reference haplotype indices corresponding to
each state at each markerstateProbs - the HMM state probabilities at each markerjava.lang.IllegalArgumentException - if
hapIndices.length != this.nTargMarkers()java.lang.IllegalArgumentException - if
stateProbs.length != this.nTargMarkers()java.lang.IndexOutOfBoundsException - if there exists j satisfying
(0 <= j && j <= this.nTargMarkers()) such that
(hapIndices[j].length < nStates || stateProbs[j].length < nStates)java.lang.NullPointerException - if
hapIndices == null || stateProbs == nulljava.lang.NullPointerException - if there exists j satisfying
(0 <= j && j <= this.nTargMarkers()) such that
(hapIndices[j] == null || stateProbs[j] == null)