Skip to content

fix(validate): escape regex quantifiers in Sage sequence parsing#392

Merged
theGreatHerrLebert merged 1 commit intomainfrom
fix/sage-sequence-parsing
Feb 18, 2026
Merged

fix(validate): escape regex quantifiers in Sage sequence parsing#392
theGreatHerrLebert merged 1 commit intomainfrom
fix/sage-sequence-parsing

Conversation

@theGreatHerrLebert
Copy link
Copy Markdown
Owner

The + and - signs inside bracket patterns were not escaped, causing them to be interpreted as regex quantifiers instead of literal characters. This meant none of the Sage mass annotations (e.g. [+57.021465]) were being converted to UNIMOD format, inflating false positive counts by ~10K per run. Also corrected mass prefixes for acetyl (42.0106 -> 42.0105) and water loss (-18.0106 -> -18.0105).

The + and - signs inside bracket patterns were not escaped, causing
them to be interpreted as regex quantifiers instead of literal
characters. This meant none of the Sage mass annotations (e.g.
[+57.021465]) were being converted to UNIMOD format, inflating
false positive counts by ~10K per run. Also corrected mass prefixes
for acetyl (42.0106 -> 42.0105) and water loss (-18.0106 -> -18.0105).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@theGreatHerrLebert theGreatHerrLebert merged commit 488a830 into main Feb 18, 2026
2 checks passed
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.

1 participant