]> git.donarmstrong.com Git - samtools.git/commitdiff
* samtools-0.1.3-1
authorHeng Li <lh3@live.co.uk>
Tue, 21 Apr 2009 22:17:39 +0000 (22:17 +0000)
committerHeng Li <lh3@live.co.uk>
Tue, 21 Apr 2009 22:17:39 +0000 (22:17 +0000)
 * fixed a bug in pileup: the first read in a chromosome may not be printed

bam_pileup.c
bamtk.c

index 6a578319c24b739ea7bcfbaae7305b0f75607f52..02bdfd07c63bca1930a44a600263be2c6aa906e5 100644 (file)
@@ -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 67dec9ed14f49ff614fd9fe654092a85cb370229..a19abc44c57c3961c273688949c559bda3e9bc0a 100644 (file)
--- 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[]);