Skip to content

[FEATURE] Add NASE ion blacklist and fragment coverage filters - #10528

Merged
poshul merged 3 commits into
feature/nase-mvh-scoringfrom
feature/nase-fragment-filtering
Oct 12, 2026
Merged

poshul merged 3 commits into
feature/nase-mvh-scoringfrom
feature/nase-fragment-filtering

Conversation

@poshul

@poshul poshul commented Oct 11, 2026

Copy link
Copy Markdown
Collaborator

NASE can exclude a list of theoretical m/z values with a ppm tolerance and require a minimum fraction of covered internal oligonucleotide positions. Blacklisting occurs before scoring and preserves all peak data-array types. Coverage uses distinct cleavage positions, maps suffix ions back to the 5′ coordinate, and divides by length - 1; one-nucleotide sequences have full coverage.

Both filters default to disabled. Matched-ion annotations are retained independently of scoring peak credit, so shared peaks still supply their individual ion annotations to the coverage calculation.

Validation: local NASE build; eight C++/TOPP tests and 46 Python scoring cases pass. Tests are added to the existing NASEDigestion class test, including float/string/integer array alignment, ppm removal, duplicate position counting, suffix coordinates and the one-nucleotide boundary. No new test files or targets.

Group 3, part 3. Stacked on #10527 with base feature/nase-preprocessing; merge/rebase after the parent. Historical lab filter comparisons remain preserved separately and do not establish independent ground truth.

@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 87292bd3ea4e against #10527, covering the ion blacklist and fragment-coverage filtering changes and tests. No additional actionable finding in this layer. The inherited MVH acceptance issue is tracked on #10526. Validation here was code/test inspection; this layer's full integration tests were not rerun.

Review performed with Codex.

Base automatically changed from feature/nase-preprocessing to feature/nase-mvh-scoring October 12, 2026 08:33
@poshul
poshul marked this pull request as ready for review October 12, 2026 08:34
@poshul
poshul merged commit 7ef8050 into feature/nase-mvh-scoring Oct 12, 2026
2 checks passed
@poshul
poshul deleted the feature/nase-fragment-filtering branch October 12, 2026 08:34
poshul added a commit that referenced this pull request Oct 12, 2026
* [FEATURE,FIX,TEST] Make NASE preprocessing configurable

* [FEATURE,TEST] Add NASE ion blacklist and coverage filters
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