Repository navigation
[REFACTOR] ProteomicsLFQ FAIMS seeding: reuse splitByFAIMSCV and a shared CV filter - #10687
Merged
Merged
Conversation
…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
Contributor
|
Warning Review limit reachedYou'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. View limit details
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. Comment |
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
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
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 toIMDataConverter::splitByFAIMSCV. CVs with fewer than 3 MS1 spectra are still dropped.calculateSeedsnow 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.estimateMedianChromatographicFWHMuses the same split for FAIMS data. Non-FAIMS data is still traced directly, without an MS1 copy.FAIMSHelper::filterFeaturesByFAIMSCV. It shares the CV-match rule and the 0.01 tolerance withfilterPeptidesByFAIMSCVthrough one private predicate.FeatureFinderIdentificationAlgorithmuses it for the per-CV seeds instead of an inline copy of that rule.FAIMSHelper_testsection for the filter.DDAWorkflowCommons_testFAIMS 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_CVon 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,
estimateMedianChromatographicFWHMandcalculateSeedseach split the MS1 spectra, so the split happens twice. Sharing one split would change the publicDDAWorkflowCommonsAPI.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
Generated by Claude Code