@jbrowse/plugin-bed 1.7.9 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/BedAdapter/BedAdapter.d.ts +29 -0
- package/dist/BedAdapter/BedAdapter.js +273 -0
- package/dist/BedAdapter/BedAdapter.js.map +1 -0
- package/dist/BedAdapter/configSchema.d.ts +2 -0
- package/dist/BedAdapter/configSchema.js +40 -0
- package/dist/BedAdapter/configSchema.js.map +1 -0
- package/dist/BedAdapter/index.d.ts +1 -0
- package/dist/BedAdapter/index.js +9 -0
- package/dist/BedAdapter/index.js.map +1 -0
- package/dist/BedTabixAdapter/BedTabixAdapter.d.ts +3 -7
- package/dist/BedTabixAdapter/BedTabixAdapter.js +154 -289
- package/dist/BedTabixAdapter/BedTabixAdapter.js.map +1 -0
- package/dist/BedTabixAdapter/configSchema.js +38 -51
- package/dist/BedTabixAdapter/configSchema.js.map +1 -0
- package/dist/BedTabixAdapter/index.js +8 -14
- package/dist/BedTabixAdapter/index.js.map +1 -0
- package/dist/BigBedAdapter/BigBedAdapter.js +228 -335
- package/dist/BigBedAdapter/BigBedAdapter.js.map +1 -0
- package/dist/BigBedAdapter/configSchema.js +9 -21
- package/dist/BigBedAdapter/configSchema.js.map +1 -0
- package/dist/BigBedAdapter/index.js +8 -14
- package/dist/BigBedAdapter/index.js.map +1 -0
- package/dist/index.js +132 -129
- package/dist/index.js.map +1 -0
- package/dist/util.d.ts +3 -1
- package/dist/util.js +161 -121
- package/dist/util.js.map +1 -0
- package/esm/BedAdapter/BedAdapter.d.ts +29 -0
- package/esm/BedAdapter/BedAdapter.js +130 -0
- package/esm/BedAdapter/BedAdapter.js.map +1 -0
- package/esm/BedAdapter/configSchema.d.ts +2 -0
- package/esm/BedAdapter/configSchema.js +38 -0
- package/esm/BedAdapter/configSchema.js.map +1 -0
- package/esm/BedAdapter/index.d.ts +1 -0
- package/esm/BedAdapter/index.js +2 -0
- package/esm/BedAdapter/index.js.map +1 -0
- package/esm/BedTabixAdapter/BedTabixAdapter.d.ts +19 -0
- package/esm/BedTabixAdapter/BedTabixAdapter.js +69 -0
- package/esm/BedTabixAdapter/BedTabixAdapter.js.map +1 -0
- package/esm/BedTabixAdapter/configSchema.d.ts +2 -0
- package/esm/BedTabixAdapter/configSchema.js +38 -0
- package/esm/BedTabixAdapter/configSchema.js.map +1 -0
- package/esm/BedTabixAdapter/index.d.ts +1 -0
- package/esm/BedTabixAdapter/index.js +2 -0
- package/esm/BedTabixAdapter/index.js.map +1 -0
- package/esm/BigBedAdapter/BigBedAdapter.d.ts +46 -0
- package/esm/BigBedAdapter/BigBedAdapter.js +104 -0
- package/esm/BigBedAdapter/BigBedAdapter.js.map +1 -0
- package/esm/BigBedAdapter/configSchema.d.ts +2 -0
- package/esm/BigBedAdapter/configSchema.js +8 -0
- package/esm/BigBedAdapter/configSchema.js.map +1 -0
- package/esm/BigBedAdapter/index.d.ts +1 -0
- package/esm/BigBedAdapter/index.js +2 -0
- package/esm/BigBedAdapter/index.js.map +1 -0
- package/esm/index.d.ts +6 -0
- package/esm/index.js +81 -0
- package/esm/index.js.map +1 -0
- package/esm/util.d.ts +4 -0
- package/esm/util.js +154 -0
- package/esm/util.js.map +1 -0
- package/package.json +17 -6
- package/src/BedAdapter/BedAdapter.test.ts +170 -0
- package/src/BedAdapter/BedAdapter.ts +172 -0
- package/src/BedAdapter/__snapshots__/BedAdapter.test.ts.snap +437 -0
- package/src/BedAdapter/configSchema.ts +45 -0
- package/src/BedAdapter/index.ts +1 -0
- package/src/BedAdapter/test_data/gwas.bed +20 -0
- package/src/BedAdapter/test_data/volvox-autosql.bed +1 -0
- package/src/BedAdapter/test_data/volvox-bed12.bed +4 -0
- package/src/BedAdapter/test_data/volvox.sort.bed +109 -0
- package/src/BedAdapter/test_data/volvox.sort.with.header.bed +121 -0
- package/src/BedTabixAdapter/BedTabixAdapter.ts +29 -80
- package/src/index.ts +34 -1
- package/src/util.ts +65 -6
- package/dist/BedTabixAdapter/BedTabixAdapter.test.js +0 -276
- package/dist/BigBedAdapter/BigBedAdapter.test.js +0 -63
- package/dist/declare.d.js +0 -1
- package/dist/index.test.js +0 -24
|
@@ -0,0 +1,437 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`adapter can fetch bed with header 1`] = `
|
|
4
|
+
Array [
|
|
5
|
+
Object {
|
|
6
|
+
"end": 3009,
|
|
7
|
+
"refName": "contigA",
|
|
8
|
+
"start": 3000,
|
|
9
|
+
"strand": 0,
|
|
10
|
+
"uniqueId": "test-contigA-0",
|
|
11
|
+
},
|
|
12
|
+
Object {
|
|
13
|
+
"end": 3114,
|
|
14
|
+
"refName": "contigA",
|
|
15
|
+
"start": 3105,
|
|
16
|
+
"strand": 0,
|
|
17
|
+
"uniqueId": "test-contigA-1",
|
|
18
|
+
},
|
|
19
|
+
Object {
|
|
20
|
+
"end": 3161,
|
|
21
|
+
"refName": "contigA",
|
|
22
|
+
"start": 3152,
|
|
23
|
+
"strand": 0,
|
|
24
|
+
"uniqueId": "test-contigA-2",
|
|
25
|
+
},
|
|
26
|
+
Object {
|
|
27
|
+
"end": 3180,
|
|
28
|
+
"refName": "contigA",
|
|
29
|
+
"start": 3171,
|
|
30
|
+
"strand": 0,
|
|
31
|
+
"uniqueId": "test-contigA-3",
|
|
32
|
+
},
|
|
33
|
+
Object {
|
|
34
|
+
"end": 3183,
|
|
35
|
+
"refName": "contigA",
|
|
36
|
+
"start": 3174,
|
|
37
|
+
"strand": 0,
|
|
38
|
+
"uniqueId": "test-contigA-4",
|
|
39
|
+
},
|
|
40
|
+
Object {
|
|
41
|
+
"end": 3222,
|
|
42
|
+
"refName": "contigA",
|
|
43
|
+
"start": 3213,
|
|
44
|
+
"strand": 0,
|
|
45
|
+
"uniqueId": "test-contigA-5",
|
|
46
|
+
},
|
|
47
|
+
Object {
|
|
48
|
+
"end": 3474,
|
|
49
|
+
"refName": "contigA",
|
|
50
|
+
"start": 3465,
|
|
51
|
+
"strand": 0,
|
|
52
|
+
"uniqueId": "test-contigA-6",
|
|
53
|
+
},
|
|
54
|
+
Object {
|
|
55
|
+
"end": 3804,
|
|
56
|
+
"refName": "contigA",
|
|
57
|
+
"start": 3795,
|
|
58
|
+
"strand": 0,
|
|
59
|
+
"uniqueId": "test-contigA-7",
|
|
60
|
+
},
|
|
61
|
+
Object {
|
|
62
|
+
"end": 4044,
|
|
63
|
+
"refName": "contigA",
|
|
64
|
+
"start": 4035,
|
|
65
|
+
"strand": 0,
|
|
66
|
+
"uniqueId": "test-contigA-8",
|
|
67
|
+
},
|
|
68
|
+
Object {
|
|
69
|
+
"end": 4082,
|
|
70
|
+
"refName": "contigA",
|
|
71
|
+
"start": 4073,
|
|
72
|
+
"strand": 0,
|
|
73
|
+
"uniqueId": "test-contigA-9",
|
|
74
|
+
},
|
|
75
|
+
]
|
|
76
|
+
`;
|
|
77
|
+
|
|
78
|
+
exports[`adapter can fetch features bed with autosql 1`] = `
|
|
79
|
+
Array [
|
|
80
|
+
Object {
|
|
81
|
+
"Entrez_Gene_Id": "2782",
|
|
82
|
+
"Hugo_Symbol": "GNB1",
|
|
83
|
+
"Matched_Norm_Sample_Barcode": "TCGA-OR-A5KB-11A-11D-A30A-10",
|
|
84
|
+
"Reference_Allele": "T",
|
|
85
|
+
"Tumor_Sample_Barcode": "TCGA-OR-A5KB-01A-11D-A30A-10",
|
|
86
|
+
"Tumor_Seq_Allele1": "T",
|
|
87
|
+
"Tumor_Seq_Allele2": "G",
|
|
88
|
+
"Variant_Classification": "Splice_Region",
|
|
89
|
+
"Variant_Type": "SNP",
|
|
90
|
+
"alcohol_history": "--",
|
|
91
|
+
"alcohol_intensity": "--",
|
|
92
|
+
"bmi": "--",
|
|
93
|
+
"case_id": "09454ed6-64bc-4a35-af44-7c4344623d45",
|
|
94
|
+
"cigarettes_per_day": "--",
|
|
95
|
+
"days_to_death": "--",
|
|
96
|
+
"dbSNP_RS": "novel",
|
|
97
|
+
"dbSNP_Val_Status": "",
|
|
98
|
+
"end": 10,
|
|
99
|
+
"ethnicity": "not hispanic or latino",
|
|
100
|
+
"freq": "0.0108695652174",
|
|
101
|
+
"gender": "female",
|
|
102
|
+
"height": "--",
|
|
103
|
+
"name": "T>G",
|
|
104
|
+
"project_id": "TCGA-ACC",
|
|
105
|
+
"refName": "ctgA",
|
|
106
|
+
"reserved": "0,0,0",
|
|
107
|
+
"sampleCount": "1",
|
|
108
|
+
"score": 1,
|
|
109
|
+
"start": 1,
|
|
110
|
+
"strand": 0,
|
|
111
|
+
"subfeatures": Array [
|
|
112
|
+
Object {
|
|
113
|
+
"end": 2,
|
|
114
|
+
"parentId": "test-ctgA-0",
|
|
115
|
+
"start": 1,
|
|
116
|
+
"strand": 0,
|
|
117
|
+
"type": "three_prime_UTR",
|
|
118
|
+
"uniqueId": "test-ctgA-0-0",
|
|
119
|
+
},
|
|
120
|
+
],
|
|
121
|
+
"type": "mRNA",
|
|
122
|
+
"uniqueId": "test-ctgA-0",
|
|
123
|
+
"weight": "--",
|
|
124
|
+
"years_smoked": "--",
|
|
125
|
+
},
|
|
126
|
+
]
|
|
127
|
+
`;
|
|
128
|
+
|
|
129
|
+
exports[`adapter can fetch features from volvox.sort.bed simple bed3 1`] = `
|
|
130
|
+
Array [
|
|
131
|
+
Object {
|
|
132
|
+
"end": 3009,
|
|
133
|
+
"refName": "contigA",
|
|
134
|
+
"start": 3000,
|
|
135
|
+
"strand": 0,
|
|
136
|
+
"uniqueId": "test-contigA-0",
|
|
137
|
+
},
|
|
138
|
+
Object {
|
|
139
|
+
"end": 3114,
|
|
140
|
+
"refName": "contigA",
|
|
141
|
+
"start": 3105,
|
|
142
|
+
"strand": 0,
|
|
143
|
+
"uniqueId": "test-contigA-1",
|
|
144
|
+
},
|
|
145
|
+
Object {
|
|
146
|
+
"end": 3161,
|
|
147
|
+
"refName": "contigA",
|
|
148
|
+
"start": 3152,
|
|
149
|
+
"strand": 0,
|
|
150
|
+
"uniqueId": "test-contigA-2",
|
|
151
|
+
},
|
|
152
|
+
Object {
|
|
153
|
+
"end": 3180,
|
|
154
|
+
"refName": "contigA",
|
|
155
|
+
"start": 3171,
|
|
156
|
+
"strand": 0,
|
|
157
|
+
"uniqueId": "test-contigA-3",
|
|
158
|
+
},
|
|
159
|
+
Object {
|
|
160
|
+
"end": 3183,
|
|
161
|
+
"refName": "contigA",
|
|
162
|
+
"start": 3174,
|
|
163
|
+
"strand": 0,
|
|
164
|
+
"uniqueId": "test-contigA-4",
|
|
165
|
+
},
|
|
166
|
+
Object {
|
|
167
|
+
"end": 3222,
|
|
168
|
+
"refName": "contigA",
|
|
169
|
+
"start": 3213,
|
|
170
|
+
"strand": 0,
|
|
171
|
+
"uniqueId": "test-contigA-5",
|
|
172
|
+
},
|
|
173
|
+
Object {
|
|
174
|
+
"end": 3474,
|
|
175
|
+
"refName": "contigA",
|
|
176
|
+
"start": 3465,
|
|
177
|
+
"strand": 0,
|
|
178
|
+
"uniqueId": "test-contigA-6",
|
|
179
|
+
},
|
|
180
|
+
Object {
|
|
181
|
+
"end": 3804,
|
|
182
|
+
"refName": "contigA",
|
|
183
|
+
"start": 3795,
|
|
184
|
+
"strand": 0,
|
|
185
|
+
"uniqueId": "test-contigA-7",
|
|
186
|
+
},
|
|
187
|
+
Object {
|
|
188
|
+
"end": 4044,
|
|
189
|
+
"refName": "contigA",
|
|
190
|
+
"start": 4035,
|
|
191
|
+
"strand": 0,
|
|
192
|
+
"uniqueId": "test-contigA-8",
|
|
193
|
+
},
|
|
194
|
+
Object {
|
|
195
|
+
"end": 4082,
|
|
196
|
+
"refName": "contigA",
|
|
197
|
+
"start": 4073,
|
|
198
|
+
"strand": 0,
|
|
199
|
+
"uniqueId": "test-contigA-9",
|
|
200
|
+
},
|
|
201
|
+
]
|
|
202
|
+
`;
|
|
203
|
+
|
|
204
|
+
exports[`adapter can fetch features from volvox-bed12.bed 1`] = `
|
|
205
|
+
Array [
|
|
206
|
+
Object {
|
|
207
|
+
"end": 9000,
|
|
208
|
+
"itemRgb": "0,0,0",
|
|
209
|
+
"name": "EDEN.1",
|
|
210
|
+
"refName": "ctgA",
|
|
211
|
+
"score": 1000,
|
|
212
|
+
"start": 1049,
|
|
213
|
+
"strand": 1,
|
|
214
|
+
"subfeatures": Array [
|
|
215
|
+
Object {
|
|
216
|
+
"end": 1200,
|
|
217
|
+
"parentId": "test-ctgA-0",
|
|
218
|
+
"start": 1049,
|
|
219
|
+
"strand": 1,
|
|
220
|
+
"type": "five_prime_UTR",
|
|
221
|
+
"uniqueId": "test-ctgA-0-0",
|
|
222
|
+
},
|
|
223
|
+
Object {
|
|
224
|
+
"end": 1500,
|
|
225
|
+
"parentId": "test-ctgA-0",
|
|
226
|
+
"start": 1200,
|
|
227
|
+
"strand": 1,
|
|
228
|
+
"type": "CDS",
|
|
229
|
+
"uniqueId": "test-ctgA-0-1",
|
|
230
|
+
},
|
|
231
|
+
Object {
|
|
232
|
+
"end": 3902,
|
|
233
|
+
"parentId": "test-ctgA-0",
|
|
234
|
+
"start": 2999,
|
|
235
|
+
"strand": 1,
|
|
236
|
+
"type": "CDS",
|
|
237
|
+
"uniqueId": "test-ctgA-0-2",
|
|
238
|
+
},
|
|
239
|
+
Object {
|
|
240
|
+
"end": 5500,
|
|
241
|
+
"parentId": "test-ctgA-0",
|
|
242
|
+
"start": 4999,
|
|
243
|
+
"strand": 1,
|
|
244
|
+
"type": "CDS",
|
|
245
|
+
"uniqueId": "test-ctgA-0-3",
|
|
246
|
+
},
|
|
247
|
+
Object {
|
|
248
|
+
"end": 7608,
|
|
249
|
+
"parentId": "test-ctgA-0",
|
|
250
|
+
"start": 6999,
|
|
251
|
+
"strand": 1,
|
|
252
|
+
"type": "CDS",
|
|
253
|
+
"uniqueId": "test-ctgA-0-4",
|
|
254
|
+
},
|
|
255
|
+
Object {
|
|
256
|
+
"end": 9000,
|
|
257
|
+
"parentId": "test-ctgA-0",
|
|
258
|
+
"start": 7608,
|
|
259
|
+
"strand": 1,
|
|
260
|
+
"type": "three_prime_UTR",
|
|
261
|
+
"uniqueId": "test-ctgA-0-5",
|
|
262
|
+
},
|
|
263
|
+
],
|
|
264
|
+
"type": "mRNA",
|
|
265
|
+
"uniqueId": "test-ctgA-0",
|
|
266
|
+
},
|
|
267
|
+
Object {
|
|
268
|
+
"end": 9000,
|
|
269
|
+
"itemRgb": "0,0,0",
|
|
270
|
+
"name": "EDEN.2",
|
|
271
|
+
"refName": "ctgA",
|
|
272
|
+
"score": 1000,
|
|
273
|
+
"start": 1049,
|
|
274
|
+
"strand": 1,
|
|
275
|
+
"subfeatures": Array [
|
|
276
|
+
Object {
|
|
277
|
+
"end": 1200,
|
|
278
|
+
"parentId": "test-ctgA-1",
|
|
279
|
+
"start": 1049,
|
|
280
|
+
"strand": 1,
|
|
281
|
+
"type": "five_prime_UTR",
|
|
282
|
+
"uniqueId": "test-ctgA-1-0",
|
|
283
|
+
},
|
|
284
|
+
Object {
|
|
285
|
+
"end": 1500,
|
|
286
|
+
"parentId": "test-ctgA-1",
|
|
287
|
+
"start": 1200,
|
|
288
|
+
"strand": 1,
|
|
289
|
+
"type": "CDS",
|
|
290
|
+
"uniqueId": "test-ctgA-1-1",
|
|
291
|
+
},
|
|
292
|
+
Object {
|
|
293
|
+
"end": 5500,
|
|
294
|
+
"parentId": "test-ctgA-1",
|
|
295
|
+
"start": 4999,
|
|
296
|
+
"strand": 1,
|
|
297
|
+
"type": "CDS",
|
|
298
|
+
"uniqueId": "test-ctgA-1-2",
|
|
299
|
+
},
|
|
300
|
+
Object {
|
|
301
|
+
"end": 7608,
|
|
302
|
+
"parentId": "test-ctgA-1",
|
|
303
|
+
"start": 6999,
|
|
304
|
+
"strand": 1,
|
|
305
|
+
"type": "CDS",
|
|
306
|
+
"uniqueId": "test-ctgA-1-3",
|
|
307
|
+
},
|
|
308
|
+
Object {
|
|
309
|
+
"end": 9000,
|
|
310
|
+
"parentId": "test-ctgA-1",
|
|
311
|
+
"start": 7608,
|
|
312
|
+
"strand": 1,
|
|
313
|
+
"type": "three_prime_UTR",
|
|
314
|
+
"uniqueId": "test-ctgA-1-4",
|
|
315
|
+
},
|
|
316
|
+
],
|
|
317
|
+
"type": "mRNA",
|
|
318
|
+
"uniqueId": "test-ctgA-1",
|
|
319
|
+
},
|
|
320
|
+
Object {
|
|
321
|
+
"end": 9000,
|
|
322
|
+
"itemRgb": "0,0,0",
|
|
323
|
+
"name": "EDEN.3",
|
|
324
|
+
"refName": "ctgA",
|
|
325
|
+
"score": 1000,
|
|
326
|
+
"start": 1299,
|
|
327
|
+
"strand": 1,
|
|
328
|
+
"subfeatures": Array [
|
|
329
|
+
Object {
|
|
330
|
+
"end": 1500,
|
|
331
|
+
"parentId": "test-ctgA-2",
|
|
332
|
+
"start": 1299,
|
|
333
|
+
"strand": 1,
|
|
334
|
+
"type": "five_prime_UTR",
|
|
335
|
+
"uniqueId": "test-ctgA-2-0",
|
|
336
|
+
},
|
|
337
|
+
Object {
|
|
338
|
+
"end": 3300,
|
|
339
|
+
"parentId": "test-ctgA-2",
|
|
340
|
+
"start": 2999,
|
|
341
|
+
"strand": 1,
|
|
342
|
+
"type": "five_prime_UTR",
|
|
343
|
+
"uniqueId": "test-ctgA-2-1",
|
|
344
|
+
},
|
|
345
|
+
Object {
|
|
346
|
+
"end": 3902,
|
|
347
|
+
"parentId": "test-ctgA-2",
|
|
348
|
+
"start": 3300,
|
|
349
|
+
"strand": 1,
|
|
350
|
+
"type": "CDS",
|
|
351
|
+
"uniqueId": "test-ctgA-2-2",
|
|
352
|
+
},
|
|
353
|
+
Object {
|
|
354
|
+
"end": 5500,
|
|
355
|
+
"parentId": "test-ctgA-2",
|
|
356
|
+
"start": 4999,
|
|
357
|
+
"strand": 1,
|
|
358
|
+
"type": "CDS",
|
|
359
|
+
"uniqueId": "test-ctgA-2-3",
|
|
360
|
+
},
|
|
361
|
+
Object {
|
|
362
|
+
"end": 7600,
|
|
363
|
+
"parentId": "test-ctgA-2",
|
|
364
|
+
"start": 6999,
|
|
365
|
+
"strand": 1,
|
|
366
|
+
"type": "CDS",
|
|
367
|
+
"uniqueId": "test-ctgA-2-4",
|
|
368
|
+
},
|
|
369
|
+
Object {
|
|
370
|
+
"end": 9000,
|
|
371
|
+
"parentId": "test-ctgA-2",
|
|
372
|
+
"start": 7600,
|
|
373
|
+
"strand": 1,
|
|
374
|
+
"type": "three_prime_UTR",
|
|
375
|
+
"uniqueId": "test-ctgA-2-5",
|
|
376
|
+
},
|
|
377
|
+
],
|
|
378
|
+
"type": "mRNA",
|
|
379
|
+
"uniqueId": "test-ctgA-2",
|
|
380
|
+
},
|
|
381
|
+
Object {
|
|
382
|
+
"end": 23000,
|
|
383
|
+
"itemRgb": "0,0,0",
|
|
384
|
+
"name": "rna-Apple3",
|
|
385
|
+
"refName": "ctgA",
|
|
386
|
+
"score": 1000,
|
|
387
|
+
"start": 17399,
|
|
388
|
+
"strand": 1,
|
|
389
|
+
"subfeatures": Array [
|
|
390
|
+
Object {
|
|
391
|
+
"end": 17999,
|
|
392
|
+
"parentId": "test-ctgA-3",
|
|
393
|
+
"start": 17399,
|
|
394
|
+
"strand": 1,
|
|
395
|
+
"type": "five_prime_UTR",
|
|
396
|
+
"uniqueId": "test-ctgA-3-0",
|
|
397
|
+
},
|
|
398
|
+
Object {
|
|
399
|
+
"end": 18800,
|
|
400
|
+
"parentId": "test-ctgA-3",
|
|
401
|
+
"start": 17999,
|
|
402
|
+
"strand": 1,
|
|
403
|
+
"type": "CDS",
|
|
404
|
+
"uniqueId": "test-ctgA-3-1",
|
|
405
|
+
},
|
|
406
|
+
Object {
|
|
407
|
+
"end": 19500,
|
|
408
|
+
"parentId": "test-ctgA-3",
|
|
409
|
+
"start": 18999,
|
|
410
|
+
"strand": 1,
|
|
411
|
+
"type": "CDS",
|
|
412
|
+
"uniqueId": "test-ctgA-3-2",
|
|
413
|
+
},
|
|
414
|
+
Object {
|
|
415
|
+
"end": 21200,
|
|
416
|
+
"parentId": "test-ctgA-3",
|
|
417
|
+
"start": 20999,
|
|
418
|
+
"strand": 1,
|
|
419
|
+
"type": "CDS",
|
|
420
|
+
"uniqueId": "test-ctgA-3-3",
|
|
421
|
+
},
|
|
422
|
+
Object {
|
|
423
|
+
"end": 23000,
|
|
424
|
+
"parentId": "test-ctgA-3",
|
|
425
|
+
"start": 21200,
|
|
426
|
+
"strand": 1,
|
|
427
|
+
"type": "three_prime_UTR",
|
|
428
|
+
"uniqueId": "test-ctgA-3-4",
|
|
429
|
+
},
|
|
430
|
+
],
|
|
431
|
+
"type": "mRNA",
|
|
432
|
+
"uniqueId": "test-ctgA-3",
|
|
433
|
+
},
|
|
434
|
+
]
|
|
435
|
+
`;
|
|
436
|
+
|
|
437
|
+
exports[`adapter can use gwas header 1`] = `Array []`;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ConfigurationSchema } from '@jbrowse/core/configuration'
|
|
2
|
+
|
|
3
|
+
export default ConfigurationSchema(
|
|
4
|
+
'BedAdapter',
|
|
5
|
+
{
|
|
6
|
+
bedLocation: {
|
|
7
|
+
type: 'fileLocation',
|
|
8
|
+
defaultValue: { uri: '/path/to/my.bed.gz', locationType: 'UriLocation' },
|
|
9
|
+
},
|
|
10
|
+
|
|
11
|
+
columnNames: {
|
|
12
|
+
type: 'stringArray',
|
|
13
|
+
description: 'List of column names',
|
|
14
|
+
defaultValue: [],
|
|
15
|
+
},
|
|
16
|
+
|
|
17
|
+
scoreColumn: {
|
|
18
|
+
type: 'string',
|
|
19
|
+
description: 'The column to use as a "score" attribute',
|
|
20
|
+
defaultValue: '',
|
|
21
|
+
},
|
|
22
|
+
|
|
23
|
+
autoSql: {
|
|
24
|
+
type: 'string',
|
|
25
|
+
description: 'The autoSql definition for the data fields in the file',
|
|
26
|
+
defaultValue: '',
|
|
27
|
+
},
|
|
28
|
+
colRef: {
|
|
29
|
+
type: 'number',
|
|
30
|
+
description: 'The column to use as a "refName" attribute',
|
|
31
|
+
defaultValue: 0,
|
|
32
|
+
},
|
|
33
|
+
colStart: {
|
|
34
|
+
type: 'number',
|
|
35
|
+
description: 'The column to use as a "start" attribute',
|
|
36
|
+
defaultValue: 1,
|
|
37
|
+
},
|
|
38
|
+
colEnd: {
|
|
39
|
+
type: 'number',
|
|
40
|
+
description: 'The column to use as a "end" attribute',
|
|
41
|
+
defaultValue: 2,
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
{ explicitlyTyped: true },
|
|
45
|
+
)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as configSchema } from './configSchema'
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
#chrom pos rsid ref alt neg_log_pvalue beta stderr_beta alt_allele_freq
|
|
2
|
+
1 721290 rs12565286 G C 0.275233 . . .
|
|
3
|
+
1 752566 rs3094315 G A 0.0315638 . . .
|
|
4
|
+
1 775659 rs2905035 A G 0.183626 . . .
|
|
5
|
+
1 777122 rs2980319 A T 0.207258 . . .
|
|
6
|
+
1 779322 rs4040617 A G 0.0326393 . . .
|
|
7
|
+
1 780785 rs2977612 T A 0.0225965 . . .
|
|
8
|
+
1 785050 rs2905062 G A 0.0346572 . . .
|
|
9
|
+
1 785989 rs2980300 T C 0.00638744 . . .
|
|
10
|
+
1 798959 rs11240777 G A 0.49853 . . .
|
|
11
|
+
1 990380 . C A,G,T 0.136915 . . .
|
|
12
|
+
1 998501 rs3813193 G C 0.450384 . . .
|
|
13
|
+
1 1003629 rs4075116 C T 0.881074 . . .
|
|
14
|
+
1 1005806 rs3934834 C T 0.756218 . . .
|
|
15
|
+
1 1017170 rs3766193 C G 0.336111 . . .
|
|
16
|
+
1 1017197 rs3766192 C T 0.381743 . . .
|
|
17
|
+
1 1017587 rs3766191 C T 0.775467 . . .
|
|
18
|
+
1 1018562 rs9442371 C T 0.233364 . . .
|
|
19
|
+
1 1018704 rs9442372 A G 0.248721 . . .
|
|
20
|
+
1 1021346 rs10907177 A G 0.842846 . . .
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ctgA 1 10 T>G 1 . 1815756 1815757 0,0,0 1 1 0 1 0.0108695652174 GNB1 2782 Splice_Region SNP T T G novel -- -- -- -- -- -- -- -- female TCGA-ACC not hispanic or latino TCGA-OR-A5KB-01A-11D-A30A-10 TCGA-OR-A5KB-11A-11D-A30A-10 09454ed6-64bc-4a35-af44-7c4344623d45
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
ctgA 1049 9000 EDEN.1 1000 + 1200 7608 0,0,0 4 451,903,501,2001 0,1950,3950,5950 EDEN EDEN - - -
|
|
2
|
+
ctgA 1049 9000 EDEN.2 1000 + 1200 7608 0,0,0 3 451,501,2001 0,3950,5950 EDEN EDEN - - -
|
|
3
|
+
ctgA 1299 9000 EDEN.3 1000 + 3300 7600 0,0,0 4 201,903,501,2001 0,1700,3700,5700 EDEN EDEN - - -
|
|
4
|
+
ctgA 17399 23000 rna-Apple3 1000 + 17999 21200 0,0,0 3 1401,501,2001 0,1600,3600 rna-Apple3 rna-Apple3 - - -
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
contigA 3000 3009
|
|
2
|
+
contigA 3105 3114
|
|
3
|
+
contigA 3152 3161
|
|
4
|
+
contigA 3171 3180
|
|
5
|
+
contigA 3174 3183
|
|
6
|
+
contigA 3213 3222
|
|
7
|
+
contigA 3465 3474
|
|
8
|
+
contigA 3795 3804
|
|
9
|
+
contigA 4035 4044
|
|
10
|
+
contigA 4073 4082
|
|
11
|
+
contigA 4074 4083
|
|
12
|
+
contigA 4166 4175
|
|
13
|
+
contigA 4179 4188
|
|
14
|
+
contigA 4204 4213
|
|
15
|
+
contigA 4248 4257
|
|
16
|
+
contigA 4260 4269
|
|
17
|
+
contigA 4577 4586
|
|
18
|
+
contigA 4828 4837
|
|
19
|
+
contigA 4901 4910
|
|
20
|
+
contigA 5006 5015
|
|
21
|
+
contigA 5051 5060
|
|
22
|
+
contigA 5201 5210
|
|
23
|
+
contigA 5260 5269
|
|
24
|
+
contigA 5281 5290
|
|
25
|
+
contigA 5349 5358
|
|
26
|
+
contigA 5353 5362
|
|
27
|
+
contigA 5423 5432
|
|
28
|
+
contigA 5457 5466
|
|
29
|
+
contigA 5548 5557
|
|
30
|
+
contigA 5626 5635
|
|
31
|
+
contigA 5835 5844
|
|
32
|
+
contigA 5909 5918
|
|
33
|
+
contigA 5927 5936
|
|
34
|
+
contigA 5969 5978
|
|
35
|
+
contigA 6070 6079
|
|
36
|
+
contigA 6185 6194
|
|
37
|
+
contigA 6285 6294
|
|
38
|
+
contigA 6363 6372
|
|
39
|
+
contigA 6559 6568
|
|
40
|
+
contigA 6834 6843
|
|
41
|
+
contigA 6908 6917
|
|
42
|
+
contigA 6918 6927
|
|
43
|
+
contigA 7141 7150
|
|
44
|
+
contigA 7173 7182
|
|
45
|
+
contigA 7569 7578
|
|
46
|
+
contigA 7619 7628
|
|
47
|
+
contigA 7654 7663
|
|
48
|
+
contigA 7671 7680
|
|
49
|
+
contigA 7707 7716
|
|
50
|
+
contigA 7739 7748
|
|
51
|
+
contigA 8077 8086
|
|
52
|
+
contigA 8128 8137
|
|
53
|
+
contigA 8132 8141
|
|
54
|
+
contigA 8210 8219
|
|
55
|
+
contigA 8267 8276
|
|
56
|
+
contigA 8328 8337
|
|
57
|
+
contigA 8524 8533
|
|
58
|
+
contigA 8659 8668
|
|
59
|
+
contigA 8660 8669
|
|
60
|
+
contigA 8742 8751
|
|
61
|
+
contigA 8811 8820
|
|
62
|
+
contigA 8816 8825
|
|
63
|
+
contigA 8964 8973
|
|
64
|
+
contigA 9048 9057
|
|
65
|
+
contigA 9054 9063
|
|
66
|
+
contigA 9136 9145
|
|
67
|
+
contigA 9243 9252
|
|
68
|
+
contigA 9320 9329
|
|
69
|
+
contigA 9366 9375
|
|
70
|
+
contigA 9525 9534
|
|
71
|
+
contigA 9580 9589
|
|
72
|
+
contigA 9610 9619
|
|
73
|
+
contigA 9744 9753
|
|
74
|
+
contigA 9753 9762
|
|
75
|
+
contigA 9759 9768
|
|
76
|
+
contigA 9807 9816
|
|
77
|
+
contigA 9853 9862
|
|
78
|
+
contigA 9884 9893
|
|
79
|
+
contigA 9920 9929
|
|
80
|
+
contigA 10043 10052
|
|
81
|
+
contigA 10216 10225
|
|
82
|
+
contigA 10217 10226
|
|
83
|
+
contigA 10252 10261
|
|
84
|
+
contigA 10384 10393
|
|
85
|
+
contigA 10498 10507
|
|
86
|
+
contigA 10585 10594
|
|
87
|
+
contigA 10684 10693
|
|
88
|
+
contigA 10781 10790
|
|
89
|
+
contigA 10875 10884
|
|
90
|
+
contigA 11004 11013
|
|
91
|
+
contigA 11095 11104
|
|
92
|
+
contigA 11182 11191
|
|
93
|
+
contigA 11207 11216
|
|
94
|
+
contigA 11241 11250
|
|
95
|
+
contigA 11335 11344
|
|
96
|
+
contigA 11340 11349
|
|
97
|
+
contigA 11535 11544
|
|
98
|
+
contigA 11543 11552
|
|
99
|
+
contigA 11549 11558
|
|
100
|
+
contigA 11653 11662
|
|
101
|
+
contigA 11675 11684
|
|
102
|
+
contigA 11689 11698
|
|
103
|
+
contigA 11774 11783
|
|
104
|
+
contigA 11832 11841
|
|
105
|
+
contigA 12386 12395
|
|
106
|
+
contigA 12408 12417
|
|
107
|
+
contigA 12441 12450
|
|
108
|
+
contigA 12530 12539
|
|
109
|
+
contigA 12738 12747
|