Class SingleGenotypePosition

    • Constructor Detail

      • SingleGenotypePosition

        public SingleGenotypePosition​(int sample,
                                      int snp)
        Constructor
        Parameters:
        sample - The sample position
        snp - The snp position
    • 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 position
        pos2 - 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 genotypes
        list2 - Second list of genotypes
        Returns:
        Whether the lists represent the same genotypes