From: Heng Li Date: Tue, 28 Apr 2009 12:53:23 +0000 (+0000) Subject: * samtools-0.1.3-8 (r251) X-Git-Url: https://git.donarmstrong.com/?p=samtools.git;a=commitdiff_plain;h=e05bad216a0100124389a7360832dff1d69c6155 * samtools-0.1.3-8 (r251) * fixed a bug when there are reads without coordinates --- diff --git a/bam_pileup.c b/bam_pileup.c index 02bdfd0..616767a 100644 --- a/bam_pileup.c +++ b/bam_pileup.c @@ -161,6 +161,7 @@ void bam_plbuf_destroy(bam_plbuf_t *buf) int bam_plbuf_push(const bam1_t *b, bam_plbuf_t *buf) { if (b) { // fill buffer + if (b->core.tid < 0) return 0; if (b->core.flag & buf->flag_mask) return 0; bam_copy1(&buf->tail->b, b); buf->tail->beg = b->core.pos; buf->tail->end = bam_calend(&b->core, bam1_cigar(b)); diff --git a/bamtk.c b/bamtk.c index ab39e9d..b0a21dd 100644 --- a/bamtk.c +++ b/bamtk.c @@ -3,7 +3,7 @@ #include "bam.h" #ifndef PACKAGE_VERSION -#define PACKAGE_VERSION "0.1.3-7 (r246)" +#define PACKAGE_VERSION "0.1.3-8 (r251)" #endif int bam_taf2baf(int argc, char *argv[]);