Skip to content

[TOPP,FORMAT] Remove Triqler support: the TriqlerConverter tool, ProteomicsLFQ -out_triqler and the TriqlerFile class - #9898

Merged
timosachsenberg merged 2 commits into
developfrom
fix/remove-triqlerconverter
Aug 9, 2026
Merged

timosachsenberg merged 2 commits into
developfrom
fix/remove-triqlerconverter

Conversation

@timosachsenberg

@timosachsenberg timosachsenberg commented Aug 9, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Removes Triqler export from OpenMS entirely: the TriqlerConverter tool, the ProteomicsLFQ -out_triqler output, and the TriqlerFile library class with its test.

Two commits, because the justification differs:

  1. TriqlerConverter — never worked. A crash on every input, for 5½ years.
  2. -out_triqler — worked, but has no consumer and two unresolved defects.

1. The tool has never produced output

Since #5066 (2020-11-19), main_() read two parameters registerOptionsAndFlags_() never registered:

const std::string arg_method = getStringOption_(param_method);
...  = getStringOption_(param_retention_time_summarization_method);

TOPPBase treats a read of an unregistered parameter as a fatal internal error, so every invocation on every input aborted:

$ TriqlerConverter -in in.consensusXML -in_design design.tsv -out out.csv
Internal error: Request for unregistered parameter 'method'
$ echo $?
12                      # and no output file is written

It survived because the tool had no TOPP test — and TriqlerFile_test only claimed it was "tested via the TriqlerConverter tool".

Neither parameter was reachable or restorable: an unregistered parameter never reaches the CLI, INI or CTD (the generated Galaxy wrapper exposes neither), TriqlerFile has no ISO path for method to dispatch on, and storeLFQ takes no RT-summarization argument.

2. -out_triqler works, but nothing consumes it

This one is a genuine feature removal, so the evidence matters:

  • quantms — the main downstream pipeline — does not request it. Its ProteomicsLFQ module passes -out_cxml, -out, -out_qpx and conditionally -out_msstats. quantms' Triqler documentation page describes output the current pipeline no longer produces.
  • A GitHub-wide search finds no other caller — only packaging metadata, stale source mirrors, a generated shell completion, and quantmsutils' own unrelated out_triqler parameter on the DIA diann2mztab path (unaffected by this PR — the ecosystem keeps a Triqler route that does not go through OpenMS).
  • TriqlerFile is not bound in pyOpenMS, so no Python API changes.

It also carried two defects that no test would have caught:

  1. assembleRunMap_ keyed runs on (basename, fraction), so every fraction file became its own Triqler run and fractions of one sample were split across runs. Triqler's own MaxQuant converter keys rows on sample.
  2. TriqlerLine_::operator< omitted search_score_, so two rows differing only in score compared equal and the first inserted silently won.

The existing tests did not catch either defect — they encoded the first one. The output was pinned by 11 tests (TOPP_ProteomicsLFQ_*_out_4) against 10 committed references. ProteomicsLFQ_1_out.tsv holds 6 distinct run values for BSA_design.tsv, which describes 3 samples of 2 fractions each — the reference baked the fraction split in as expected output. Repairing the run keying would have meant re-baselining all ten for an output nobody consumes.

Migration

Use -out_msstats, or -out_cxml / -out_qpx and convert downstream. An INI or command line passing -out_triqler now fails with an unknown-parameter error rather than silently dropping the output.

Changes

File Change
src/topp/TriqlerConverter.cpp deleted
src/openms/{include/OpenMS,source}/FORMAT/TriqlerFile.{h,cpp} deleted (+ both sources.cmake)
src/tests/class_tests/openms/source/TriqlerFile_test.cpp deleted (+ executables.cmake)
src/topp/ProteomicsLFQ.cpp -out_triqler registration, export block, spectral-counting guard, required-output list and docs
src/topp/executables.cmake, ToolHandler.cpp, TOPP.doxygen tool deregistered (also drops the generated WRITEINI/WRITECTD tests)
src/tests/topp/CMakeLists.txt -out_triqler removed from 12 invocations; the 11 _out_4 Triqler diff tests removed; requires_output expected message updated
src/tests/topp/ProteomicsLFQ_*_out.tsv 10 now-orphaned Triqler reference files deleted
CHANGELOG removal entry, Removed tools: line, and three stale entries in the same unreleased 3.6.0 section that still advertised -out_triqler

