-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathTestDataGenerator.c
58 lines (47 loc) · 975 Bytes
/
TestDataGenerator.c
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
//
// TestDataGenerator.c
//
//
// Created by Lifeng Tian on 12/26/11.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#include "common.h"
#include "options.h"
/* command line option specifications
* copied from Jim Kent
*/
static struct optionSpec optionSpecs[] = {
{"AlleleBalance", OPTION_INT},
{"Depth", OPTION_INT},
{"MAFinPercent_ALL", OPTION_INT},
{"ExonicFunc",OPTION_STRING},
{"dbSNP", OPTION_DOUBLE},
{NULL, 0}
};
/* variables ...
*/
int allelebalance = 0;
int depth = 0;
int MAFinPercent_ALL = 0;
char *exonicFunction = '';
double dbsnp = 0.1;
int RandDbl (void)
{
return rand() / ((double)RAND_MAX + 1.0);
}
void usage()
{
printf("blah
blah
blah\n");
}
int main(int argc, char ** argv )
{
optionInit(&argc, argv, optionSpecs);
if ( optionExists("dbSNP") )
{
dbSNP = optionDouble("dbSNP",dbSNP);
printf("dbSNP=%f\n",dbSNP);
}
return 1;
}