Skip to content

[ARCHITECTURE] Remove ConsensusMap's dependency on QC - #10101

Merged
timosachsenberg merged 1 commit into
developfrom
claude/openms-pr-10091-rebase-vkw1w9
Sep 9, 2026
Merged

timosachsenberg merged 1 commit into
developfrom
claude/openms-pr-10091-rebase-vkw1w9

Conversation

@timosachsenberg

@timosachsenberg timosachsenberg commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

Description

Part 7 of #10083. Supersedes #10091: the same single commit, rebased onto current develop on an OpenMS-hosted branch. The only conflict was the CHANGELOG entry ordering.

ConsensusMap::split reaches into QCBase solely to identify IsobaricAnalyzer processing provenance. Add DataProcessingUtils::hasIsobaricAnalyzer, which accepts processing records, and use it from ConsensusMap and the existing QCBase compatibility entry point.

The convention stays deliberately narrow: an exact software-name match, with false for empty/unrelated histories. It does not reclassify other labeled workflows. The helper is installed and its source is registered.

Validation: QCBase_test is extended with empty, unrelated, case-sensitive, partial-name and mixed histories, checking both entry points. Source checks confirm the QC include is gone from ConsensusMap.cpp. Locally, the OpenMS library, QCBase_test and ConsensusMap_test were built with GCC on Ubuntu 24.04 (system Boost 1.83, Xerces-C 3.2, Arrow 23) with no warnings in the touched files, and both tests pass. git diff --check passes. Platform builds are left to CI.

Checklist

  • Make sure that you are listed in the AUTHORS file
  • Add relevant changes and new features to the CHANGELOG file
  • I have commented my code, particularly in hard-to-understand areas
  • New and existing unit tests pass locally with my changes
  • Updated or added python bindings for changed or new classes (Tick if no updates were necessary.)

🤖 Generated with Claude Code

https://claude.ai/code/session_01GKpQTR4f8sxMUJer1j5YD2


Generated by Claude Code

Summary by CodeRabbit

  • Bug Fixes

    • Improved detection of isobaric labeling during consensus map processing by using recorded IsobaricAnalyzer provenance.
    • Preserved the existing labeling convention and QCBase entry point for consistent results.
    • Prevented unrelated software names, case variations, or extended names from being incorrectly recognized as IsobaricAnalyzer processing.
  • Documentation

    • Added a changelog entry describing the updated provenance-based detection behavior.

@timosachsenberg
timosachsenberg marked this pull request as ready for review September 9, 2026 20:02
@timosachsenberg
timosachsenberg merged commit e32bcf0 into develop Sep 9, 2026
37 of 41 checks passed
@timosachsenberg
timosachsenberg deleted the claude/openms-pr-10091-rebase-vkw1w9 branch September 9, 2026 20:03
@coderabbitai

coderabbitai Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Review Change StackReview Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 183f9612-7449-45a2-8088-e3ebd2dc713a

📥 Commits

Reviewing files that changed from the base of the PR and between 7a3bc90 and fedba89.

📒 Files selected for processing (8)
  • CHANGELOG
  • src/openms/include/OpenMS/METADATA/DataProcessingUtils.h
  • src/openms/include/OpenMS/METADATA/sources.cmake
  • src/openms/source/KERNEL/ConsensusMap.cpp
  • src/openms/source/METADATA/DataProcessingUtils.cpp
  • src/openms/source/METADATA/sources.cmake
  • src/openms/source/QC/QCBase.cpp
  • src/tests/class_tests/openms/source/QCBase_test.cpp

📝 Walkthrough

Walkthrough

The change adds DataProcessingUtils::hasIsobaricAnalyzer, registers it in the build, and updates ConsensusMap and QCBase to use it. Tests verify exact software-name matching and preserve the existing QCBase behavior.

Changes

IsobaricAnalyzer detection

Layer / File(s) Summary
Define and register DataProcessingUtils
src/openms/include/OpenMS/METADATA/DataProcessingUtils.h, src/openms/source/METADATA/DataProcessingUtils.cpp, src/openms/{include,source}/METADATA/sources.cmake
Adds hasIsobaricAnalyzer, which checks for the exact software name "IsobaricAnalyzer", and registers the new files in the OpenMS build.
Adopt the shared provenance query
src/openms/source/KERNEL/ConsensusMap.cpp, src/openms/source/QC/QCBase.cpp
ConsensusMap::split and QCBase::isLabeledExperiment use DataProcessingUtils::hasIsobaricAnalyzer.
Validate the detection convention
src/tests/class_tests/openms/source/QCBase_test.cpp, CHANGELOG
Tests cover empty processing, non-matching names, and the exact matching name. The changelog records the query move.
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/openms-pr-10091-rebase-vkw1w9

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 checks the processing trail
Exact names make the tests prevail
QCBase keeps its familiar call
ConsensusMap follows the same hall
DataProcessingUtils tidies it all

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

timosachsenberg pushed a commit that referenced this pull request Sep 9, 2026
- Cite #10092, #10099 and #10101, whose CHANGELOG entries were added
  without a PR number at authoring time.
- Fix the Thermo mzML metadata entries, which cited #10072 (closed,
  never merged) instead of #10077, the PR that actually superseded and
  merged it; also cite #10079, which completed the openms-thermo-bridge
  0.3.0 pin.
- Cite #10070 for the three CHANGELOG entries it added (pyOpenMS wheel
  Thermo RAW support) that were missing a PR reference.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012hjhKYp1CdQK621UQm5uQ6
timosachsenberg added a commit that referenced this pull request Sep 10, 2026
- Cite #10092, #10099 and #10101, whose CHANGELOG entries were added
  without a PR number at authoring time.
- Fix the Thermo mzML metadata entries, which cited #10072 (closed,
  never merged) instead of #10077, the PR that actually superseded and
  merged it; also cite #10079, which completed the openms-thermo-bridge
  0.3.0 pin.
- Cite #10070 for the three CHANGELOG entries it added (pyOpenMS wheel
  Thermo RAW support) that were missing a PR reference.


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

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.

1 participant