13 #include "sam_header.h"
16 KHASH_MAP_INIT_STR(kh_rg, const char *)
18 typedef struct AbstractTview {
25 int curr_tid, left_pos;
29 int ccol, last_pos, row_shift, base_for, color_for, is_dot, l_ref, ins, no_skip, show_name;
31 khash_t(kh_rg) *rg_hash;
33 void (*my_destroy)(struct AbstractTview* );
34 void (*my_mvprintw)(struct AbstractTview* ,int,int,const char*,...);
35 void (*my_mvaddch)(struct AbstractTview*,int,int,int);
36 void (*my_attron)(struct AbstractTview*,int);
37 void (*my_attroff)(struct AbstractTview*,int);
38 void (*my_clear)(struct AbstractTview*);
39 int (*my_colorpair)(struct AbstractTview*,int);
40 int (*my_drawaln)(struct AbstractTview*,int,int);
41 int (*my_loop)(struct AbstractTview*);
42 int (*my_underline)(struct AbstractTview*);
46 char bam_aux_getCEi(bam1_t *b, int i);
47 char bam_aux_getCSi(bam1_t *b, int i);
48 char bam_aux_getCQi(bam1_t *b, int i);
50 #define TV_MIN_ALNROW 2
51 #define TV_MAX_GOTO 40
52 #define TV_LOW_MAPQ 10
54 #define TV_COLOR_MAPQ 0
55 #define TV_COLOR_BASEQ 1
56 #define TV_COLOR_NUCL 2
57 #define TV_COLOR_COL 3
58 #define TV_COLOR_COLQ 4
60 #define TV_BASE_NUCL 0
61 #define TV_BASE_COLOR_SPACE 1
63 int tv_pl_func(uint32_t tid, uint32_t pos, int n, const bam_pileup1_t *pl, void *data);
64 int base_tv_init(tview_t*,const char *fn, const char *fn_fa, const char *samples);
65 void base_tv_destroy(tview_t*);
66 int base_draw_aln(tview_t *tv, int tid, int pos);