forked from ANGSD/angsd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
abcCounts.h
66 lines (54 loc) · 1.25 KB
/
abcCounts.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
typedef struct{
float **ebd;
}counts;
class abcCounts : public abc{
private:
int doebd;
const char* postfix1; //.pos
const char* postfix2;//.counts;
const char* postfix3;//.qs
const char* postfix4;//.depthSample
const char* postfix5;//.depthGlobal
char *qfileFname;
char *ffileFname;
char *oFiles;
int dumpCounts;
int iCounts;
int doCounts;
int doQsDist;//0=nothing 1=overall
int setMaxObs;
char *minQfile;
angsd::Matrix<double> minQmat;
kstring_t bpos;
kstring_t bbin;
kstring_t bufstr;
BGZF* oFileCountsBin;
BGZF* oFileCountsPos;
BGZF* oFileIcounts;
size_t *qsDist;
int nInd;
int minInd;
int minQ;
int setMaxDepth;
int setMinDepth;
int setMaxDepthInd;
int setMinDepthInd;
//from depth class
int doDepth;
int maxDepth;
size_t **depthCount;
size_t *globCount;
unsigned char lookup[256];
int qCutoff[9];
double fCutoff[9];
public:
//none optional stuff
suint **countNucs(const chunkyT *chk,int *keepSites,int mmin,int mmax);
abcCounts(const char *outfiles,argStruct *arguments,int inputtype);
~abcCounts();
void getOptions(argStruct *arguments);
void run(funkyPars *pars);
void clean(funkyPars *pars);
void print(funkyPars *pars);
void printArg(FILE *argFile);
};