Skip to content

feat: Add optional FAIMS feature merging to Biosaur2Algorithm - #8406

Merged
timosachsenberg merged 3 commits into
FFID_IMfrom
copilot/sub-pr-7453
Nov 29, 2025
Merged

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

Conversation

Copilot AI commented Nov 28, 2025 •

Copy link
Copy Markdown
Contributor

Description

Adds optional FAIMS feature merging to Biosaur2Algorithm, consistent with the pattern in FeatureFinderIdentificationAlgorithm and FeatureFinderAlgorithmMetaboIdent.

Changes:

  • Added faims_merge_features parameter (default "true") to Biosaur2Algorithm
  • Integrated FeatureOverlapFilter::mergeFAIMSFeatures() to merge features representing the same analyte at different CV values
  • Features with different FAIMS_CV values are merged; same CV features remain separate (different analytes)

The Biosaur2Algorithm already handles FAIMS CV group splitting internally. This adds the final merging step for multi-CV FAIMS data within the algorithm itself, matching the approach used by other algorithm classes.

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

Advanced commands (admins / reviewer only)


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


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI self-assigned this Nov 28, 2025
@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 and ion mobility support to FeatureFinder tools feat: Add optional FAIMS feature merging to FeatureFinderLFQ/Biosaur2Algorithm Nov 28, 2025
@timosachsenberg

Copy link
Copy Markdown
Contributor

@copilot this should already be handled in the Biosaur2Algorithm!

Copilot AI commented Nov 29, 2025

Copy link
Copy Markdown
Contributor Author

@copilot this should already be handled in the Biosaur2Algorithm!

Moved the FAIMS feature merging logic from the TOPP tool into Biosaur2Algorithm in commit 6d95a0d. The algorithm now has a faims_merge_features parameter (default "true") and handles the merging internally in the run() method after combining features from all CV groups, following the same pattern as FeatureFinderIdentificationAlgorithm.

Copilot AI changed the title feat: Add optional FAIMS feature merging to FeatureFinderLFQ/Biosaur2Algorithm feat: Add optional FAIMS feature merging to Biosaur2Algorithm Nov 29, 2025
@timosachsenberg
timosachsenberg marked this pull request as ready for review November 29, 2025 07:58
@timosachsenberg
timosachsenberg merged commit 4210686 into FFID_IM Nov 29, 2025
@timosachsenberg
timosachsenberg deleted the copilot/sub-pr-7453 branch November 29, 2025 08:28
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