Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bam.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ uint32_t bam_calend(const bam1_core_t *c, const uint32_t *cigar)
end = c->pos;
for (k = 0; k < c->n_cigar; ++k) {
int op = cigar[k] & BAM_CIGAR_MASK;
if (op == BAM_CMATCH || op == BAM_CDEL || op == BAM_CREF_SKIP)
if (op == BAM_CMATCH || op == BAM_CEQUAL || op == BAM_CDIFF || op == BAM_CDEL || op == BAM_CREF_SKIP)
end += cigar[k] >> BAM_CIGAR_SHIFT;
}
return end;
Expand Down