X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=sam.c;h=5b02abbc94daad6f5eb7b19f596fba6d9dc54109;hb=1a23a35867ee992dcffcf3d17df2b7d41732f33b;hp=4c16b02fb87de19426f50dc3e1573b3f58801a26;hpb=63e8f525a5fd57be4c3471739a3996016e0c25f9;p=samtools.git diff --git a/sam.c b/sam.c index 4c16b02..5b02abb 100644 --- a/sam.c +++ b/sam.c @@ -120,7 +120,7 @@ int samwrite(samfile_t *fp, const bam1_t *b) } } -int sampileup(samfile_t *fp, int mask, int min_mapQ, bam_pileup_f func, void *func_data) +int sampileup(samfile_t *fp, int mask, bam_pileup_f func, void *func_data) { bam_plbuf_t *buf; int ret; @@ -129,8 +129,7 @@ int sampileup(samfile_t *fp, int mask, int min_mapQ, bam_pileup_f func, void *fu buf = bam_plbuf_init(func, func_data); bam_plbuf_set_mask(buf, mask); while ((ret = samread(fp, b)) >= 0) - if (b->core.qual >= min_mapQ) - bam_plbuf_push(b, buf); + bam_plbuf_push(b, buf); bam_plbuf_push(0, buf); bam_plbuf_destroy(buf); bam_destroy1(b);