-
Notifications
You must be signed in to change notification settings - Fork 597
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
ValidateVariants exception message improvement #6076
Conversation
Thanks for fixing the message! I couldn't track down the original |
3321d15
to
84b9e10
Compare
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.
@@ -160,6 +160,15 @@ public void testBadChrCount1() throws IOException { | |||
); | |||
|
|||
spec.executeTest("test bad chr counts #1", this); | |||
|
|||
//test with no reference and no validations specified | |||
IntegrationTestSpec spec2 = new IntegrationTestSpec( |
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.
Could go through all of the tests and make these final
, but I'll leave it up to you.
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.
Adam put these tests in and he was missing final
s???
I did the two in the test I modified, but I don't like having my git blame all over the place if I didn't substantively modify the tests.
@samuelklee I bet you were right about Jonathan's latest fix, but the error message did still need a little polish. |
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.
Whoops, guess I never approved this? Apologies, @ldgauthier!
I added a test according to #4642 , but can't reproduce the error. The user also noted that the error message was badly formed, which is true because it ended with a colon. Now it looks like:
"Input src/test/resources/org/broadinstitute/hellbender/tools/walkers/ValidateVariants/validationExampleBad.vcf fails strict validation of type CHR_COUNTS: the Allele Count (AC) tag is incorrect for the record at position 1:985447, 1 vs. 2"