Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Further improve MM tag consistency checking. #1469

Merged
merged 1 commit into from
Jul 8, 2022

Conversation

jkbonfield
Copy link
Contributor

If we have an MM tag with base-type specific coordinates beyond the end of the sequence as there are too few bases of that type, then we now detect this within bam_parse_basemod.

This was already checked within bam_next_basemod for forward reads, but not spotted in reverse complemented ones.

Fixes #1466

Note this checks in a different place, as for reverse complemented reads we've already computed the total frequency as we're counting backwards, so spotting overflow can be done at the parse stage while setting up the "initial" (ie last) mod. For forward reads our initial one is also the first, so a check isn't so useful here.

If we have an MM tag with base-type specific coordinates beyond the
end of the sequence as there are too few bases of that type, then we
now detect this within bam_parse_basemod.

This was already checked within bam_next_basemod for forward reads,
but not spotted in reverse complemented ones.

Fixes samtools#1466
@daviesrob daviesrob merged commit 506f479 into samtools:develop Jul 8, 2022
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.

Modified base parsing failure failure
2 participants