Skip to content

[REMOVE] ConsensusID and the ConsensusIDAlgorithm classes - #10619

Merged
timosachsenberg merged 5 commits into
developfrom
claude/remove-consensusid
Oct 19, 2026
Merged

timosachsenberg merged 5 commits into
developfrom
claude/remove-consensusid

Conversation

@timosachsenberg

@timosachsenberg timosachsenberg commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

Description

Removes the TOPP tool ConsensusID and the library classes behind it: ConsensusIDAlgorithm and its subclasses Average, Best, Worst, Ranks, PEPMatrix, PEPIons, Identity and Similarity. Their pyOpenMS bindings, class tests, TOPP tests and test data go too.

Why

  • Default mode groups the wrong things. Without -per_spectrum, ConsensusID links identifications across runs by retention time and m/z (FeatureGroupingAlgorithmQT), not by spectrum. A group holds at most one identification per run, and the result has no spectrum_reference. Only -per_spectrum groups by spectrum.
  • No OpenMS workflow uses it. The quantification workflows (ProteomicsLFQ, IsobaricWorkflow, MS1LabeledWorkflow) expect one identification per spectrum, and IsobaricWorkflow: a spectrum with several identifications is quantified once per identification #10603 showed what happens when they get several.
  • Little use outside OpenMS. The default mode appears only in the Galaxy Training Network tutorials (Galaxy wrappers pinned to OpenMS 2.1/2.2), the old KNIME tutorial, and a 2017 workflow. quantms/proteomicslfq used -per_spectrum, and bigbio/quantms has since dropped ConsensusID (remove consensusid and move to parquet bigbio/quantms#708). quantms 1.x stays pinned to an older OpenMS.

What replaces the recommendations
OpenMS no longer has a tool that combines the results of several search engines. Every place that recommended ConsensusID is updated:

  • Workflow docs, parameter help and warnings (ProteomicsLFQ, IsobaricWorkflow, MS1LabeledWorkflow): pass the results of one search engine rather than concatenating those of several.
  • Conflict-resolution hints (ProteinQuantifier, the QPX feature export, QPX validation): IDConflictResolver or FileFilter -id:keep_best_score_id remain. ConsensusID is dropped from these lists.
  • PercolatorAdapter: the abort message for mixed search engines no longer recommends ConsensusID.
  • PSMFeatureExtractor: the doc no longer points to ConsensusID.
  • ProteinIdentification::peptideIDsMergeable: the warning no longer recommends ConsensusID.
  • Pipeline tables (IDFilter, IDMapper, IDMerger, IDPosteriorErrorProbability), TOPP.doxygen and TOPPAS.doxygen: ConsensusID removed.

What stays
Files written by ConsensusID can still be read. All handling of the search engine names OpenMS/ConsensusID_* and the ConsensusIDBaseSearch meta value is kept: PosteriorErrorProbabilityModel, the mzTab export (MS:1002188, MS:1003113), and ProteinIdentification. ConsensusID_1_input.idXML stays because TOPP_IDFilter_25 uses it. IdentificationDataConverter::importConsensusIDs and exportConsensusIDs are unrelated: they convert the identifications of a ConsensusMap.

Also fixed in passing (in files this PR touches):

  • ProteinIdentification::getSearchEngineSettingsAsPairs checked hasPrefix(engine, "ConsensusID"), but ConsensusID wrote engine names like OpenMS/ConsensusID_best, so the legacy case never applied. It now checks hasSubstring.
  • PercolatorAdapter's multi-run message named merge_proteins_add_psms; the IDMerger option is merge_proteins_add_PSMs (option names are case-sensitive).
  • A ProteomicsLFQ doc comment still implied results of several engines could be combined; the IDFilter pipeline table names PercolatorAdapter in the cell ConsensusID left empty.

Conflicts
#10616 rewords the same IsobaricWorkflow text and also mentions ConsensusID there. Whichever PR merges second has to resolve that paragraph.

Checklist

  • Make sure that you are listed in the AUTHORS file
  • Add relevant changes and new features to the CHANGELOG file (TOPP tools → Removed tools, OpenMS Library → API)
  • I have commented my code, particularly in hard-to-understand areas
  • New and existing unit tests pass locally with my changes (see below)
  • Updated or added python bindings for changed or new classes (bindings and pyOpenMS tests removed)

Tests run locally (library and all TOPP tools build without new warnings):

  • 685 TOPP tests pass: TOPPWRITEINI for every tool, TOPP_IDFilter_25 (keeps using ConsensusID_1_input.idXML), and all IsobaricWorkflow, ProteomicsLFQ, MS1LabeledWorkflow, PercolatorAdapter, PSMFeatureExtractor, ProteinQuantifier, IDConflictResolver, IDPosteriorErrorProbability and FileFilter tests.
  • Class tests pass: ProteinIdentification, QPXValueValidation, ConsensusMapArrowExport, IDConflictResolverAlgorithm, PosteriorErrorProbabilityModel, MzTab.
  • After the in-passing fixes: all PercolatorAdapter, ProteomicsLFQ, IDFilter and MzTabExporter TOPP tests and the ProteinIdentification, MzTab and MzTabFile class tests pass (195).
  • No test checks the reworded messages.
  • Not built locally:
    • pyOpenMS: bind_misc.cpp passes -fsyntax-only against nanobind 3.1, and test_000.py compiles. CI builds and tests the wheels green.
    • DefaultParamHandlerDocumenter: needs Qt. Its diff only removes includes and entries.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FrBv47w4D8HccMtt1MdafL

Summary by CodeRabbit

  • Changes
    • ConsensusID and its consensus-scoring algorithms are no longer available in OpenMS or pyOpenMS.
    • Existing ConsensusID identification files remain readable, including during posterior error probability processing and mzTab export.
    • To resolve conflicting identifications, use IDConflictResolver or FileFilter’s -id:keep_best_score_id option.
    • Workflows requiring a single search engine now direct users to process one engine’s results at a time.
    • Results from different search engines cannot be rescored together. PercolatorAdapter supports rescoring within its supported workflows.

Remove the TOPP tool ConsensusID, ConsensusIDAlgorithm and its
subclasses (Average, Best, Worst, Ranks, PEPMatrix, PEPIons, Identity,
Similarity), their pyOpenMS bindings, class tests, TOPP tests and test
data.

Without -per_spectrum the tool grouped identifications of different
spectra by retention time and m/z; no OpenMS workflow used it, and the
quantification workflows expect one identification per spectrum. The
recommendations that pointed to it now say to pass the results of one
search engine, or name IDConflictResolver and FileFilter for resolving
conflicting identifications.

Reading identifications written by ConsensusID (search engine
"OpenMS/ConsensusID_*") is kept.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01FrBv47w4D8HccMtt1MdafL
@coderabbitai

coderabbitai Bot commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 012ee2d1-1a59-4303-bb91-35a524ae4c6f
📥 Commits

Reviewing files that changed from the base of the PR and between d722734 and d7e6242.

📒 Files selected for processing: 2
  • CHANGELOG
  • src/tests/topp/CMakeLists.txt
💤 Files with no reviewable changes: 1
  • src/tests/topp/CMakeLists.txt

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.

📝 Walkthrough

The change removes the ConsensusID algorithm classes from OpenMS and pyOpenMS and removes the ConsensusID TOPP tool. It also removes related tests and fixtures, updates guidance and diagnostics that referenced ConsensusID, and records the changes in the changelog. Identifications previously written by ConsensusID remain readable.

Changes: ConsensusID removal

Layer / File(s) Summary
Remove consensus algorithm APIs and implementations
src/openms/include/OpenMS/ANALYSIS/ID/ConsensusIDAlgorithm*.h, src/openms/source/ANALYSIS/ID/ConsensusIDAlgorithm*.cpp, src/openms/{include,source}/ANALYSIS/ID/sources.cmake, src/pyOpenMS/bindings/bind_misc.cpp, src/pyOpenMS/tests/unittests/test_000.py, src/tests/class_tests/openms/..., doc/doxygen/parameters/DefaultParamHandlerDocumenter.cpp
The ConsensusID algorithm classes and implementations are removed from OpenMS and pyOpenMS. Their build and binding registrations, tests, and parameter documentation are also removed.
Remove the ConsensusID TOPP tool
src/topp/ConsensusID.cpp, src/topp/executables.cmake, src/tests/topp/CMakeLists.txt, src/tests/topp/ConsensusID_*, doc/doxygen/public/TOPP.doxygen, doc/doxygen/public/TOPPAS.doxygen
The TOPP tool, its test suite and fixtures, and its documentation entries are removed.
Update remaining guidance and references
CHANGELOG, src/openms/include/OpenMS/ANALYSIS/ID/IDConflictResolverAlgorithm.h, src/openms/source/FORMAT/*, src/openms/source/METADATA/ProteinIdentification.cpp, src/topp/*.cpp, src/topp/MS1LabeledWorkflow/MS1LabeledWorkflow.cpp, src/openms/include/OpenMS/{DATASTRUCTURES,METADATA}/...
Documentation and diagnostics no longer recommend ConsensusID. Related text names alternatives or advises using results from one search engine. The changelog records the removal and states that identifications previously written by ConsensusID remain readable.

Priority: ➖ Normal

Change: Other

Merge Risk: ⚪ Minimal · up to d7e62

The change removes ConsensusID and updates related guidance while preserving compatibility for existing identifications. No actionable merge-blocking risk is evident in the supplied review context.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 38.89% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 18 functions across 16 files. (1 skipped:… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed 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 and concisely describes the main change: removal of the ConsensusID tool and ConsensusIDAlgorithm classes.
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.
Full details: Docstring Coverage

Explanation

Docstring coverage is 38.89% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 18 functions across 16 files. (1 skipped: 1 unsupported.)

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

  • Fix all pre-merge checks with AI
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

A rabbit hops past scores once joined,
ConsensusID leaves the code behind.
Old identifications still can be read,
New guidance points to tools instead.
The changelog marks the ending clear,
And I nibble greens in cheer.

Comment @coderabbitai help to get the list of available commands.

@timosachsenberg timosachsenberg left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the ConsensusID removal across source/header registration, TOPP registration, Python bindings, tests, and user-facing references. I found no additional actionable inconsistency in the diff. Documentation CI passed; build/Python workflows were still running when checked. No local build was performed.

claude and others added 3 commits October 18, 2026 07:16
- ProteomicsLFQ: the reduceToOnePerSpectrum_ doc still implied results
  of several search engines could be combined.
- IDFilter: the predecessor cell emptied by the removal names
  PercolatorAdapter.
- ProteinIdentification::getSearchEngineSettingsAsPairs: ConsensusID
  wrote engine names like "OpenMS/ConsensusID_best", which the
  hasPrefix("ConsensusID") check never matched.
- PercolatorAdapter: the IDMerger option is merge_proteins_add_PSMs
  (option names are case-sensitive), and the message lacked a space.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01FrBv47w4D8HccMtt1MdafL
@timosachsenberg
timosachsenberg merged commit aa59eb6 into develop Oct 19, 2026
13 of 14 checks passed
@timosachsenberg
timosachsenberg deleted the claude/remove-consensusid branch October 19, 2026 17:51
timosachsenberg pushed a commit that referenced this pull request Oct 19, 2026
…pectrum

Resolve the conflicts with the removal of ConsensusID (#10619): the
documentation, the -in_id description and the reduction warning now
recommend passing the results of one search engine.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VxWmmM6tLZTKMekxdbERy2
timosachsenberg pushed a commit that referenced this pull request Oct 19, 2026
ConsensusID.cpp, which this branch had changed to clear the score software record, is removed
with the tool (#10619); ProcessingStep.h, which develop changed in a comment, stays removed with the
reference graph. PercolatorAdapter is now the only tool that records itself as search engine and
clears score software records (CHANGELOG and identification-data.md updated).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01B51nRFoHvZuVXD7cT8XZav
timosachsenberg pushed a commit that referenced this pull request Oct 19, 2026
…10563 HiGHS, #10644, #10648)

ConsensusID.cpp is removed with the tool (#10619), and with it this branch's bridge for feature and
consensus maps: the tool exported the identifications that a feature links to peptide
identifications, combined them with ConsensusIDAlgorithm and imported the consensus as a new run.
No other code of this branch used ConsensusID.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01B51nRFoHvZuVXD7cT8XZav
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