Skip to content

Add optional PRIDE Archive download via pridepy - #80

Merged
ypriverol merged 4 commits into
devfrom
claude/fix-pr-79-conflicts-I8ae1
May 4, 2026
Merged

ypriverol merged 4 commits into
devfrom
claude/fix-pr-79-conflicts-I8ae1

Conversation

@ypriverol

Copy link
Copy Markdown
Contributor

Description

This PR adds optional pre-download of raw files from PRIDE Archive using pridepy before analysis. This feature is useful when running the pipeline on clusters without pre-staged data.

Changes

  • New Module: Added modules/bigbio/pridepy/ with:

    • main.nf: Process definition for PRIDEPY_DOWNLOAD supporting multiple protocols (Globus, FTP, Aspera)
    • meta.yml: Module metadata and documentation
    • environment.yml: Conda dependency specification
    • tests/main.nf.test: Test cases for stub mode with and without checksum validation
    • tests/nextflow.config: Test configuration
  • Workflow Integration: Modified workflows/quantmsdiann.nf to:

    • Conditionally run PRIDEPY_DOWNLOAD when --pridepy_download is enabled
    • Pass downloaded files to CREATE_INPUT_CHANNEL for filename-based resolution
  • Input Channel Logic: Updated subworkflows/local/create_input_channel/main.nf to:

    • Accept downloaded files as a parameter
    • Substitute SDRF URIs with pre-downloaded local files matched by filename
    • Support both single files and file lists
  • Configuration:

    • Added conf/modules/shared.config entry for PRIDEPY_DOWNLOAD with sensible defaults
    • Updated nextflow.config with new parameters: pridepy_download, project_accession, pridepy_protocol, aspera_maximum_bandwidth
    • Updated nextflow_schema.json with parameter definitions and help text
  • Documentation:

    • Added PRIDE Archive Download section to docs/usage.md with parameter table and example
    • Updated docs/output.md to reflect optional pridepy step in pipeline overview
    • Updated CHANGELOG.md
  • Dependencies: Updated modules.json to include pridepy module from bigbio/nf-modules

Key Features

  • Optional: Disabled by default; requires explicit --pridepy_download flag
  • Protocol Support: Configurable download protocol (Globus, FTP, Aspera) via --pridepy_protocol
  • Bandwidth Control: Aspera-specific bandwidth limiting via --aspera_maximum_bandwidth
  • Validation: Integrated checksum validation via pridepy's --checksum-check flag
  • File Resolution: Downloaded files are matched to SDRF URIs by filename, allowing seamless integration with existing workflows

Testing

  • Added comprehensive nf-test cases covering stub mode with and without checksum validation
  • Tests verify correct output channels and file generation
  • Snapshot tests included for version tracking

PR Checklist

  • Description of changes provided
  • Tests added (nf-test cases for stub mode)
  • Followed pipeline conventions for new module
  • Usage documentation updated (docs/usage.md)
  • Output documentation updated (docs/output.md)
  • CHANGELOG.md updated
  • Configuration properly integrated into shared modules config

https://claude.ai/code/session_015bei91uHnfV4hsQ7HXQQUe

