Skip to content

[PARAM,IO] Remove ProteinQuantifier ratio outputs - #9867

Merged
timosachsenberg merged 1 commit into
OpenMS:developfrom
timosachsenberg:codex/issue-9853
Aug 5, 2026
Merged

timosachsenberg merged 1 commit into
OpenMS:developfrom
timosachsenberg:codex/issue-9853

Conversation

@timosachsenberg

@timosachsenberg timosachsenberg commented Aug 5, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • remove ProteinQuantifier's opt-in -ratios and -ratiosSILAC flags
  • remove the corresponding ratio_1..N and SILACratio_1..3 CSV writer branches
  • remove the four ratio-only TOPP tests and their reference files
  • document the breaking change and migration path

Why

These legacy convenience columns have no in-tree consumers and divide already-aggregated protein abundances, so they do not preserve the feature-level information that makes a SILAC ratio useful. They were also the sole reason for the missing-sample and header/body defects fixed temporarily in #9854.

Users can retain the full quantitative information through the existing abundance_sample* columns and form contrasts in a downstream statistics layer such as MSstats.

Existing command lines using either removed flag fail loudly as unknown options instead of silently producing a different table shape.

Verification

  • git diff --check
  • source contract audit confirms no ratio option, writer, test, or reference-file references remain under src/topp, src/tests, doc, or share
  • no build was performed because the repository instructions prohibit building OpenMS unless explicitly requested

Closes #9853

Summary by CodeRabbit

  • Breaking Changes

    • Removed protein ratio and SILAC-ratio output options from ProteinQuantifier.
    • Former ratio-related command-line flags are no longer recognized.
    • Ratio columns are no longer included in generated protein tables.
    • Downstream analyses should use retained protein abundance columns for contrasts.
  • Tests

    • Removed legacy test coverage and expected outputs for ratio-based quantification scenarios.

Remove the opt-in -ratios and -ratiosSILAC parameters and their legacy CSV columns. Keep abundance outputs as the downstream input for statistical contrasts.

Closes OpenMS#9853
@timosachsenberg
timosachsenberg marked this pull request as ready for review August 5, 2026 17:04
@coderabbitai

coderabbitai Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

ProteinQuantifier’s legacy -ratios and -ratiosSILAC options, ratio calculations, and ratio CSV columns were removed. Related TOPP tests and output fixtures were deleted. The changelog records the breaking CLI change.

Changes

ProteinQuantifier ratio removal

Layer / File(s) Summary
Remove ratio flags and output
src/topp/ProteinQuantifier.cpp, CHANGELOG
Removed ratio CLI flags, calculations, headers, and output values. Added a breaking-change entry.
Remove ratio test coverage
src/tests/topp/CMakeLists.txt, src/tests/topp/ProteinQuantifier_12_output.txt, src/tests/topp/ProteinQuantifier_13_output.txt, src/tests/topp/ProteinQuantifier_29_output.txt, src/tests/topp/ProteinQuantifier_30_output.txt
Removed ratio-related test registrations, comparisons, and expected-output fixtures.

Possibly related PRs

Suggested reviewers: cbielow, copilot

Poem

A rabbit counts columns beneath the moon,
Finds old ratios vanish soon.
Flags are gone, headers lie clear,
Abundance values remain near.
Hop through tests; the change is done!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 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 identifies the removal of ProteinQuantifier ratio outputs, which is the primary change.
Linked Issues check ✅ Passed The implementation removes the requested flags, CSV columns, writer branches, tests, and fixtures described in issue #9853.
Out of Scope Changes check ✅ Passed The changelog, implementation, tests, and reference-file removals all support the objectives in issue #9853.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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

🤖 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/ProteinQuantifier.cpp`:
- Line 530: Add replacement TOPP coverage for the removed ratio contract: verify
that using -ratios or -ratiosSILAC fails with an unknown-option error, and
verify protein CSV output contains no ratio headers while retaining the
abundance columns. Add or update the relevant test rather than skipping
coverage, using the existing TOPP test symbols and fixtures.
🪄 Autofix

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 Plus

Run ID: 048b1174-74a1-48f4-b961-2d8179e71389

📥 Commits

Reviewing files that changed from the base of the PR and between b3b0742 and 81dca4f.

📒 Files selected for processing (7)
  • CHANGELOG
  • src/tests/topp/CMakeLists.txt
  • src/tests/topp/ProteinQuantifier_12_output.txt
  • src/tests/topp/ProteinQuantifier_13_output.txt
  • src/tests/topp/ProteinQuantifier_29_output.txt
  • src/tests/topp/ProteinQuantifier_30_output.txt
  • src/topp/ProteinQuantifier.cpp
💤 Files with no reviewable changes (5)
  • src/tests/topp/ProteinQuantifier_13_output.txt
  • src/tests/topp/ProteinQuantifier_29_output.txt
  • src/tests/topp/ProteinQuantifier_12_output.txt
  • src/tests/topp/ProteinQuantifier_30_output.txt
  • src/tests/topp/CMakeLists.txt

Comment thread src/topp/ProteinQuantifier.cpp Resolved

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

looks good.

@timosachsenberg

Copy link
Copy Markdown
Contributor Author

Necessary to properly support techreps, bioreps, fractions. ratios can be calculated downstream (as done in other software)

@timosachsenberg
timosachsenberg merged commit e56a751 into OpenMS:develop Aug 5, 2026
34 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.

ProteinQuantifier: remove the -ratios / -ratiosSILAC output columns

1 participant