added isHom() and isHet() queries to the Genotype interface (with the obvious meaning)

git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@452 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
asivache 2009-04-16 18:41:39 +00:00
parent 55537c0d1e
commit 835f1067d8
1 changed files with 12 additions and 0 deletions

View File

@ -106,6 +106,18 @@ public interface Genotype extends Comparable<ReferenceOrderedDatum> {
* @return
*/
boolean isBiallelic() ;
/** Returns true if both observed alleles are the same (regardless of whether they are ref or alt)
*
* @return
*/
boolean isHom() ;
/** Returns true if observed alleles differ (regardless of whether they are ref or alt)
*
* @return
*/
boolean isHet() ;
/** Returns reference (major) allele base for a SNP variant as a character; should throw IllegalStateException
* if variant is not a SNP.