Shen-YuFei and others added 3 commits May 3, 2026 18:29
Resolves the merge conflict in subworkflows/local/create_input_channel/main.nf
between WIFF support (dev) and pridepy lookup (PR #79), and addresses the
unresolved Copilot review comments + nf-core lint failures:

- Resolve conflict in create_meta_channel_grouped: keep wiff handling and
  apply pridepy filename substitution to both single and List<filestr> cases
  before the existence check.
- workflows/quantmsdiann.nf: replace fragile transpose() + extra list-wrap
  with flatMap so PRIDEPY_DOWNLOAD.out.spectra is normalized to one
  [name, path] pair per file; pass collected list (or value([])) directly
  to CREATE_INPUT_CHANNEL — eliminates the extra nesting that prevented
  filename matching.
- conf/modules/shared.config: build pridepy -a argument from
  params.project_accession instead of meta.id, since meta is not in scope
  inside process config closures.
- modules/bigbio/pridepy/: re-sync to upstream nf-modules
  (2694907ec41be68998dab141be326f421e71eba6, pridepy 0.0.14) so the local
  copy matches the registered git_sha.
- modules.json: register the bigbio/pridepy module against its upstream sha.
- nextflow_schema.json: add pride_archive_download group with pridepy_download,
  project_accession, pridepy_protocol, aspera_maximum_bandwidth so nf-core
  lint stops flagging undocumented params.
- docs/usage.md: re-format with prettier.

https://claude.ai/code/session_015bei91uHnfV4hsQ7HXQQUe
@qodo-code-review

Copy link
Copy Markdown
ⓘ You've reached your Qodo monthly free-tier limit. Reviews pause until next month — upgrade your plan to continue now, or link your paid account if you already have one.

@coderabbitai

coderabbitai Bot commented May 4, 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: 0a88a659-0d78-43a2-9a81-1c38b323d5bf

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
  • Commit unit tests in branch claude/fix-pr-79-conflicts-I8ae1

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.

@github-actions

github-actions Bot commented May 4, 2026

Copy link
Copy Markdown

nf-core pipelines lint overall result: Passed ✅ ⚠️

Posted for pipeline commit 0bdebf8

+| ✅ 108 tests passed       |+
#| ❔  18 tests were ignored |#
#| ❔   1 tests had warnings |#
!| ❗   4 tests had warnings |!
Details

❗ Test warnings:

  • files_exist - File not found: conf/igenomes.config
  • files_exist - File not found: conf/igenomes_ignored.config
  • files_exist - File not found: .github/workflows/awstest.yml
  • files_exist - File not found: .github/workflows/awsfulltest.yml

❔ Tests ignored:

❔ Tests fixed:

✅ Tests passed:

Run details

  • nf-core/tools version 4.0.2
  • Run at 2026-05-04 15:42:27

Nextflow's combine() concatenates tuples element-wise, so a value channel
emitting List<[name,path]> spreads its elements as separate args (and an
empty list adds 0 args). The CREATE_INPUT_CHANNEL closure expects exactly
one extra `downloaded_files` argument, which caused:

  Invalid method invocation `call` with arguments: [...3 args...] on
  _closure19 type

Wrap the collected list in a 1-tuple via `.map { [it] }` so combine adds
the whole list as a single element. Use `channel.value([[]])` for the
disabled branch so the closure still receives an (empty) 4th arg.

https://claude.ai/code/session_015bei91uHnfV4hsQ7HXQQUe
@coderabbitai

coderabbitai Bot commented May 4, 2026

Copy link
Copy Markdown

Caution

Failed to replace (edit) comment. This is likely due to insufficient permissions or the comment being deleted.

Error details
{"name":"HttpError","status":502,"request":{"method":"PATCH","url":"https://api.github.com/repos/bigbio/quantmsdiann/issues/comments/4372395497","headers":{"accept":"application/vnd.github.v3+json","user-agent":"octokit.js/0.0.0-development octokit-core.js/7.0.6 Node.js/24","authorization":"token [REDACTED]","content-type":"application/json; charset=utf-8"},"body":{"body":"<!-- This is an auto-generated comment: summarize by coderabbit.ai -->\n<!-- This is an auto-generated comment: skip review by coderabbit.ai -->\n\n> [!IMPORTANT]\n> ## Review skipped\n> \n> Auto reviews are disabled on base/target branches other than the default branch.\n> \n> \n> \n> 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.\n> \n> <details>\n> <summary>⚙️ Run configuration</summary>\n> \n> **Configuration used**: defaults\n> \n> **Review profile**: CHILL\n> \n> **Plan**: Pro\n> \n> **Run ID**: `0a88a659-0d78-43a2-9a81-1c38b323d5bf`\n> \n> </details>\n> \n> You can disable this status message by setting the `reviews.review_status` to `false` in the CodeRabbit configuration file.\n> \n> Use the checkbox below for a quick retry:\n> - [ ] <!-- {\"checkboxId\": \"e9bb8d72-00e8-4f67-9cb2-caf3b22574fe\"} --> 🔍 Trigger review\n\n<!-- end of auto-generated comment: skip review by coderabbit.ai -->\n\n\n<!-- finishing_touch_checkbox_start -->\n\n<details>\n<summary>✨ Finishing Touches</summary>\n\n<details>\n<summary>🧪 Generate unit tests (beta)</summary>\n\n- [ ] <!-- {\"checkboxId\": \"f47ac10b-58cc-4372-a567-0e02b2c3d479\", \"radioGroupId\": \"utg-output-choice-group-unknown_comment_id\"} -->   Create PR with unit tests\n- [ ] <!-- {\"checkboxId\": \"6ba7b810-9dad-11d1-80b4-00c04fd430c8\", \"radioGroupId\": \"utg-output-choice-group-unknown_comment_id\"} -->   Commit unit tests in branch `claude/fix-pr-79-conflicts-I8ae1`\n\n</details>\n\n</details>\n\n<!-- finishing_touch_checkbox_end -->\n\n<!-- tips_start -->\n\n---\n\nThanks for using [CodeRabbit](https://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=bigbio/quantmsdiann&utm_content=80)! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.\n\n<details>\n<summary>❤️ Share</summary>\n\n- [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai)\n- [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai)\n- [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai)\n- [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code)\n\n</details>\n\n\n<sub>Comment `@coderabbitai help` to get the list of available commands and usage tips.</sub>\n\n<!-- tips_end -->"},"request":{"retryCount":3,"signal":{},"retries":3,"retryAfter":16}},"response":{"url":"https://api.github.com/repos/bigbio/quantmsdiann/issues/comments/4372395497","status":502,"headers":{"content-length":"32","content-type":"application/json","date":"Mon, 04 May 2026 15:50:12 GMT","etag":"\"69f8a5ad-20\"","server":"github.com","vary":"Accept-Encoding, Accept, X-Requested-With","x-github-request-id":"4088:A04C0:9EABE2:27512B9:69F8C02A","x-ratelimit-limit":"7150","x-ratelimit-remaining":"7113","x-ratelimit-reset":"1777912865","x-ratelimit-resource":"core","x-ratelimit-used":"37"},"data":{"message":"Server Error"}}}

@ypriverol
ypriverol requested review from Copilot and yueqixuan May 4, 2026 15:59
@ypriverol
ypriverol merged commit f9452b0 into dev May 4, 2026
23 checks passed
@ypriverol
ypriverol deleted the claude/fix-pr-79-conflicts-I8ae1 branch May 5, 2026 05:11
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