Skip to content

fix: quote env() outputs in RASTAIR_MBIASPARSER for Nextflow strict parser#618

Merged
FelixKrueger merged 1 commit into
nf-core:devfrom
FelixKrueger:fix/rastair-strict-env
Jul 20, 2026
Merged

fix: quote env() outputs in RASTAIR_MBIASPARSER for Nextflow strict parser#618
FelixKrueger merged 1 commit into
nf-core:devfrom
FelixKrueger:fix/rastair-strict-env

Conversation

@FelixKrueger

@FelixKrueger FelixKrueger commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

Description

Fixes the Nextflow strict config/script parser (≥25.10) error in RASTAIR_MBIASPARSER. The bare identifier env() output declarations:

tuple val(meta), env(trim_OT), env(trim_OB),   emit: mbias_processed_str

fail the strict parser with `trim_OT` is not defined / `trim_OB` is not defined. The strict parser requires quoted string literals:

tuple val(meta), env('trim_OT'), env('trim_OB'),   emit: mbias_processed_str

This was the pipeline's only strict-parser error, so nextflow lint is now clean — a prerequisite for adopting Nextflow ≥25.10.

rastair is an nf-core/modules-managed module, so the change is carried as a local module patch (modules/nf-core/rastair/mbiasparser/rastair-mbiasparser.diff, registered in modules.json). The same one-line fix is being upstreamed to nf-core/modules; once released, the patch dissolves on the next nf-core modules update.

Verification

  • nextflow lint0 errors (whole pipeline strict-clean).
  • nf-core modules lint rastair/mbiasparser0 failures (patch registered, so modules_unchanged passes).

PR checklist

  • This comment contains a description of changes (with reason).
  • CHANGELOG.md is updated.
  • Code lints (nextflow lint, nf-core modules lint).

Upstream status

The equivalent fix already exists on nf-core/modules master, bundled into a larger modernization of rastair/mbiasparser (env vars quoted + renamed to TRIM_OT/TRIM_OB, container apptainer support, and a migration to topic-channel versions). Because adopting that wholesale via nf-core modules update would also pull the topic-versions API change (emit: versionstopic: versions) and require rewiring bam_taps_conversion, this PR keeps the minimal local patch for now. The patch will dissolve when the rastair modules are updated to topic-versions in a separate task — so no upstream PR is needed.

…arser

Bare `env(trim_OT)`/`env(trim_OB)` output declarations fail Nextflow's strict
config/script parser (>=25.10) with "`trim_OT` is not defined". Quote them as
`env('trim_OT')`/`env('trim_OB')`.

Applied as a local nf-core module patch (rastair-mbiasparser.diff) since rastair
is an nf-core/modules-managed module; the same one-line fix will be upstreamed to
nf-core/modules. This was the pipeline's only strict-parser error, so `nextflow
lint` is now clean.
@FelixKrueger
FelixKrueger requested a review from a team as a code owner July 19, 2026 17:05
@FelixKrueger
FelixKrueger requested a review from sateeshperi July 19, 2026 17:05
@nf-core-bot

Copy link
Copy Markdown
Member

Warning

Newer version of the nf-core template is available.

Your pipeline is using an old version of the nf-core template: 3.5.1.
Please update your pipeline to the latest version.

For more documentation on how to update your pipeline, please see the nf-core documentation and Synchronisation documentation.

@FelixKrueger
FelixKrueger merged commit e02171c into nf-core:dev Jul 20, 2026
101 checks passed
@FelixKrueger
FelixKrueger deleted the fix/rastair-strict-env branch July 20, 2026 17:27
FelixKrueger added a commit that referenced this pull request Jul 20, 2026
Brings in dev's rastair strict-parser fix (#618, clears the pre-commit check)
and Trim Galore 2.3.0 (#617). The 8 pipeline snapshots are resolved to the
template-branch versions here as placeholders; they are regenerated in the
following commit against the merged modules (multiqc 1.34 + Trim Galore 2.3.0),
since neither branch's snapshots match the merged combination.
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.

3 participants