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
The MM tag is intended to be with respect to the instrument's basecalled sequence and hence can be copied as-is so aligners (and other tools) do not need to be aware of base modifications. In the case where the aligner hard clips the sequence and copies the MM tag however, the coordinates may no longer be valid. The current implementation of the API will process the tag for hardclipped alignments returning (potentially) invalid coordinates. Here is a small example sam:
Using bam_parse_basemod followed by bam_next_mod will result in a single hts_base_mod at position 7 of SEQ. I think it is preferable in this case for bam_parse_basemod to return -1.
Thanks,
Jared
The text was updated successfully, but these errors were encountered:
jts
added a commit
to jts/htslib
that referenced
this issue
Feb 17, 2023
Note manufacturers can use N as a the fundamental base, to make counting achievable even when there are hard-clips. I suspect I also do the maths incorrectly here though too.
It's possible the tag name may change, so maybe 1590 merge was premature, but it's not a problem until we do another main release anyway and obviously it's trivial to change.
The
MM
tag is intended to be with respect to the instrument's basecalled sequence and hence can be copied as-is so aligners (and other tools) do not need to be aware of base modifications. In the case where the aligner hard clips the sequence and copies the MM tag however, the coordinates may no longer be valid. The current implementation of the API will process the tag for hardclipped alignments returning (potentially) invalid coordinates. Here is a small example sam:Using
bam_parse_basemod
followed bybam_next_mod
will result in a singlehts_base_mod
at position 7 of SEQ. I think it is preferable in this case forbam_parse_basemod
to return -1.Thanks,
Jared
The text was updated successfully, but these errors were encountered: