Package Mask

Class SampleSnp

  • All Implemented Interfaces:
    java.lang.Comparable<SampleSnp>

    public class SampleSnp
    extends java.lang.Object
    implements java.lang.Comparable<SampleSnp>
    Represents the position of a single genotype (i.e. as indexed by a sample and a snp)
    • Constructor Summary

      Constructors 
      Constructor Description
      SampleSnp​(int sample, int snp)
      Default constructor
    • Constructor Detail

      • SampleSnp

        public SampleSnp​(int sample,
                         int snp)
        Default constructor
        Parameters:
        sample - The position of the sample
        snp - The position of the snp
    • Method Detail

      • getSample

        public int getSample()
        Get the sample
        Returns:
        The position of the sample
      • getSnp

        public int getSnp()
        Get the SNP
        Returns:
        The position of the SNP
      • compareTo

        public int compareTo​(SampleSnp o)
        Specified by:
        compareTo in interface java.lang.Comparable<SampleSnp>