Skip to content

feat(pridepy): add pridepy download module - #30

Merged
ypriverol merged 4 commits into
bigbio:devfrom
Shen-YuFei:dev
Apr 28, 2026
Merged

ypriverol merged 4 commits into
bigbio:devfrom
Shen-YuFei:dev

Conversation

@Shen-YuFei

Copy link
Copy Markdown
Contributor

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 follows nf-core standards
  • main.nf includes process definition
  • meta.yml includes complete documentation
  • environment.yml specifies dependencies
  • Tests are included
  • Code is formatted (prettier)
  • CI checks pass

Module Type

  • New module
  • Module update
  • Bug fix
  • Documentation

Related Issues

N/A

Copilot AI review requested due to automatic review settings April 28, 2026 06:40
@coderabbitai

coderabbitai Bot commented Apr 28, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 08b073f3-29bf-49b8-b8e4-bc6e9d38a8bf

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@codacy-production

codacy-production Bot commented Apr 28, 2026 •

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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_DOWNLOAD process 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.

Comment thread modules/bigbio/pridepy/main.nf Resolved
Comment thread modules/bigbio/pridepy/main.nf Resolved
Comment thread modules/bigbio/pridepy/meta.yml Resolved
Comment thread modules/bigbio/pridepy/meta.yml Resolved
Comment thread modules/bigbio/pridepy/main.nf Resolved
Comment thread modules/bigbio/pridepy/main.nf Resolved

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

Comment thread modules/bigbio/pridepy/main.nf Outdated
def args = task.ext.args ?: ''
"""
mkdir -p output
pridepy ${args}

Copilot AI Apr 28, 2026

Copy link

Choose a reason for hiding this comment

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

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.

Suggested change
pridepy ${args}
(
cd output
pridepy ${args}
)

Copilot uses AI. Check for mistakes.
Comment thread modules/bigbio/pridepy/main.nf Outdated
stub:
"""
mkdir -p output
touch output/${meta.id}.placeholder

Copilot AI Apr 28, 2026

Copy link

Choose a reason for hiding this comment

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

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.

Suggested change
touch output/${meta.id}.placeholder
touch "output/${meta.id}.placeholder"

Copilot uses AI. Check for mistakes.
@ypriverol
ypriverol merged commit 8cd0e28 into bigbio:dev Apr 28, 2026
1 check 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