Constructor | Description |
---|---|
BitHapPair(Markers markers,
int idIndex,
int[] alleles1,
int[] alleles2) |
Constructs a new
BitHapPair instance. |
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.
|
java.lang.String |
toString() |
Returns a string representation of
this . |
public BitHapPair(Markers markers, int idIndex, int[] alleles1, int[] alleles2)
BitHapPair
instance.markers
- the sequence of markersidIndex
- the sample identifier indexalleles1
- the sequence of allele indices for the first haplotypealleles2
- the sequence of alleles indices for the second haplotypejava.lang.IllegalArgumentException
- if
alleles1.length != markers.nMarkers()
|| alleles2.length != markers.nMarkers()
java.lang.IllegalArgumentException
- if alleles1[k] < 0 ||
allele1[k] >= markers.marker(k).nAlleles()
for some k
satisfying
0 <= k && k < markers.nMarkers()
java.lang.IllegalArgumentException
- if alleles2[k] < 0 ||
allele2[k] >= markers.marker(k).nAlleles()
for some k
satisfying
0 <= k && k < markers.nMarkers()
java.lang.IndexOutOfBoundsException
- if idIndex < 0
java.lang.NullPointerException
- if
marker == null || alleles1 == null || allele2 == null
public int allele1(int marker)
HapPair
public int allele2(int marker)
HapPair
public Marker marker(int marker)
HapPair
public int nMarkers()
HapPair
public int idIndex()
HapPair
public java.lang.String toString()
this
. The
exact details of the representation are unspecified and subject
to change.toString
in class java.lang.Object
this