Repository navigation
chore(qpx): update the openmsconsensus module and pass the search database - #733
Conversation
…abase nf-core modules update bigbio/qpx/openmsconsensus -> bigbio/nf-modules d9e1b05, which brings: - write_dataset_mudata instead of build_mudata + mdata.write(), so a MuData missing a required quantification modality is refused rather than written. The old path shipped an h5mu with proteins and no precursors on MSV000085836 and exited 0 (bigbio/qpx#316). - *.h5mu optional again: the parquet views are the dataset's source of truth, so a best-effort artifact no longer kills an otherwise complete run. MSV000085836 lost a ~1h19 conversion to it three times. - container/conda pinned to qpx 1.1.4. - an optional FASTA input. LFQ and TMT now pass ch_database_wdecoy — the database the search actually used — so qpx fills null pg.sequence_coverage, pg.molecular_weight and feature.pg_positions for target rows. Decoy entries are skipped by the reader, so the with-decoy database is safe to pass, and .first() keeps it a value channel because the same channel already feeds ID and PROTEOMICSLFQ. Supersedes bigbio#732, which hand-edited the vendored module.
|
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: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
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 |
PR Summary by QodoUpdate OpenMS consensus QPX module and pass search FASTA
AI Description
Diagram
High-Level Assessment
Files changed (7)
|
Code Review by Qodo
1. Successful runs omit a promised file
|
| path "*.h5mu" , emit: mudata | ||
| // Optional: the parquet views are the dataset's source of truth, so a MuData | ||
| // view that cannot be built must not destroy an otherwise complete run. | ||
| path "*.h5mu" , emit: mudata, optional: true |
There was a problem hiding this comment.
1. Successful runs omit a promised file 🐞 Bug ⚙ Maintainability
QPX_OPENMSCONSENSUS now declares mudata optional and explicitly succeeds when write_dataset_mudata returns None, but the module metadata and output guide still describe the container as an unconditional output. Any best-effort MuData build failure therefore produces a successful run whose published qpx/ contents violate the documented module and user-facing contracts.
Agent Prompt
## Issue description
The MuData output is now optional, while the module metadata and user-facing output documentation still promise it as part of every QPX result.
## Fix Focus Areas
- modules/bigbio/qpx/openmsconsensus/main.nf[25-27]
- modules/bigbio/qpx/openmsconsensus/meta.yml[52-56]
- docs/output.md[164-165]
- docs/output.md[242-249]
## Recommended Fix
Describe the MuData container as a best-effort optional output in the module output metadata and both user-facing QPX output descriptions, while retaining the Parquet views as the guaranteed artifact.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
|
Proper module update for bigbio/nf-modules#52 (
nf-core modules update bigbio/qpx/openmsconsensus->d9e1b05). Supersedes #732, which hand-edited the vendored copy and would have been overwritten by the next update.What the module update brings
write_dataset_mudatainstead ofbuild_mudata+mdata.write().build_mudatacatches per-modality failures, logs them and continues, so a failed modality is simply absent — the module wrote that incomplete h5mu and the task exited 0. On MSV000085836 that shipped a view withproteinsand noprecursors(fix(mudata): widen strings before combining chunks qpx#316; 1.1.4 fixes the underlying pyarrow overflow, and that dataset now yields['precursors','proteins'], 5,520 x 633,097).*.h5muis optional again. As a required output it inverted qpx's contract — the parquet views are the source of truth, the MuData view is best-effort — and turned a best-effort artifact into a run-killer: MSV000085836 lost a ~1h19 conversion to it three times.Passing the search database
LFQ and TMT now pass
ch_database_wdecoy, the database the search actually used, so qpx fills nullpg.sequence_coverage,pg.molecular_weightandfeature.pg_positionsfor target rows (producer values are never overwritten; proteins absent from the FASTA stay null and are counted).Two details:
DECOY_sp|P12345|…from colliding with the target accession..first()keeps it a value channel; the same channel already feedsIDandPROTEOMICSLFQ.Measured with 1.1.4: TMT MSV000085836 goes from 0% to 100% coverage and molecular weight. On PXD000612, where OpenMS records these itself, FASTA values reproduce them (molecular weight identical on all 290,229 rows, coverage median difference 0.0 points).
Checks
nextflow lint: 20 files, no errors. The vendored module's stub test passes (NXF_VER=25.10.4 nf-test).quantmsdiann gets the same treatment for
qpx/diannin a separate PR.