Skip to content

Scoring Refactor#4898

Open
adamnovak wants to merge 21 commits into
masterfrom
synthesize-scoring-refactor
Open

Scoring Refactor#4898
adamnovak wants to merge 21 commits into
masterfrom
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
@adamnovak adamnovak marked this pull request as ready for review May 12, 2026 18:14
@adamnovak
Copy link
Copy Markdown
Member Author

I think this is finally really ready; I've removed all the things that Anthropic Claude wanted me to do that I don't actually want to do, after several passes and several days.

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