Repository navigation
[REMOVE] ConsensusID and the ConsensusIDAlgorithm classes - #10619
Conversation
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
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ➖ Normal Change: Other Merge Risk: ⚪ Minimal · up to
|
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FrBv47w4D8HccMtt1MdafL
timosachsenberg
left a comment
There was a problem hiding this comment.
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.
- 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
…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
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
…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
Description
Removes the TOPP tool ConsensusID and the library classes behind it:
ConsensusIDAlgorithmand its subclasses Average, Best, Worst, Ranks, PEPMatrix, PEPIons, Identity and Similarity. Their pyOpenMS bindings, class tests, TOPP tests and test data go too.Why
-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 nospectrum_reference. Only-per_spectrumgroups by spectrum.-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:
-id:keep_best_score_idremain. ConsensusID is dropped from these lists.ProteinIdentification::peptideIDsMergeable: the warning no longer recommends ConsensusID.What stays
Files written by ConsensusID can still be read. All handling of the search engine names
OpenMS/ConsensusID_*and theConsensusIDBaseSearchmeta value is kept: PosteriorErrorProbabilityModel, the mzTab export (MS:1002188, MS:1003113), andProteinIdentification.ConsensusID_1_input.idXMLstays because TOPP_IDFilter_25 uses it.IdentificationDataConverter::importConsensusIDsandexportConsensusIDsare unrelated: they convert the identifications of a ConsensusMap.Also fixed in passing (in files this PR touches):
ProteinIdentification::getSearchEngineSettingsAsPairscheckedhasPrefix(engine, "ConsensusID"), but ConsensusID wrote engine names likeOpenMS/ConsensusID_best, so the legacy case never applied. It now checkshasSubstring.merge_proteins_add_psms; the IDMerger option ismerge_proteins_add_PSMs(option names are case-sensitive).Conflicts
#10616 rewords the same IsobaricWorkflow text and also mentions ConsensusID there. Whichever PR merges second has to resolve that paragraph.
Checklist
Tests run locally (library and all TOPP tools build without new warnings):
ConsensusID_1_input.idXML), and all IsobaricWorkflow, ProteomicsLFQ, MS1LabeledWorkflow, PercolatorAdapter, PSMFeatureExtractor, ProteinQuantifier, IDConflictResolver, IDPosteriorErrorProbability and FileFilter tests.bind_misc.cpppasses-fsyntax-onlyagainst nanobind 3.1, andtest_000.pycompiles. 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
-id:keep_best_score_idoption.