Debian Codegraph @

src/utils/tabix.hpp

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 /*
2 * This is a C++ wrapper around tabix project which abstracts some of the details of opening and jumping in tabix-indexed files.
3 * Author: Erik Garrison [email protected]
4 */
5
6 #ifndef _TABIX_HPP
7 #define _TABIX_HPP
8
9 #include <string>
10 #include <stdlib.h>
11 #include <sys/stat.h>
12 #include <bgzf.h>
13 #include <tabix.h>
14 #include <iostream>
15
16
17 using namespace std;
18
19 class Tabix {
20
21 tabix_t *t;
22 ti_iter_t iter;
23 const ti_conf_t *idxconf;
24 int tid, beg, end;
25 string firstline;
26
27 public:
28
29 string filename;
30
31 Tabix(void);
32 Tabix(string& file);
33 ~Tabix(void);
34
35 void getHeader(string& header);
36 void getLastHeader(string & header);
37 bool setRegion(string region);
38 bool getNextLine(string& line);
39 };
40
41 #endif