forked from ANGSD/angsd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
abcError.h
54 lines (44 loc) · 1.33 KB
/
abcError.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
#pragma once
#include "shared.h"
#include "abc.h"
#include <list>
typedef struct{
int major;
int minor;
suint *aLine;
}point;
typedef std::list<point> myList;
class abcError:public abc{
private:
float EM_start;
int emIter;
int doCounts;
FILE *outfile1;
FILE *outfile2;
int minSites;
myList aList;
int doError;
void consolidate(funkyPars *p);
char *errorFname;
double **errors;
double minPhat;
double eps;
public:
//none optional stuff
void run(funkyPars *pars);
void print(funkyPars *pars);
void clean(funkyPars *pars);
void addDefault(funkyPars *pars);
void openfile(const char *outfiles);
void getOptions(argStruct *arguments);
void printArg(FILE *argFile);
abcError(const char *outfiles,argStruct *arguments,int inputtype);
~abcError();
//other stuff
void setMajorMinor(suint **counts,char *major,char *minor,int nInd,int nSites);
void likeFixedMinorError_bfgs_tsk2(double **errors,int numSites,int nInd,int *major,int *minor,suint **counts,int emIter,double EM_start);// same as above but only uses the parameters in function.
static double **** generateErrorPointers(double **error,int nG,int nA);
static float *logfact(int len ) ;
static void killGlobalErrorProbs(double ****errorProbs);
double likeFixedMinorError_wrapper(const double *para,const void *dats);
};