Repository navigation
allow explicit DRAGEN VCF paths in samplesheet - #53
Merged
Merged
Conversation
Add optional dragen_somatic_vcf and dragen_germline_vcf samplesheet filetypes. When present, they override the path constructed from tumor_id/normal_id. Enables cohorts where DRAGEN and oncoanalyser outputs use different sample ID prefixes (e.g. APGI). Add nf-tests covering default path construction and explicit override.
qclayssen
force-pushed
the
feat/dragen-vcf-path-override
branch
from
May 18, 2026 01:55
1b37e69 to
29f5f0a
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
This PR extends the PREPARE_INPUT subworkflow to support optional samplesheet filetypes for explicit DRAGEN VCF paths, allowing cohorts where DRAGEN filenames don’t match the tumor_id / normal_id used elsewhere (e.g. differing prefixes) to run without renaming files.
Changes:
- Add optional
dragen_somatic_vcf/dragen_germline_vcfsamplesheet filetypes and prefer them over constructed DRAGEN VCF paths. - Add
nf-testcoverage for both default path construction and explicit override behavior (with new fixtures). - Update
.gitignorefornf-testartifacts and document the feature inCHANGELOG.md.
Reviewed changes
Copilot reviewed 4 out of 25 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| subworkflows/local/prepare_input.nf | Accept new samplesheet filetypes and prefer explicit DRAGEN VCF paths over constructed ones. |
| subworkflows/local/tests/prepare_input/nextflow.config | Add nf-test-specific Nextflow manifest config for the test workflow. |
| subworkflows/local/tests/prepare_input/main.nf.test | Add nf-tests for default constructed paths and explicit override behavior. |
| subworkflows/local/tests/prepare_input/fixtures/default/oncoanalyser_dir/virusbreakend/.gitkeep | Default fixture placeholder directory for oncoanalyser structure. |
| subworkflows/local/tests/prepare_input/fixtures/default/oncoanalyser_dir/sage_calling/somatic/TUMOR.sage.somatic.vcf.gz | Default fixture SAGE somatic VCF. |
| subworkflows/local/tests/prepare_input/fixtures/default/oncoanalyser_dir/sage_calling/somatic/TUMOR.sage.somatic.vcf.gz.tbi | Default fixture SAGE somatic VCF index. |
| subworkflows/local/tests/prepare_input/fixtures/default/oncoanalyser_dir/esvee/TUMOR.esvee.ref_depth.vcf.gz | Default fixture eSVee ref depth VCF. |
| subworkflows/local/tests/prepare_input/fixtures/default/oncoanalyser_dir/cobalt/.gitkeep | Default fixture placeholder directory for cobalt. |
| subworkflows/local/tests/prepare_input/fixtures/default/oncoanalyser_dir/chord/TUMOR.chord.prediction.tsv | Default fixture CHORD prediction file. |
| subworkflows/local/tests/prepare_input/fixtures/default/oncoanalyser_dir/amber/.gitkeep | Default fixture placeholder directory for amber. |
| subworkflows/local/tests/prepare_input/fixtures/default/dragen_somatic_dir/TUMOR.hard-filtered.vcf.gz | Default fixture DRAGEN somatic VCF. |
| subworkflows/local/tests/prepare_input/fixtures/default/dragen_somatic_dir/TUMOR.hard-filtered.vcf.gz.tbi | Default fixture DRAGEN somatic VCF index. |
| subworkflows/local/tests/prepare_input/fixtures/default/dragen_germline_dir/NORMAL.hard-filtered.vcf.gz | Default fixture DRAGEN germline VCF. |
| subworkflows/local/tests/prepare_input/fixtures/override/oncoanalyser_dir/virusbreakend/.gitkeep | Override fixture placeholder directory for oncoanalyser structure. |
| subworkflows/local/tests/prepare_input/fixtures/override/oncoanalyser_dir/sage_calling/somatic/TUMOR_T.sage.somatic.vcf.gz | Override fixture SAGE somatic VCF (different tumor ID). |
| subworkflows/local/tests/prepare_input/fixtures/override/oncoanalyser_dir/sage_calling/somatic/TUMOR_T.sage.somatic.vcf.gz.tbi | Override fixture SAGE somatic VCF index. |
| subworkflows/local/tests/prepare_input/fixtures/override/oncoanalyser_dir/esvee/TUMOR_T.esvee.ref_depth.vcf.gz | Override fixture eSVee ref depth VCF (different tumor ID). |
| subworkflows/local/tests/prepare_input/fixtures/override/oncoanalyser_dir/cobalt/.gitkeep | Override fixture placeholder directory for cobalt. |
| subworkflows/local/tests/prepare_input/fixtures/override/oncoanalyser_dir/chord/TUMOR_T.chord.prediction.tsv | Override fixture CHORD prediction file (different tumor ID). |
| subworkflows/local/tests/prepare_input/fixtures/override/oncoanalyser_dir/amber/.gitkeep | Override fixture placeholder directory for amber. |
| subworkflows/local/tests/prepare_input/fixtures/override/dragen_somatic_dir/TUMOR.hard-filtered.vcf.gz | Override fixture DRAGEN somatic VCF (explicit override target). |
| subworkflows/local/tests/prepare_input/fixtures/override/dragen_somatic_dir/TUMOR.hard-filtered.vcf.gz.tbi | Override fixture DRAGEN somatic VCF index. |
| subworkflows/local/tests/prepare_input/fixtures/override/dragen_germline_dir/NORMAL.hard-filtered.vcf.gz | Override fixture DRAGEN germline VCF (explicit override target). |
| CHANGELOG.md | Note the new optional samplesheet filetypes in the changelog. |
| .gitignore | Ignore nf-test working directory and log files. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
alexiswl
reviewed
May 18, 2026
| def base = file(meta.dragen_germline_dir).toUriString() | ||
| def dragen_germline_vcf = "${base}/${meta.normal_id}.hard-filtered.vcf.gz" | ||
| def dragen_germline_vcf = meta.dragen_germline_vcf | ||
| ?: "${file(meta.dragen_germline_dir).toUriString()}/${meta.normal_id}.hard-filtered.vcf.gz" |
Member
There was a problem hiding this comment.
If meta.dragen_germline_vcf is a relative path it won't work since it's not wrapped in file(?
Collaborator
Author
There was a problem hiding this comment.
Thanks, you right !
qclayssen
added a commit
that referenced
this pull request
Jul 21, 2026
* Make sigrap (HRDetect, MutationalPatterns) individual process (#16) * linting * run more linting markdown and pre-commit * add citation doi * pcgr 2.2.1 for sash (#17) * add ref data for pcgr 2.2.1 * add vep path pcgr * edit refdata path for vep pcgr * update pcgr report name name * change path VEP ref data * update container version * remove VEP version * change bolt version to test * add process and config for vcf2maf (#15) * add process and config for vcf2maf * fix path vep data * remove duplicate * fix and linting * remove params from VCF2MAF process * fix and simplify process * add meta.key to channel * add genome build as input * add dockerfile * Make sigrap (HRDetect, MutationalPatterns) individual process (#16) * remove trace of genome build and hardcode in VCF2MAF * use biocontainers container for vcf2maf * remove string interpolation * change to stub no version template * revert deleted line * fix typo * remove debug command * 0.70 test dependancy (#36) * change sigrap container * change cancer report container * latest bolt version * update meta id sigrap * bump sigrap * remove print * restaure metadata sigrap * change multiqc container * add param for pcgr chunck size * add mutpat predefined dbs argument * update container * add back formating comment * remove trailing whitespace * add XDG_CACHE_HOME path, solve issue sigven/pcgr#246 * change path of XDG_CACHE_HOME modules to general env * bump sigrap version to dev 7 * bump gpgr dev version 14 * Feat/prepare reference (#38) * fix channel prepare reference * refactor tarball extraction to use proper channel patterns. Follow oncoanalyser pattern for tarball extraction with .collect() and .map() * adapte extraction tarball to match pcgr expected vep structure * fix dir name extract tarball for VEP * change to adapt strip compoment for pcgr data * Convert dragen dir paths to file objects (#12) * update path vep_dir * bump and synchronised bolt version * bump bolt version 0.3.0-dev-20 * revert gpgr container version * bump bolt version * add label to process affected by hypermutated sample * bump bolt dev version to 27 * bump bolt dev version to 27 * change label process_low to process_medium_memory for hypermutated samples * add process_medium_memory label to match ica config * fix typo * fix typo * change input vcf2maf to get pcgr reported variants * typo Co-authored-by: Copilot <[email protected]> * typo abd chord input file check exist * fix stub for vcf2maf * add meta data to pcgr_pass_vcf from BOLT_SMLV_SOMATIC_REPORT * remove dupliate channel * add reference ensemble genome use by PCGR for VCF2MAF * add meta data mapping * chore: bump cancer_report container to bolt:0.3.0-dev-gpgr Dev image includes is_hypermutated from bolt #27 and sigrap delegation from gpgr PR #91 (input-sigrap-data branch). Reverts to ghcr.io/umccr/bolt before final merge. * Update bolt cancer_report container to ghcr.io/umccr/bolt:0.3.0-dev-29-gpgr * Bump version: 0.6.3 → 0.7.0 * Bump all bolt containers to ghcr.io/umccr/bolt:0.3.0-dev-29 * update change log * remove chord, input now from OA * remove fasta_ensembl now from tarball * fix id to tumor id * bump bolt version to dev-30 * Add addEnsemblFasta for cleaner prepare_reference * add assert size and remove misc_data channel * Bump all bolt containers to ghcr.io/umccr/bolt:0.3.0 * Bump all bolt containers to ghcr.io/umccr/bolt:0.3.1 * allow explicit DRAGEN VCF paths in samplesheet (#53) * allow explicit DRAGEN VCF paths in samplesheet Add optional dragen_somatic_vcf and dragen_germline_vcf samplesheet filetypes. When present, they override the path constructed from tumor_id/normal_id. Enables cohorts where DRAGEN and oncoanalyser outputs use different sample ID prefixes (e.g. APGI). Add nf-tests covering default path construction and explicit override. * chore: add TODO to document new dragen vcf filetypes in usage.md * fix dragen relative path from sample sheet * fix process PAVE_SOMATIC checks for MNVTAG in the VCF header before … (#54) * fix process PAVE_SOMATIC checks for MNVTAG in the VCF header before filtering * fix MNVTAG filter: use variable input path and add nf-tests - Replace cp with direct variable pass-through when MNVTAG absent (no disk copy, works on ICAv2 GDS and AWS Batch) - Fix typo: mnv_filtred -> mnv_filtered - Remove unnecessary intermediate file cleanup - Add stub nf-tests with fixtures for with/without MNVTAG header cases - Add .nf-test/ and .nf-test.log to .gitignore * Address Copilot review comments on PR #39 - Fix label syntax: split 'process_medium_memory', 'process_long' into separate label directives (sigrap/mutpat, bolt/cancer_report, bolt/annotate) - Remove unused args declaration in sigrap/mutpat and sigrap/hrdetect - Fix ch_misc_data_channel to value channel with .first() so reference data is broadcast across all samples, not just the first - Remove path '.command.*' from extract_tarball outputs (captures internal Nextflow debug files, not workflow results) - Hardcode vcf2maf version to 1.6.22 (--help exits non-zero, unreliable) - Fix trailing whitespace in prepare_input.nf CHORD path lines * Update README for 0.7.0 - Document optional dragen_somatic_vcf/dragen_germline_vcf samplesheet fields with example - Document pcgr_variant_chunk_size parameter for hypermutated samples - Update citation version from 0.6.0 to 0.7.0 * revert: keep args template pattern in sigrap modules; restore citation * fix PAVE_SOMATIC: tighten output glob to *.pave.somatic.vcf.gz to prevent PURPLE receiving mnv_filtered intermediate * remove redundant .first() on collect().map{} which is already a value channel * update changelog with PCGR * bump sigrap version * fix: bump bolt containers to 0.3.2 for PCGR hypermutated skip (sash#52) Ships the graceful PCGR skip on samples whose per-chunk variant count exceeds MAX_SOMATIC_VARIANTS, plus disable_estimates on chunked runs where MSI/TMB on partial VCFs is meaningless. Variant tag suffixes (-pcgr, -circos, -multiqc, -gpgr, -snpeff) preserved. * fix: migrate sigrap containers to ghcr.io/umccr/sigrap:0.3.0 Moves hrdetect and mutpat modules off the personal docker.io/qclayssen dev build to the official umccr ghcr release image. * docs: update CHANGELOG dependencies table for bolt 0.3.2, sigrap 0.3.0 * feat!: remove plain directory input support from prepare_reference (sash #39) Address Stephen's review: remove the dead else-branch that handled plain directory miscdata_paths inputs. Tarballs are now the only supported mode for pcgr_dir/vep_dir — a clear error is raised if no tarball entries are found in miscdata_paths. Adds nf-test for the tarball extraction path (prepare_reference subworkflow). BREAKING CHANGE: miscdata_paths entries requiring extraction (pcgr_dir, vep_dir) must be provided as .tar.gz/.tgz archives. Plain directory inputs are no longer supported. * docs: update ADR #1 with current PCGR variant limit implementation Reflects the current bolt 0.3.x tiered filtering approach (replaces outdated bolt v0.2.18 select_variants description). Documents the two silent failure modes in PCGR (Python-side variant drop + R-side HTML skip) that justify the 450k threshold. References bolt/docs/adr/001-max-somatic-variants-450k.md for the detailed boundary analysis. --------- Co-authored-by: Alexis Lucattini <[email protected]> Co-authored-by: Copilot <[email protected]>
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.
Add optional dragen_somatic_vcf and dragen_germline_vcf samplesheet filetypes. When present, they override the path constructed from tumor_id/normal_id. Enables cohorts where DRAGEN and oncoanalyser outputs use different sample ID prefixes (e.g. APGI).
Add nf-tests covering default path construction and explicit override.
slack thread