X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=pysam.git;a=blobdiff_plain;f=tabix%2Ftabix.h;fp=tabix%2Ftabix.h;h=7b4497a35676b494d8bf1c600601b2945545b8b9;hp=4390c0918023936c5e8f17016d6f5532ac84b313;hb=bd0c3067c187d1f718004fb38acc093af8810a02;hpb=1b740fc70684c92a5e2293013217d5a2fd661d8a diff --git a/tabix/tabix.h b/tabix/tabix.h index 4390c09..7b4497a 100644 --- a/tabix/tabix.h +++ b/tabix/tabix.h @@ -58,6 +58,11 @@ typedef struct { int32_t meta_char, line_skip; } ti_conf_t; +typedef struct { + int beg, end; + char *ss, *se; +} ti_interval_t; + extern ti_conf_t ti_conf_gff, ti_conf_bed, ti_conf_psltbl, ti_conf_vcf, ti_conf_sam; // preset #ifdef __cplusplus @@ -120,6 +125,9 @@ extern "C" { /* Get the data line pointed by the iterator and iterate to the next record. */ const char *ti_iter_read(BGZF *fp, ti_iter_t iter, int *len); + const ti_conf_t *ti_get_conf(ti_index_t *idx); + int ti_get_intv(const ti_conf_t *conf, int len, char *line, ti_interval_t *intv); + /******************* * Deprecated APIs * *******************/