Skip to content
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

Fixing bug when removing annotations from empty map #8870

Merged
merged 2 commits into from
Jun 20, 2024
Merged

Conversation

meganshand
Copy link
Contributor

In an effort to make the Reblocking pipeline more user friendly we'd like to always have the option to remove the PRI annotation (which is incorrectly added by certain versions of dragen) from the GVCF turned on, even when PRI is not present in the input. There was an edge case that threw an exception when there were no FORMAT annotations, so this PR fixes that issue.

Copy link
Contributor

@ldgauthier ldgauthier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the name of the test is slightly misleading, but not a huge deal.

The CNN tests failed, but I expect they will pass after the retry I kicked off.

Thanks for the fix!

@@ -701,4 +699,19 @@ public void testSpanDelRegression() throws IOException {
//no more star alleles because deletions are all gone
Assert.assertFalse(variants.stream().anyMatch(v -> v.getAlternateAlleles().contains(Allele.SPAN_DEL)));
}

@Test
public void warnWhenRemovingAnnotations() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would change this name since this doesn't actually warn. Maybe "testRemoveAbsentAnnotation"?

@meganshand meganshand merged commit d633a57 into master Jun 20, 2024
20 of 21 checks passed
@meganshand meganshand deleted the ms_reblock_warn branch June 20, 2024 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants