-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfilereader.h
executable file
·38 lines (34 loc) · 1.07 KB
/
filereader.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
#ifndef FILEREADER_H
#define FILEREADER_H
#include <QString>
#include <QDebug>
#include <QFileInfo>
#include <QTextStream>
#include <QApplication>
class FileReader
{
public:
FileReader();
void setPhenotypeFile(QString const dir);
QString getPhenotypeFile(void);
void setGenotypeFile(QString const dir);
QString getGenotypeFile(void);
void setMapFile(QString dir);
QString getMapFile(void);
void setCovariateFile(QString const dir);
QString getCovariateFile(void);
void setKinshipFile(QString const dir);
QString getKinshipFile(void);
QStringList getFIDList(QString const src, int col);
bool transformCovariateFile(QString srcCovar, QString desCovar);
bool makeAvinputAndSnpposFile(QString vcfFilePath, QString pvalFilePath,
QString avinputFilePath, QString snpPosFilePath);
bool isNumber(QString str);
private:
QString phenotypeFile;
QString genotypeFile;
QString mapFile;
QString covariateFile;
QString kinshipFile;
};
#endif // FILEREADER_H