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:
[X] Make sure your changes compile and new tests pass locally.
[X] Add new tests or update existing ones:
A bug fix should include a test that previously would have failed and passes now.
New features should come with new tests that exercise and validate the new functionality.
[X] Extended the README / documentation, if necessary
[x] Check your code style.
[X] Write a clear commit title and message
The commit message should describe what changed and is targeted at htsjdk developers
Breaking changes should be mentioned in the commit message.
Description
I wrote two new functions for
Genotype
:hasAltAllele
andtestHasRefAllele
because I often need to detect whether an ALT allele (or a REF) is present in a Genotype whatever is the genotype ploidyI also copied a javadoc from SimpleAllele to Allele.
Things to think about before submitting: