Skip to content

[FIX] SimpleSearchEngine: deisotoping no longer removes fragment ions that have a small peak one isotope spacing below - #10463

Merged
timosachsenberg merged 2 commits into
developfrom
claude/sse-deisotope-start-check
Oct 8, 2026
Merged

timosachsenberg merged 2 commits into
developfrom
claude/sse-deisotope-start-check

Conversation

@timosachsenberg

@timosachsenberg timosachsenberg commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Description

SimpleSearchEngineAlgorithm::preprocessSpectra_ deisotopes high-resolution MS2 spectra with Deisotoper::deisotopeAndSingleCharge and the library default start_intensity_check=2. ProSE made the same call before #10391; that PR fixed only ProSE and named this call as not fixed.

With the default, a small peak 1.00335 Da below a fragment ion becomes the envelope's monoisotopic peak, and the ion itself is removed as its isotope. TMT/TMTpro-labelled fragments always carry such a peak from the reagent's isotope impurity.

Change: SimpleSearchEngine passes start_intensity_check=1, as ProSE does since #10391. This adds no parameter.

Effect

Data:

  • PXD061985, ..._TMT_PPCM_Fr21.mzML: Orbitrap Eclipse, TMTpro, HCD MS2 in the Orbitrap, 40,807 MS2.
  • PXD064311, ..._HeLa_TrypsinPromega_imidazole_Fraction9.mzML: Lumos, label-free, FTMS HCD, 32,326 MS2.
  • Database: human SwissProt (UniProt UP000005640, reviewed, 20,416 entries).

Command:

SimpleSearchEngine -in X.mzML -database human.fasta -out X.idXML -threads 4 \
  -Search:decoys true -Search:precursor:mass_tolerance 10 -Search:fragment:mass_tolerance 20 \
  -Search:modifications:fixed "Carbamidomethyl (C)" ["TMTpro (K)" "TMTpro (N-term)"] \
  -Search:modifications:variable "Oxidation (M)"

FDR is target-decoy competition on the top hit per spectrum.

Data develop PSMs / peptides at 1% FDR this PR Change in PSMs
TMTpro, full run 7533 / 5360 8133 / 5684 +8.0%
TMTpro, 8,000 MS2 subset 1793 / 1351 1946 / 1439 +8.5%
Label-free HeLa 1572 / 421 1624 / 433 +3.3%

Matched b/y ions removed by deisotoping: b/y (1+) ions within 20 ppm of a raw peak that are missing after the deisotoping call. Measured on the spectra develop already identifies:

Data start_intensity_check=2 (develop) =1 (this PR)
TMTpro 10817 / 114204 (9.5%) 194 / 114204 (0.2%)
Label-free 329 / 27703 (1.2%) 51 / 27703 (0.2%)

The 9.5% is lower than the 18–21% #10391 measured for ProSE. The datasets differ, and this count includes only spectra that develop still identifies despite the loss.

Tests

  • Class test: a new SimpleSearchEngineAlgorithm_test section uses the TMTpro b2 example from [FIX] ProSE: deisotoping no longer removes fragment ions that have a small peak one isotope spacing below; HyperScore Da-mode error on arm64 #10391's ProSE test.
    • The ion must survive, a 1+ envelope is still reduced to its monoisotopic peak, and a 2+ envelope is still converted to its 1+ m/z.
    • It fails on develop (the ion is removed) and passes with the fix.
    • Intensities are scaled to realistic values, and three trailing peaks are added, because preprocessSpectra_ drops absolute intensities below 0.05 and the window mower trims its last window.
  • TOPP references: SimpleSearchEngine_1/2_out.idXML keep the same hits. Only scores and PSM features change, because ions that deisotoping used to remove now match.
    • DFASSGGYVLHLHR goes from 11 to 14 matched peaks: y2+, y4+ and y6+ are no longer removed.
    • Reference lines that differed only in the last float digit were left unchanged.
  • Local run: Linux x64 GCC with system dependencies. All SimpleSearchEngine and OpenNuXL ctest tests pass with the fix. OpenNuXL runs SimpleSearchEngine for its default autotune/idfilter steps.

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_01DtWvvGGZSyZtVEvxGcPBGc


Generated by Claude Code

Summary by CodeRabbit

  • Bug Fixes
    • Improved high-resolution MS2 deisotoping by requiring isotope intensities to decrease from the monoisotopic peak. This can change matched-ion results and identification scores in TMTpro and label-free runs.

claude added 2 commits October 8, 2026 15:41
… that have a small peak one isotope spacing below

SimpleSearchEngineAlgorithm deisotoped with the library default start_intensity_check=2,
so a small peak 1.00335 Da below a fragment ion became the envelope's monoisotopic peak
and the ion was removed as its isotope. Pass start_intensity_check=1, as ProSE does
since #10391. TOPP references change in scores and PSM features only; the hits are the same.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01DtWvvGGZSyZtVEvxGcPBGc
@OpenMS OpenMS deleted a comment from coderabbitai Bot Oct 8, 2026
@timosachsenberg
timosachsenberg enabled auto-merge (squash) October 8, 2026 20:04
@timosachsenberg

Copy link
Copy Markdown
Contributor Author

Same fix

@timosachsenberg
timosachsenberg merged commit 4e951bd into develop Oct 8, 2026
30 checks passed
@timosachsenberg
timosachsenberg deleted the claude/sse-deisotope-start-check branch October 8, 2026 20:04
timosachsenberg pushed a commit that referenced this pull request Oct 8, 2026
Brings in #10448, #10453, #10449 (ProSE -rescore), #10429, #10463, #10455 and
#10452. #10429 is the same PeptideIndexing change this branch carried from
#10403, so the files merged identically; its duplicate CHANGELOG entry is
dropped. The CHANGELOG conflict keeps both sides.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UQCiwdbPoEkrebED8VQ2TJ
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