Follows the QPXConverter removal in #9693.

Verification

  • The full TOPP_ProteomicsLFQ suite passes from a wiped temp directory, including TOPP_ProteomicsLFQ_requires_output (expected message changed), the qpx_flags normalization test, and both DDA_PASEF tests (22/22 with their DecoyDatabase/Sage prerequisite chain).
  • Confirmed the updated required-output check is not passing vacuously — the tool now emits out/out_msstats/out_cxml/out_qpx.
  • -out_triqler is gone from the CLI; zero Triqler references remain in any source, cmake or doxygen file.
  • The original crash was reproduced on the pre-removal binary before deciding to remove.

Note for downstream

Galaxy ships a generated TriqlerConverter.xml wrapper (built for OpenMS 3.1.0) that will need dropping on its next regeneration — it wraps a tool that has never produced output. quantms' Triqler documentation page is already stale relative to its own pipeline and may want updating.

Related: #9864 §A6, which tracked the unregistered-parameter defect.

🤖 Generated with Claude Code

https://claude.ai/code/session_01S7QNzj4dhRnX5htcHZFmDm

Summary by CodeRabbit

  • Removed Features
    • Removed TriqlerConverter and Triqler file export support.
    • ProteomicsLFQ no longer offers Triqler output.
  • Changes
    • ProteomicsLFQ now permits -out_cxml, -out_qpx, or -out_msstats as the sole output option.
    • Normalization is no longer applied implicitly.
  • Documentation
    • Updated command-line help and migration guidance to reflect the removed Triqler functionality and supported output formats.
  • Tests
    • Updated ProteomicsLFQ coverage to validate the remaining export options.

TriqlerConverter has never produced output. Since it was introduced in #5066
(2020-11-19) main_() read two parameters that registerOptionsAndFlags_() never
registered:

  const std::string arg_method = getStringOption_(param_method);
  ... = getStringOption_(param_retention_time_summarization_method);

TOPPBase treats a read of an unregistered parameter as a fatal internal error, so
every invocation on every input aborted with

  Internal error: Request for unregistered parameter 'method'

and exit code 12, writing no output file. The defect survived 5+ years because the
tool had no TOPP test; TriqlerFile_test only claimed it was "tested via the
TriqlerConverter tool".

Removed rather than repaired: the tool has no caller anywhere -- none in this
repository, and a GitHub-wide search finds only packaging metadata plus a generated
Galaxy wrapper. Nothing can depend on behaviour it never had.

Neither parameter was reachable or restorable. An unregistered parameter never
reaches the CLI, INI or CTD, so removing them breaks no interface (the Galaxy
wrapper, generated from the CTD, exposes neither). And neither had an effect to
restore: TriqlerFile has no ISO path for 'method' to dispatch on, and storeLFQ takes
no RT-summarization argument -- its only prospective RT use is commented out.

TriqlerFile itself is unchanged and still shipped: ProteomicsLFQ -out_triqler calls
the same storeLFQ and is unaffected. Follows the QPXConverter removal in #9693.

Note this leaves TriqlerFile::storeLFQ without any value assertion: the 14
ProteomicsLFQ tests write the Triqler output but never diff it. Recorded in the
class test rather than left as a false "tested via" claim.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01S7QNzj4dhRnX5htcHZFmDm
@timosachsenberg
timosachsenberg force-pushed the fix/remove-triqlerconverter branch from c18a6e9 to 01287c8 Compare August 9, 2026 10:50
@coderabbitai

coderabbitai Bot commented Aug 9, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

The change removes Triqler export from ProteomicsLFQ, deletes the TriqlerFile library API and implementation, and removes TriqlerConverter from the TOPP build. Tests and the changelog reflect the removal and replacement outputs.

Changes

Triqler support removal

Layer / File(s) Summary
Remove ProteomicsLFQ Triqler output
src/topp/ProteomicsLFQ.cpp, src/tests/topp/CMakeLists.txt, CHANGELOG
ProteomicsLFQ no longer registers, validates, normalizes for, or exports Triqler output. CXML, QPX, and MSstats remain valid sole outputs. Tests reflect the updated behavior.
Remove TriqlerFile library support
src/openms/include/OpenMS/FORMAT/..., src/openms/source/FORMAT/..., src/tests/class_tests/openms/executables.cmake
The TriqlerFile header and implementation are deleted. Their build and test registrations are removed.
Remove TriqlerConverter integration
src/topp/executables.cmake, CHANGELOG
TriqlerConverter is removed from the configured TOPP executables. The changelog records the breaking change and migration paths.

Possibly related PRs

Suggested reviewers: singjc

Poem

Poem

A rabbit hops past Triqler’s door,
ProteomicsLFQ exports no more.
CXML, QPX, and MSstats stay,
While old converter paths fade away.
Clean builds bound through every lane.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely summarizes the main change: removing Triqler support, including the tool, ProteomicsLFQ output, and TriqlerFile class.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/remove-triqlerconverter

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 changed the title [TOPP] TriqlerConverter: remove the tool (never functional since #5066) [TOPP,FORMAT] Remove Triqler support: the TriqlerConverter tool, ProteomicsLFQ -out_triqler and the TriqlerFile class Aug 9, 2026
… class

Completes the Triqler removal begun with the TriqlerConverter tool. Drops
ProteomicsLFQ -out_triqler, the TriqlerFile library class (header, source, class
test), the 11 TOPP tests that pinned the Triqler output and their 10 reference
files, and all build registrations.

Unlike the tool, -out_triqler worked. It is removed because it has no known
consumer and two unresolved defects:

- quantms, the main downstream pipeline, does not request it. Its ProteomicsLFQ
  module passes -out_cxml, -out, -out_qpx and conditionally -out_msstats. No other
  caller was found: a GitHub-wide search returns only packaging metadata, stale
  source mirrors, a generated shell completion, and quantmsutils' own unrelated
  out_triqler parameter on the DIA diann2mztab path. quantms' Triqler
  documentation page describes output the current pipeline no longer produces.
- assembleRunMap_ keyed runs on (basename, fraction), so every fraction file became
  its own Triqler run and fractions of one sample were split apart. Triqler's own
  MaxQuant converter keys rows on sample instead.
- TriqlerLine_::operator< omitted search_score_, so two rows differing only in
  score compared equal and the first inserted silently won.

The output was pinned by 11 TOPP tests (TOPP_ProteomicsLFQ_*_out_4) against 10
committed references. Those references did not catch the run-keying defect, they
encoded it: ProteomicsLFQ_1_out.tsv holds 6 distinct run values for BSA_design.tsv,
which describes 3 samples of 2 fractions each. Fixing that would have meant
re-baselining every one of them for an output nobody consumes.

Migration: -out_msstats, or -out_cxml / -out_qpx converted downstream. An INI or
command line passing -out_triqler now fails with an unknown-parameter error rather
than silently dropping the output.

Also corrects three CHANGELOG entries in the same unreleased 3.6.0 section that
still advertised -out_triqler, so the release notes do not reference a flag that
will not ship.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01S7QNzj4dhRnX5htcHZFmDm
@timosachsenberg
timosachsenberg force-pushed the fix/remove-triqlerconverter branch from 6ecb7f8 to db2d5f2 Compare August 9, 2026 11:33

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

🧹 Nitpick comments (1)
src/tests/topp/CMakeLists.txt (1)

4061-4061: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Add a regression test for the removed -out_triqler option.

This test checks only that ProteomicsLFQ reports one supported output parameter. It does not verify that -out_triqler now fails with an unknown-parameter error. Add a negative TOPP test for this breaking-change contract.

As per coding guidelines, parameter changes require updates to tests, documentation, CTD files, and CHANGELOG.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/tests/topp/CMakeLists.txt` at line 4061, Add a negative TOPP regression
test alongside TOPP_ProteomicsLFQ_requires_output that invokes ProteomicsLFQ
with the removed -out_triqler option and asserts the expected unknown-parameter
failure. Also update the related ProteomicsLFQ tests, documentation, CTD files,
and CHANGELOG to reflect removal of this parameter.

Source: Coding guidelines

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@src/tests/topp/CMakeLists.txt`:
- Line 4061: Add a negative TOPP regression test alongside
TOPP_ProteomicsLFQ_requires_output that invokes ProteomicsLFQ with the removed
-out_triqler option and asserts the expected unknown-parameter failure. Also
update the related ProteomicsLFQ tests, documentation, CTD files, and CHANGELOG
to reflect removal of this parameter.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 2fb136fa-645f-4847-a9f7-c333fb2cb9e4

📥 Commits

Reviewing files that changed from the base of the PR and between 6ecb7f8 and db2d5f2.

⛔ Files ignored due to path filters (10)
  • src/tests/topp/ProteomicsLFQ_1_out.tsv is excluded by !**/*.tsv
  • src/tests/topp/ProteomicsLFQ_1_subset_out.tsv is excluded by !**/*.tsv
  • src/tests/topp/ProteomicsLFQ_2_out.tsv is excluded by !**/*.tsv
  • src/tests/topp/ProteomicsLFQ_3_out.tsv is excluded by !**/*.tsv
  • src/tests/topp/ProteomicsLFQ_3_seedRT_out.tsv is excluded by !**/*.tsv
  • src/tests/topp/ProteomicsLFQ_5_out.tsv is excluded by !**/*.tsv
  • src/tests/topp/ProteomicsLFQ_7_out.tsv is excluded by !**/*.tsv
  • src/tests/topp/ProteomicsLFQ_8_out.tsv is excluded by !**/*.tsv
  • src/tests/topp/ProteomicsLFQ_9_out.tsv is excluded by !**/*.tsv
  • src/tests/topp/ProteomicsLFQ_9_seedRT_out.tsv is excluded by !**/*.tsv
📒 Files selected for processing (1)
  • src/tests/topp/CMakeLists.txt

@jpfeuffer

Copy link
Copy Markdown
Contributor

Fine with me. If there is enough info in qpx also, maybe one can rewrite triqler to consume that.

@timosachsenberg
timosachsenberg merged commit 1e52bcb into develop Aug 9, 2026
34 of 35 checks passed
@timosachsenberg
timosachsenberg deleted the fix/remove-triqlerconverter branch August 9, 2026 20:40
timosachsenberg added a commit that referenced this pull request Aug 9, 2026
…rting on an unidentifiable input

fatalErrorIf_ took its exit code as an `int` and threw it, while main_ catches
`const ExitCodes&`. C++ exception matching does not convert an int to an enum, and
TOPPBase has no catch-all, so the throw escaped main() and the process died:

  $ MSstatsConverter -in unidentifiable.dat -in_design design.tsv -out out.csv
  Warning: Could not determine format of input file 'unidentifiable.dat'!
  MSstatsConverter.cpp(198): FATAL: Input type is not consensusXML!
  terminate called after throwing an instance of 'int'
  Aborted (core dumped)          # exit 134

Changing the parameter to ExitCodes makes the thrown object match the existing handler;
the tool now returns ILLEGAL_PARAMETERS (6). Verified: exit 134 -> exit 6.

This is not a regression. It has been on develop since the tool was merged in #3485
(ab6cf7e, 2018-05-30), introduced two months earlier by 04e4be8, which changed
`catch(int)` to `catch(const ExitCodes&)` while making the helper take and throw an int --
the pre-merge feature-branch version, with `catch(int)` matching `throw 1`, was correct
and is the only version that ever worked.

It went unnoticed because the path is narrow, not because it was unreachable: TOPPBase
has warned rather than refused on an undeterminable input type since ~2008, but
FileHandler::getType sniffs content as well as extension, so a recognized-but-wrong file
(.mzML, .tsv) is rejected cleanly before main_ runs, and a misnamed but valid consensusXML
is identified by content and processed normally. Only a file unidentifiable by BOTH
extension and content reaches fatalErrorIf_.

Regression test: TOPP_MSstatsConverter_unknown_input_type asserts the EXACT exit code via
a new check_exit_code.cmake helper. ctest's WILL_FAIL cannot express this -- it treats a
crash and a clean error alike, so it would have passed on the bug -- and
PASS_REGULAR_EXPRESSION ignores the exit code entirely (the FATAL line is printed in both
cases). Confirmed to fail on purpose: with the int restored the test reports
"Expected exit code 6, got 'Subprocess aborted'".

TriqlerConverter had the identical copy-paste defect; it is removed in #9898. A repo-wide
sweep found no other TOPP tool throwing a numeric type without a matching handler
(MSFraggerAdapter throws ints but catches them).

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01S7QNzj4dhRnX5htcHZFmDm
timosachsenberg added a commit that referenced this pull request Aug 10, 2026
…rting on an unidentifiable input (#9901)

fatalErrorIf_ took its exit code as an `int` and threw it, while main_ catches
`const ExitCodes&`. C++ exception matching does not convert an int to an enum, and
TOPPBase has no catch-all, so the throw escaped main() and the process died:

  $ MSstatsConverter -in unidentifiable.dat -in_design design.tsv -out out.csv
  Warning: Could not determine format of input file 'unidentifiable.dat'!
  MSstatsConverter.cpp(198): FATAL: Input type is not consensusXML!
  terminate called after throwing an instance of 'int'
  Aborted (core dumped)          # exit 134

Changing the parameter to ExitCodes makes the thrown object match the existing handler;
the tool now returns ILLEGAL_PARAMETERS (6). Verified: exit 134 -> exit 6.

This is not a regression. It has been on develop since the tool was merged in #3485
(ab6cf7e, 2018-05-30), introduced two months earlier by 04e4be8, which changed
`catch(int)` to `catch(const ExitCodes&)` while making the helper take and throw an int --
the pre-merge feature-branch version, with `catch(int)` matching `throw 1`, was correct
and is the only version that ever worked.

It went unnoticed because the path is narrow, not because it was unreachable: TOPPBase
has warned rather than refused on an undeterminable input type since ~2008, but
FileHandler::getType sniffs content as well as extension, so a recognized-but-wrong file
(.mzML, .tsv) is rejected cleanly before main_ runs, and a misnamed but valid consensusXML
is identified by content and processed normally. Only a file unidentifiable by BOTH
extension and content reaches fatalErrorIf_.

Regression test: TOPP_MSstatsConverter_unknown_input_type asserts the EXACT exit code via
a new check_exit_code.cmake helper. ctest's WILL_FAIL cannot express this -- it treats a
crash and a clean error alike, so it would have passed on the bug -- and
PASS_REGULAR_EXPRESSION ignores the exit code entirely (the FATAL line is printed in both
cases). Confirmed to fail on purpose: with the int restored the test reports
"Expected exit code 6, got 'Subprocess aborted'".

TriqlerConverter had the identical copy-paste defect; it is removed in #9898. A repo-wide
sweep found no other TOPP tool throwing a numeric type without a matching handler
(MSFraggerAdapter throws ints but catches them).


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

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
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.

2 participants