samtools / htsjdk

A Java API for high-throughput sequencing data (HTS) formats.
http://samtools.github.io/htsjdk/
276 stars 244 forks source link

two methods for Genotype: HasRefAllele HasAltAllele #1678

Closed lindenb closed 11 months ago

lindenb commented 11 months ago

Description

I wrote two new functions for Genotype : hasAltAllele and testHasRefAllele because I often need to detect whether an ALT allele (or a REF) is present in a Genotype whatever is the genotype ploidy

I also copied a javadoc from SimpleAllele to Allele.

Things to think about before submitting: