]> git.donarmstrong.com Git - samtools.git/blobdiff - sam_view.c
* This revision is SERIOUSLY BUGGY. Please NOT use it.
[samtools.git] / sam_view.c
index 2e89921e0b1d6d2149d64239d706d53547df47ad..105b532b4d562e04a652af43761a23a92572d06d 100644 (file)
@@ -2,6 +2,7 @@
 #include <string.h>
 #include <stdio.h>
 #include <unistd.h>
+#include "sam_header.h"
 #include "sam.h"
 #include "faidx.h"
 
@@ -17,7 +18,7 @@ static inline int __g_skip_aln(const bam_header_t *h, const bam1_t *b)
                if (s) {
                        if (g_rg && strcmp(g_rg, (char*)(s + 1)) == 0) return 0;
                        if (g_library) {
-                               const char *p = bam_strmap_get(h->rg2lib, (char*)(s + 1));
+                               const char *p = sam_tbl_get(h->rg2lib, (const char*)(s + 1));
                                return (p && strcmp(p, g_library) == 0)? 0 : 1;
                        } return 1;
                } else return 1;
@@ -140,7 +141,7 @@ static int usage(int is_long_help)
        fprintf(stderr, "         -S       input is SAM\n");
        fprintf(stderr, "         -u       uncompressed BAM output (force -b)\n");
        fprintf(stderr, "         -x       output FLAG in HEX (samtools-C specific)\n");
-       fprintf(stderr, "         -X       output FLAG in stirng (samtools-C specific)\n");
+       fprintf(stderr, "         -X       output FLAG in string (samtools-C specific)\n");
        fprintf(stderr, "         -t FILE  list of reference names and lengths (force -S) [null]\n");
        fprintf(stderr, "         -T FILE  reference sequence file (force -S) [null]\n");
        fprintf(stderr, "         -o FILE  output file name [stdout]\n");