]> git.donarmstrong.com Git - samtools.git/commitdiff
*
authorHeng Li <lh3@live.co.uk>
Mon, 17 Aug 2009 08:33:17 +0000 (08:33 +0000)
committerHeng Li <lh3@live.co.uk>
Mon, 17 Aug 2009 08:33:17 +0000 (08:33 +0000)
bam_aux.c
bamtk.c

index 894ae628c11958dc0ed0ca49ca95d170e54ab9c7..6a82d9affb8e4d0341cf3ae26997e4e1bc72f594 100644 (file)
--- a/bam_aux.c
+++ b/bam_aux.c
@@ -28,7 +28,7 @@ uint8_t *bam_aux_get_core(bam1_t *b, const char tag[2])
 #define __skip_tag(s) do { \
                int type = toupper(*(s));                                                                               \
                ++(s);                                                                                                                  \
-               if (type == 'C') ++(s);                                                                                 \
+               if (type == 'C' || type == 'A') ++(s);                                                  \
                else if (type == 'S') (s) += 2;                                                                 \
                else if (type == 'I' || type == 'F') (s) += 4;                                  \
                else if (type == 'D') (s) += 8;                                                                 \
@@ -42,6 +42,7 @@ uint8_t *bam_aux_get(const bam1_t *b, const char tag[2])
        s = bam1_aux(b);
        while (s < b->data + b->data_len) {
                int x = (int)s[0]<<8 | s[1];
+               printf("%c%c\n", s[0], s[1]);
                s += 2;
                if (x == y) return s;
                __skip_tag(s);
diff --git a/bamtk.c b/bamtk.c
index a7c67ab615024eddb843401730f1f393a132b19f..ef0e052113b8ab7331cc084f4cc30bce6c59ce69 100644 (file)
--- a/bamtk.c
+++ b/bamtk.c
@@ -9,7 +9,7 @@
 #endif
 
 #ifndef PACKAGE_VERSION
-#define PACKAGE_VERSION "0.1.5-28 (r444)"
+#define PACKAGE_VERSION "0.1.5-29 (r445)"
 #endif
 
 int bam_taf2baf(int argc, char *argv[]);