projects
/
tabix.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 0.2.4
[tabix.git]
/
tabix.h
diff --git
a/tabix.h
b/tabix.h
index 4390c0918023936c5e8f17016d6f5532ac84b313..7b4497a35676b494d8bf1c600601b2945545b8b9 100644
(file)
--- a/
tabix.h
+++ b/
tabix.h
@@
-58,6
+58,11
@@
typedef struct {
int32_t meta_char, line_skip;
} ti_conf_t;
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
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);
/* 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 *
*******************/
/*******************
* Deprecated APIs *
*******************/