Skip to content

[PARAM,IO,TEST] Make workflow mzTab outputs optional - #9886

Merged
timosachsenberg merged 1 commit into
developfrom
codex/issue-9866
Aug 7, 2026
Merged

timosachsenberg merged 1 commit into
developfrom
codex/issue-9866

Conversation

@timosachsenberg

@timosachsenberg timosachsenberg commented Aug 7, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • make ProteomicsLFQ -out optional when any of -out_msstats, -out_triqler, -out_cxml, or -out_qpx is requested
  • make IsobaricWorkflow -out and -out_mzTab individually optional when another supported output is requested
  • reject invocations without any output during parameter handling and guard each optional writer
  • update TOPP documentation, changelog entries, and regression coverage

Root cause

The mzTab parameters were registered as required, and the mzTab/consensusXML writers were called unconditionally. Consequently, QPX-only and other alternate-output workflows still had to produce an unused mzTab artifact.

User impact

Pipelines can publish QPX, consensusXML, MSstats, or Triqler output without creating an unwanted mzTab file. Existing invocations that request mzTab continue to behave unchanged, and an invocation with no output still fails.

Validation

  • git diff --check
  • targeted OpenMS cpplint invocation; it reported only pre-existing diagnostics outside the changed hunks
  • added zero-output parameter checks and alternate-only functional TOPP test paths for consensusXML, mzTab, and QPX
  • compiled TOPP tests were not run because this clean worktree has no configured build and repository instructions prohibit building unless explicitly requested

Closes #9866

Summary by CodeRabbit

  • New Features
    • ProteomicsLFQ now supports generating mzTab, MSstats, Triqler, consensusXML, or QPX output independently.
    • IsobaricWorkflow now supports generating consensusXML, mzTab, or QPX output independently.
    • Output files are generated only when their corresponding options are selected.
  • Bug Fixes
    • Improved output validation prevents runs without any requested output.
    • QPX export now validates required data and safely rolls back partial output files if export fails.

Allow ProteomicsLFQ and IsobaricWorkflow to emit any supported output without also requiring mzTab. Keep an explicit at-least-one-output validation and cover alternate-only paths.

Closes #9866
@timosachsenberg
timosachsenberg marked this pull request as ready for review August 7, 2026 13:47
@coderabbitai

coderabbitai Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 00430a49-67c8-4e2c-b919-ad66747e8083

📥 Commits

Reviewing files that changed from the base of the PR and between 0f0a87d and a67f32d.

📒 Files selected for processing (4)
  • CHANGELOG
  • src/tests/topp/CMakeLists.txt
  • src/topp/IsobaricWorkflow.cpp
  • src/topp/ProteomicsLFQ.cpp

📝 Walkthrough

Walkthrough

Changes

Workflow output validation

Layer / File(s) Summary
IsobaricWorkflow output selection and export
src/topp/IsobaricWorkflow.cpp, src/tests/topp/CMakeLists.txt, CHANGELOG
Each consensusXML, mzTab, and QPX output is optional. At least one output is required. Tests cover individual outputs and missing-output failure.
ProteomicsLFQ output selection and export
src/topp/ProteomicsLFQ.cpp, src/tests/topp/CMakeLists.txt, CHANGELOG
Each supported output is optional. At least one output is required. QPX export validates inputs and uses transactional cleanup, while consensusXML and mzTab writing is conditional.

Sequence Diagram(s)

sequenceDiagram
  participant ProteomicsLFQ
  participant QPXExport
  participant ParquetFiles
  ProteomicsLFQ->>QPXExport: validate collection
  QPXExport->>ParquetFiles: write feature, PSM, and protein-group files
  QPXExport-->>ProteomicsLFQ: commit or abort transaction
Loading

Possibly related PRs

Suggested reviewers: cbielow, copilot, satyam102006

Poem

A rabbit checks each output gate,
QPX files pass through paths so straight.
mzTab hops only when requested,
Empty runs are firmly arrested.
Consensus joins the export queue—
One chosen artifact will do.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Out of Scope Changes check ⚠️ Warning ProteomicsLFQ adds QPX collection preflight and transactional rollback behavior, which issue #9866 does not require. Move the QPX preflight and rollback changes to a separate pull request, or document why they are required for safe optional QPX output handling.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly identifies the main change: making workflow mzTab outputs optional.
Linked Issues check ✅ Passed The implementation and tests cover optional alternate outputs, at-least-one-output validation, guarded writers, and preserved mzTab use for issue #9866.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/issue-9866

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.

@timosachsenberg
timosachsenberg merged commit a5bf2e0 into develop Aug 7, 2026
34 of 35 checks passed
@timosachsenberg
timosachsenberg deleted the codex/issue-9866 branch August 7, 2026 15:36
timosachsenberg added a commit that referenced this pull request Aug 11, 2026
Audited PRs merged since the last CHANGELOG update (#9881): most of
them (#9879, #9880, #9882, #9884, #9886, #9892, #9896, #9898, #9900,
#9901, #9888) already carried their own CHANGELOG entries. Only the
Docker library-stage fix (#9891) was missing one.


Claude-Session: https://claude.ai/code/session_01Jgrv6mFL3oawgLdYs1efPH

Co-authored-by: Claude <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ProteomicsLFQ / IsobaricWorkflow: make the mzTab output (-out / -out_mzTab) optional when -out_qpx is given

1 participant