Skip to content

[TEST] ProSE Test 12 with -rescore: compare hit counts after FDR - #10588

Closed
timosachsenberg wants to merge 1 commit into
developfrom
claude/cool-edison-ml8qum
Closed

timosachsenberg wants to merge 1 commit into
developfrom
claude/cool-edison-ml8qum

Conversation

@timosachsenberg

@timosachsenberg timosachsenberg commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Description

TOPP_ProSE_12_pin_rescore_idXML_out fails on the Windows CI of every PR, including 10578, 10423 and 10547. It passes on Linux and macOS.

What the test did: it diffed the idXML of two -rescore runs (ProSE_12_pin_rescore against ProSE_11_rescore) at FuzzyDiff's 1% tolerance.

Why that fails on Windows:

  • On this data Percolator trains on 895 targets and 1 decoy. It warns that "the number of negative samples read is too small to perform a correct classification".
  • It also cannot rescale the SVM scores to merge the CV bins ("median decoy score <= score at 1% FDR"), so it skips the rescaling.
  • As a result, all 895 percolator_score values lie in [-1.0, -0.945]. The 1% tolerance is about as large as the spread between PSMs.
  • On Windows, two runs differ by about 1% in these scores (e.g. -0.960354 vs -0.971406), and which run gets which value changes between CI runs.
  • On Linux the output is bit-identical across runs, including under CPU load, with a scrambled heap and under valgrind (0 errors).
  • -out_pin is not the cause: with -rescore the .pin is written after Percolator has run.

The change: with -rescore, the test now compares the FileInfo summaries of the two runs after PSM and protein FDR. Those cover protein hits, matched spectra, peptide hits and the search engine (Percolator). The SVM scores are no longer compared.

Unchanged:

  • The test without -rescore keeps the full idXML diff.
  • Both .pin comparisons (TOPP_ProSE_12_pin_out, TOPP_ProSE_12_pin_rescore_out) are unchanged.

What makes the Windows runs differ is still unknown. This PR only stops the test from depending on scores that are this sensitive.

Validation (Linux, Release):

  • The 12 tests of ProSE Test 6, Test 11 (11_rescore) and Test 12 pass.
  • Changing one count in the TSV (895 → 894) makes the new comparison fail.

Checklist

  • Make sure that you are listed in the AUTHORS file
  • Add relevant changes and new features to the CHANGELOG file (test-only change)
  • 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_012GBvJZN8neGpv9RoUshwFL


Generated by Claude Code

Summary by CodeRabbit

  • Tests
    • Expanded regression coverage for ProSE output-pin behavior across rescored and non-rescored runs.
    • Rescored-run checks now compare summaries of post-FDR outputs, while non-rescored runs continue to compare output files directly.
    • Checks against runs without FDR remain unchanged.

TOPP_ProSE_12_pin_rescore_idXML_out diffed the idXML of two -rescore runs
at 1% tolerance. Percolator cannot train properly on this data (1 decoy
among 896 PSMs, so it skips rescaling the SVM scores; all scores lie in
[-1, -0.945]), and on Windows the percolator_score of the two runs differs
by about 1%, which failed the Windows CI of every PR.

With -rescore, compare the FileInfo hit counts after PSM and protein FDR
of the two runs instead (proteins, matched spectra, peptide hits, search
engine). The test without -rescore keeps the full idXML diff, and the
.pin comparison is unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012GBvJZN8neGpv9RoUshwFL
@coderabbitai

coderabbitai Bot commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 5b00350f-86b6-4922-9127-4b9066bf989e
📥 Commits

Reviewing files that changed from the base of the PR and between 1108633 and 961e76c.

📒 Files selected for processing: 1
  • src/tests/topp/CMakeLists.txt

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.

📝 Walkthrough

The ProSE -out_pin regression test now checks post-FDR hit counts for rescored runs by comparing FileInfo summaries. Non-rescored runs continue to compare idXML outputs directly.

Changes: ProSE out_pin regression test

Layer / File(s) Summary
Post-FDR comparison
src/tests/topp/CMakeLists.txt
The test compares FileInfo summaries of post-FDR idXML outputs for rescored runs, excluding the file-name column. Non-rescored runs retain the direct idXML comparison and existing whitelist.

Suggested reviewers: singjc

Priority: ⬇️ Low

Change: Other

Merge Risk: ⚪ Minimal · up to 961e7

The rescored test still checks stable post-FDR counts while ignoring only the differing output filename. No identified issue prevents merging.

Pre-merge checks: Passed 5
Passed 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 identifies the ProSE Test 12 change and the updated -rescore comparison after FDR. It accurately summarizes the main change.
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
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)
  • Commit to this branch
  • Create a new PR
  • Autofix · 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

A rabbit checks the hits with care
Rescored summaries line up there
No-rescore files still compare
A PIN check joins the test affair
The bunny hops away довольный

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

