Skip to content

[FIX] PeptideAndProteinQuant: file/channel abundances 0 for dotted file names - #10454

Merged
jpfeuffer merged 2 commits into
OpenMS:developfrom
jpfeuffer:proteinquant-dotted-filenames
Oct 9, 2026
Merged

jpfeuffer merged 2 commits into
OpenMS:developfrom
jpfeuffer:proteinquant-dotted-filenames

Conversation

@jpfeuffer

Copy link
Copy Markdown
Contributor

Description

PeptideAndProteinQuant::annotateQuantificationsToProteins strips path and extension from the design file names when building the group/fraction map and then calls File::stemName a second time while looking up the quantified files. For a run file with a dot in its stem (sample.v1.mzML → sample.v1 → sample), the lookup misses, so every file/channel-level protein abundance comes out as 0. This affects ProteinQuantifier, ProteomicsLFQ and IsobaricWorkflow output, for example for Nextflow-style names like x.tmp.mzML.

Fix: drop the redundant second stemName.

Test: a new class test section in PeptideAndProteinQuant_test with a dotted run name. It fails without the fix and passes with it. ctest PeptideAndProteinQuant|IsobaricWorkflow|ProteomicsLFQ|ProteinQuantifier: 178/178 passed.

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

…file names

annotateQuantificationsToProteins stripped the extension of design file names twice,
so a stem containing a dot (run.v1.mzML -> run.v1 -> run) never matched the quantified
file and all file/channel-level abundances were reported as 0.

Co-authored-by: Copilot App <[email protected]>
@coderabbitai

coderabbitai Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 30 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2289f19e-f282-4243-8c7a-6aa7a6863539
📥 Commits

Reviewing files that changed from the base of the PR and between 03703a7 and d338050.

📒 Files selected for processing (3)
  • CHANGELOG
  • src/openms/source/ANALYSIS/QUANTITATION/PeptideAndProteinQuant.cpp
  • src/tests/class_tests/openms/source/PeptideAndProteinQuant_test.cpp
  • Autopilot · 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

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

@jpfeuffer
jpfeuffer merged commit d27503e into OpenMS:develop Oct 9, 2026
10 of 12 checks passed
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