Repository navigation
feat(pridepy): integrate PRIDEPY_DOWNLOAD into workflow - #79
Shen-YuFei wants to merge 2 commits into
Conversation
ⓘ 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. |
|
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)
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.
Built for teams:
One agent for your entire SDLC. Right inside Slack. 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 |
There was a problem hiding this comment.
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_DOWNLOADexecution intoworkflows/quantmsdiann.nfand attempts to resolve SDRF URIs against downloaded filenames inCREATE_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.
| CREATE_INPUT_CHANNEL( | ||
| INPUT_CHECK.out.ch_input_file | ||
| INPUT_CHECK.out.ch_input_file, | ||
| ch_downloaded_files.collect().map { [it] } | ||
| ) |
| 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}" : "") | ||
| } |
|
@Shen-YuFei you have a lot of issues wih the nf-core validations |
|
Superseded by #80, which carries the same feature rebased onto current
Closing this PR in favour of #80 should be safe. Generated by Claude Code |
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
PR checklist
Description
Integrate pridepy
PRIDEPY_DOWNLOADmodule 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)pridepy_download,pridepy_protocol,aspera_maximum_bandwidthparamsPRIDEPY_DOWNLOADprocess config with ext.argsPRIDEPY_DOWNLOADwhen--pridepy_downloadis set, pass downloaded files to downstream[Unreleased]Usage