forked from ANGSD/angsd
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathabcPSMC.h
More file actions
30 lines (27 loc) · 711 Bytes
/
Copy pathabcPSMC.h
File metadata and controls
30 lines (27 loc) · 711 Bytes
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
#include "abc.h"
typedef struct{
char *oklist;//<- {0,1,2}, length=numSites, 0 don't keep 1 do keep 2 error
double *pLikes;
}psmcRes;
class abcPSMC:public abc{
private:
int noTrans;
int dopsmc;
void writeAll();
BGZF *outfileSAF;
FILE *outfileSAFIDX;
BGZF *outfileSAFPOS;
char *tmpChr;
int nnnSites;
int64_t offs[2];
void algoJoint(double **liks,int nsites,int *keepSites,psmcRes *r,int noTrans);
public:
abcPSMC(const char *outfiles,argStruct *arguments,int inputtype);
~abcPSMC();
void getOptions(argStruct *arguments);
void run(funkyPars *pars);
void clean(funkyPars *pars);
void print(funkyPars *pars);
void printArg(FILE *argFile);
void changeChr(int refId);
};