| Constructor and Description |
|---|
RevHapPair(HapPair hapPair)
Creates a new
RevHapPair instance from the specified data. |
| Modifier and Type | Method and Description |
|---|---|
int |
allele1(int marker)
Returns the first allele for the specified marker.
|
int |
allele2(int marker)
Returns the second allele for the specified marker.
|
Marker |
marker(int marker)
Returns the specified marker.
|
Markers |
markers()
Returns the markers.
|
int |
nMarkers()
Returns the number of markers.
|
int |
sampleIndex()
Returns the index of the sample associated with this haplotype pair
in the list of samples returned by
this.samples(). |
Samples |
samples()
Returns the list of samples containing the sample associated with
this haplotype pair.
|
public RevHapPair(HapPair hapPair)
RevHapPair instance from the specified data.hapPair - the haplotype pair that will be wrapped by the
new instancejava.lang.NullPointerException - if hapPair == nullpublic int allele1(int marker)
HapPairpublic int allele2(int marker)
HapPairpublic Marker marker(int marker)
HapPairpublic int nMarkers()
HapPairpublic Samples samples()
HapPairpublic int sampleIndex()
HapPairthis.samples().sampleIndex in interface HapPairthis.samples()