X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=samtools.git;a=blobdiff_plain;f=bam_maqcns.c;h=4fbc6c6d0cd14f54ac7d75f07f789cbdb73e4362;hp=2f3fc082be79aa0fa3feae9c1d9a03ad44592877;hb=e3b3a0177339fb8c099346986e965e3bd5b85999;hpb=8d2494d1fb7cd0fa7c63be5ffba8dd1a11457522 diff --git a/bam_maqcns.c b/bam_maqcns.c index 2f3fc08..4fbc6c6 100644 --- a/bam_maqcns.c +++ b/bam_maqcns.c @@ -154,7 +154,7 @@ glf1_t *bam_maqcns_glfgen(int _n, const bam_pileup1_t *pl, uint8_t ref_base, bam const bam_pileup1_t *p = pl + i; uint32_t q, x = 0, qq; uint16_t y = 0; - if (p->is_del || (p->b->core.flag&BAM_FUNMAP)) continue; + if (p->is_del || p->is_refskip || (p->b->core.flag&BAM_FUNMAP)) continue; q = (uint32_t)bam1_qual(p->b)[p->qpos]; if (q < bm->min_baseQ) continue; x |= (uint32_t)bam1_strand(p->b) << 18 | q << 8 | p->b->core.qual; @@ -166,7 +166,7 @@ glf1_t *bam_maqcns_glfgen(int _n, const bam_pileup1_t *pl, uint8_t ref_base, bam y |= q << 5; qq = bam1_seqi(bam1_seq(p->b), p->qpos); q = bam_nt16_nt4_table[qq? qq : ref_base]; - if (!p->is_del && q < 4) x |= 1 << 21 | q << 16, y |= q; + if (!p->is_del && !p->is_refskip && q < 4) x |= 1 << 21 | q << 16, y |= q; bm->aux->info16[n] = y; bm->aux->info[n++] = x; }