Repository navigation
[TOPP,FORMAT] Remove Triqler support: the TriqlerConverter tool, ProteomicsLFQ -out_triqler and the TriqlerFile class - #9898
Conversation
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
c18a6e9 to
01287c8
Compare
📝 WalkthroughWalkthroughThe 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. ChangesTriqler support removal
Possibly related PRs
Suggested reviewers: Poem Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
… 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
6ecb7f8 to
db2d5f2
Compare
There was a problem hiding this comment.
🧹 Nitpick comments (1)
src/tests/topp/CMakeLists.txt (1)
4061-4061: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winAdd a regression test for the removed
-out_triqleroption.This test checks only that
ProteomicsLFQreports one supported output parameter. It does not verify that-out_triqlernow 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
⛔ Files ignored due to path filters (10)
src/tests/topp/ProteomicsLFQ_1_out.tsvis excluded by!**/*.tsvsrc/tests/topp/ProteomicsLFQ_1_subset_out.tsvis excluded by!**/*.tsvsrc/tests/topp/ProteomicsLFQ_2_out.tsvis excluded by!**/*.tsvsrc/tests/topp/ProteomicsLFQ_3_out.tsvis excluded by!**/*.tsvsrc/tests/topp/ProteomicsLFQ_3_seedRT_out.tsvis excluded by!**/*.tsvsrc/tests/topp/ProteomicsLFQ_5_out.tsvis excluded by!**/*.tsvsrc/tests/topp/ProteomicsLFQ_7_out.tsvis excluded by!**/*.tsvsrc/tests/topp/ProteomicsLFQ_8_out.tsvis excluded by!**/*.tsvsrc/tests/topp/ProteomicsLFQ_9_out.tsvis excluded by!**/*.tsvsrc/tests/topp/ProteomicsLFQ_9_seedRT_out.tsvis excluded by!**/*.tsv
📒 Files selected for processing (1)
src/tests/topp/CMakeLists.txt
|
Fine with me. If there is enough info in qpx also, maybe one can rewrite triqler to consume that. |
…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
…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]>
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]>
Summary
Removes Triqler export from OpenMS entirely: the
TriqlerConvertertool, theProteomicsLFQ -out_triqleroutput, and theTriqlerFilelibrary class with its test.Two commits, because the justification differs:
TriqlerConverter— never worked. A crash on every input, for 5½ years.-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 parametersregisterOptionsAndFlags_()never registered:const std::string arg_method = getStringOption_(param_method); ... = getStringOption_(param_retention_time_summarization_method);TOPPBasetreats a read of an unregistered parameter as a fatal internal error, so every invocation on every input aborted:It survived because the tool had no TOPP test — and
TriqlerFile_testonly 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),
TriqlerFilehas no ISO path formethodto dispatch on, andstoreLFQtakes no RT-summarization argument.2.
-out_triqlerworks, but nothing consumes itThis one is a genuine feature removal, so the evidence matters:
ProteomicsLFQmodule passes-out_cxml,-out,-out_qpxand conditionally-out_msstats. quantms' Triqler documentation page describes output the current pipeline no longer produces.quantmsutils' own unrelatedout_triqlerparameter on the DIAdiann2mztabpath (unaffected by this PR — the ecosystem keeps a Triqler route that does not go through OpenMS).TriqlerFileis not bound in pyOpenMS, so no Python API changes.It also carried two defects that no test would have caught:
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 onsample.TriqlerLine_::operator<omittedsearch_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.tsvholds 6 distinctrunvalues forBSA_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_qpxand convert downstream. An INI or command line passing-out_triqlernow fails with an unknown-parameter error rather than silently dropping the output.Changes
src/topp/TriqlerConverter.cppsrc/openms/{include/OpenMS,source}/FORMAT/TriqlerFile.{h,cpp}sources.cmake)src/tests/class_tests/openms/source/TriqlerFile_test.cppexecutables.cmake)src/topp/ProteomicsLFQ.cpp-out_triqlerregistration, export block, spectral-counting guard, required-output list and docssrc/topp/executables.cmake,ToolHandler.cpp,TOPP.doxygenWRITEINI/WRITECTDtests)src/tests/topp/CMakeLists.txt-out_triqlerremoved from 12 invocations; the 11_out_4Triqler diff tests removed;requires_outputexpected message updatedsrc/tests/topp/ProteomicsLFQ_*_out.tsvCHANGELOGRemoved tools:line, and three stale entries in the same unreleased 3.6.0 section that still advertised-out_triqlerFollows the
QPXConverterremoval in #9693.Verification
TOPP_ProteomicsLFQsuite passes from a wiped temp directory, includingTOPP_ProteomicsLFQ_requires_output(expected message changed), theqpx_flagsnormalization test, and bothDDA_PASEFtests (22/22 with theirDecoyDatabase/Sageprerequisite chain).out/out_msstats/out_cxml/out_qpx.-out_triqleris gone from the CLI; zeroTriqlerreferences remain in any source, cmake or doxygen file.Note for downstream
Galaxy ships a generated
TriqlerConverter.xmlwrapper (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
-out_cxml,-out_qpx, or-out_msstatsas the sole output option.