Skip to content

feat(dda): refine OpenMS -out_qpx into clean QPX, replace mzTab as published artifact - #725

Merged
ypriverol merged 23 commits into
devfrom
feat/dda-qpx-replace-mztab
Aug 6, 2026
Merged

ypriverol merged 23 commits into
devfrom
feat/dda-qpx-replace-mztab

Conversation

@ypriverol

Copy link
Copy Markdown
Contributor

What & why

Replace the mzTab with a clean QPX as the DDA pipeline's published quantification artifact.

OpenMS ProteomicsLFQ / IsobaricWorkflow already 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 a QPX_CONVERT step that runs the qpx tool (qpxc convert openms) over -out_qpx + the companion consensusXML + 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

  • New module modules/local/qpx/qpx_convert/main.nf — QPX_CONVERT process (qpxc convert openms --qpx-dir … --consensusxml … --sdrf-file … --output-folder …).
  • workflows/lfq.nf — run QPX_CONVERT after PROTEOMICSLFQ; final_result now emits the QPX dataset.
  • workflows/tmt.nf — run QPX_CONVERT after ISOBARIC_WORKFLOW; final_result now emits the QPX dataset.
  • nextflow.config — qpx_version, accession params.

mzTab removal

final_result (the channel fed into pmultiqc and published) switches from *_openms.mzTab to the QPX dataset folder. This is safe because:

  • MSstats already consumes the consensusXML (MSSTATS_CONVERTER), not the mzTab.
  • pmultiqc no longer needs the mzTab (it runs off the idXML + consensusXML channels).

The OpenMS modules still produce the mzTab (-out_mzTab) for now; a follow-up can drop -out_mzTab from proteomicslfq/isobaric_workflow once we confirm nothing downstream reads it.

Blocked on (DRAFT)

  • qpx tool release + BioContainer — the module pins biocontainers/qpx:${params.qpx_version}; that image does not exist yet. Set the real tag once qpx is released/containerised.
  • End-to-end test on a real DDA-LFQ and DDA-TMT dataset once the container is available.
  • Multi-channel MuData fix in qpx (isobaric TMT/iTRAQ currently collapses to a single channel) — being fixed in the qpx repo; required before the TMT .h5mu is usable.

Notes / assumptions

  • The SDRF is passed as file(params.input) — correct for SDRF-driven DDA runs (the reanalysis path). Sample-sheet-only inputs have no SDRF and would need a guard.
  • Upstream -out_qpx labelling issues tracked in OpenMS#9817; QPX_CONVERT relabels downstream from the consensusXML/SDRF until those land.

…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.
@coderabbitai

coderabbitai Bot commented Jul 30, 2026 •

Copy link
Copy Markdown
Contributor

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 Plus

Run ID: 7c97b86e-25ff-400f-8b0e-3754e7e36c97

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

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.

@github-actions

github-actions Bot commented Jul 30, 2026 •

Copy link
Copy Markdown

nf-core pipelines lint overall result: Passed ✅ ⚠️

Posted for pipeline commit 42ba21e

+| ✅ 117 tests passed       |+
#| ❔  18 tests were ignored |#
#| ❔   1 tests had warnings |#
!| ❗   7 tests had warnings |!
Details

❗ Test warnings:

❔ Tests ignored:

❔ Tests fixed:

✅ Tests passed:

Run details

  • nf-core/tools version 4.1.0
  • Run at 2026-08-06 11:20:01

@jpfeuffer

Copy link
Copy Markdown
Collaborator

@ypriverol @timosachsenberg What is missing such that consensusXML export can be completely skipped?

@timosachsenberg

Copy link
Copy Markdown

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.
@ypriverol
ypriverol requested review from daichengxin and a lite review from Copilot August 5, 2026 16:21

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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.
@ypriverol
ypriverol marked this pull request as ready for review August 6, 2026 07:10
@qodo-code-review

Copy link
Copy Markdown
Contributor

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

ypriverol and others added 6 commits August 6, 2026 09:17
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).
@ypriverol
ypriverol merged commit 303b63a into dev Aug 6, 2026
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

5 participants