@jbrowse/plugin-bed 2.1.7 → 2.2.1

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.
@@ -1,71 +1,71 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`adapter can fetch bed with header 1`] = `
4
- Array [
5
- Object {
4
+ [
5
+ {
6
6
  "end": 3009,
7
7
  "refName": "contigA",
8
8
  "start": 3000,
9
9
  "strand": 0,
10
10
  "uniqueId": "test-163098",
11
11
  },
12
- Object {
12
+ {
13
13
  "end": 3114,
14
14
  "refName": "contigA",
15
15
  "start": 3105,
16
16
  "strand": 0,
17
17
  "uniqueId": "test-163116",
18
18
  },
19
- Object {
19
+ {
20
20
  "end": 3161,
21
21
  "refName": "contigA",
22
22
  "start": 3152,
23
23
  "strand": 0,
24
24
  "uniqueId": "test-163134",
25
25
  },
26
- Object {
26
+ {
27
27
  "end": 3180,
28
28
  "refName": "contigA",
29
29
  "start": 3171,
30
30
  "strand": 0,
31
31
  "uniqueId": "test-163152",
32
32
  },
33
- Object {
33
+ {
34
34
  "end": 3183,
35
35
  "refName": "contigA",
36
36
  "start": 3174,
37
37
  "strand": 0,
38
38
  "uniqueId": "test-163170",
39
39
  },
40
- Object {
40
+ {
41
41
  "end": 3222,
42
42
  "refName": "contigA",
43
43
  "start": 3213,
44
44
  "strand": 0,
45
45
  "uniqueId": "test-163188",
46
46
  },
47
- Object {
47
+ {
48
48
  "end": 3474,
49
49
  "refName": "contigA",
50
50
  "start": 3465,
51
51
  "strand": 0,
52
52
  "uniqueId": "test-163206",
53
53
  },
54
- Object {
54
+ {
55
55
  "end": 3804,
56
56
  "refName": "contigA",
57
57
  "start": 3795,
58
58
  "strand": 0,
59
59
  "uniqueId": "test-163224",
60
60
  },
61
- Object {
61
+ {
62
62
  "end": 4044,
63
63
  "refName": "contigA",
64
64
  "start": 4035,
65
65
  "strand": 0,
66
66
  "uniqueId": "test-163242",
67
67
  },
68
- Object {
68
+ {
69
69
  "end": 4082,
70
70
  "refName": "contigA",
71
71
  "start": 4073,
@@ -76,8 +76,8 @@ Array [
76
76
  `;
77
77
 
78
78
  exports[`adapter can fetch features bed with autosql 1`] = `
79
- Array [
80
- Object {
79
+ [
80
+ {
81
81
  "Entrez_Gene_Id": "2782",
82
82
  "Hugo_Symbol": "GNB1",
83
83
  "Matched_Norm_Sample_Barcode": "TCGA-OR-A5KB-11A-11D-A30A-10",
@@ -108,8 +108,8 @@ Array [
108
108
  "score": 1,
109
109
  "start": 1,
110
110
  "strand": 0,
111
- "subfeatures": Array [
112
- Object {
111
+ "subfeatures": [
112
+ {
113
113
  "end": 2,
114
114
  "parentId": "test-52985",
115
115
  "start": 1,
@@ -127,71 +127,71 @@ Array [
127
127
  `;
128
128
 
