Skip to content

feat(pridepy): integrate PRIDEPY_DOWNLOAD into workflow - #79

Closed
Shen-YuFei wants to merge 2 commits into
bigbio:devfrom
Shen-YuFei:dev
Closed

Shen-YuFei wants to merge 2 commits into
bigbio:devfrom
Shen-YuFei:dev

Conversation

@Shen-YuFei

Copy link
Copy Markdown
Contributor

PR checklist

  • This comment contains a description of changes (with reason).
  • If you've added a new tool - have you followed the pipeline conventions in the contribution docs
  • Usage Documentation in docs/usage.md is updated.
  • Output Documentation in docs/output.md is updated.
  • CHANGELOG.md is updated.

Description

Integrate pridepy PRIDEPY_DOWNLOAD module into quantmsdiann workflow for optional pre-downloading of raw files from PRIDE Archive before analysis.

Changes

  • modules/bigbio/pridepy/ — synced from nf-modules (pridepy 0.0.15)
  • nextflow.config — add pridepy_download, pridepy_protocol, aspera_maximum_bandwidth params
  • conf/modules/shared.config — add PRIDEPY_DOWNLOAD process config with ext.args
  • workflows/quantmsdiann.nf — conditionally invoke PRIDEPY_DOWNLOAD when --pridepy_download is set, pass downloaded files to downstream
  • subworkflows/local/create_input_channel/main.nf — accept downloaded file list and resolve pre-downloaded spectra by filename
  • docs/usage.md — add "PRIDE Archive Download" section with parameter table and usage example
  • docs/output.md — add pridepy step to pipeline overview and pridepy/ to output structure
  • CHANGELOG.md — add pridepy integration entry under [Unreleased]

Usage

nextflow run bigbio/quantmsdiann \
  --input sdrf.tsv \
  --database proteins.fasta \
  --pridepy_download \
  --project_accession PXD001819 \
  -profile docker
  ...

Copilot AI review requested due to automatic review settings May 3, 2026 10:38
@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 3, 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: e690c0ce-8629-4c09-80e7-f9f52cfbf772

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

Tip

💬 Introducing Slack Agent: The best way for teams to turn conversations into code.

Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire org—no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-in—scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

👉 Get started


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.

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

Integrates the PRIDEPY_DOWNLOAD (pridepy) module into the quantmsdiann workflow to optionally pre-download PRIDE Archive raw files before running the DIA-NN analysis pipeline.

Changes:

  • Adds modules/bigbio/pridepy/ (module + conda/container definition + nf-test coverage).
  • Wires optional PRIDEPY_DOWNLOAD execution into workflows/quantmsdiann.nf and attempts to resolve SDRF URIs against downloaded filenames in CREATE_INPUT_CHANNEL.
  • Adds new pipeline params (pridepy_download, project_accession, pridepy_protocol, aspera_maximum_bandwidth) and updates docs/changelog.

Reviewed changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
workflows/quantmsdiann.nf Conditionally runs PRIDEPY_DOWNLOAD and passes downloaded-file info into input-channel creation.
subworkflows/local/create_input_channel/main.nf Extends SDRF→input resolution to optionally replace SDRF URIs with pre-downloaded local files by filename.
nextflow.config Introduces PRIDE download-related parameters and defaults.
conf/modules/shared.config Adds shared process config for PRIDEPY_DOWNLOAD including default ext.args and publishing downloaded files.
modules/bigbio/pridepy/main.nf New pridepy download process definition (conda/container, outputs, versions).
modules/bigbio/pridepy/meta.yml New module metadata describing inputs/outputs and tool details.
modules/bigbio/pridepy/environment.yml New conda environment pinning pridepy 0.0.15.
modules/bigbio/pridepy/tests/* Adds nf-test coverage and snapshots for stub execution paths.
docs/usage.md Documents PRIDE download usage and parameters.
docs/output.md Adds pridepy to the pipeline step overview and output directory structure.
CHANGELOG.md Records pridepy integration under Unreleased.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/usage.md Resolved
Comment thread workflows/quantmsdiann.nf Resolved
Comment thread workflows/quantmsdiann.nf
Comment on lines 66 to 69
CREATE_INPUT_CHANNEL(
INPUT_CHECK.out.ch_input_file
INPUT_CHECK.out.ch_input_file,
ch_downloaded_files.collect().map { [it] }
)
Comment on lines +20 to +28
ext.args = {
"download-all-public-raw-files" +
" -a ${meta.id}" +
" -p ${params.pridepy_protocol}" +
" -o ." +
" -w 3" +
" --skip-if-downloaded-already --checksum-check" +
(params.pridepy_protocol == 'aspera' ? " --aspera-maximum-bandwidth ${params.aspera_maximum_bandwidth}" : "")
}
@ypriverol

Copy link
Copy Markdown
Contributor

@Shen-YuFei you have a lot of issues wih the nf-core validations

Copy link
Copy Markdown
Contributor

Superseded by #80, which carries the same feature rebased onto current dev with the merge conflict resolved and the open Copilot review comments + nf-core lint / pre-commit failures addressed:

  • Conflict in subworkflows/local/create_input_channel/main.nf reconciled with the WIFF list-handling on dev.
  • workflows/quantmsdiann.nf: transpose() + .map { meta, f -> [f.name, f] } replaced with a flatMap (handles List<Path> from the spectra glob); removed the extra .collect().map { [it] } nesting; channel.value([]) for the disabled branch.
  • conf/modules/shared.config: -a arg sourced from params.project_accession instead of meta.id (out of scope in process config closures).
  • nextflow_schema.json: added a pride_archive_download group documenting the four new params.
  • modules.json: bigbio/pridepy registered against its upstream sha; module re-synced to upstream nf-modules (pridepy 0.0.14) so local content matches the registered sha.
  • docs/usage.md re-formatted with prettier.

Closing this PR in favour of #80 should be safe.


Generated by Claude Code

@ypriverol ypriverol closed this May 4, 2026
Shen-YuFei pushed a commit to Shen-YuFei/quantmsdiann that referenced this pull request May 5, 2026
Resolves the merge conflict in subworkflows/local/create_input_channel/main.nf
between WIFF support (dev) and pridepy lookup (PR bigbio#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
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