Skip to content

fix: boolean flags on Nextflow 26, --help; require Nextflow >= 25.10; add CHANGELOG.md - #133

Merged
alpae merged 4 commits into
devfrom
fix/nextflow-26-boolean-params
Nov 25, 2026
Merged

alpae merged 4 commits into
devfrom
fix/nextflow-26-boolean-params

Conversation

@alpae

@alpae alpae commented Nov 25, 2026

Copy link
Copy Markdown
Member

With Nextflow 26, any boolean flag on the command line failed the parameter validation, e.g.
nextflow run . -profile test --protein_trace:

* --protein_trace (true): Value is [string] but should be [boolean]

Nextflow 26 passes command-line params as strings, and nf-schema 2.4.0 does not cast them.
CI did not catch this: nf-test sets params as typed values, not on the command line.

Changes

  • nf-schema 2.4.0 → 2.7.3, which casts command-line params to their schema type. It needs
    Nextflow ≥ 25.10, so:
    • manifest.nextflowVersion is now >=25.10.0 (was >=22.10.4). On older Nextflow, the run
      stops with "requires Nextflow version >=25.10.0".
    • The nf-test matrix tests Nextflow 25.10.9 instead of 24.10.2 (plus latest-everything).
    • The nextflow pip extra and environment-conda.yml require nextflow>=25.10. In uv.lock
      only the one specifier line changes.
  • Workaround for paramsSummaryLog: cannot cast String to Map nextflow-io/nf-schema#239. nf-schema 2.x crashes in paramsSummaryLog when
    one container is set for all processes (our docker/singularity profiles), on Nextflow 25.10 and
    26.04 alike. The summary is only informational, so a failure is now logged as a warning. nf-schema
    3.x fixes this but needs Nextflow ≥ 26.04. The workaround can go when we move to 3.x.
  • CHANGELOG.md: the change log moves out of the README. Its "Unreleased" section lists the new
    Nextflow requirement, the features added since v0.5.1, the changes to the inferred output (no more
    dropped proteins, TaxRange of top-level duplications, …) and the fixes. The README states the
    requirement at the top of the install section and links to the changelog.

Note for users: Nextflow < 25.10 is no longer supported. nextflow self-update, or
NXF_VER=25.10.9 nextflow run …, is enough to switch.

  • fix: boolean command-line flags fail validation on Nextflow 26
  • fix: --help stops the run and no longer fails with nf-schema 2.7
  • docs: CHANGELOG.md, with the new Nextflow requirement and the changes since v0.5.1

alpae and others added 3 commits November 25, 2026 09:26
Nextflow 26 passes command-line params as strings, and nf-schema 2.4.0 then rejects e.g.
`--protein_trace` ("Value is [string] but should be [boolean]"). nf-schema 2.7.x casts command-line
params to the schema type, but needs Nextflow >= 25.10.

- nf-schema 2.4.0 -> 2.7.3, manifest.nextflowVersion >= 25.10.0
- CI tests Nextflow 25.10.9 instead of 24.10.2 (plus latest-everything)
- nf-schema 2.x fails in paramsSummaryLog when a single container is set for all processes (the
  docker/singularity profiles), nextflow-io/nf-schema#239. The summary is
  only informational, so a failure is logged as a warning. nf-schema 3.x fixes it, but needs
  Nextflow >= 26.04.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
nf-schema prints the help message itself (validation.help.enabled), but does not stop the run.
FastOMA's own help block then called paramsHelp("nextflow run FastOMA.nf"), whose argument is a
parameter name since nf-schema 2.5 ("Specified param ... does not exist in JSON schema"). The block now
only exits after --help, --help <parameter> or --helpFull.

We also add some before- and afterText.
… since v0.5.1

- the change log moves from the end of the README to CHANGELOG.md; the README links to it and states
  the Nextflow requirement (>= 25.10) at the top of the install section
- the "Unreleased" section lists the requirement, the added features, the changes of the inferred
  output and the fixes since v0.5.1
- the nextflow pip extra and the conda environment require nextflow >= 25.10

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@alpae
alpae requested a balanced review from Copilot November 25, 2026 09:58

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

Nextflow 26 passes command-line values as strings, also after
validateParameters(): `--write_msas false` etc. were truthy and turned the
option on, and `--memory_multiplier`/`--time_multiplier` made the resource
closures fail (MemoryUnit * String). Read boolean params with
.toString().toBoolean() and the multipliers with `as BigDecimal` wherever
they are used, including conf/base.config and nextflow.config.

Also add a CI smoke test that runs the pipeline with params on the command
line (nf-test passes them typed, so it missed this), and name the actual
exception when the parameter summary cannot be printed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@alpae
alpae merged commit 8a87513 into dev Nov 25, 2026
26 checks passed
@alpae
alpae deleted the fix/nextflow-26-boolean-params branch November 25, 2026 16:54
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