-
Notifications
You must be signed in to change notification settings - Fork 0
/
global.h
79 lines (51 loc) · 1.38 KB
/
global.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#ifndef GLOBAL_H_INCLUDED
#define GLOBAL_H_INCLUDED
#include <fstream>
#include <string>
#include <vector>
#define P_VALUE 0.001
using namespace std;
/*
*/
class genotype
{
private:
string filename;
int numCausal;
int numSite;
int numNoncausal;
int numCase;
int numCaseControl;
int numControl;
vector<int> countCase;
vector<int> countControl;
vector<int> countCaseControl;
vector<double> mafCase;
vector<double> mafControl;
vector<double> maf;
string referenceX;
string referenceR;
string ex_referenceX;
int filetype;
public:
genotype(string fname,int filetype);
//genotype(ifstream &ifs);
void print();
string getFilename(){return filename;}
vector<double> getMafCase(){return mafCase;}
vector<double> getMafControl(){return mafControl;}
vector<double> getMaf(){return maf;}
vector<int> getCountCase(){return countCase;}
vector<int> getCountControl(){return countControl;}
string getReferenceX(){return referenceX;}
string getReferenceR(){return referenceR;}
//int getNumCausal(){return numCausal;}
int getNumSite(){return numSite;}
int getNumCase(){return numCase;}
int getNumControl(){return numControl;}
int getNumCaseControl(){return numCaseControl;}
};
void initialR(string &R,const string &X,int num_site);
void arg_err();
void rmtmpfile(const string filename);
#endif // GLOBAL_H_INCLUDED