129
129
  exports[`adapter can fetch features from volvox.sort.bed.gz simple bed3 1`] = `
130
- Array [
131
- Object {
130
+ [
131
+ {
132
132
  "end": 3009,
133
133
  "refName": "contigA",
134
134
  "start": 3000,
135
135
  "strand": 0,
136
136
  "uniqueId": "test-155162",
137
137
  },
138
- Object {
138
+ {
139
139
  "end": 3114,
140
140
  "refName": "contigA",
141
141
  "start": 3105,
142
142
  "strand": 0,
143
143
  "uniqueId": "test-155180",
144
144
  },
145
- Object {
145
+ {
146
146
  "end": 3161,
147
147
  "refName": "contigA",
148
148
  "start": 3152,
149
149
  "strand": 0,
150
150
  "uniqueId": "test-155198",
151
151
  },
152
- Object {
152
+ {
153
153
  "end": 3180,
154
154
  "refName": "contigA",
155
155
  "start": 3171,
156
156
  "strand": 0,
157
157
  "uniqueId": "test-155216",
158
158
  },
159
- Object {
159
+ {
160
160
  "end": 3183,
161
161
  "refName": "contigA",
162
162
  "start": 3174,
163
163
  "strand": 0,
164
164
  "uniqueId": "test-155234",
165
165
  },
166
- Object {
166
+ {
167
167
  "end": 3222,
168
168
  "refName": "contigA",
169
169
  "start": 3213,
170
170
  "strand": 0,
171
171
  "uniqueId": "test-155252",
172
172
  },
173
- Object {
173
+ {
174
174
  "end": 3474,
175
175
  "refName": "contigA",
176
176
  "start": 3465,
177
177
  "strand": 0,
178
178
  "uniqueId": "test-155270",
179
179
  },
180
- Object {
180
+ {
181
181
  "end": 3804,
182
182
  "refName": "contigA",
183
183
  "start": 3795,
184
184
  "strand": 0,
185
185
  "uniqueId": "test-155288",
186
186
  },
187
- Object {
187
+ {
188
188
  "end": 4044,
189
189
  "refName": "contigA",
190
190
  "start": 4035,
191
191
  "strand": 0,
192
192
  "uniqueId": "test-155306",
193
193
  },
194
- Object {
194
+ {
195
195
  "end": 4082,
196
196
  "refName": "contigA",
197
197
  "start": 4073,
@@ -202,8 +202,8 @@ Array [
202
202
  `;
203
203
 
204
204
  exports[`adapter can fetch features from volvox-bed12.bed.gz 1`] = `
205
- Array [
206
- Object {
205
+ [
206
+ {
207
207
  "end": 9000,
208
208
  "itemRgb": "0,0,0",
209
209
  "name": "EDEN.1",
@@ -211,8 +211,8 @@ Array [
211
211
  "score": 1000,
212
212
  "start": 1049,
213
213
  "strand": 1,
214
- "subfeatures": Array [
215
- Object {
214
+ "subfeatures": [
215
+ {
216
216
  "end": 1200,
217
217
  "parentId": "test-45689",
218
218
  "start": 1049,
@@ -220,7 +220,7 @@ Array [
220
220
  "type": "five_prime_UTR",
221
221
  "uniqueId": "test-45689-0",
222
222
  },
223
- Object {
223
+ {
224
224
  "end": 1500,
225
225
  "parentId": "test-45689",
226
226
  "start": 1200,
@@ -228,7 +228,7 @@ Array [
228
228
  "type": "CDS",
229
229
  "uniqueId": "test-45689-1",
230
230
  },
231
- Object {
231
+ {
232
232
  "end": 3902,
233
233
  "parentId": "test-45689",
234
234
  "start": 2999,
@@ -236,7 +236,7 @@ Array [
236
236
  "type": "CDS",
237
237
  "uniqueId": "test-45689-2",
238
238
  },
239
- Object {
239
+ {
240
240
  "end": 5500,
241
241
  "parentId": "test-45689",
242
242
  "start": 4999,
@@ -244,7 +244,7 @@ Array [
244
244
  "type": "CDS",
245
245
  "uniqueId": "test-45689-3",
246
246
  },
247
- Object {
247
+ {
248
248
  "end": 7608,
249
249
  "parentId": "test-45689",
250
250
  "start": 6999,
@@ -252,7 +252,7 @@ Array [
252
252
  "type": "CDS",
253
253
  "uniqueId": "test-45689-4",
254
254
  },
255
- Object {
255
+ {
256
256
  "end": 9000,
257
257
  "parentId": "test-45689",
258
258
  "start": 7608,
@@ -264,7 +264,7 @@ Array [
264
264
  "type": "mRNA",
265
265
  "uniqueId": "test-45689",
266
266
  },
267
- Object {
267
+ {
268
268
  "end": 9000,
269
269
  "itemRgb": "0,0,0",
270
270
  "name": "EDEN.2",
@@ -272,8 +272,8 @@ Array [
272
272
  "score": 1000,
273
273
  "start": 1049,
274
274
  "strand": 1,
275
- "subfeatures": Array [
276
- Object {
275
+ "subfeatures": [
276
+ {
277
277
  "end": 1200,
278
278
  "parentId": "test-45786",
279
279
  "start": 1049,
@@ -281,7 +281,7 @@ Array [
281
281
  "type": "five_prime_UTR",
282
282
  "uniqueId": "test-45786-0",
283
283
  },
284
- Object {
284
+ {
285
285
  "end": 1500,
286
286
  "parentId": "test-45786",
287
287
  "start": 1200,
@@ -289,7 +289,7 @@ Array [
289
289
  "type": "CDS",
290
290
  "uniqueId": "test-45786-1",
291
291
  },
292
- Object {
292
+ {
293
293
  "end": 5500,
294
294
  "parentId": "test-45786",
295
295
  "start": 4999,
@@ -297,7 +297,7 @@ Array [
297
297
  "type": "CDS",
298
298
  "uniqueId": "test-45786-2",
299
299
  },
300
- Object {
300
+ {
301
301
  "end": 7608,
302
302
  "parentId": "test-45786",
303
303
  "start": 6999,
@@ -305,7 +305,7 @@ Array [
305
305
  "type": "CDS",
306
306
  "uniqueId": "test-45786-3",
307
307
  },
308
- Object {
308
+ {
309
309
  "end": 9000,
310
310
  "parentId": "test-45786",
311
311
  "start": 7608,
@@ -317,7 +317,7 @@ Array [
317
317
  "type": "mRNA",
318
318
  "uniqueId": "test-45786",
319
319
  },
320
- Object {
320
+ {
321
321
  "end": 9000,
322
322
  "itemRgb": "0,0,0",
323
323
  "name": "EDEN.3",
@@ -325,8 +325,8 @@ Array [
325
325
  "score": 1000,
326
326
  "start": 1299,
327
327
  "strand": 1,
328
- "subfeatures": Array [
329
- Object {
328
+ "subfeatures": [
329
+ {
330
330
  "end": 1500,
331
331
  "parentId": "test-45874",
332
332
  "start": 1299,
@@ -334,7 +334,7 @@ Array [
334
334
  "type": "five_prime_UTR",
335
335
  "uniqueId": "test-45874-0",
336
336
  },
337
- Object {
337
+ {
338
338
  "end": 3300,
339
339
  "parentId": "test-45874",
340
340
  "start": 2999,
@@ -342,7 +342,7 @@ Array [
342
342
  "type": "five_prime_UTR",
343
343
  "uniqueId": "test-45874-1",
344
344
  },
345
- Object {
345
+ {
346
346
  "end": 3902,
347
347
  "parentId": "test-45874",
348
348
  "start": 3300,
@@ -350,7 +350,7 @@ Array [
350
350
  "type": "CDS",
351
351
  "uniqueId": "test-45874-2",
352
352
  },
353
- Object {
353
+ {
354
354
  "end": 5500,
355
355
  "parentId": "test-45874",
356
356
  "start": 4999,
@@ -358,7 +358,7 @@ Array [
358
358
  "type": "CDS",
359
359
  "uniqueId": "test-45874-3",
360
360
  },
361
- Object {
361
+ {
362
362
  "end": 7600,
363
363
  "parentId": "test-45874",
364
364
  "start": 6999,
@@ -366,7 +366,7 @@ Array [
366
366
  "type": "CDS",
367
367
  "uniqueId": "test-45874-4",
368
368
  },
369
- Object {
369
+ {
370
370
  "end": 9000,
371
371
  "parentId": "test-45874",
372
372
  "start": 7600,
@@ -378,7 +378,7 @@ Array [
378
378
  "type": "mRNA",
379
379
  "uniqueId": "test-45874",
380
380
  },
381
- Object {
381
+ {
382
382
  "end": 23000,
383
383
  "itemRgb": "0,0,0",
384
384
  "name": "rna-Apple3",
@@ -386,8 +386,8 @@ Array [
386
386
  "score": 1000,
387
387
  "start": 17399,
388
388
  "strand": 1,
389
- "subfeatures": Array [
390
- Object {
389
+ "subfeatures": [
390
+ {
391
391
  "end": 17999,
392
392
  "parentId": "test-45971",
393
393
  "start": 17399,
@@ -395,7 +395,7 @@ Array [
395
395
  "type": "five_prime_UTR",
396
396
  "uniqueId": "test-45971-0",
397
397
  },
398
- Object {
398
+ {
399
399
  "end": 18800,
400
400
  "parentId": "test-45971",
401
401
  "start": 17999,
@@ -403,7 +403,7 @@ Array [
403
403
  "type": "CDS",
404
404
  "uniqueId": "test-45971-1",
405
405
  },
406
- Object {
406
+ {
407
407
  "end": 19500,
408
408
  "parentId": "test-45971",
409
409
  "start": 18999,
@@ -411,7 +411,7 @@ Array [
411
411
  "type": "CDS",
412
412
  "uniqueId": "test-45971-2",
413
413
  },
414
- Object {
414
+ {
415
415
  "end": 21200,
416
416
  "parentId": "test-45971",
417
417
  "start": 20999,
@@ -419,7 +419,7 @@ Array [
419
419
  "type": "CDS",
420
420
  "uniqueId": "test-45971-3",
421
421
  },
422
- Object {
422
+ {
423
423
  "end": 23000,
424
424
  "parentId": "test-45971",
425
425
  "start": 21200,
@@ -434,4 +434,4 @@ Array [
434
434
  ]
435
435
  `;
