fix(pridepy): drop output/ subdir, write to workDir#33
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ 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 |
Up to standards ✅🟢 Issues
|
There was a problem hiding this comment.
Pull request overview
Updates the bigbio/pridepy Nextflow module to write outputs directly into the task work directory (instead of an output/ subfolder) and aligns emitted outputs and tests with nf-modules conventions.
Changes:
- Removed the
mkdir -p output/cd outputwrapper sopridepywrites to the workDir root. - Replaced the single
download_dirdirectory output with two optional emitted channels:spectraandchecksums. - Expanded nf-test coverage to validate stub behavior for both “no checksum” and “with
--checksum-check” cases, updating snapshots accordingly.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| modules/bigbio/pridepy/main.nf | Drops output/ subdir usage; emits spectra + checksums (optional) and updates stub to conditionally create checksum output. |
| modules/bigbio/pridepy/meta.yml | Syncs output schema/documentation from download_dir to spectra + checksums. |
| modules/bigbio/pridepy/tests/nextflow.config | Adds withName: PRIDEPY_DOWNLOAD to pass module args via ext.args from test params. |
| modules/bigbio/pridepy/tests/main.nf.test | Adds two stub-mode tests and asserts channel sizes + snapshots for spectra/checksums/versions. |
| modules/bigbio/pridepy/tests/main.nf.test.snap | Updates snapshots to match new emitted channels and stub outputs. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Pull Request
Description
Address review on #31:
mkdir -p outputandcd outputare unnecessary because Nextflow already runs each task in its own workDir; the explicitoutput/subdirectory wraps the tool call in dead weight. Switch the module to write outputs directly to the workDir and let downstream pipelines glob viamodules.config.main.nfmkdir -p output+cd outputwrapper fromscript; pridepy now writes to the workDir root.tuple val(meta), path(output/)with two emit channels matching nf-modules style (cf.THERMORAWFILEPARSER):spectra—*.{raw,mzML,mzML.gz,mgf,d.tar,d.tar.gz,d.zip,dia,wiff,wiff.scan},optional: truechecksums—*-checksum.tsv,optional: true-checksum.tsvcreation on--checksum-checkintask.ext.argsso stub behaviour matches production.meta.yml: sync output schema (download_dir->spectra+checksums).tests/main.nf.test+tests/nextflow.config: expand stub coverage to two cases (no checksum / with--checksum-check); assertions coverspectra/checksums/versionssize and snapshots.Verified locally:
Downstream consumers (quantms, quantmsdiann) will need to drop
-o outputfromtask.ext.argsand switch from thedownload_dirdirectory channel to thespectrafile channel.Checklist
main.nfincludes process definitionmeta.ymlincludes complete documentationenvironment.ymlspecifies dependenciesModule Type
Related Issues
Refs #31