Skip to content

Remove PeptideIdentification base_name; use ProteinIdentification MS run path - #9660

Merged
timosachsenberg merged 5 commits into
developfrom
claude/epic-tesla-46zac4
Jul 1, 2026
Merged

timosachsenberg merged 5 commits into
developfrom
claude/epic-tesla-46zac4

Conversation

@timosachsenberg

@timosachsenberg timosachsenberg commented Jun 25, 2026 •

Copy link
Copy Markdown
Contributor

Motivation

PeptideIdentification::getBaseName() / setBaseName() stored the source-file
annotation per spectrum as a base_name meta value. This duplicated, at the
spectrum level, what the run-level mechanism already models authoritatively:
ProteinIdentification's primary MS run path (spectra_data) + the shared
identifier + id_merge_index, resolved through IdentifierMSRunMapper.

This PR removes base_name and the accessors, and routes everything through the
run-level mechanism.

Changes

  • PeptideIdentification: remove get/setBaseName(). The redundant
    getBaseName() term is dropped from operator== (still compared via
    MetaInfoInterface, so equality/hash semantics are unchanged) and from empty().
  • PepXMLFile reader: record the source run on the ProteinIdentification
    via setPrimaryMSRunPath(<search_summary base_name>) instead of stamping
    base_name on every PeptideIdentification. This also removes dead code in
    msms_run_summary that set the primary MS run path on a local copy — a
    latent bug where the path never reached the stored ProteinIdentification
    (so pepXML conversions never actually populated spectra_data).
  • IdentifierMSRunMapper::getPrimaryMSRunPath(): add a single,
    centralized backward-compatibility fallback — when the mapping cannot resolve
    a path, honor a legacy base_name meta value if present. This keeps old
    idXML/parquet files (which carry base_name as a generic UserParam)
    resolving to a source run.
  • IdentificationDataConverter: unchanged behavior — keep preferring a
    legacy base_name meta value (now read directly) before falling back to
    input_file_refs / id_merge_index.
  • TextExporter: resolve USI run names via IdentifierMSRunMapper rather
    than getBaseName(). Output is unchanged (USI::extractBasename yields the
    same run name from the resolved path as it did from base_name).
  • pyOpenMS: drop the get/setBaseName bindings.

Backward compatibility

  • The base_name value is preserved on disk for existing files (it remains
    a generic UserParam); only the typed accessors and the per-spectrum
    production of it go away. Old files still resolve their source run through
    the fallback above.
  • Constants::UserParam::BASE_NAME is intentionally retained (used by the
    fallbacks).

Breaking change

  • Public C++ API PeptideIdentification::get/setBaseName() and the
    corresponding pyOpenMS methods are removed.

Tests

  • Dropped the get/setBaseName sections in PeptideIdentification_test.
  • Added an IdentifierMSRunMapper test for the legacy base_name fallback.
  • Updated the 5 IDFileConverter_*_output.idXML golden files: base_name on
    peptides → spectra_data on the run (values verified per run against the
    reader's search_summary base_name and the idXML writer's stringList format).

Note: this was developed in an environment without the contrib submodule, so
a full local build/ctest run was not possible — CI is relied upon to verify
compilation and the golden-file updates.

🤖 Generated with Claude Code

https://claude.ai/code/session_013bKgkE6UgStKaw5cLQ2ERP


Generated by Claude Code

Summary by CodeRabbit

  • New Features
    • Identification exports now derive USI/run-name information from primary MS-run mapping.
    • Primary MS-run/source provenance is stored on the shared protein context for consistent downstream use.
  • Bug Fixes
    • Legacy input-file resolution and MS-run fallback behavior now honor deprecated BASE_NAME only when primary mapping is unavailable.
    • Primary run-path selection respects mapped identifiers with correct precedence and remains stable after duplicate-collision cases.
  • Breaking Changes
    • Removed base_name accessors from the public API and Python bindings; experimentLabel is used instead.
  • Tests
    • Expanded coverage for primary MS-run-path precedence, fallback behavior, and duplicate-collision mapping stability.

@github-actions

Copy link
Copy Markdown
Contributor

@timosachsenberg The following names might be missing from the AUTHORS file:

  • Claude

Please consider applying the following patch:

--- AUTHORS	2026-06-25 07:03:52.533734610 +0000
+++ AUTHORS.new	2026-06-25 07:03:57.944465098 +0000
@@ -25,6 +25,7 @@
  - Chris Bielow
  - Christian Ehrlich
  - Christie Mathews
+ - Claude
  - Clemens Groepl
  - Cornelia Friedle
  - Daniel Jameson

@coderabbitai

coderabbitai Bot commented Jun 25, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

The PR removes PeptideIdentification base-name accessors, stores run provenance on ProteinIdentification, updates legacy input-file resolution to use BASE_NAME metadata, and changes USI export to resolve run names through IdentifierMSRunMapper.

Changes

Peptide run provenance migration

Layer / File(s) Summary
PeptideIdentification API and bindings
src/openms/include/OpenMS/METADATA/PeptideIdentification.h, src/openms/source/METADATA/PeptideIdentification.cpp, src/pyOpenMS/bindings/bind_kernel.cpp, src/tests/class_tests/openms/source/PeptideIdentification_test.cpp
PeptideIdentification drops base-name accessors and base-name participation in equality and emptiness, and the Python binding exposes experiment-label methods; the unit tests remove the deleted base-name checks.
PepXML provenance storage
src/openms/include/OpenMS/FORMAT/PepXMLFile.h, src/openms/source/FORMAT/PepXMLFile.cpp, src/tests/topp/IDFileConverter_*_output.idXML
PepXMLFile stores the current MS run path on PepXMLFile, stops writing per-peptide base-name data, and the IDXML fixtures now place spectra_data on run-level metadata while removing peptide-level base_name entries.
Legacy run-path resolution
src/openms/source/METADATA/IdentifierMSRunMapper.cpp, src/openms/source/METADATA/ID/IdentificationDataConverter.cpp, src/topp/CometAdapter.cpp, src/tests/class_tests/openms/source/IdentifierMSRunMapper_test.cpp
IdentifierMSRunMapper::create builds identifier and run-path maps in two passes, getPrimaryMSRunPath falls back to deprecated BASE_NAME metadata, IdentificationDataConverter uses the same metadata for input files, and CometAdapter stops removing the peptide base_name meta value.
USI export resolution
src/topp/TextExporter.cpp
TextExporter derives USI run names from IdentifierMSRunMapper::getPrimaryMSRunPath instead of reading PeptideIdentification base-name state.

Possibly related PRs

  • OpenMS/OpenMS#7981: Both PRs change PeptideIdentification base-name handling and the downstream callers that rely on it.
  • OpenMS/OpenMS#9579: Both PRs add coverage around IdentifierMSRunMapper::getPrimaryMSRunPath and its mapper-state behavior.
  • OpenMS/OpenMS#9657: Both PRs update USI/MS-run resolution in TextExporter to rely on mapper-based run lookup.

Suggested reviewers

  • jpfeuffer

Poem

A rabbit hopped where run names twined,
And left old base names far behind.
Protein paths now hold the clue,
While mappers tell USIs what to do.
Thump! The spectra trail is neat. 🐇

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 26.67% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ 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 summarizes the main change: removing PeptideIdentification base_name and shifting run provenance to ProteinIdentification.
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 claude/epic-tesla-46zac4

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.

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

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
src/openms/source/METADATA/PeptideIdentification.cpp (1)

35-45: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Legacy base_name still affects logical identity.

Line 37 still delegates to MetaInfoInterface::operator==(rhs), so peptide IDs loaded from legacy files keep comparing differently when they carry the deprecated base_name meta value. That means old and new representations of the same identification will still compare/hash differently unless Constants::UserParam::BASE_NAME is normalized out of both operator== and std::hash<PeptideIdentification> together. Based on PR objectives, legacy base_name is supposed to remain a compatibility fallback, not part of PeptideIdentification identity.

