Skip to content

Fix overflows on consensus -m simple.#2099

Merged
whitwham merged 1 commit into
samtools:developfrom
jkbonfield:consensus_overflow
Aug 27, 2024
Merged

Fix overflows on consensus -m simple.#2099
whitwham merged 1 commit into
samtools:developfrom
jkbonfield:consensus_overflow

Conversation

@jkbonfield

Copy link
Copy Markdown
Contributor

With depth in the millions the summation of quality values can overflow an int, causing breakage of the consensus caller. We now use uint64_t.

This problem doesn't seem to afflict the gap5 mode as it uses doubles for probability aggregation.

Fixes #2095

With depth in the millions the summation of quality values can
overflow an int, causing breakage of the consensus caller.  We now use
uint64_t.

This problem doesn't seem to afflict the gap5 mode as it uses doubles
for probability aggregation.

Fixes samtools#2095
@whitwham whitwham merged commit 8e4804e into samtools:develop Aug 27, 2024
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.

Consensus generation using quality at high depth fails

2 participants