Skip to content

feat: IM and FAIMS support in most feature finder - #8401

Merged
timosachsenberg merged 2 commits into
FFID_IMfrom
copilot/sub-pr-7453
Nov 28, 2025
Merged

timosachsenberg merged 2 commits into
FFID_IMfrom
copilot/sub-pr-7453

Conversation

Copilot AI commented Nov 28, 2025 •

Copy link
Copy Markdown
Contributor

Description

Adds comprehensive FAIMS (Field Asymmetric Ion Mobility Spectrometry) and ion mobility support to FeatureFinder tools.

FAIMS Support

  • FeatureFinderIdentification: Splits by compensation voltage (CV), processes groups separately, annotates features with FAIMS_CV meta value
  • FeatureFinderMultiplex: Full FAIMS support with proper ConsensusMap handling
  • FeatureFinderMetabo: FAIMS support via helper function for group processing
  • FeatureFinderCentroided: FAIMS support including seed filtering by CV
  • FeatureFinderMetaboIdent: FAIMS support plus new IM extraction window columns

Ion Mobility Support

  • TimsTOF trapped ion mobility support in FeatureFinderIdentification
  • IM-aware feature detection using peptide identification IM values
  • Configurable extraction window via extract:IM_window parameter

IMDataConverter Enhancement

  • splitByFAIMSCV() now returns std::vector<std::pair<double, MSExperiment>> with CV values

Other Changes

  • PercolatorInfile: Added ion mobility column support
  • Fixed documentation to use correct parameter case (extract:IM_window)

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.)

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

⚠️ Note: Once you opened a PR try to minimize the number of pushes to it as every push will trigger CI (automated builds and test) and is rather heavy on our infrastructure (e.g., if several pushes per day are performed).


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@coderabbitai

coderabbitai Bot commented Nov 28, 2025

Copy link
Copy Markdown
Contributor

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


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

Copilot AI changed the title [WIP] Add FAIMS support to FeatureFinder tools feat: IM and FAIMS support in most feature finder Nov 28, 2025
@timosachsenberg
timosachsenberg marked this pull request as ready for review November 28, 2025 10:00
@timosachsenberg
timosachsenberg merged commit 47efc64 into FFID_IM Nov 28, 2025
@timosachsenberg
timosachsenberg deleted the copilot/sub-pr-7453 branch November 28, 2025 10:00
timosachsenberg added a commit that referenced this pull request Nov 29, 2025
* start to work on IM code

* Update FeatureFinderIdentificationAlgorithm.cpp

* Update src/openms/source/FEATUREFINDER/FeatureFinderIdentificationAlgorithm.cpp

* check IM format

* add IM map

* some minor changes

* draft

* TODO

* determine IM of RT region and charge

* fix builds

* remove unused todos

* remove unused variable

* fix parsing of IM files

* Apply suggestions from code review

make IM code more robust for different annotations

* Refactor getScanIdentifier function signature

* full extraction for seeds without IM

* refactoring

* Reduce log verbosity for IDs without IM annotation

Change per-ID warning to debug level to avoid excessive output for datasets
with many identifications lacking ion mobility data. Summary log at info
level still reports total count of skipped IDs.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>

* add FAIMS support

* FFCentroided FAIMS support

* FeatureFinderMetaboIdent

* FAIMS in FFMI

* some refinements

* small meta data fix

* smaller optimizations

* more consistent use of no-IM

* refactor out of tool

* removed dead code

* simplify table

* added interleaved FAIMS test file

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>

* add mergeOverlappingFeatures to FeatureOverlapFilter

Add functionality to merge features based on centroid distances with
configurable options for FAIMS CV handling, intensity combination mode,
and charge state requirements. Includes Python bindings and tests.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>

* Add FAIMS feature merging to all FeatureFinder tools

- Add mergeFAIMSFeatures() to FeatureOverlapFilter that only merges
  features with DIFFERENT FAIMS CV values (same CV = different analytes)
- Add faims_merge_features parameter to FeatureFinderCentroided,
  FeatureFinderMetabo, FeatureFinderMultiplex (default: true)
- Add faims:merge_features parameter to FeatureFinderIdentificationAlgorithm
  and FeatureFinderAlgorithmMetaboIdent (default: true)
- Update Python bindings with correct pxd documentation style
- Add comprehensive tests for FAIMS merge functionality

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>

* Add FAIMS and TimsTOF IM documentation to FeatureFinders

- Update CHANGELOG with FAIMS support for all FeatureFinders (experimental)
- Update CHANGELOG with TimsTOF IM support for MetaboIdent/Identification (experimental)
- Add Ion Mobility Support section to FeatureFinderMetaboIdent documentation
- Add Ion Mobility Support section to FeatureFinderIdentification documentation
- Document msconvert --combineIonMobilitySpectra requirement for TimsTOF data

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>

* feat: IM and FAIMS support in most feature finder (#8401)

* Initial plan

* fix: correct extract:IM_window parameter case in documentation

Co-authored-by: timosachsenberg <[email protected]>

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: timosachsenberg <[email protected]>

* update test

* feat: Add optional FAIMS feature merging to Biosaur2Algorithm (#8406)

* Initial plan

* Add optional FAIMS feature merging to Biosaur2Algorithm/FeatureFinderLFQ

Co-authored-by: timosachsenberg <[email protected]>

* Move FAIMS feature merging to Biosaur2Algorithm

Co-authored-by: timosachsenberg <[email protected]>

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: timosachsenberg <[email protected]>

* update changelog

---------

Co-authored-by: Claude <[email protected]>
Co-authored-by: Copilot <[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