Skip to content

Scoring Refactor#4898

Draft
adamnovak wants to merge 17 commits intomasterfrom
synthesize-scoring-refactor
Draft

Scoring Refactor#4898
adamnovak wants to merge 17 commits intomasterfrom
synthesize-scoring-refactor

Conversation

@adamnovak
Copy link
Copy Markdown
Member

Changelog Entry

To be copied to the draft changelog by merger:

  • Alignment scoring and mapping quality computation have been broken out of GSSWAligner and moved to AlignmentScorer and MappingQualityCalculator.

Description

This breaks the alignment-scoring and mapping quality computation responsibilities off of the aligner class hierarchy and gives them their own class hierarchies.

Now there's alignment scorers for normal, quality-adjusted, and Minimap2-style logged-gap approaches. Each of them knows how to produce the "log base" that we use for mapping quality computation and hand it off to the MAPQ calculator. The aligners can use the appropriate ones of these scoring classes for the actual DP.

A lot of this code was synthesized via Anthropic Claude, and I've gone over most of it to try and make it acceptable.

This should produce exactly the same answers as before.

@adamnovak adamnovak marked this pull request as draft May 8, 2026 21:11
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