🤖 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/openms/source/METADATA/PeptideIdentification.cpp` around lines 35 - 45,
`PeptideIdentification::operator==` still treats legacy `base_name` meta values
as part of identity through `MetaInfoInterface::operator==`. Update
`PeptideIdentification::operator==` to ignore or normalize
`Constants::UserParam::BASE_NAME` before comparing, and make the matching
`std::hash<PeptideIdentification>` logic consistent so legacy and modern objects
compare/hash the same. Use the `PeptideIdentification` equality and hash
implementations as the place to remove this deprecated compatibility-only field
from identity.
🤖 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.

Inline comments:
In `@src/topp/TextExporter.cpp`:
- Around line 797-805: The current USI setup in TextExporter uses a partially
built IdentifierMSRunMapper when IdentifierMSRunMapper::create() throws on
duplicate MS-run paths, which leaves identifier_to_msrunpath_ half-populated and
makes later getPrimaryMSRunPath() lookups unreliable. Update the add_usi path in
TextExporter so mapper construction is either completed without the reverse-map
uniqueness failure or the mapper is discarded/USI resolution is disabled on
InvalidValue; make the same fix in the other USI export locations that use the
mapper so they do not continue with a partially initialized
IdentifierMSRunMapper.

---

Outside diff comments:
In `@src/openms/source/METADATA/PeptideIdentification.cpp`:
- Around line 35-45: `PeptideIdentification::operator==` still treats legacy
`base_name` meta values as part of identity through
`MetaInfoInterface::operator==`. Update `PeptideIdentification::operator==` to
ignore or normalize `Constants::UserParam::BASE_NAME` before comparing, and make
the matching `std::hash<PeptideIdentification>` logic consistent so legacy and
modern objects compare/hash the same. Use the `PeptideIdentification` equality
and hash implementations as the place to remove this deprecated
compatibility-only field from identity.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: d95ca42b-f9dc-45b3-a8c3-bd0536ab2ab4

📥 Commits

Reviewing files that changed from the base of the PR and between 93368e6 and dc456fd.

📒 Files selected for processing (14)
  • src/openms/include/OpenMS/METADATA/PeptideIdentification.h
  • src/openms/source/FORMAT/PepXMLFile.cpp
  • src/openms/source/METADATA/ID/IdentificationDataConverter.cpp
  • src/openms/source/METADATA/IdentifierMSRunMapper.cpp
  • src/openms/source/METADATA/PeptideIdentification.cpp
  • src/pyOpenMS/bindings/bind_kernel.cpp
  • src/tests/class_tests/openms/source/IdentifierMSRunMapper_test.cpp
  • src/tests/class_tests/openms/source/PeptideIdentification_test.cpp
  • src/tests/topp/IDFileConverter_10_output.idXML
  • src/tests/topp/IDFileConverter_16_output.idXML
  • src/tests/topp/IDFileConverter_24_output.idXML
  • src/tests/topp/IDFileConverter_2_output.idXML
  • src/tests/topp/IDFileConverter_6_output.idXML
  • src/topp/TextExporter.cpp
💤 Files with no reviewable changes (2)
  • src/pyOpenMS/bindings/bind_kernel.cpp
  • src/tests/class_tests/openms/source/PeptideIdentification_test.cpp

Comment thread src/topp/TextExporter.cpp Resolved
timosachsenberg added a commit that referenced this pull request Jun 25, 2026
… rejecting duplicate paths

Build the (unambiguous) identifier->ms-run-path forward map fully before the
reverse-map duplicate-path check. Previously create() populated both maps in a
single pass and threw mid-loop on the first duplicate, leaving the forward map
missing every run listed after the duplicate. Callers that catch the
InvalidValue and continue (TextExporter's USI export) then resolved run names
from a half-populated map, so USI run names were order-dependent and could be
silently dropped for later runs.

Splitting into two passes makes the forward map (all that getPrimaryMSRunPath()
needs) complete and order-independent even when the duplicate check throws. The
success-path behavior and the thrown exception are unchanged. Adds a regression
test that resolves a run listed after the duplicate.

Addresses CodeRabbit review feedback on PR #9660.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_015HamPwQj6bSZbb4abqeqca

@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/openms/source/METADATA/IdentifierMSRunMapper.cpp (1)

44-50: 🚀 Performance & Scalability | 🔵 Trivial | 💤 Low value

Optional: reuse the forward map in the second pass.

The second pass re-calls getPrimaryMSRunPath() (a copy-out) for each prot_id, duplicating the work already done in pass one. You can iterate the just-built forward map instead, while preserving input order via the original vector if needed.

♻️ Reuse forward-map entries
   // Second pass: build the reverse map (ms-run-paths -> identifier), rejecting ambiguous
   // input where different identifiers map to the same paths.
   for (const auto& prot_id : prot_ids)
   {
-    StringList ms_run_paths;
-    prot_id.getPrimaryMSRunPath(ms_run_paths);
-    const std::string& identifier = prot_id.getIdentifier();
+    const std::string& identifier = prot_id.getIdentifier();
+    const StringList& ms_run_paths = identifier_to_msrunpath_[identifier];
🤖 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/openms/source/METADATA/IdentifierMSRunMapper.cpp` around lines 44 - 50,
The second pass in IdentifierMSRunMapper::createMapping is recomputing ms-run
paths by calling getPrimaryMSRunPath() again on each prot_id, duplicating work
already done in the forward map. Rework the reverse-map build to iterate the
forward-map entries produced in the first pass (or the original prot_id order if
you must preserve ordering), and use those stored ms-run paths directly while
keeping the ambiguity check and identifier lookup behavior unchanged.
🤖 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/openms/source/METADATA/IdentifierMSRunMapper.cpp`:
- Around line 44-50: The second pass in IdentifierMSRunMapper::createMapping is
recomputing ms-run paths by calling getPrimaryMSRunPath() again on each prot_id,
duplicating work already done in the forward map. Rework the reverse-map build
to iterate the forward-map entries produced in the first pass (or the original
prot_id order if you must preserve ordering), and use those stored ms-run paths
directly while keeping the ambiguity check and identifier lookup behavior
unchanged.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 4d349633-7237-4fe7-93da-28e706107121

📥 Commits

Reviewing files that changed from the base of the PR and between dc456fd and 6fb8d6c.

📒 Files selected for processing (2)
  • src/openms/source/METADATA/IdentifierMSRunMapper.cpp
  • src/tests/class_tests/openms/source/IdentifierMSRunMapper_test.cpp

timosachsenberg added a commit that referenced this pull request Jun 25, 2026
… rejecting duplicate paths

Build the (unambiguous) identifier->ms-run-path forward map fully before the
reverse-map duplicate-path check. Previously create() populated both maps in a
single pass and threw mid-loop on the first duplicate, leaving the forward map
missing every run listed after the duplicate. Callers that catch the
InvalidValue and continue (TextExporter's USI export) then resolved run names
from a half-populated map, so USI run names were order-dependent and could be
silently dropped for later runs.

Splitting into two passes makes the forward map (all that getPrimaryMSRunPath()
needs) complete and order-independent even when the duplicate check throws. The
success-path behavior and the thrown exception are unchanged. Adds a regression
test that resolves a run listed after the duplicate.

Addresses CodeRabbit review feedback on PR #9660.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_015HamPwQj6bSZbb4abqeqca
@timosachsenberg
timosachsenberg force-pushed the claude/epic-tesla-46zac4 branch from 777ca68 to 36df19e Compare June 25, 2026 18:58
claude and others added 3 commits June 25, 2026 19:05
…run path

The per-PeptideIdentification "base_name" annotation (and its get/setBaseName
accessors) duplicated, at the spectrum level, the source-file information that
the run-level mechanism already models: ProteinIdentification's primary MS run
path (spectra_data) + the shared identifier + id_merge_index, resolved via
IdentifierMSRunMapper. This removes base_name and routes everything through the
run-level mechanism.

Changes:
- PeptideIdentification: remove get/setBaseName() and the redundant base_name
  comparison in operator== (still covered by MetaInfoInterface) and empty().
- PepXMLFile reader: record the source run on the ProteinIdentification via
  setPrimaryMSRunPath(base_name) in search_summary, instead of stamping
  base_name on every PeptideIdentification. Also drops dead code in
  msms_run_summary that set the primary MS run path on a local copy (a latent
  bug: the path never reached the stored ProteinIdentification).
- IdentifierMSRunMapper::getPrimaryMSRunPath(): add a backward-compatibility
  fallback that honors a legacy "base_name" meta value when the mapping cannot
  resolve a path (older idXML/parquet files).
- IdentificationDataConverter: keep preferring a legacy base_name meta value
  (read directly) before falling back to input_file_refs/id_merge_index.
- TextExporter: resolve USI run names via IdentifierMSRunMapper instead of
  PeptideIdentification::getBaseName() (USI output unchanged).
- pyOpenMS: drop the get/setBaseName bindings.
- Tests: drop the get/setBaseName sections, add an IdentifierMSRunMapper legacy
  fallback test, and update the 5 IDFileConverter golden idXML outputs
  (base_name on peptides -> spectra_data on the run).

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_013bKgkE6UgStKaw5cLQ2ERP
… rejecting duplicate paths

Build the (unambiguous) identifier->ms-run-path forward map fully before the
reverse-map duplicate-path check. Previously create() populated both maps in a
single pass and threw mid-loop on the first duplicate, leaving the forward map
missing every run listed after the duplicate. Callers that catch the
InvalidValue and continue (TextExporter's USI export) then resolved run names
from a half-populated map, so USI run names were order-dependent and could be
silently dropped for later runs.

Splitting into two passes makes the forward map (all that getPrimaryMSRunPath()
needs) complete and order-independent even when the duplicate check throws. The
success-path behavior and the thrown exception are unchanged. Adds a regression
test that resolves a run listed after the duplicate.

Addresses CodeRabbit review feedback on PR #9660.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_015HamPwQj6bSZbb4abqeqca
PepXMLFile no longer stamps the per-spectrum "base_name" meta value on
PeptideIdentifications (it records the source run on the ProteinIdentification's
primary MS run path instead). CometAdapter reads Comet's results exclusively via
PepXMLFile (the only loader in its flow; the subsequent reindex / IM / FAIMS /
native-id steps never add base_name), so the explicit removeMetaValue("base_name")
loop no longer removes anything - it is a no-op. Drop it.

Output is unchanged: the CometAdapter golden idXML references carry zero
base_name UserParams (this loop used to strip the value the reader added), so
the THIRDPARTY CometAdapter tests remain byte-identical.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_015HamPwQj6bSZbb4abqeqca
@timosachsenberg
timosachsenberg force-pushed the claude/epic-tesla-46zac4 branch from 36df19e to 6ac0b94 Compare June 25, 2026 19:05
@jpfeuffer

jpfeuffer commented Jun 25, 2026 •

Copy link
Copy Markdown
Contributor

I think it's a step in the right direction.
I assume the way to encode merged runs is via id_merge_index only now? Referencing the origin in the list of file origins of the the run?
Should already be more efficient in every case.

I think ideally there is still room for improvement. I guess by restructuring the relationship between peptides and proteins and runs but that would of course be a larger change.

@timosachsenberg

Copy link
Copy Markdown
Contributor Author

Yeah for now I just wanted to reduce the many ways of referencing the source files

The reader recorded the <search_summary> base_name as the ProteinIdentification's
primary MS run path. That value is sometimes the identification result file
(e.g. a .pep.xml), not the spectra - so spectra_data could end up holding a
non-spectra path. Compose the run path from the <msms_run_summary> base_name +
raw_data extension (the actual mzML/mzXML) instead, and fall back to the
search_summary base_name only when the run summary has none (e.g. Mascot
exports, where msms_run_summary base_name is empty).

Regenerates the 4 affected IDFileConverter golden idXMLs (2, 10, 16, 24);
IDFileConverter_6 is unchanged (empty msms_run_summary base_name -> fallback).
Adapters that read pepXML (CometAdapter, MSFraggerAdapter) overwrite spectra_data
with their real mzML input, so their outputs are unaffected.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_013bKgkE6UgStKaw5cLQ2ERP

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

Actionable comments posted: 1

🤖 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.

Inline comments:
In `@src/openms/source/FORMAT/PepXMLFile.cpp`:
- Around line 1132-1140: The fallback ProteinIdentification created in the
PepXML parsing path currently does not retain the run-level spectra provenance
when search_summary is missing. Update the fallback branch in PepXMLFile::load
so the newly created ProteinIdentification also gets the PrimaryMSRunPath
assigned from the current run/file context before pushing it into proteins_, and
keep the existing search_summary handling as an override when present.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 9525bfd1-0d12-46f6-bd78-eeff2b4b5be3

📥 Commits

Reviewing files that changed from the base of the PR and between 36df19e and 1eef845.

📒 Files selected for processing (16)
  • src/openms/include/OpenMS/FORMAT/PepXMLFile.h
  • src/openms/include/OpenMS/METADATA/PeptideIdentification.h
  • src/openms/source/FORMAT/PepXMLFile.cpp
  • src/openms/source/METADATA/ID/IdentificationDataConverter.cpp
  • src/openms/source/METADATA/IdentifierMSRunMapper.cpp
  • src/openms/source/METADATA/PeptideIdentification.cpp
  • src/pyOpenMS/bindings/bind_kernel.cpp
  • src/tests/class_tests/openms/source/IdentifierMSRunMapper_test.cpp
  • src/tests/class_tests/openms/source/PeptideIdentification_test.cpp
  • src/tests/topp/IDFileConverter_10_output.idXML
  • src/tests/topp/IDFileConverter_16_output.idXML
  • src/tests/topp/IDFileConverter_24_output.idXML
  • src/tests/topp/IDFileConverter_2_output.idXML
  • src/tests/topp/IDFileConverter_6_output.idXML
  • src/topp/CometAdapter.cpp
  • src/topp/TextExporter.cpp
💤 Files with no reviewable changes (3)
  • src/topp/CometAdapter.cpp
  • src/pyOpenMS/bindings/bind_kernel.cpp
  • src/tests/class_tests/openms/source/PeptideIdentification_test.cpp
🚧 Files skipped from review as they are similar to previous changes (10)
  • src/topp/TextExporter.cpp
  • src/tests/topp/IDFileConverter_6_output.idXML
  • src/tests/topp/IDFileConverter_16_output.idXML
  • src/openms/include/OpenMS/METADATA/PeptideIdentification.h
  • src/openms/source/METADATA/ID/IdentificationDataConverter.cpp
  • src/tests/class_tests/openms/source/IdentifierMSRunMapper_test.cpp
  • src/tests/topp/IDFileConverter_10_output.idXML
  • src/tests/topp/IDFileConverter_24_output.idXML
  • src/openms/source/METADATA/IdentifierMSRunMapper.cpp
  • src/openms/source/METADATA/PeptideIdentification.cpp

Comment thread src/openms/source/FORMAT/PepXMLFile.cpp Resolved
The previous commit assigned the ProteinIdentification's primary MS run path only
in the "search_summary" handler. pepXML files without a "search_summary" (the
reader explicitly creates a fallback ProteinIdentification for that case) would
therefore lose run-level spectra provenance. Set the primary MS run path on the
fallback ProteinIdentification in "msms_run_summary" (from base_name + raw_data);
"search_summary" still fills it in when msms_run_summary had none (Mascot).

Golden outputs are unchanged: all IDFileConverter pepXML fixtures contain a
search_summary, so the run path is already set before search_summary runs and its
existing-value guard skips re-assignment.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_013bKgkE6UgStKaw5cLQ2ERP
@timosachsenberg
timosachsenberg merged commit a6be7a3 into develop Jul 1, 2026
41 checks passed
@timosachsenberg
timosachsenberg deleted the claude/epic-tesla-46zac4 branch July 1, 2026 06:08
timosachsenberg added a commit that referenced this pull request Jul 2, 2026
Three recently merged PRs landed on develop without changelog coverage:
the PeptideIdentification::base_name removal (breaking API change routed
through the run-level primary MS run path) and the two QPX Parquet
streaming-export performance fixes (PSM export in #9697, feature export
in #9698) that bound peak memory for large isobaric-labeling runs.


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

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.

3 participants