Repository navigation
Add optional PRIDE Archive download via pridepy - #80
Conversation
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
ⓘ 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)
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 |
|
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
|
Caution Failed to replace (edit) comment. This is likely due to insufficient permissions or the comment being deleted. Error details |
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 forPRIDEPY_DOWNLOADsupporting multiple protocols (Globus, FTP, Aspera)meta.yml: Module metadata and documentationenvironment.yml: Conda dependency specificationtests/main.nf.test: Test cases for stub mode with and without checksum validationtests/nextflow.config: Test configurationWorkflow Integration: Modified
workflows/quantmsdiann.nfto:PRIDEPY_DOWNLOADwhen--pridepy_downloadis enabledCREATE_INPUT_CHANNELfor filename-based resolutionInput Channel Logic: Updated
subworkflows/local/create_input_channel/main.nfto:Configuration:
conf/modules/shared.configentry forPRIDEPY_DOWNLOADwith sensible defaultsnextflow.configwith new parameters:pridepy_download,project_accession,pridepy_protocol,aspera_maximum_bandwidthnextflow_schema.jsonwith parameter definitions and help textDocumentation:
docs/usage.mdwith parameter table and exampledocs/output.mdto reflect optional pridepy step in pipeline overviewCHANGELOG.mdDependencies: Updated
modules.jsonto include pridepy module from bigbio/nf-modulesKey Features
--pridepy_downloadflag--pridepy_protocol--aspera_maximum_bandwidth--checksum-checkflagTesting
PR Checklist
docs/usage.md)docs/output.md)CHANGELOG.mdupdatedhttps://claude.ai/code/session_015bei91uHnfV4hsQ7HXQQUe