Skip to content

Deletion at the end of the alignment #280

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

Open
tprodanov opened this issue Apr 24, 2020 · 1 comment
Open

Deletion at the end of the alignment #280

tprodanov opened this issue Apr 24, 2020 · 1 comment

Comments

@tprodanov
Copy link

Secondary alignment has a deletion at the end of its cigar.
Ways to reproduce (using human genome version 19):

samtools faidx hg19.fa 7:157673851-157674750 > 1.fa
bwa mem -a -k 20 hg19.fa 1.fa

# Output sam file:
7:157673851-157674750   0       7       157673851       60      900M    ...
7:157673851-157674750   256     7       157673861       0       10H890M70D      ...

I am not sure if deletion at the end is an invalid operation, but it is confusing. Also there may be bugs in other programs if they expect last operation to be either match or clipping.

I used BWA version 0.7.17-r1188.

@d-cameron
Copy link

The deletion can also be at the start of the cigar. Be aware that bwa defines the alignment start as the position of the start of the deletion, whereas the SAM specifications defines the alignment start as the position of the first mapped based (ie, the position of the first M base next to the D).

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

No branches or pull requests

2 participants