| Constructor | Description |
|---|---|
PhasedGTWrapper(GT gt) |
Constructs a new
PhasedGTWrapper instance from the specified
data. |
| Modifier and Type | Method | Description |
|---|---|---|
int |
allele1(int marker,
int hapPair) |
Returns the first allele for the specified marker and sample
or return -1 if the allele is missing.
|
int |
allele2(int marker,
int hapPair) |
Returns the second allele for the specified marker and sample
or return -1 if the allele is missing.
|
Marker |
marker(int marker) |
Returns the specified marker.
|
Markers |
markers() |
Returns the list of markers.
|
int |
nHaps() |
Returns the number of haplotypes.
|
int |
nMarkers() |
Returns the number of markers.
|
int |
nSamples() |
Returns the number of samples.
|
Samples |
samples() |
Returns the list of samples.
|
public PhasedGTWrapper(GT gt)
PhasedGTWrapper instance from the specified
data.gt - the phased, non-missing genotypes to be wrappedjava.lang.IllegalArgumentException - if gt.isPhased() == falsejava.lang.NullPointerException - if gt == nullpublic int nSamples()
GTpublic int allele1(int marker,
int hapPair)
GTthis.unphased(marker, sample) == false.public int allele2(int marker,
int hapPair)
GTthis.unphased(marker, sample) == false.public int nMarkers()
GTpublic Marker marker(int marker)
GT