Exclude normal groups from somatic candidate sets (first step of #168) - #170
Merged
Merged
Conversation
Normal groups are germline references, not neoantigen candidate sources, but get_snvs / get_shortindels / get_longindels combined *all* groups -- so the matched normal's germline calls (e.g. 890K on a TESLA sample) were merged into the "somatic" set. Add a somatic_groups() helper (tumor groups only, per SAMPLES[sample]["normal"]) and use it in the three somatic combines. First step of #168 (germline subtraction). Still TODO there: paired Mutect2 (-normal) for tumor groups with a matched normal, RNA bcftools-isec vs the normal-group germline (wiring up the dead final HaplotypeCaller round), distinct RG SM tags, gnomAD fallback, and the same exclusion for exitron/fusion/altsplicing.
Contributor
|
Warning Review limit reachedNext included review available in 28 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixed
Tumor-only Mutect2 does no germline subtraction, and
get_snvs/get_shortindels/get_longindelscombined all groups — so a matched normal's calls (essentially germline) were merged into the "somatic" set (~890K SNVs on a TESLA normal). Add asomatic_groups()helper that returns tumor groups only (viaSAMPLES[sample]["normal"]) and use it in the three somatic combines. The normal is a germline reference, not a neoantigen candidate source.First, self-contained step of #168 (paired somatic calling). The rest — paired Mutect2 (
-normal), RNAbcftools isecvs the normal-group germline, RGSM:{sample}_{group}, gnomAD fallback — follows in a dedicated PR.Validation
combine_somatic_SNVs_m2now pulls only tumor groups (normal excluded).get_countsdeliberately unchanged (quantification still covers all groups).QC