public interface HapsMarker extends MarkerContainer
Interface HapsMarker
represents marker alleles for a
list of haplotype pairs.
HapsMarkers
are required to be
immutable.Modifier and Type | Method and Description |
---|---|
int |
allele(int haplotype)
Returns the allele on the specified haplotype.
|
int |
allele1(int hapPair)
Returns the first allele for the specified haplotype pair.
|
int |
allele2(int hapPair)
Returns the second allele for the specified haplotype pair.
|
Marker |
marker()
Returns the marker.
|
int |
nHapPairs()
Returns the number of haplotype pairs.
|
int |
nHaps()
Returns the number of haplotypes.
|
int allele(int haplotype)
haplotype
- a haplotype indexjava.lang.IndexOutOfBoundsException
- if
haplotype < 0 || haplotype >= this.nHaps()
int allele1(int hapPair)
hapPair
- a haplotype pair indexjava.lang.IndexOutOfBoundsException
- if
hapPair < 0 || hapPair >= this.nHapPairs()
int allele2(int hapPair)
hapPair
- a haplotype pair indexjava.lang.IndexOutOfBoundsException
- if
hapPair < 0 || hapPair >= this.nHapPairs()
Marker marker()
marker
in interface MarkerContainer
int nHaps()
2*this.nHapPairs()
.int nHapPairs()
this.nHaps()/2
.