Repository navigation
fix: boolean flags on Nextflow 26, --help; require Nextflow >= 25.10; add CHANGELOG.md - #133
Merged
Merged
Conversation
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>
There was a problem hiding this comment.
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>
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.
With Nextflow 26, any boolean flag on the command line failed the parameter validation, e.g.
nextflow run . -profile test --protein_trace: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
Nextflow ≥ 25.10, so:
manifest.nextflowVersionis now>=25.10.0(was>=22.10.4). On older Nextflow, the runstops with "requires Nextflow version >=25.10.0".
latest-everything).nextflowpip extra andenvironment-conda.ymlrequirenextflow>=25.10. Inuv.lockonly the one specifier line changes.
paramsSummaryLogwhenone 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 newNextflow 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, orNXF_VER=25.10.9 nextflow run …, is enough to switch.