forked from ANGSD/angsd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
abcAncestry.cpp
68 lines (46 loc) · 1.14 KB
/
abcAncestry.cpp
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
#include <cassert>
#include <ctype.h>
#include "shared.h"
#include "analysisFunction.h"
#include "abcAncestry.h"
#include "aio.h"
void abcAncestry::printArg(FILE *argFile){
fprintf(argFile,"------------------------\n%s:\n",__FILE__);
fprintf(argFile,"-doAncestry\t%d \n",doAncestry);
}
void abcAncestry::getOptions(argStruct *arguments){
doAncestry=angsd::getArg("-doAncestry",doAncestry,arguments);
if(doAncestry==0){
shouldRun[index]=0;
return;
}
}
abcAncestry::abcAncestry(const char *outfiles,argStruct *arguments,int inputtype){
doAncestry = 0;
outfile = NULL;
if(arguments->argc==2){
if(!strcasecmp(arguments->argv[1],"-doAncestry")){
printArg(stdout);
exit(0);
}else
return;
}
getOptions(arguments);
if(doAncestry==0)
return ;
printArg(arguments->argumentFile);
outfile = aio::openFile(outfiles,".ancestry");
}
abcAncestry::~abcAncestry(){
if(outfile!=NULL)
fclose(outfile);
}
void abcAncestry::clean(funkyPars *pars){
}
void abcAncestry::print(funkyPars *pars){
assert(pars->anc!=NULL);
if(doAncestry==1){
}
}
void abcAncestry::run(funkyPars *pars){
}