From: Heng Li Date: Mon, 17 Aug 2009 08:33:17 +0000 (+0000) Subject: * X-Git-Url: https://git.donarmstrong.com/?p=samtools.git;a=commitdiff_plain;h=c92c84dba4871d9eb21cb8ea83dbcb9e0d0f95b9 * --- diff --git a/bam_aux.c b/bam_aux.c index 894ae62..6a82d9a 100644 --- 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 a7c67ab..ef0e052 100644 --- 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[]);