]> git.donarmstrong.com Git - samtools.git/commitdiff
* samtools-0.1.2-13
authorHeng Li <lh3@live.co.uk>
Tue, 3 Mar 2009 11:26:08 +0000 (11:26 +0000)
committerHeng Li <lh3@live.co.uk>
Tue, 3 Mar 2009 11:26:08 +0000 (11:26 +0000)
 * fixed a minor bug in displaying pileup

bam_plcmd.c
bamtk.c

index 2fe32b4909bc2fe2b9f26c143b213382c8641fe9..34c48de026c7ff035f2be4bfe8303d4bdd0f494f 100644 (file)
@@ -149,7 +149,7 @@ static int pileup_func(uint32_t tid, uint32_t pos, int n, const bam_pileup1_t *p
                if (!p->is_del) {
                        int c = bam_nt16_rev_table[bam1_seqi(bam1_seq(p->b), p->qpos)];
                        if (toupper(c) == toupper(rb)) c = bam1_strand(p->b)? ',' : '.';
-                       else bam1_strand(p->b)? tolower(c) : toupper(c);
+                       else c = bam1_strand(p->b)? tolower(c) : toupper(c);
                        putchar(c);
                        if (p->indel > 0) {
                                printf("+%d", p->indel);
diff --git a/bamtk.c b/bamtk.c
index b55415ed6a9286b7e50366fdb8f8815399332a71..1025befdca9be319eacde0f396c62c433aabd480 100644 (file)
--- a/bamtk.c
+++ b/bamtk.c
@@ -3,7 +3,7 @@
 #include "bam.h"
 
 #ifndef PACKAGE_VERSION
-#define PACKAGE_VERSION "0.1.2-12"
+#define PACKAGE_VERSION "0.1.2-13"
 #endif
 
 int bam_taf2baf(int argc, char *argv[]);