timosachsenberg pushed a commit that referenced this pull request Oct 15, 2026
TOPP_ProSE_12_pin_rescore_idXML_out fails on the Windows CI of every PR
(Percolator SVM scores of two -rescore runs differ by ~1% there). Same
change as #10588: with -rescore, compare the FileInfo hit
counts after FDR instead of the scores. No-op once develop carries it.

pyOpenMS: bind MultiplexResolverAlgorithm.expectedChannelMZs (returns the
channel m/z values and the sequence's own channel as a tuple) and
FeatureFinderMultiplexAlgorithm.getBlacklist / getCentroidedExperiment
(copies), as suggested in review.

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

Copy link
Copy Markdown
Contributor Author

Closing as already on develop. The identical change landed with #10547 (b3edef0) and #9446 (055f6a0), where it was ported to get their Windows CI green. Merging this branch into develop gives exactly develop's tree.


Generated by Claude Code

timosachsenberg added a commit that referenced this pull request Oct 16, 2026
… multiplets (#10587)

* MS1LabeledWorkflow: map IDs over the elution region, quantify partial multiplets

Identifications were mapped onto a multiplet only within 5 s of its apex and
by their precursor m/z, and every multiplet with an undetected channel was
dropped. On a synthetic triple SILAC run with DDA-like MS2 triggers this
quantified 27 of 120 peptides (not even half of the 60 complete ones).

ID mapping and resolution:
- Match identifications against the elution region of the multiplet's
  channels (their mass trace hulls, via IDMapper's feature map mode) instead
  of the apex; FeatureFinderMultiplex handles now refer to their features.
- id_mapping:mz_reference defaults to 'peptide' (theoretical m/z of the
  labelled peptidoform): precursors picked on M+1..M+3 (isotope error
  correction in the search) did not map. The channel of a spectrum match is
  the one closest to that m/z as well.
- Prefer identifications whose labels agree with the multiplet's mass shifts
  over a better-scoring one that contradicts them (the multiplet used to
  become a conflict).
- MultiplexResolverAlgorithm: a pattern has to label as many K/R (L for
  Leu3) residues as the sequence has; an unlabelled identification fitted
  every pattern, e.g. a light singlet of an R-peptide was completed with
  Lys-shifted channels. New checkIdentifications(), expectedChannelMZs().

Partial multiplets:
- algorithm:knock_out defaults to true. FeatureFinderMultiplex knock-out
  patterns start at shift 0: without the lightest channel (e.g. medium and
  heavy only) they needed a peak at the absent light position and came out as
  unrelated singlets. The quadruplex knock-out without channel 3 is searched.
- Flanks of a multiplet (partial multiplets of the same peptide next to it)
  are merged into it.
- New -requantify (default true): missing channels are measured at their
  expected position, as a ratio to the most intense detected channel over
  the peaks where both were seen; reported absent only without signal.
- An identification of an undetected channel joins the multiplet detected
  in the peptide's other channels.
- FeatureFinderMultiplex fills the blacklist for centroided input, too.
- -match_between_runs works with knock-outs (complete unidentified
  multiplets only).

The synthetic run now quantifies 119 of 120 peptides with exact ratios.
Changed references: MultiplexResolver_1/3 (correct patterns for unlabelled
identifications, see above); MS1LabeledWorkflow_1..6 only renumber unique
ids (knock-out detection draws more of them; content identical). New test
MS1LabeledWorkflow_7 covers off-apex/off-isotope IDs, light-absent,
heavy-only, light-only and weak (re-quantified) multiplets.

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

* Fix MS1Labeled test builds: new annotate signature, vector<bool> checks

MS1LabeledFAIMS_test still called the removed annotate(mapper, map, ids,
proteins). It now builds one channel feature per handle, as the workflow
does, and also covers the heavy-channel map_index, the removal of the
internal id bookkeeping, and the error for a channel without multiplet.

MultiplexResolverAlgorithm_test compared std::vector<bool> elements with
TEST_EQUAL, which libc++ cannot convert (macOS build); use TEST_TRUE /
TEST_FALSE.

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

* Port ProSE Test 12 Windows fix (#10588); bind new multiplex accessors

TOPP_ProSE_12_pin_rescore_idXML_out fails on the Windows CI of every PR
(Percolator SVM scores of two -rescore runs differ by ~1% there). Same
change as #10588: with -rescore, compare the FileInfo hit
counts after FDR instead of the scores. No-op once develop carries it.

pyOpenMS: bind MultiplexResolverAlgorithm.expectedChannelMZs (returns the
channel m/z values and the sequence's own channel as a tuple) and
FeatureFinderMultiplexAlgorithm.getBlacklist / getCentroidedExperiment
(copies), as suggested in review.

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

---------

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.

2 participants