diff --git a/src/bisc_utils.c b/src/bisc_utils.c index d27f5b2..6779270 100644 --- a/src/bisc_utils.c +++ b/src/bisc_utils.c @@ -86,6 +86,8 @@ uint32_t cnt_retention(refcache_t *rs, bam1_t *b, uint8_t bsstrand) { oplen = bam_cigar_oplen(bam_get_cigar(b)[i]); switch(op) { case BAM_CMATCH: + case BAM_CEQUAL: + case BAM_CDIFF: for (j=0; jcore; uint32_t i, rpos = c->pos+1, qpos = 0; uint32_t op, oplen; @@ -172,6 +172,8 @@ uint8_t infer_bsstrand(refcache_t *rs, bam1_t *b, uint32_t min_base_qual) { oplen = bam_cigar_oplen(bam_get_cigar(b)[i]); switch(op) { case BAM_CMATCH: + case BAM_CEQUAL: + case BAM_CDIFF: for (j=0; jrs, rpos+j); diff --git a/src/bsstrand.c b/src/bsstrand.c index c617f51..f829e2e 100755 --- a/src/bsstrand.c +++ b/src/bsstrand.c @@ -82,6 +82,8 @@ int bsstrand_func(bam1_t *b, samFile *out, bam_hdr_t *header, void *data) { uint32_t oplen = bam_cigar_oplen(bam_get_cigar(b)[i]); switch(op) { case BAM_CMATCH: + case BAM_CEQUAL: + case BAM_CDIFF: for(j=0; jrs, rpos+j)); qbase = bscall(b, qpos+j); diff --git a/src/cinread.c b/src/cinread.c index f2ffa32..b1d0a20 100644 --- a/src/cinread.c +++ b/src/cinread.c @@ -72,6 +72,8 @@ int cinread_func(bam1_t *b, samFile *out, bam_hdr_t *hdr, void *data) { uint32_t oplen = bam_cigar_oplen(bam_get_cigar(b)[i]); switch(op) { case BAM_CMATCH: + case BAM_CEQUAL: + case BAM_CDIFF: for(j=0; jrs, rpos+j); diff --git a/src/epiread.c b/src/epiread.c index f95c800..3a354ae 100644 --- a/src/epiread.c +++ b/src/epiread.c @@ -675,6 +675,8 @@ static void *process_func(void *data) { uint32_t oplen = bam_cigar_oplen(bam_get_cigar(b)[i]); switch(op) { case BAM_CMATCH: + case BAM_CEQUAL: + case BAM_CDIFF: for (j=0; j=w.end) continue; /* include begin but not end */ diff --git a/src/tview.c b/src/tview.c index 10c0018..c451b29 100644 --- a/src/tview.c +++ b/src/tview.c @@ -335,6 +335,8 @@ static void draw_read1(rnode_t *nd, btview_t *tv, int readattr, int bss) { switch(op) { case BAM_CMATCH: + case BAM_CEQUAL: + case BAM_CDIFF: for (j=0; jleft_pos) continue; qb = toupper(bscall(b, qpos + j));