Repository navigation
feat(pridepy): add pridepy download module - #30
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
Adds a new pridepy Nextflow module to wrap the pridepy CLI (biocontainers/pridepy:0.0.14) and provides nf-test coverage scaffolding for stub execution.
Changes:
- Introduces
PRIDEPY_DOWNLOADprocess with conda/container configuration and a stub implementation. - Adds module metadata (
meta.yml) and dependency specification (environment.yml). - Adds nf-test setup (config, test, snapshot) for stub-mode execution.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| modules/bigbio/pridepy/main.nf | New PRIDEPY_DOWNLOAD process definition, outputs, version reporting, and stub block |
| modules/bigbio/pridepy/meta.yml | Module metadata (tool info, inputs/outputs, authors/maintainers) |
| modules/bigbio/pridepy/environment.yml | Conda dependency pin for pridepy=0.0.14 |
| modules/bigbio/pridepy/tests/main.nf.test | nf-test definition (currently stub-only) |
| modules/bigbio/pridepy/tests/main.nf.test.snap | Snapshot for stub test output |
| modules/bigbio/pridepy/tests/nextflow.config | Test publishDir configuration |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| def args = task.ext.args ?: '' | ||
| """ | ||
| mkdir -p output | ||
| pridepy ${args} |
There was a problem hiding this comment.
The process declares path("output/") as the emitted download directory, but the script runs pridepy ${args} from the task workdir without directing pridepy’s outputs into output/. As written, output/ will exist but may be empty while pridepy writes files elsewhere, causing downstream steps to miss the downloads. Consider running pridepy within output/ (e.g., cd output before invoking it) or programmatically ensuring the tool’s output destination is set to output/ for the supported subcommands, and update the module interface/docs accordingly.
| pridepy ${args} | |
| ( | |
| cd output | |
| pridepy ${args} | |
| ) |
| stub: | ||
| """ | ||
| mkdir -p output | ||
| touch output/${meta.id}.placeholder |
There was a problem hiding this comment.
In the stub section, touch output/${meta.id}.placeholder is unquoted. If meta.id contains characters that are meaningful to the shell (spaces, glob characters, etc.), this can create unexpected files or fail. Quoting/sanitizing meta.id when used in paths would make the stub more robust and consistent with other modules in this repo that quote derived filenames.
| touch output/${meta.id}.placeholder | |
| touch "output/${meta.id}.placeholder" |
Pull Request
Description
Adds the pridepy module wrapping pridepy 0.0.14, a Python client for the PRIDE Archive REST API. The CLI is exposed via task.ext.args so callers can pick the sub-command (download-all-public-raw-files, download-file-by-name, etc.) and the protocol (aspera, globus, ftp, s3). Container: biocontainers/pridepy:0.0.14--pyhdfd78af_0.
Checklist
Module Type
Related Issues
N/A