-
Notifications
You must be signed in to change notification settings - Fork 594
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix error in genotype given alleles mode when input alleles have genotypes #5341
Conversation
…ven allele variants have genotypes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the quick turnaround. This fix should make it into today's release.
...I mean tomorrow's release. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cwhelan While we're waiting on travis to come back to life, could you add a direct unit test for HaplotypeCallerGenotypingEngine.replaceWithSpanDelVC() to check the genotypes in the returned VC?
@droazen added a quick unit test that failed without my change but passes now. look ok? |
Codecov Report
@@ Coverage Diff @@
## master #5341 +/- ##
===============================================
+ Coverage 86.821% 86.825% +0.004%
- Complexity 30197 30199 +2
===============================================
Files 1845 1845
Lines 139825 139852 +27
Branches 15412 15412
===============================================
+ Hits 121398 121427 +29
- Misses 12818 12819 +1
+ Partials 5609 5606 -3
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 New test looks good, merging
…types (broadinstitute#5341) * fix issue of alleles not being replaced with star alleles when the given allele variants have genotypes * add unit test to replaceWithSpanDelVC
Fixes #5336
HaplotypeCallerGenotypingEngine.replaceWithSpanDelVC
replaces the given allelesVariantContext
objects with new VCs in which the alleles have been replaced with star alleles to represent spanning deletions. However, if the input variant records had genotypes, the original (non-star) deletion alleles were still being retained, causing a downstream error. This fixes that issue.