Repository navigation
[FIX] ProSE: write FAIMS compensation voltages as FAIMS_CV, not IM - #10654
Merged
Merged
Conversation
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
marked this pull request as ready for review
October 20, 2026 12:42
Contributor
Author
|
Looks good |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Timo · project thread
Description
ProSEAlgorithm wrote the drift time of every MS2 spectrum as the generic
IMmeta value, whatever its unit. For Thermo FAIMS data, where the readers store the compensation voltage as drift time with unitFAIMS_COMPENSATION_VOLTAGE, the CV (e.g. -45 V) therefore ended up as an "ion mobility". It never appeared asFAIMS_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_andannotateProteinIdentifications_:FAIMS_COMPENSATION_VOLTAGEis written asFAIMS_CV. Any other unit (1/K0 from DDA-PASEF, ms, CCS) staysIM, as before. The meta-registry pre-registration uses the same key, so the registry order stays deterministic.IMunit is taken from a spectrum that has a non-FAIMS drift time instead ofexp[0]. FAIMS-only runs no longer get anIMunit, since none of their identifications hasIM.IM/FAIMS_CVoutput.ProSEAlgorithm_testsection (FAIMS CVs -45/-65 V). It checks thatFAIMS_CVis present,IMis absent and the run has noIMunit. The existing 1/K0 section is unchanged.Effect on outputs: timsTOF and non-IM results are unchanged. For FAIMS input, the QPX
ion_mobilitycolumn no longer carries the CV (it was never an ion mobility); the CV is now inFAIMS_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
.dfixture pass.Checklist
Generated by Claude Code