X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=sam_view.c;h=105b532b4d562e04a652af43761a23a92572d06d;hb=d0e30eec1158752010659982342a611fc91ae8e3;hp=113c6c437479237791cee16164d6fbc06cd7af8b;hpb=bb9a8233e309f483c565dac4cb7193decdf324a5;p=samtools.git diff --git a/sam_view.c b/sam_view.c index 113c6c4..105b532 100644 --- a/sam_view.c +++ b/sam_view.c @@ -2,6 +2,7 @@ #include #include #include +#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;