436
436
 
437
- exports[`adapter can use gwas header 1`] = `Array []`;
437
+ exports[`adapter can use gwas header 1`] = `[]`;
@@ -1,20 +1,34 @@
1
1
  import { ConfigurationSchema } from '@jbrowse/core/configuration'
2
2
  import { types } from 'mobx-state-tree'
3
3
 
4
- export default ConfigurationSchema(
4
+ /**
5
+ * #config BedTabixAdapter
6
+ */
7
+ function x() {} // eslint-disable-line @typescript-eslint/no-unused-vars
8
+
9
+ const BedTabixAdapter = ConfigurationSchema(
5
10
  'BedTabixAdapter',
6
11
  {
12
+ /**
13
+ * #slot
14
+ */
7
15
  bedGzLocation: {
8
16
  type: 'fileLocation',
9
17
  defaultValue: { uri: '/path/to/my.bed.gz', locationType: 'UriLocation' },
10
18
  },
11
19
 
12
20
  index: ConfigurationSchema('TabixIndex', {
21
+ /**
22
+ * #slot index.indexType
23
+ */
13
24
  indexType: {
14
25
  model: types.enumeration('IndexType', ['TBI', 'CSI']),
15
26
  type: 'stringEnum',
16
27
  defaultValue: 'TBI',
17
28
  },
29
+ /**
30
+ * #slot index.location
31
+ */
18
32
  location: {
19
33
  type: 'fileLocation',
20
34
  defaultValue: {
@@ -24,18 +38,27 @@ export default ConfigurationSchema(
24
38
  },
25
39
  }),
26
40
 
41
+ /**
42
+ * #slot
43
+ */
27
44
  columnNames: {
28
45
  type: 'stringArray',
29
46
  description: 'List of column names',
30
47
  defaultValue: [],
31
48
  },
32
49
 
50
+ /**
51
+ * #slot
52
+ */
33
53
  scoreColumn: {
34
54
  type: 'string',
35
55
  description: 'The column to use as a "score" attribute',
36
56
  defaultValue: '',
37
57
  },
38
58
 
59
+ /**
60
+ * #slot
61
+ */
39
62
  autoSql: {
40
63
  type: 'string',
41
64
  description: 'The autoSql definition for the data fields in the file',
@@ -44,3 +67,5 @@ export default ConfigurationSchema(
44
67
  },
45
68
  { explicitlyTyped: true },
46
69
  )
70
+
71
+ export default BedTabixAdapter