Repository navigation
feat(dda): refine OpenMS -out_qpx into clean QPX, replace mzTab as published artifact - #725
Conversation
…blished artifact Add a QPX_CONVERT step to the DDA LFQ and TMT workflows that runs the qpx tool (qpxc convert openms) over the OpenMS -out_qpx output + the companion consensusXML + the SDRF, producing the final clean QPX dataset (canonical channel labels, run/sample/ontology/provenance/dataset tables, MuData) at parity with the DIA-NN (quantmsdiann) path. - new module modules/local/qpx/qpx_convert/main.nf - wire QPX_CONVERT into workflows/lfq.nf and workflows/tmt.nf - final_result (fed to pmultiqc) now emits the QPX dataset instead of the mzTab - MSSTATS already consumes consensusXML, not mzTab -- no change needed there - nextflow.config: qpx_version + accession params DRAFT: blocked on the qpx tool release + its BioContainer. See OpenMS#9817 for the upstream -out_qpx labelling fixes.
|
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 Plus 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 |
|
|
@ypriverol @timosachsenberg What is missing such that consensusXML export can be completely skipped? |
|
I think it is mainly done. In the process it was more about figuring out details on merge keys etc. |
qpx is now released (1.1.0) and published as a Docker image to ghcr.io/bigbio/qpx on every v*.*.* tag (not BioContainers). Point the QPX_CONVERT container at the real GHCR image and bump params.qpx_version to 1.1.0, unblocking the DDA -> QPX conversion. Singularity pulls the same image via docker://. Verified qpxc convert openms accepts all module flags (--qpx-dir/--consensusxml/--sdrf-file/--output-folder/--output-prefix/ --compression/--project-accession) and that ghcr.io/bigbio/qpx:1.1.0 exists.
qpx 1.1.0 is released; pmultiqc is moving to consume QPX. Remove mzTab support: - QPX_CONVERT: always track the latest qpx image (ghcr.io/bigbio/qpx:latest); drop the params.qpx_version pin (per 'always use the latest tool version'). - ProteomicsLFQ / IsobaricWorkflow: drop the mzTab output (-out mzTab / -out_mzTab) and the out_mztab emit; keep -out_cxml (consensusXML) + -out_qpx. - Remove the export_mztab param (+ schema) and re-gate pmultiqc's --quantms-plugin on enable_pmultiqc (the plugin now reads QPX, not mzTab). - Remove qpx_version + export_mztab from nextflow_schema.json. - docs/output.md + pmultiqc meta.yml: describe QPX as the published artifact. NOTE for E2E verification (draft): this assumes OpenMS ProteomicsLFQ accepts omitting -out (implied by the -out_qpx output); if -out is still required, restore it (unemitted). The stale 'pmultiqc/mztab' search pattern in assets/multiqc_config.yml is left for the pmultiqc-QPX work.
E2E surfaced that OpenMS IsobaricWorkflow REQUIRES -out_mzTab (and ProteomicsLFQ -out) — dropping the flag fails the tool with 'required parameter out_mzTab not given'. Restore -out_mzTab (IsobaricWorkflow) and -out (ProteomicsLFQ) so the tools run, but keep the out_mztab emit removed: the mzTab is written to the work dir yet never declared as an output, so the pipeline neither publishes nor consumes it. QPX (-out_qpx) remains the sole published quantification artifact. Guard comments added so the required flags are not removed again.
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
qpx 1.1.0 is now published to BioConda/BioContainers, so QPX_CONVERT uses the standard nf-core dual container (Galaxy depot singularity + biocontainers docker) like the other quantms modules, replacing the ghcr.io/bigbio/qpx image. Also corrects the module header comment to qpxc convert openms-consensus.
The BioContainers image (biocontainers/qpx) exists on quay.io, but the Galaxy depot singularity mirror has not synced qpx yet, so singularity runs (the EBI cluster) would fail to pull. Revert to ghcr.io/bigbio/qpx, which serves both Docker and Singularity (via docker://). Switch back to BioContainers once the depot mirror catches up.
quant_tables was publishing ProteomicsLFQ/IsobaricWorkflow's raw -out_qpx folder (which mis-assigns every PSM's run, OpenMS#9872, and has no psm_id) plus the consensusXML, while QPX_CONVERT's refined QPX (the qpxc convert openms-consensus output, with correct per-PSM run, psm_id, and localization scores) was not published at all. Publish QPX_CONVERT's output to quant_tables; restrict ProteomicsLFQ/ IsobaricWorkflow publishing to the MSstats input only (the raw -out_qpx and consensusXML are intermediates consumed by QPX_CONVERT).
…accession
quant_tables/ keeps msstats + quant tables; the refined QPX dataset now
publishes flat under qpx/ (psm/feature/pg + metadata parquets), matching
quantmsdiann's QPX_EXPORT layout. Emit dataset files individually
(${prefix}_qpx/*) so publishDir saveAs strips the wrapping dir. Also fix
the doubled/dangling --project-accession flag in the QPX_CONVERT command
(accession already carries the flag).
Replace the local QPX_CONVERT module with the shared bigbio/qpx/openmsconsensus nf-module (GHCR qpx:1.1.1). Brings the MuData (.h5mu) build step, --compression zstd, and the qpx_output/* layout that quantms was missing, and keeps quantms/quantmsdiann on one shared converter. - vendor modules/bigbio/qpx/openmsconsensus + modules.json entry - lfq.nf/tmt.nf: call QPX_OPENMSCONSENSUS(consensusxml, sdrf, accession); final_result = .out.qpx_dataset - shared.config: publishDir targets QPX_OPENMSCONSENSUS (flat qpx/, incl .h5mu) - remove modules/local/qpx/qpx_convert Validated via 'nextflow inspect -profile test_lfq,docker'.
mzTab is no longer a published quantms artifact (QPX + MuData replaced it). Remove mzTab from the output-format list and the DDA output file lists, update paths to the flat top-level qpx/ dir, and drop the lingering 'replaces the mzTab' comments. The internal OpenMS -out_mzTab flag stays (OpenMS requires it; produced but not published).
What & why
Replace the mzTab with a clean QPX as the DDA pipeline's published quantification artifact.
OpenMS
ProteomicsLFQ/IsobaricWorkflowalready emit a partial QPX via-out_qpx(psm/feature/pg parquet), but that output (a) carries raw channel labels (run filename / bare index) and (b) lacks the metadata tables (run, sample, ontology, provenance, dataset) and the MuData (.h5mu) view. This PR adds aQPX_CONVERTstep that runs theqpxtool (qpxc convert openms) over-out_qpx+ the companionconsensusXML+ the SDRF to produce the final QPX — canonical TMT/iTRAQ/LFQ channel labels, full metadata, and MuData — bringing the DDA path to parity with the DIA-NN (quantmsdiann) QPX.Changes
modules/local/qpx/qpx_convert/main.nf—QPX_CONVERTprocess (qpxc convert openms --qpx-dir … --consensusxml … --sdrf-file … --output-folder …).workflows/lfq.nf— runQPX_CONVERTafterPROTEOMICSLFQ;final_resultnow emits the QPX dataset.workflows/tmt.nf— runQPX_CONVERTafterISOBARIC_WORKFLOW;final_resultnow emits the QPX dataset.nextflow.config—qpx_version,accessionparams.mzTab removal
final_result(the channel fed intopmultiqcand published) switches from*_openms.mzTabto the QPX dataset folder. This is safe because:MSSTATS_CONVERTER), not the mzTab.The OpenMS modules still produce the mzTab (
-out_mzTab) for now; a follow-up can drop-out_mzTabfromproteomicslfq/isobaric_workflowonce we confirm nothing downstream reads it.Blocked on (DRAFT)
biocontainers/qpx:${params.qpx_version}; that image does not exist yet. Set the real tag once qpx is released/containerised..h5muis usable.Notes / assumptions
file(params.input)— correct for SDRF-driven DDA runs (the reanalysis path). Sample-sheet-only inputs have no SDRF and would need a guard.-out_qpxlabelling issues tracked in OpenMS#9817;QPX_CONVERTrelabels downstream from the consensusXML/SDRF until those land.