SingleGenotypeCall
, SingleGenotypeMasked
, SingleGenotypeProbability
, SingleGenotypeReads
public class SingleGenotypePosition
extends java.lang.Object
Constructor | Description |
---|---|
SingleGenotypePosition(int sample,
int snp) |
Constructor
|
Modifier and Type | Method | Description |
---|---|---|
int |
getSample() |
Get the sample position
|
int |
getSNP() |
Get the snp position
|
static boolean |
samePosition(SingleGenotypePosition pos1,
SingleGenotypePosition pos2) |
Tests whether two positions represent the same genotype
|
static boolean |
samePositions(java.util.List<? extends SingleGenotypePosition> list1,
java.util.List<? extends SingleGenotypePosition> list2) |
Tests whether two lists represent the same genotypes in the same order
|
public SingleGenotypePosition(int sample, int snp)
sample
- The sample positionsnp
- The snp positionpublic int getSample()
public int getSNP()
public static boolean samePosition(SingleGenotypePosition pos1, SingleGenotypePosition pos2)
pos1
- First positionpos2
- Second positionpublic static boolean samePositions(java.util.List<? extends SingleGenotypePosition> list1, java.util.List<? extends SingleGenotypePosition> list2)
list1
- First list of genotypeslist2
- Second list of genotypes