From: Heng Li Date: Tue, 21 Apr 2009 22:17:39 +0000 (+0000) Subject: * samtools-0.1.3-1 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=f3f36d07ad46e302dd772121dd644dc408aebb88;p=samtools.git * samtools-0.1.3-1 * fixed a bug in pileup: the first read in a chromosome may not be printed --- diff --git a/bam_pileup.c b/bam_pileup.c index 6a57831..02bdfd0 100644 --- a/bam_pileup.c +++ b/bam_pileup.c @@ -169,7 +169,7 @@ int bam_plbuf_push(const bam1_t *b, bam_plbuf_t *buf) abort(); } buf->max_tid = b->core.tid; buf->max_pos = buf->tail->beg; - if (buf->tail->end > buf->pos) { + if (buf->tail->end > buf->pos || buf->tail->b.core.tid > buf->tid) { buf->tail->next = mp_alloc(buf->mp); buf->tail = buf->tail->next; } diff --git a/bamtk.c b/bamtk.c index 67dec9e..a19abc4 100644 --- a/bamtk.c +++ b/bamtk.c @@ -3,7 +3,7 @@ #include "bam.h" #ifndef PACKAGE_VERSION -#define PACKAGE_VERSION "0.1.3" +#define PACKAGE_VERSION "0.1.3-1" #endif int bam_taf2baf(int argc, char *argv[]);