You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
contain malformed MM tags. The queries contain only 5 T bases (A for reverse record) but the MM tag informs that the first modification is located after skipping over the first 5 Ts (As from the right).
Putting these records through the test program test/test_mod in htslib yields:
0 G
1 G
2 G
3 G
4 G
5 G
6 G
7 T
8 C
9 T
10 C
11 T
12 A T+T3
13 A T+T3
14 C
15 G
16 A T+T4
17 C
18 C
19 A T+T3
20 A T+T182
---
Present: T
12 A T+T3
13 A T+T3
16 A T+T4
19 A T+T3
20 A T+T182
===
0 T
1 T
2 G
3 G
4 T
5 C
6 G
7 T
8 T
9 A
10 G
11 A
12 G
13 A
14 C
15 C
16 C
17 C
18 C
19 C
20 C
---
Present: T
[W::bam_next_basemod] MM tag refers to bases beyond sequence length
It is tripping up only on the forward record, not the reverse record.
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.
Fixessamtools#1466
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
The functions
bam_mods_at_next_pos
andbam_next_basemod
fail to detect when andMM
tag is corrupt for reverse-mapped reads.For example, the records:
contain malformed
MM
tags. The queries contain only 5T
bases (A
for reverse record) but theMM
tag informs that the first modification is located after skipping over the first 5T
s (A
s from the right).Putting these records through the test program test/test_mod in htslib yields:
It is tripping up only on the forward record, not the reverse record.
Escalated from: epi2me-labs/modbam2bed#21
The text was updated successfully, but these errors were encountered: