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

Fixed Funcotator VCF output renderer to keep B37 contig names in the VCF output file #8539

Merged
merged 3 commits into from
Oct 11, 2023

Conversation

jamesemery
Copy link
Collaborator

Fixes a longstanding issue that resulted in mismatching sequence dictionary/vcf lines for B37 data provided to funcotator.

Copy link
Collaborator

@droazen droazen left a comment

Choose a reason for hiding this comment

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

@jamesemery Looks reasonable, but I'm not sure we have adequate test coverage on the new code

@jamesemery
Copy link
Collaborator Author

@droazen back to you

@@ -924,7 +923,10 @@ protected void enqueueAndHandleVariant(final VariantContext variant, final Refer

final FuncotationMap funcotationMap = funcotatorEngine.createFuncotationMapForVariant(variant, referenceContext, featureContext);

// This is necessary because we want to revert the variant contig name change if it was applied in the FuncotatorEngine::getCorrectVariantContextForReference method before outputting the vcf.
Copy link
Collaborator

Choose a reason for hiding this comment

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

This comment is still misleading -- can you make it clear that we don't always want to revert the variant contig name change, only in the very specific case where the input is b37 and the reference is hg19?

Copy link
Collaborator

@droazen droazen 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 now, merge when tests pass @jamesemery

@jamesemery jamesemery force-pushed the je_fixB37HG19ChrMismatchFuncotator branch from 6ab2a84 to 78eddbc Compare October 11, 2023 14:02
@jamesemery jamesemery merged commit 423d106 into master Oct 11, 2023
20 checks passed
@jamesemery jamesemery deleted the je_fixB37HG19ChrMismatchFuncotator branch October 11, 2023 15:39
rickymagner pushed a commit that referenced this pull request Nov 28, 2023
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