Package org.gorpipe.gor.haplotype
Class GBasicRulesCalculator
- java.lang.Object
-
- org.gorpipe.gor.haplotype.GBasicRulesCalculator
-
public class GBasicRulesCalculator extends java.lang.ObjectChecks the correctness of phase of haplotypes/genotypes using basic rules.
-
-
Field Summary
Fields Modifier and Type Field Description static byteINCOMPATIBLE_GENOTYPESIndicates that the genotypes of the trio are incompatible in some way.protected byteunknown
-
Constructor Summary
Constructors Constructor Description GBasicRulesCalculator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description bytecheckBasicRules(byte[] child, byte[] father, byte[] mother)Check basic rules (inhertance error and phase) at an single autosomal locus for a child in a triad.voidsetUnknownAllele(byte unknown)Set the value for an unknown allele (default is Byte.MIN_VALUE) .
-
-
-
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
-
-
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
-
checkBasicRules
public 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.- Parameters:
child- the child genotypesfather- the father genotypesmother- the mother genotypes- Returns:
- A byte value indicating the phase
UNDETERMINED_PHASE,CORRECT_PHASE,INCORRECT_PHASE,DOUBLE_CONGRUENCY,TRIPLE_CONGRUENCY,INCOMPATIBLE_GENOTYPES.
-
-