| Constructor and Description |
|---|
RevHapPairs(HapPairs hapPairs)
Creates a new
RevSampleHapPairs instance from the specified data. |
| Modifier and Type | Method and Description |
|---|---|
int |
allele(int marker,
int haplotype)
Returns the allele for the specified marker and haplotype.
|
int |
allele1(int marker,
int hapPair)
Returns the first allele for the specified marker and haplotype pair.
|
int |
allele2(int marker,
int hapPair)
Returns the second allele for the specified marker and haplotype pair.
|
Marker |
marker(int marker)
Returns the specified marker.
|
Markers |
markers()
Returns the markers.
|
int |
nHapPairs()
Returns the number of haplotype pairs.
|
int |
nHaps()
Returns the number of haplotypes.
|
int |
nMarkers()
Returns the number of markers.
|
int |
sampleIndex(int hapPair)
Returns the index of the sample associated with the specified
haplotype pair in the list of samples returned by
this.samples(). |
Samples |
samples(int hapPair)
Returns a list of samples containing the sample associated with
the specified haplotype pair
|
java.lang.String |
toString()
Returns a string representation of
this. |
public RevHapPairs(HapPairs hapPairs)
RevSampleHapPairs instance from the specified data.hapPairs - the haplotype pairs that will be wrapped by the
new instancejava.lang.NullPointerException - if hapPairs == nullpublic int allele1(int marker,
int hapPair)
HapPairspublic int allele2(int marker,
int hapPair)
HapPairspublic int allele(int marker,
int haplotype)
HapPairspublic int nMarkers()
HapPairspublic Marker marker(int marker)
HapPairspublic int nHaps()
HapPairs2*this.nHapPairs().public int nHapPairs()
HapPairsthis.nHaps()/2.public Samples samples(int hapPair)
HapPairspublic int sampleIndex(int hapPair)
HapPairsthis.samples().sampleIndex in interface HapPairshapPair - a haplotype pair indexthis.samples()public java.lang.String toString()
this. The exact details
of the representation are unspecified and subject to change.toString in class java.lang.Objectthis