| Constructor | Description |
|---|---|
WrappedHapPairs(PhasedGT phasedGT) |
Constructs a new
WrappedHapPairs instance. |
| Modifier and Type | Method | 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.
|
int |
idIndex(int hapPair) |
Returns the sample identifier index for the specified 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.
|
public WrappedHapPairs(PhasedGT phasedGT)
WrappedHapPairs instance.phasedGT - the object to be wrapped by thisjava.lang.NullPointerException - if phasedGT == nullpublic int allele(int marker,
int haplotype)
HapPairspublic int allele1(int marker,
int hapPair)
HapPairspublic int allele2(int marker,
int hapPair)
HapPairspublic int nMarkers()
HapPairspublic Marker marker(int marker)
HapPairspublic int nHaps()
HapPairs2*this.nHapPairs().public int nHapPairs()
HapPairsthis.nHaps()/2.public int idIndex(int hapPair)
HapPairs