Skip to content

[FIX] ProSE: write FAIMS compensation voltages as FAIMS_CV, not IM - #10654

Merged
timosachsenberg merged 1 commit into
developfrom
feature/prose-faims-cv
Oct 20, 2026
Merged

timosachsenberg merged 1 commit into
developfrom
feature/prose-faims-cv

Conversation

@timosachsenberg

@timosachsenberg timosachsenberg commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Timo · project thread

Description

ProSEAlgorithm wrote the drift time of every MS2 spectrum as the generic IM meta value, whatever its unit. For Thermo FAIMS data, where the readers store the compensation voltage as drift time with unit FAIMS_COMPENSATION_VOLTAGE, the CV (e.g. -45 V) therefore ended up as an "ion mobility". It never appeared as FAIMS_CV, which is the key all FAIMS-aware code reads: FAIMSHelper::filterPeptidesByFAIMSCV, FeatureFinderIdentification's per-CV split, MS1LabeledWorkflow and FeatureOverlapFilter. ProteomicsLFQ and MS1LabeledWorkflow worked around this by looking the CV up from the spectra again, but standalone chains (ProSE → IDMapper / FeatureFinderIdentification / exports) did not.

Changes in ProSEAlgorithm::postProcessHits_ and annotateProteinIdentifications_:

  • A drift time with unit FAIMS_COMPENSATION_VOLTAGE is written as FAIMS_CV. Any other unit (1/K0 from DDA-PASEF, ms, CCS) stays IM, as before. The meta-registry pre-registration uses the same key, so the registry order stays deterministic.
  • The run-level IM unit is taken from a spectrum that has a non-FAIMS drift time instead of exp[0]. FAIMS-only runs no longer get an IM unit, since none of their identifications has IM.
  • ProSE docs: a note on the IM / FAIMS_CV output.
  • Test: a new ProSEAlgorithm_test section (FAIMS CVs -45/-65 V). It checks that FAIMS_CV is present, IM is absent and the run has no IM unit. The existing 1/K0 section is unchanged.

Effect on outputs: timsTOF and non-IM results are unchanged. For FAIMS input, the QPX ion_mobility column no longer carries the CV (it was never an ion mobility); the CV is now in FAIMS_CV. SimpleSearchEngineAlgorithm has the same pattern and is left as it is here.

Verified in a local full build: ProSEAlgorithm_test (incl. the new FAIMS section) and TOPP_ProSE_DDA on the Bruker .d fixture pass.

Checklist

  • Make sure that you are listed in the AUTHORS file
  • Add relevant changes and new features to the CHANGELOG file (generated automatically per repository rules)
  • 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 (no API change)

Generated by Claude Code

ProSEAlgorithm annotated every spectrum drift time as the generic 'IM' meta
value, so the CV of Thermo FAIMS spectra ended up as an ion mobility and the
FAIMS-aware code (FAIMSHelper, FeatureFinderIdentification's per-CV split,
MS1LabeledWorkflow, FeatureOverlapFilter), which reads FAIMS_CV, did not see
it. A drift time with unit FAIMS_COMPENSATION_VOLTAGE is now written as
FAIMS_CV; other units stay IM. The run-level IM unit comes from a spectrum
with a non-FAIMS drift time instead of exp[0].

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_0158WC3UwcFZZyjnE5M7KjRG
@timosachsenberg timosachsenberg self-assigned this Oct 20, 2026
@timosachsenberg timosachsenberg added the major critical issues that are important to fix label Oct 20, 2026 — with Claude
@timosachsenberg timosachsenberg added this to the Release 3.X milestone Oct 20, 2026 — with Claude
@timosachsenberg
timosachsenberg marked this pull request as ready for review October 20, 2026 12:42
@timosachsenberg
timosachsenberg merged commit 6b6c341 into develop Oct 20, 2026
33 of 34 checks passed
@timosachsenberg
timosachsenberg deleted the feature/prose-faims-cv branch October 20, 2026 12:43
@timosachsenberg

Copy link
Copy Markdown
Contributor Author

Looks good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

major critical issues that are important to fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants