MarkerContainerBitSetGT, LowMafRefDiallelicGT, LowMafRefGT, SeqCodedRefGT, VcfRecordpublic interface DuplicatesGTRec extends MarkerContainer
Interface DuplicatesGTRec represents marker alleles for a
list of samples. The samples in the list of samples are not
required to be unique.
HapsMarkers are required to be
immutable.| Modifier and Type | Method | Description |
|---|---|---|
default int |
allele(int hap) |
Returns the specified allele for the specified haplotype or
-1 if the allele is missing.
|
int |
allele1(int sample) |
Returns the first allele for the specified sample or
-1 if the allele is missing.
|
int |
allele2(int sample) |
Returns the second allele for the specified sample or
-1 if the allele is missing.
|
default int[] |
alleles() |
Returns an array of length
this.nHaps() whose j-th
element is equal to this.allele(j} |
boolean |
isPhased() |
Returns
true if every genotype for each sample is a phased,
non-missing genotype, and returns false otherwise. |
boolean |
isPhased(int sample) |
Returns
true if the genotype for the specified sample is
a phased, nonmissing genotype, and returns false otherwise. |
int |
nHaps() |
Returns the number of haplotypes.
|
int |
nSamples() |
Returns the number of samples.
|
marker, nAllelesint allele1(int sample)
this.unphased(marker, sample) == false.sample - a sample indexjava.lang.IndexOutOfBoundsException - if
sample < 0 || sample >= this.nSamples()int allele2(int sample)
this.unphased(marker, sample) == false.sample - a sample indexjava.lang.IndexOutOfBoundsException - if
sample < 0 || sample >= this.nSamples()default int allele(int hap)
this.unphased(marker, hap/2) == false.hap - a haplotype indexjava.lang.IndexOutOfBoundsException - if
hap < 0 || hap >= this.nHaps()default int[] alleles()
this.nHaps() whose j-th
element is equal to this.allele(j}this.nHaps() whose j-th
element is equal to this.allele(j}int nHaps()
2*this.nSamples().int nSamples()
this.nHaps()/2.boolean isPhased(int sample)
true if the genotype for the specified sample is
a phased, nonmissing genotype, and returns false otherwise.sample - a sample indextrue if the genotype for the specified sample
is a phased, nonmissing genotypejava.lang.IndexOutOfBoundsException - if
sample < 0 || sample >= this.nSamples()boolean isPhased()
true if every genotype for each sample is a phased,
non-missing genotype, and returns false otherwise.true if the genotype for each sample is a phased,
non-missing genotype