fix: sort final vcf in varlociraptor sbwfs and update varlociraptor#2055
Merged
fix: sort final vcf in varlociraptor sbwfs and update varlociraptor#2055
Conversation
Member
|
Warning Newer version of the nf-core template is available. Your pipeline is using an old version of the nf-core template: 3.5.1. For more documentation on how to update your pipeline, please see the nf-core documentation and Synchronisation documentation. |
|
Contributor
Author
|
Needs testing whether this works as expected with multi-sample input. |
famosab
commented
Nov 18, 2025
Contributor
Author
|
Testing now with 2 tumor-normal-pairs |
famosab
commented
Dec 1, 2025
Contributor
Author
|
@copilot I always run into this error: Can you propose changes that fix this issue? |
…processing (#2125) The varlociraptor somatic subworkflow failed to join normal and tumor preprocessed BCF files when processing multiple tumor-normal pairs, causing a "Join mismatch" error. ## Root Cause The join operation requires matching keys between normal and tumor channels: - Normal: `[meta.patient, meta.id, meta.chunk, meta.variantcaller]` - Tumor: `[meta.patient, meta.normal_id, meta.chunk, meta.variantcaller]` After PREPROCESS_NORMAL, `meta.id` was set to the pair ID (e.g., "sample4_vs_sample3") instead of the normal sample ID (e.g., "sample3"), preventing matches with tumor's `meta.normal_id`. ## Changes **subworkflows/local/vcf_varlociraptor_somatic/main.nf** - Line 211: Changed normal sample ID assignment from `meta_cram.id` to `meta_cram.match_id` ```groovy // Before meta_vcf + [ id: meta_cram.id, // pair ID postprocess: 'varlociraptor', ] // After meta_vcf + [ id: meta_cram.match_id, // normal sample ID postprocess: 'varlociraptor', ] ``` This ensures join keys align: normal's `meta.id` now matches tumor's `meta.normal_id` for each sample pair and chunk. <!-- START COPILOT CODING AGENT TIPS --> --- 💬 We'd love your input! Share your thoughts on Copilot coding agent in our [2 minute survey](https://gh.io/copilot-coding-agent-survey). --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: famosab <45968370+famosab@users.noreply.github.com>
famosab
commented
Feb 9, 2026
FriederikeHanssen
approved these changes
Feb 10, 2026
f61212c to
fdd7ce2
Compare
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.
PR checklist
nf-core pipelines lint).nextflow run . -profile test,docker --outdir <OUTDIR>).nextflow run . -profile debug,test,docker --outdir <OUTDIR>).docs/usage.mdis updated.docs/output.mdis updated.CHANGELOG.mdis updated.README.mdis updated (including new tool citations and authors/contributors).