public interface HapAlleleProbs
Interface HapAlleleProbs stores allele probabilities for
a haplotype.
HapAlleleProbs are required to be immutable.| Modifier and Type | Method and Description |
|---|---|
float |
allele(int marker,
int allele)
Returns the specified allele probability.
|
int |
alleleWithMaxProb(int marker)
Returns the allele with maximum posterior probability.
|
int |
hapIndex()
Returns the haplotype index.
|
Marker |
marker(int marker)
Returns the specified marker.
|
Markers |
markers()
Returns the list of markers.
|
int |
nMarkers()
Returns the number of markers.
|
Samples |
samples()
Returns the list of samples.
|
float allele(int marker,
int allele)
marker - a marker indexallele - an allele indexjava.lang.IndexOutOfBoundsException - if
marker < 0 || marker >= this.nMarkers()java.lang.IndexOutOfBoundsException - if
allele < 0 || allele >= this.marker(marker).nAlleles()int alleleWithMaxProb(int marker)
marker - a marker indexjava.lang.IndexOutOfBoundsException - if
marker < 0 || marker >= this.nMarkers()int nMarkers()
Markers markers()
Marker marker(int marker)
marker - a marker indexjava.lang.IndexOutOfBoundsException - if
marker < 0 || marker >= this.nMarkers()int hapIndex()
k
have indices 2*k and 2*k + 1.Samples samples()