Skip to content

Change deprecated Channel and make closures parameters explicit#932

Merged
dialvarezs merged 9 commits intonf-core:devfrom
dialvarezs:fix-deprecations
Nov 17, 2025
Merged

Change deprecated Channel and make closures parameters explicit#932
dialvarezs merged 9 commits intonf-core:devfrom
dialvarezs:fix-deprecations

Conversation

@dialvarezs
Copy link
Copy Markdown
Member

@dialvarezs dialvarezs commented Nov 16, 2025

This is a style-only pr.

In Nextflow 25.10 Channel usage was deprecated, because it's used now for typing, so I changed all the usages in local workflows to channel.
I also made closure parameters explicit (this was also beign flagged by the LSP)
And make other minor modifications like splitting looong lines, and a minor refactoring in the assembly workflow.

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/mag 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).

@dialvarezs dialvarezs changed the title Change deprecated Channel() by channel() and make parameters explicit in closures. Change deprecated Channel() by channel() and make closures parameters explicit Nov 16, 2025
@dialvarezs dialvarezs changed the title Change deprecated Channel() by channel() and make closures parameters explicit Change deprecated Channel() and make closures parameters explicit Nov 16, 2025
@dialvarezs dialvarezs changed the title Change deprecated Channel() and make closures parameters explicit Change deprecated Channel and make closures parameters explicit Nov 17, 2025
Copy link
Copy Markdown
Member

@jfy133 jfy133 left a comment

Choose a reason for hiding this comment

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

Other than the one line I'm unsure about, looks good!

Comment thread subworkflows/local/assembly/main.nf Outdated
Comment thread subworkflows/local/assembly/main.nf
Comment thread subworkflows/local/assembly/main.nf
Comment thread subworkflows/local/assembly/main.nf
Comment thread subworkflows/local/utils_nfcore_mag_pipeline/main.nf
Comment thread CHANGELOG.md Outdated
Co-authored-by: James A. Fellows Yates <[email protected]>
@jfy133
Copy link
Copy Markdown
Member

jfy133 commented Nov 17, 2025

@dialvarezs we have a conflict, please resolve it and ping me and I'll do one last quick check and then I tihnk you can merge :)

@dialvarezs
Copy link
Copy Markdown
Member Author

@jfy133 It's solved now

@jfy133
Copy link
Copy Markdown
Member

jfy133 commented Nov 17, 2025

@dialvarezs I think you're missing the comment about bbnorm and the interleaved thing (on my phone tho, so if it'd there and GitHub app being poopy please shout)

@jfy133
Copy link
Copy Markdown
Member

jfy133 commented Nov 17, 2025

It was being poopy, loaded now! Looking again

@jfy133
Copy link
Copy Markdown
Member

jfy133 commented Nov 17, 2025

You can merge @dialvarezs !

@dialvarezs dialvarezs merged commit f58409b into nf-core:dev Nov 17, 2025
21 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.

3 participants