-
Notifications
You must be signed in to change notification settings - Fork 596
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
Parse combined AS_QUALapprox values from older reblocked GVCFs properly #6442
Conversation
NON_REF but sometimes they get zeros
@droazen this fix is the same as a bug you caught in another review -- #6079 (comment) Should be an easy review? |
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.
Two minor comments @ldgauthier, otherwise this looks good
attribute(GATKVCFConstants.AS_RAW_QUAL_APPROX_KEY, goodQualList).make(); | ||
final VariantContext withNoNonRefValue = new VariantContextBuilder(GATKVariantContextUtils.makeFromAlleles("good", "chr1", 10001, Arrays.asList("A","T", Allele.NON_REF_STRING))). | ||
attribute(GATKVCFConstants.AS_RAW_QUAL_APPROX_KEY, trickyQualList).make(); | ||
Assert.assertTrue(AS_QualByDepth.parseQualList(withNonRefValue).size() == withNonRefValue.getAlternateAlleles().size()); |
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.
assertEquals()
would be more appropriate here
attribute(GATKVCFConstants.AS_RAW_QUAL_APPROX_KEY, trickyQualList).make(); | ||
Assert.assertTrue(AS_QualByDepth.parseQualList(withNonRefValue).size() == withNonRefValue.getAlternateAlleles().size()); | ||
Assert.assertTrue(AS_QualByDepth.parseQualList(withNoNonRefValue).size() == withNonRefValue.getAlternateAlleles().size()); | ||
} |
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.
Can you also add an assertion that the actual QD value assigned to NON_REF was 0 in the withNoNonRefValue
case?
@droazen back to you |
@ldgauthier Looks like you have a test failure in |
@droazen I immediately pushed another commit -- see "Derp" above. Looks green now. |
Sometimes NON_REF gets a zero and sometimes it's empty. This seems isolated to a much older version of ReblockGVCF, but that was what we were running for production pipeline tests.
@droazen I'd like this to go into this week's release