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

VariantAnnotator fails when the variant contains too many alleles #8075

Merged
merged 3 commits into from
Nov 3, 2022

Conversation

ilyasoifer
Copy link
Collaborator

The behaviour had been switched to warning

return variantOverlapAnnotator.annotateOverlaps(features, variantOverlapAnnotator.annotateRsID(features, annotated));
try {
return variantOverlapAnnotator.annotateOverlaps(features, variantOverlapAnnotator.annotateRsID(features, annotated));
} catch (IllegalArgumentException e) {
Copy link
Contributor

Choose a reason for hiding this comment

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

As we discussed in person, I think we should check that other errors that aren't intended to be caught are not caught here. I just want to be sure that we don't change the default behavior for unrelated variant annotations if they would have failed here.

@ilyasoifer
Copy link
Collaborator Author

@meganshand - is this change better now?

Copy link
Contributor

@meganshand meganshand left a comment

Choose a reason for hiding this comment

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

LGTM

@ilyasoifer ilyasoifer merged commit 63c548b into broadinstitute:master Nov 3, 2022
@ilyasoifer ilyasoifer deleted the annotator.dbsnp.fix branch November 3, 2022 04:44
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.

3 participants