We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e1f982 commit 0877128Copy full SHA for 0877128
SeqLib/BamRecord.h
@@ -639,9 +639,9 @@ class BamRecord {
639
uint32_t* c = bam_get_cigar(b);
640
int32_t p = 0;
641
for (size_t i = 0; i < b->core.n_cigar; ++i) {
642
- if ( (bam_cigar_opchr(c[i]) == 'S') || (bam_cigar_opchr(c[i]) == 'H'))
+ if (bam_cigar_opchr(c[i]) == 'S')
643
p += bam_cigar_oplen(c[i]);
644
- else // not a clip, so stop counting
+ else if (bam_cigar_opchr(c[i]) != 'H')
645
break;
646
}
647
return p;
0 commit comments