31 #define TBX_MAX_SHIFT 31
36 #define TBX_UCSC 0x10000
56 #define tbx_itr_destroy(iter) hts_itr_destroy(iter)
57 #define tbx_itr_queryi(tbx, tid, beg, end) hts_itr_query((tbx)->idx, (tid), (beg), (end), tbx_readrec)
58 #define tbx_itr_querys(tbx, s) hts_itr_querys((tbx)->idx, (s), (hts_name2id_f)(tbx_name2id), (tbx), hts_itr_query, tbx_readrec)
59 #define tbx_itr_next(htsfp, tbx, itr, r) hts_itr_next(hts_get_bgzfp(htsfp), (itr), (r), (tbx))
60 #define tbx_bgzf_itr_next(bgzfp, tbx, itr, r) hts_itr_next((bgzfp), (itr), (r), (tbx))
66 int tbx_readrec(
BGZF *fp,
void *tbxv,
void *sv,
int *tid,
int *beg,
int *end);
int tbx_readrec(BGZF *fp, void *tbxv, void *sv, int *tid, int *beg, int *end)
Definition: tbx.c:154
const char ** tbx_seqnames(tbx_t *tbx, int *n)
Definition: tbx.c:296
tbx_t * tbx_index_load(const char *fn)
Definition: tbx.c:268
hts_idx_t * idx
Definition: tbx.h:46
int tbx_index_build(const char *fn, int min_shift, const tbx_conf_t *conf)
Definition: tbx.c:253
int32_t sc
Definition: tbx.h:40
tbx_conf_t tbx_conf_vcf
Definition: tbx.c:41
tbx_conf_t conf
Definition: tbx.h:45
int tbx_name2id(tbx_t *tbx, const char *ss)
Definition: tbx.c:66
BGZF * hts_get_bgzfp(htsFile *fp)
Definition: hts.c:473
void tbx_destroy(tbx_t *tbx)
Definition: tbx.c:239
tbx_conf_t tbx_conf_sam
Definition: tbx.c:40
int32_t meta_char
Definition: tbx.h:41
tbx_conf_t tbx_conf_bed
Definition: tbx.c:38
tbx_conf_t tbx_conf_psltbl
Definition: tbx.c:39
void * dict
Definition: tbx.h:47
int32_t preset
Definition: tbx.h:39
tbx_conf_t tbx_conf_gff
Definition: tbx.c:37