]> git.donarmstrong.com Git - samtools.git/commitdiff
* samtools-0.1.3-8 (r251)
authorHeng Li <lh3@live.co.uk>
Tue, 28 Apr 2009 12:53:23 +0000 (12:53 +0000)
committerHeng Li <lh3@live.co.uk>
Tue, 28 Apr 2009 12:53:23 +0000 (12:53 +0000)
 * fixed a bug when there are reads without coordinates

bam_pileup.c
bamtk.c

index 02bdfd07c63bca1930a44a600263be2c6aa906e5..616767a932b16222c1af7bdd3c5752124ebdfb0d 100644 (file)
@@ -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 ab39e9db2a2febc07525ddb34fd45bcbe827668b..b0a21dd87f9f062f716a2994d6bec6e496682203 100644 (file)
--- 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[]);