Skip to content

Convert dragen dir paths to file objects - #12

Merged
alexiswl merged 1 commit into
mainfrom
bugfix/convert-samplesheet-file-paths-to-file-objects
Aug 11, 2025
Merged

alexiswl merged 1 commit into
mainfrom
bugfix/convert-samplesheet-file-paths-to-file-objects

Conversation

@alexiswl

Copy link
Copy Markdown
Member

Resolves #11

@alexiswl alexiswl self-assigned this Aug 10, 2025
@alexiswl alexiswl added the bug Something isn't working label Aug 10, 2025

@scwatts scwatts left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice, thank you! And if you've already tested this on ICA, let's merge!

@alexiswl
alexiswl merged commit c7fff3b into main Aug 11, 2025
@alexiswl
alexiswl deleted the bugfix/convert-samplesheet-file-paths-to-file-objects branch August 11, 2025 01:01
qclayssen added a commit that referenced this pull request Dec 23, 2025
* add document for https://trello.com/c/NEVSbxPK/1656-sash-planning-documentation

* add general doc workflow

* Add info readme

* add output.md file

* linting

* add doc

* uptdate usage

* add adr

* reorganise doc and linting

* fix typo

* linting add inputs

* linting

* more linting

* separation

* remove useless sumaary

* rescue -> integration

* rephrase linting

* Add tools and linting

* add tables

* remove redundancy

* remove redundancy

* missed changed in docs

* linting

* fix redundancy typo

* add table of content

* fix table

* fix filrer and info

* linting

* typo

* correct filter

* linting

* linting and improve writing

* fixing input doc + linting

* work usage

* add info usage

* reshape usage

* 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

* update esvee + linting

* bump and synchronised bolt version

* bump bolt version 0.3.0-dev-20

* revert gpgr container  version

* Update doc based latest changes from 0.6.0 to 0.7.0

* update pipeline overview adding MutationalPatterns
and HRDETECT

* update workflow overview and png

* Revert "Merge branch 'release/0.7.0' into Documentation"

This reverts commit c72cd6c, reversing
changes made to 8f45f12.

* Update to v0.6.3 - Documentation improvements only

---------

Co-authored-by: Alexis Lucattini <[email protected]>
qclayssen pushed a commit that referenced this pull request Apr 16, 2026
qclayssen added a commit that referenced this pull request Apr 22, 2026
* 45 missing gene entry for nm 0581954 transcript specific exon of cdkn2a (#47)



* update to production version umccr_reference_data = '2--1'

* Bump bolt 0.2.18 gpgr cancer report fix hypermutated sample (#46)

* bump bolt version 0.2.18

* update changelog

* Bump version: 0.6.3 → 0.6.4

* update changelog

* update log

* Convert dragen dir paths to file objects (#12)

(cherry picked from commit f9c4a64)

---------

Co-authored-by: Alexis Lucattini <[email protected]>
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support relative paths for dragen dirs in samplesheet

2 participants