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

Fix RAW_MQ header inconsistencies after reblocking #6276

Merged
merged 7 commits into from
Nov 22, 2019

Conversation

ldgauthier
Copy link
Contributor

I had a copy-paste guffaw when I deprecated the RAW_MQ header that changed the type to be incorrect. After reblocking, the new header is correct, but conflicting and GenomicsDB is understandably not pleased. Now there is a single, correct RAW_MQ header after reblocking.

@ldgauthier
Copy link
Contributor Author

I can confirm that this fixes the production WGS reblocking issue.

@ldgauthier
Copy link
Contributor Author

Lots of files are changed because I changed the key name for RAW_MQ to include _DEPRECATED and because I turned off the command line output in some of the test VCFs to save myself some pain later.

@ldgauthier
Copy link
Contributor Author

@tlangs once we cut a release with this PR we can update and merge your reblocking workflow in dsde-pipelines.

Copy link
Member

@lbergelson lbergelson left a comment

Choose a reason for hiding this comment

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

Looks good to me. Or at least as good as nasty vcf header shenanigans can look.

@@ -158,6 +158,7 @@ public void onTraversalStart() {
final Set<VCFHeaderLine> headerLines = new HashSet<>(inputHeaders);
// Remove GCVFBlocks, legacy headers, and annotations that aren't informative for single samples
headerLines.removeIf(vcfHeaderLine -> vcfHeaderLine.getKey().startsWith(GVCFWriter.GVCF_BLOCK) ||
(vcfHeaderLine.getKey().equals("INFO")) && ((VCFInfoHeaderLine)vcfHeaderLine).getID().equals(GATKVCFConstants.RAW_RMS_MAPPING_QUALITY_DEPRECATED) || //remove old (maybe wrong type) and add new with deprecated note
Copy link
Member

Choose a reason for hiding this comment

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

I hate these classes so much.

@ldgauthier ldgauthier merged commit d78fa91 into master Nov 22, 2019
@ldgauthier ldgauthier deleted the ldg_fixRawMQHeader branch December 4, 2019 14:12
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.

2 participants