-
Notifications
You must be signed in to change notification settings - Fork 3
/
GtfReader.h
51 lines (40 loc) · 1 KB
/
GtfReader.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#ifndef GTF_READER
#define GTF_READER
#include <stdlib.h>
#include <fstream>
#include <string>
#include <vector>
#include <QObject>
#include "BasicTypes.h"
#include "UiVariables.h"
using namespace std;
class QProgressDialog;
class GtfReader : public QObject
{
Q_OBJECT
public:
string inputFilename;
string chrName;
GtfReader(UiVariables *ui);
vector<track_entry> readFile(QString filename);
string outputFile();
void addBookmark(int start, int end);
public slots:
void determineOutputFile(QString file);
signals:
void newGtfFileRead(const vector<track_entry>&);
void progressValueChanged(int start);
void BookmarkAdded(track_entry, string);
private:
bool initFile(string fileName);
color color_entry();
bool eq(string& str1, const char* str2);
UiVariables* ui;
string outputFilename;
ifstream file;
QProgressDialog* progressBar;
int bytesInFile;//file size, but more specific
int blockSize;
QStringList getChromosomes();
};
#endif