public final class ImpIbs
extends java.lang.Object
Class ImpIbs identifies haplotypes that share a long
IBS segment with a specified haplotype.
Instances of ImpIbs are immutable.
| Constructor | Description |
|---|---|
ImpIbs(ImpData impData) |
Constructs a new
ImpIbs object from the specified data. |
| Modifier and Type | Method | Description |
|---|---|---|
int[] |
ibsHaps(int hap,
int step) |
Returns an array containing reference haplotype indices that
that are IBS with the specified target haplotype in an interval
beginning with the specified step.
|
ImpData |
impData() |
Return the data for genotype imputation in the marker window.
|
int |
nStates() |
Returns the number of HMM states per marker.
|
int |
nSteps() |
Returns the number of IBS steps in the marker window.
|
int |
stepStart(int step) |
Returns the index of the first marker in the specified step.
|
public ImpIbs(ImpData impData)
ImpIbs object from the specified data.impData - the input data for genotype imputationjava.lang.NullPointerException - if impData == nullpublic int[] ibsHaps(int hap,
int step)
this.nHapsPerStep() haplotypes if the number of reference
haplotypes that are IBS with specified target haplotype in the specified
step is less than this.nHapsPerStep().hap - a haplotype indexstep - a step indexjava.lang.IndexOutOfBoundsException - if
hap < 0 || hap >= this.hapPairs().nHaps()java.lang.IndexOutOfBoundsException - if
step < 0 || step >= this.nSteps()public ImpData impData()
public int nStates()
public int nSteps()
public int stepStart(int step)
step - a step indexjava.lang.IllegalArgumentException - if
step < 0 || step >= this.nSteps()