Class GBasicRulesCalculator


  • public class GBasicRulesCalculator
    extends java.lang.Object
    Checks the correctness of phase of haplotypes/genotypes using basic rules.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static byte INCOMPATIBLE_GENOTYPES
      Indicates that the genotypes of the trio are incompatible in some way.
      protected byte unknown  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte checkBasicRules​(byte[] child, byte[] father, byte[] mother)
      Check basic rules (inhertance error and phase) at an single autosomal locus for a child in a triad.
      void setUnknownAllele​(byte unknown)
      Set the value for an unknown allele (default is Byte.MIN_VALUE) .
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • INCOMPATIBLE_GENOTYPES

        public static final byte INCOMPATIBLE_GENOTYPES
        Indicates that the genotypes of the trio are incompatible in some way.
        See Also:
        Constant Field Values
      • unknown

        protected byte unknown
    • Constructor Detail

      • GBasicRulesCalculator

        public GBasicRulesCalculator()
    • Method Detail

      • setUnknownAllele

        public void setUnknownAllele​(byte unknown)
        Set the value for an unknown allele (default is Byte.MIN_VALUE) .
        Parameters:
        unknown - the unknonw value