Skip to content

Fix UNTAR/UNZIP/EPICORE version eval crashing on compressed .d input#455

Merged
jonasscheid merged 4 commits into
nf-core:devfrom
jonasscheid:fix-version-eval-substitution
May 22, 2026
Merged

Fix UNTAR/UNZIP/EPICORE version eval crashing on compressed .d input#455
jonasscheid merged 4 commits into
nf-core:devfrom
jonasscheid:fix-version-eval-substitution

Conversation

@jonasscheid
Copy link
Copy Markdown
Collaborator

Fixes #452UNTAR, UNZIP and EPICORE captured their tool version via an eval output of the form echo $(...), whose unquoted command substitution spliced parenthesis-containing version banners into the bash -c string and aborted the process, so every compressed Bruker .d input failed; replaced with direct command pipelines (no command substitution).

PR checklist

  • This comment contains a description of changes (with reason).
  • If you've fixed a bug or added code that should be tested, add tests!
  • If you've added a new tool - have you followed the pipeline conventions in the contribution docs
  • If necessary, also make a PR on the nf-core/mhcquant branch on the nf-core/test-datasets repository.
  • Make sure your code lints (nf-core pipelines lint).
  • Ensure the test suite passes (nextflow run . -profile test,docker --outdir <OUTDIR>).
  • Check for unexpected warnings in debug mode (nextflow run . -profile debug,test,docker --outdir <OUTDIR>).
  • Usage Documentation in docs/usage.md is updated.
  • Output Documentation in docs/output.md is updated.
  • CHANGELOG.md is updated.
  • README.md is updated (including new tool citations and authors/contributors).

…ng banners (nf-core#452)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Copy link
Copy Markdown

@Ngarciar24 Ngarciar24 left a comment

Choose a reason for hiding this comment

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

Nice catch 👍

Comment thread modules/local/unzip/main.nf Outdated
output:
tuple val(meta), path("*.d"), emit: unzipped_archive
tuple val("${task.process}"), val('7za'), eval("echo \$(7za --help) | sed 's/.*p7zip Version //; s/(.*//'"), topic: versions
tuple val("${task.process}"), val('7za'), eval("7za --help 2>&1 | sed -nE 's/.*p7zip Version ([0-9.]+).*/\\1/p'"), topic: versions
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Consider quiting after the firts match as done above: | head -n1

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

With above I mean line #15 ‎[modules/local/untar/main.nf]

Comment thread modules/local/unzip/main.nf Outdated
output:
tuple val(meta), path("*.d"), emit: unzipped_archive
tuple val("${task.process}"), val('7za'), eval("echo \$(7za --help) | sed 's/.*p7zip Version //; s/(.*//'"), topic: versions
tuple val("${task.process}"), val('7za'), eval("7za --help 2>&1 | sed -nE 's/.*p7zip Version ([0-9.]+).*/\\1/p'"), topic: versions
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

With above I mean line #15 ‎[modules/local/untar/main.nf]

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@jonasscheid jonasscheid merged commit 5b6d0d5 into nf-core:dev May 22, 2026
19 checks passed
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.

2 participants