Package Utils.SingleGenotype
Class SingleGenotypePosition
- java.lang.Object
-
- Utils.SingleGenotype.SingleGenotypePosition
-
- Direct Known Subclasses:
SingleGenotypeCall
,SingleGenotypeMasked
,SingleGenotypeProbability
,SingleGenotypeReads
public class SingleGenotypePosition extends java.lang.Object
Represents the position of a single genotype
-
-
Constructor Summary
Constructors Constructor Description SingleGenotypePosition(int sample, int snp)
Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getSample()
Get the sample positionint
getSNP()
Get the snp positionstatic boolean
samePosition(SingleGenotypePosition pos1, SingleGenotypePosition pos2)
Tests whether two positions represent the same genotypestatic 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
-
-
-
Method Detail
-
getSample
public int getSample()
Get the sample position- Returns:
- The sample position
-
getSNP
public int getSNP()
Get the snp position- Returns:
- The snp position
-
samePosition
public static boolean samePosition(SingleGenotypePosition pos1, SingleGenotypePosition pos2)
Tests whether two positions represent the same genotype- Parameters:
pos1
- First positionpos2
- Second position- Returns:
- Whether the two positions represent the same genotypes
-
samePositions
public 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- Parameters:
list1
- First list of genotypeslist2
- Second list of genotypes- Returns:
- Whether the lists represent the same genotypes
-
-