-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathintervalfile.h
194 lines (144 loc) · 3.08 KB
/
intervalfile.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
using namespace std;
// Gene
struct RARES
{
int in;
char *rs;
int chr;
int pos;
};
struct RARES *raresnps = NULL;
struct GENE
{
char *gene_name;
char *gene_id;
int start;
int end;
int relstart;
int relend;
};
struct GENE *gene = NULL;
// GFF
struct GFF
{
char *gene_id;
char *gene_name;
char *source;
char *feature;
char *attr;
int chr; // Chromosome
int start;
int end;
char qcin;
// char *rs; // rs-Nummer
};
struct GFF *gffdata = NULL; //reference legend file
struct GFFMERGE
{
char *feature;
char *attr;
int start;
int end;
int relmapstart;
int relmapend;
int relstart; // number of line where interval begins
int relend;
int merged;
int chr; // Chromosome
int mapin;
// char *rs; // rs-Nummer
int hit;
};
struct GFFMERGE *gffmerge = NULL; //reference legend file
struct GFFMERGE *gfftmp = NULL; //reference legend file
struct GFFMERGE *gfftmp2 = NULL; //reference legend file
struct GFFCHR
{
bool in;
bool mapin;
bool mergein;
bool hit;
int start;
int end;
int relmapstart;
int relmapend;
int relmergestart;
int relmergeend;
int absstart;
int absend;
int relstart; // number of line in gff where chromosome begins
int relend;
int interv;
int catint;
int catintlast;
int catparlast1;
int catparlast2;
int catpar1;
int catpar2;
};
struct GFFCHR gffchr[26]; //reference legend file
struct PAR
{
// bool in;
// bool mapin;
// bool mergein;
// bool hit;
// int start;
// int end;
// int relmapstart;
// int relmapend;
// int relmergestart;
// int relmergeend;
//
int startgap;
int endgap;
int yabsstart;
int yabsend;
int xabsstart;
int xabsend;
// int relstart; // number of line in gff where chromosome begins
// int relend;
};
struct PAR par[2];
int mergelines=0;
string chrname=" ";
struct INTERVALS
{
int relmapstart;
int relmapend;
int start;
int end;
int chr;
char *feature;
// Number of Rare variants in Interval; max BINSIZE
int n;
// For seed intervals: number of dense bined intervals
int N;
// BINSIZE
int s1;
// BINSHIFT
int s2;
// SEED interval number for BIN_ADJUS,
int seed;
};
struct INTERVALS *intervals, *intervalstmp, *intervals2, *seeds;
int mergestart;
int mergeend;
int merged=1;
int merging=0;
int fixChromosomes=1;
int flanking=0;
int expandIntervals=0;
int catIntervals=0;
int minRareInBin=1;
int maxRareInBin=1000000;
string intervalfile=" ";
string intervalfile_out=" ";
string gene_ids=" ";
string gene_names=" ";
int nrgenes=0;
int attr=0;
int *nvariations;
int *seedintervals;
int featurecol=-9;
int *pfeaturecol;