Repository navigation
🎨 address ifEmpty(null) - #600
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Pull Request Overview
This PR removes deprecated .ifEmpty(null) calls from channel mixing operations throughout the pipeline, aligning with nf-core best practices. The .ifEmpty(null) pattern is no longer recommended in Nextflow workflows.
Key changes:
- Removed
.ifEmpty(null)from allch_software_versions.mix()andch_versions.mix()operations - Changes span across main workflows (TMT, LFQ, DIA, QUANTMS) and subworkflows (ID, DDA_ID)
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| workflows/tmt.nf | Removed .ifEmpty(null) from 6 version channel mixing operations |
| workflows/quantms.nf | Removed .ifEmpty(null) from 8 version channel mixing operations |
| workflows/lfq.nf | Removed .ifEmpty(null) from 3 version channel mixing operations |
| workflows/dia.nf | Removed .ifEmpty(null) from 7 version channel mixing operations |
| subworkflows/local/id/main.nf | Removed .ifEmpty(null) from 5 version channel mixing operations |
| subworkflows/local/dda_id/main.nf | Removed .ifEmpty(null) from 4 version channel mixing operations |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
|
Don't other NF core workflows add this anymore? If so, I guess it's fine. |
|
Because this was not our idea 😅 we merely copied their standards to propagate versions to the yaml for the report |
No, they are moving away from that "standard". But as quantms is one of the most maintained workflow, we are moving early. |
https://nf-co.re/tools/docs/3.4.1/pipeline_lint_tests/pipeline_if_empty_null
recommends to just remove this snippet
PR checklist
nf-core pipelines lint).nextflow run . -profile test_lfq,docker --outdir <OUTDIR>).nextflow run . -profile debug,test_lfq,docker --outdir <OUTDIR>).Some linting warnings