Skip to content

Default local_input_type to raw and enforce supported local file formats - #64

Merged
ypriverol merged 9 commits into
devfrom
copilot/fix-local-raw-file-type
Apr 24, 2026
Merged

ypriverol merged 9 commits into
devfrom
copilot/fix-local-raw-file-type

Conversation

Copilot AI commented Apr 21, 2026 •

Copy link
Copy Markdown
Contributor

local_input_type was defaulting to mzML, which conflicts with the typical local input flow (raw → TRFP conversion). The parameter also needed strict validation to prevent unsupported formats (e.g. .wiff) from being accepted.

  • Parameter defaults and constraints

    • Changed local_input_type default from mzML to raw in pipeline defaults.
    • Added schema-level enum restriction to allowed values only:
      • mzML, raw, d, dia, d.tar, d.tar.gz, d.zip.
    • Bruker .d archive variants (d.tar, d.tar.gz, d.zip) are decompressed automatically by the workflow (.d.zip is exercised by the test_dia_dotd profile / PXD065380 SDRF).
  • Runtime validation in local file resolution

    • Added an explicit guard in CREATE_INPUT_CHANNEL to fail early when --root_folder is used with an unsupported --local_input_type.
    • Error message now lists supported values directly for fast correction.
  • Docs alignment

    • Updated parameter reference docs to reflect raw as the default and the supported value set.
def allowedLocalInputTypes = ['mzML', 'raw', 'd', 'dia', 'd.tar', 'd.tar.gz', 'd.zip']

if (params.root_folder && params.local_input_type && !allowedLocalInputTypes.contains(params.local_input_type)) {
    exit(1, "ERROR: Unsupported --local_input_type '${params.local_input_type}'. Supported values: ${allowedLocalInputTypes.join(', ')}")
}

Copilot AI linked an issue Apr 21, 2026 that may be closed by this pull request
2 tasks
Copilot AI changed the title [WIP] Fix local raw file type to default to raw instead of mzML Default local_input_type to raw and enforce supported local file formats Apr 21, 2026
Copilot AI requested a review from ypriverol April 21, 2026 13:35
claude and others added 5 commits April 21, 2026 18:19
- Move the --local_input_type validation to the top of CREATE_INPUT_CHANNEL
  so it fails fast before any channel processing.
- Bump pipeline version to 2.1.0dev for the next development cycle.
Extend the allowed values for --local_input_type to include the Bruker
.d compressed archive variants that the pipeline already decompresses
(.d.tar, .d.tar.gz, .d.zip). The DECOMPRESS process handles all three
and emits a .d directory, so users can point --root_folder at folders
of .d.zip archives and set --local_input_type=d.zip without tripping
the validator.
Revert the Math.min wrappers on memory and cpus; resourceLimits already
caps allocations at 1900.GB / 48 cpus, so the manual clamping was
redundant and cluttered the expression.
Move input type validation before SDRF parsing
@github-actions

github-actions Bot commented Apr 22, 2026 •

Copy link
Copy Markdown

nf-core pipelines lint overall result: Passed ✅ ⚠️

Posted for pipeline commit 57896bb

+| ✅ 106 tests passed       |+
#| ❔  19 tests were ignored |#
#| ❔   1 tests had warnings |#
!| ❗   4 tests had warnings |!
Details

❗ Test warnings:

  • files_exist - File not found: conf/igenomes.config
  • files_exist - File not found: conf/igenomes_ignored.config
  • files_exist - File not found: .github/workflows/awstest.yml
  • files_exist - File not found: .github/workflows/awsfulltest.yml

❔ Tests ignored:

❔ Tests fixed:

✅ Tests passed:

Run details

  • nf-core/tools version 3.5.2
  • Run at 2026-04-24 13:23:02

ypriverol and others added 2 commits April 24, 2026 14:18
Populate the [Unreleased] section (bumped to 2.1.0dev by the version
manifest change) with entries for the --local_input_type default switch,
the schema enum / runtime validation, the Bruker .d archive variants,
the pride_codon_slurm resource cleanup, and the native-raw stageInMode
fix merged from #68.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@ypriverol
ypriverol merged commit f9ae64a into dev Apr 24, 2026
10 checks passed
@ypriverol
ypriverol deleted the copilot/fix-local-raw-file-type branch May 5, 2026 05:11
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.

the local raw file type should be raw default and not mzML

4 participants