Constructor | Description |
---|---|
WrappedHapPair(GT phasedGT,
int hapPair) |
Creates a
WrappedHapPair instance representing
the specified haplotype pair. |
Modifier and Type | Method | 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.
|
int |
idIndex() |
Returns the sample identifier index.
|
Marker |
marker(int marker) |
Returns the specified marker.
|
Markers |
markers() |
Returns the markers.
|
int |
nMarkers() |
Returns the number of markers.
|
public WrappedHapPair(GT phasedGT, int hapPair)
WrappedHapPair
instance representing
the specified haplotype pair.phasedGT
- the RefGTWindow
object that
will be "wrapped" by this
hapPair
- a haplotype pair indexjava.lang.IllegalArgumentException
- if phasedGT.isPhased() == false
java.lang.IllegalArgumentException
- if
hapPair < 0 || hapPair >= sampleHapPairs.nHapPairs()
java.lang.NullPointerException
- if sampleHapPairs == null
public int allele1(int marker)
HapPair
public int allele2(int marker)
HapPair
public Marker marker(int marker)
HapPair
public int nMarkers()
HapPair