Skip to content

[REFACTOR] ProteomicsLFQ FAIMS seeding: reuse splitByFAIMSCV and a shared CV filter - #10687

Merged
timosachsenberg merged 1 commit into
developfrom
claude/project-thread-ltmmow
Oct 21, 2026
Merged

timosachsenberg merged 1 commit into
developfrom
claude/project-thread-ltmmow

Conversation

@timosachsenberg

Copy link
Copy Markdown
Contributor

Requested by Timo · project thread

Description

Cleanup of #10656 (FAIMS-aware seeding and peak width estimation in ProteomicsLFQ), from a reuse/simplification review. There are no intended changes to results.

  • DDAWorkflowCommons: the hand-written per-CV splitter is replaced by an MS1 copy passed to IMDataConverter::splitByFAIMSCV. CVs with fewer than 3 MS1 spectra are still dropped.
    • calculateSeeds now runs one loop over the CV groups instead of a FAIMS branch and a non-FAIMS branch. Without FAIMS this is the NaN group. The FeatureFinderMultiplex parameters are built once.
    • The first group's feature map is kept, so for non-FAIMS data the seed map, including its unique id, is the same as before.
  • estimateMedianChromatographicFWHM uses the same split for FAIMS data. Non-FAIMS data is still traced directly, without an MS1 copy.
  • New FAIMSHelper::filterFeaturesByFAIMSCV. It shares the CV-match rule and the 0.01 tolerance with filterPeptidesByFAIMSCV through one private predicate. FeatureFinderIdentificationAlgorithm uses it for the per-CV seeds instead of an inline copy of that rule.
  • Tests:
    • New FAIMSHelper_test section for the filter.
    • The DDAWorkflowCommons_test FAIMS section is shorter: isotope patterns are computed once, and the CV check uses a single set.

One small behaviour difference: data with a single FAIMS CV now gets FAIMS_CV on its seeds, as Biosaur2 and the FeatureFinderMultiplex tool already do. FeatureFinderIdentification treats a single CV as a FAIMS group, so all of those seeds still match.

Not changed: on FAIMS data, estimateMedianChromatographicFWHM and calculateSeeds each split the MS1 spectra, so the split happens twice. Sharing one split would change the public DDAWorkflowCommons API.

Verified in a local build (no vcpkg, Release): the 125 tests matching DDAWorkflowCommons, FAIMSHelper, FeatureFinderIdentification, IMDataConverter, Biosaur2Algorithm and ProteomicsLFQ all pass. That includes all TOPP_ProteomicsLFQ reference-output tests and their Parquet variants.

Checklist

  • Make sure that you are listed in the AUTHORS 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 (no binding added for the new static helper)

Generated by Claude Code

…eed filter

Follow-up cleanup of #10656:
- DDAWorkflowCommons: split MS1 by CV with IMDataConverter::splitByFAIMSCV
  instead of a second hand-written splitter; calculateSeeds runs one loop
  over the CV groups (NaN group without FAIMS), builds the
  FeatureFinderMultiplex parameters once
- estimateMedianChromatographicFWHM: same split for FAIMS data, no MS1
  copy for non-FAIMS data
- FAIMSHelper::filterFeaturesByFAIMSCV shares the CV-match rule and
  tolerance with filterPeptidesByFAIMSCV; FeatureFinderIdentification
  uses it for the per-CV seeds
- tests: simpler checks in DDAWorkflowCommons_test, new
  FAIMSHelper_test section

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01VBri8WRxo7mjrenSQnQTUT
@coderabbitai

coderabbitai Bot commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 16 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: bd9492a1-36f0-4554-b113-ff45247f5ad9
📥 Commits

Reviewing files that changed from the base of the PR and between d7d9974 and dfb6ed6.

📒 Files selected for processing: 6
  • src/openms/include/OpenMS/IONMOBILITY/FAIMSHelper.h
  • src/openms/source/ANALYSIS/QUANTITATION/DDAWorkflowCommons.cpp
  • src/openms/source/FEATUREFINDER/FeatureFinderIdentificationAlgorithm.cpp
  • src/openms/source/IONMOBILITY/FAIMSHelper.cpp
  • src/tests/class_tests/openms/source/DDAWorkflowCommons_test.cpp
  • src/tests/class_tests/openms/source/FAIMSHelper_test.cpp
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@timosachsenberg timosachsenberg self-assigned this Oct 21, 2026
@timosachsenberg timosachsenberg added this to the Release 3.X milestone Oct 21, 2026 — with Claude
@timosachsenberg
timosachsenberg merged commit 94d4775 into develop Oct 21, 2026
33 checks passed
@timosachsenberg
timosachsenberg deleted the claude/project-thread-ltmmow branch October 21, 2026 17:16
timosachsenberg pushed a commit that referenced this pull request Oct 22, 2026
…tion changes natively

- IsobaricWorkflow (#10631, #10620/#10616): one consensus feature per identified spectrum with all
  of its identifications (sorted best first, which the identification data keeps as its query
  order); identifications without spectrum reference and those of reporter scans that miss a
  channel become unassigned; an identified spectrum missing from the mzML fails the tool; the PSM
  FDR includes the unassigned identifications. creditBestPeptidoform_() works on the links of the
  consensus features: identifications whose best match names another peptidoform or charge than
  the first one with a match are unlinked, so they become unassigned with all their matches. The
  new IsobaricWorkflow goldens of develop are reproduced unchanged.
- FAIMSHelper::filterFeaturesByFAIMSCV() (#10687) keeps the identification data of the map, which
  the kept features link (test added); filterIdentificationsByFAIMSCV() uses the same group rule.
- FeatureMapArrowIO_test: develop's exact-doubles round trip (#10692) builds and reads the
  identifications of the map through the identification data.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01B51nRFoHvZuVXD7cT8XZav
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