Skip to content

[FIX] DIAuditor: clearer multiplexing warning; warn when diaPASEF windows have no ion mobility range - #10312

Merged
timosachsenberg merged 2 commits into
developfrom
claude/nifty-hypatia-gsjz1a
Sep 28, 2026
Merged

timosachsenberg merged 2 commits into
developfrom
claude/nifty-hypatia-gsjz1a

Conversation

@timosachsenberg

@timosachsenberg timosachsenberg commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Description

A follow-up to #10271 (DIAuditor), based on David Tabb's review of the port.

Multiplexing warning

  • The tool warned that MS2 spectra "have more than one precursor (multiplexed DIA?)". Every DIA spectrum contains many precursor ions, so this read as if it applied to all DIA data.
  • What the tool actually counts is spectra with several <precursor> elements, i.e. several isolation windows per spectrum, as in MSX.
  • The warning, the tool page and the RunMetrics comment now say "more than one isolation window". The warning also suggests demultiplexing first (msconvert --filter demultiplex).
  • diaPASEF data do not trigger it: msconvert and the OpenMS timsTOF reader write one precursor per window spectrum.

Ion mobility arrays without window ranges

  • TIMSCONVERT writes each diaPASEF MS2 spectrum with its isolation window and a per-peak mean inverse reduced ion mobility array. It does not write the window's ion mobility range (ion mobility lower/upper limit), which msconvert --combineIonMobilitySpectra and the timsTOF reader do write. I checked this on the PXD059079 timsTOF HF run in the raw-file museum.
  • Windows of such data are told apart by m/z only. Windows that share an m/z range and differ only in 1/K0 therefore count as one, and until now nothing said so.
  • New counter RunMetrics::ms2_im_array_without_range: MS2 spectra with an isolation window and an ion mobility array, but no ion mobility range of the window. Like the other counters, it includes spectra without retention time.
  • New warning when that counter is non-zero and -ion_mobility is auto. The tool page says that TIMSCONVERT output is keyed by m/z only.

Compiler warning

  • The list of input formats is now built in one initializer.
  • With the new warning in the file, the push_back onto a one-element list triggered GCC 13's false -Warray-bounds at -O3.

No output changes: the reference files of TOPP_DIAuditor_1 and _2 are unchanged.

Tests

  • DIAQCMetrics_test checks the new counter for spectra with and without a range, without an isolation window, MS1 spectra and spectra without retention time. These checks fail without the counter.
  • TOPP_DIAuditor_1 and _2 pass with their references unchanged.
  • TIMSCONVERT run: on the first 1,066 spectra of the run, the new warning reports 1,040 MS2 spectra, and the 40 windows are unchanged.
  • No false alarms:
    • no warning with -ion_mobility none
    • no warning on the msconvert mzML of the Orbitrap Ascend FAIMS run
  • Build:
    • built against the 2026-09-27 nightly SDK
    • DIAuditor.cpp and DIAQCMetrics.cpp compile with GCC 13 -Wall -Wextra -Werror, with and without WITH_THERMO_RAW/WITH_OPENTIMS
    • they also compile with clang using OpenMS's warning flags

A second PR will address the reader and writer gaps behind DIAuditor's NA values:

  • the resolving power from .raw
  • the start time, instrument and serial number from .d
  • MS:1000800 being written back as a userParam

Checklist

  • Make sure that you are listed in the AUTHORS file
  • Add relevant changes and new features to the CHANGELOG file (not needed: the tool is unreleased and its entry from [FEATURE] DIAuditor: DIA quality metrics per run and isolation window #10271 covers it)
  • I have commented my code, particularly in hard-to-understand areas
  • New and existing unit tests pass locally with my changes (built against the nightly SDK, see above)
  • Updated or added python bindings for changed or new classes (Tick if no updates were necessary.) (none needed: the class is tool-local)

How can I get additional information on failed tests during CI

Click to expand If your PR is failing you can check out

Advanced commands (admins / reviewer only)

Click to expand
  • /reformat (experimental) applies the clang-format style changes as additional commit. Note: your branch must have a different name (e.g., yourrepo:feature/XYZ) than the receiving branch (e.g., OpenMS:develop). Otherwise, reformat fails to push.
  • setting the label "NoJenkins" will skip tests for this PR on jenkins (saves resources e.g., on edits that do not affect tests)
  • commenting with rebuild jenkins will retrigger Jenkins-based CI builds

🤖 Generated with Claude Code

https://claude.ai/code/session_01Av5w5vHqBTv3wPygrM7FSU


Generated by Claude Code

Summary by CodeRabbit

  • New Features
    • DIA quality reports now count MS2 spectra that contain ion-mobility data but lack a reported mobility range.
  • Improvements
    • Clarified how spectra are assigned to isolation windows, including that only the first window is used and spectra without retention time or at MS3 and above are not assigned.
    • Warnings now better explain multiple-precursor acquisitions and missing mobility ranges, with guidance on demultiplexing and conversion options.

…dows have no ion mobility range

Multiplexing warning: it said that MS2 spectra "have more than one precursor
(multiplexed DIA?)". Every DIA spectrum contains many precursor ions, so this
read as if it applied to all DIA data. What the tool counts is spectra with
several precursor elements, i.e. several isolation windows per spectrum (e.g.
MSX). The warning, the tool page and the RunMetrics comment now say so, and the
warning suggests demultiplexing first.

New warning: MS2 spectra with an isolation window and an ion mobility array,
but no ion mobility range of their window. TIMSCONVERT writes diaPASEF this way
(checked on the PXD059079 timsTOF HF run: one precursor with the isolation
window and a 'mean inverse reduced ion mobility array', no 'ion mobility
lower/upper limit'). Such windows are told apart by m/z only, so windows that
share an m/z range and differ only in ion mobility count as one. The spectra are
counted in RunMetrics::ms2_im_array_without_range (also without retention time,
like the other counters); the tool warns with -ion_mobility auto. The tool page
says that TIMSCONVERT output is keyed by m/z only.

The list of input formats is built in one initializer. Pushing onto a
one-element list made GCC 13 report a false -Warray-bounds at -O3 once the
file gained the new warning.

Tests: DIAQCMetrics_test checks the new counter (spectra with and without a
range, without isolation window, MS1, without retention time). The outputs of
TOPP_DIAuditor_1 and _2 are unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Av5w5vHqBTv3wPygrM7FSU
@timosachsenberg
timosachsenberg merged commit 45173c0 into develop Sep 28, 2026
8 of 9 checks passed
@timosachsenberg
timosachsenberg deleted the claude/nifty-hypatia-gsjz1a branch September 28, 2026 20:52
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