Skip to content

[FEATURE] Make NASE preprocessing configurable - #10527

Merged
poshul merged 1 commit into
feature/nase-mvh-scoringfrom
feature/nase-preprocessing
Oct 12, 2026
Merged

poshul merged 1 commit into
feature/nase-mvh-scoringfrom
feature/nase-preprocessing

Conversation

@poshul

@poshul poshul commented Oct 11, 2026

Copy link
Copy Markdown
Collaborator

NASE exposes its MS2 preprocessing choices: legacy deisotoping or none, optional WindowMower and NLargest filters, optional precursor/isotope removal, and an optional processed mzML output. Removal happens before decharging in the original m/z space and keeps peak data arrays aligned. Charge inference refreshes the selected precursor charge, and negative acquisition charges are compared by magnitude in negative mode.

Legacy deisotoping remains the default. Noise filters are explicit flags; enable both filters with preprocessing:window_mower:movetype=jump to reproduce the former hard-coded filter settings. FLASH is introduced separately in a later draft.

Validation: local NASE build, eight existing C++/TOPP tests and 46 Python scoring regression cases pass. The existing NASEDigestion class test covers signed and inferred charges, removal before decharging with/without deisotoping, aligned data arrays, and full searches with negative acquisition charges. No test files or targets are added.

Group 3, part 2. Stacked on #10526; the base branch is feature/nase-mvh-scoring. Review this PR's focused diff and merge/rebase after its parent. Earlier correctness drafts remain separate.

@timosachsenberg timosachsenberg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 591993d63e88 against #10526, covering the configurable preprocessing paths and their tests. No additional actionable finding in this layer. The inherited MVH acceptance issue is tracked in the review on #10526. Validation here was code/test inspection; this layer's full integration tests were not rerun.

Review performed with Codex.

@poshul
poshul marked this pull request as ready for review October 12, 2026 08:32
@poshul
poshul merged commit 6741aa0 into feature/nase-mvh-scoring Oct 12, 2026
3 checks passed
@poshul
poshul deleted the feature/nase-preprocessing branch October 12, 2026 08:33
poshul added a commit that referenced this pull request Oct 12, 2026
#10526)

* [FEATURE,API,TEST] Add configurable MVH scoring to NASE

* [FEATURE,FIX,TEST] Make NASE preprocessing configurable (#10527)

* [FEATURE] Add NASE ion blacklist and fragment coverage filters (#10528)

* [FEATURE,FIX,TEST] Make NASE preprocessing configurable

* [FEATURE,TEST] Add NASE ion blacklist and coverage filters

* [FIX,TEST] Reject MVH candidates without fragment matches
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