forked from ANGSD/angsd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
abcHWE.h
43 lines (34 loc) · 828 Bytes
/
abcHWE.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
#include "abc.h"
typedef struct {
double *freq;
double *freqHWE;
double *like0;
double *likeF;
double *pval;
double *F;
}funkyHWE;
class abcHWE:public abc{
private:
Chisqdist *chisq;
// int doSnpStat;
BGZF* outfileZ;
kstring_t bufstr;
void estHWE(double *x,double *loglike,int nInd);
double HWE_like(double *x,double *loglike,int nInd);
void HWE_EM(double *x,double *loglike,int nInd);
// double HWE_pval;
int doHWE;
double minHWEpval;
double maxHWEpval;
int testMe;
double tolStop;
double differ(double *x,double *y);
public:
abcHWE(const char *outfiles,argStruct *arguments,int inputtype);
~abcHWE();
void getOptions(argStruct *arguments);
void run(funkyPars *pars);
void clean(funkyPars *pars);
void print(funkyPars *pars);
void printArg(FILE *argFile);
};