@jbrowse/plugin-bed 2.5.0 → 2.6.2

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.
Files changed (97) hide show
  1. package/dist/BedAdapter/BedAdapter.js +1 -2
  2. package/dist/BedAdapter/configSchema.js +0 -1
  3. package/dist/BedAdapter/index.js +0 -1
  4. package/dist/BedTabixAdapter/BedTabixAdapter.js +1 -2
  5. package/dist/BedTabixAdapter/configSchema.js +0 -1
  6. package/dist/BedTabixAdapter/index.js +0 -1
  7. package/dist/BedpeAdapter/BedpeAdapter.d.ts +2 -2
  8. package/dist/BedpeAdapter/BedpeAdapter.js +11 -6
  9. package/dist/BedpeAdapter/configSchema.js +0 -1
  10. package/dist/BedpeAdapter/index.js +0 -1
  11. package/dist/BigBedAdapter/BigBedAdapter.js +2 -3
  12. package/dist/BigBedAdapter/configSchema.js +0 -1
  13. package/dist/BigBedAdapter/index.js +0 -1
  14. package/dist/index.js +8 -1
  15. package/dist/util.js +1 -3
  16. package/esm/BedAdapter/BedAdapter.js +1 -2
  17. package/esm/BedAdapter/configSchema.js +0 -1
  18. package/esm/BedAdapter/index.js +0 -1
  19. package/esm/BedTabixAdapter/BedTabixAdapter.js +1 -2
  20. package/esm/BedTabixAdapter/configSchema.js +0 -1
  21. package/esm/BedTabixAdapter/index.js +0 -1
  22. package/esm/BedpeAdapter/BedpeAdapter.d.ts +2 -2
  23. package/esm/BedpeAdapter/BedpeAdapter.js +11 -6
  24. package/esm/BedpeAdapter/configSchema.js +0 -1
  25. package/esm/BedpeAdapter/index.js +0 -1
  26. package/esm/BigBedAdapter/BigBedAdapter.js +2 -3
  27. package/esm/BigBedAdapter/configSchema.js +0 -1
  28. package/esm/BigBedAdapter/index.js +0 -1
  29. package/esm/index.js +8 -1
  30. package/esm/util.js +1 -3
  31. package/package.json +4 -5
  32. package/dist/BedAdapter/BedAdapter.js.map +0 -1
  33. package/dist/BedAdapter/configSchema.js.map +0 -1
  34. package/dist/BedAdapter/index.js.map +0 -1
  35. package/dist/BedTabixAdapter/BedTabixAdapter.js.map +0 -1
  36. package/dist/BedTabixAdapter/configSchema.js.map +0 -1
  37. package/dist/BedTabixAdapter/index.js.map +0 -1
  38. package/dist/BedpeAdapter/BedpeAdapter.js.map +0 -1
  39. package/dist/BedpeAdapter/configSchema.js.map +0 -1
  40. package/dist/BedpeAdapter/index.js.map +0 -1
  41. package/dist/BigBedAdapter/BigBedAdapter.js.map +0 -1
  42. package/dist/BigBedAdapter/configSchema.js.map +0 -1
  43. package/dist/BigBedAdapter/index.js.map +0 -1
  44. package/dist/index.js.map +0 -1
  45. package/dist/util.js.map +0 -1
  46. package/esm/BedAdapter/BedAdapter.js.map +0 -1
  47. package/esm/BedAdapter/configSchema.js.map +0 -1
  48. package/esm/BedAdapter/index.js.map +0 -1
  49. package/esm/BedTabixAdapter/BedTabixAdapter.js.map +0 -1
  50. package/esm/BedTabixAdapter/configSchema.js.map +0 -1
  51. package/esm/BedTabixAdapter/index.js.map +0 -1
  52. package/esm/BedpeAdapter/BedpeAdapter.js.map +0 -1
  53. package/esm/BedpeAdapter/configSchema.js.map +0 -1
  54. package/esm/BedpeAdapter/index.js.map +0 -1
  55. package/esm/BigBedAdapter/BigBedAdapter.js.map +0 -1
  56. package/esm/BigBedAdapter/configSchema.js.map +0 -1
  57. package/esm/BigBedAdapter/index.js.map +0 -1
  58. package/esm/index.js.map +0 -1
  59. package/esm/util.js.map +0 -1
  60. package/src/BedAdapter/BedAdapter.test.ts +0 -166
  61. package/src/BedAdapter/BedAdapter.ts +0 -171
  62. package/src/BedAdapter/__snapshots__/BedAdapter.test.ts.snap +0 -437
  63. package/src/BedAdapter/configSchema.ts +0 -69
  64. package/src/BedAdapter/index.ts +0 -16
  65. package/src/BedAdapter/test_data/gwas.bed +0 -20
  66. package/src/BedAdapter/test_data/volvox-autosql.bed +0 -1
  67. package/src/BedAdapter/test_data/volvox-bed12.bed +0 -4
  68. package/src/BedAdapter/test_data/volvox.sort.bed +0 -109
  69. package/src/BedAdapter/test_data/volvox.sort.with.header.bed +0 -121
  70. package/src/BedTabixAdapter/BedTabixAdapter.test.ts +0 -196
  71. package/src/BedTabixAdapter/BedTabixAdapter.ts +0 -105
  72. package/src/BedTabixAdapter/__snapshots__/BedTabixAdapter.test.ts.snap +0 -437
  73. package/src/BedTabixAdapter/configSchema.ts +0 -71
  74. package/src/BedTabixAdapter/index.ts +0 -16
  75. package/src/BedTabixAdapter/test_data/gwas.bed.gz +0 -0
  76. package/src/BedTabixAdapter/test_data/gwas.bed.gz.tbi +0 -0
  77. package/src/BedTabixAdapter/test_data/volvox-autosql.bed.gz +0 -0
  78. package/src/BedTabixAdapter/test_data/volvox-autosql.bed.gz.tbi +0 -0
  79. package/src/BedTabixAdapter/test_data/volvox-bed12.bed.gz +0 -0
  80. package/src/BedTabixAdapter/test_data/volvox-bed12.bed.gz.tbi +0 -0
  81. package/src/BedTabixAdapter/test_data/volvox.sort.bed.gz +0 -0
  82. package/src/BedTabixAdapter/test_data/volvox.sort.bed.gz.tbi +0 -0
  83. package/src/BedTabixAdapter/test_data/volvox.sort.with.header.bed.gz +0 -0
  84. package/src/BedTabixAdapter/test_data/volvox.sort.with.header.bed.gz.tbi +0 -0
  85. package/src/BedpeAdapter/BedpeAdapter.ts +0 -202
  86. package/src/BedpeAdapter/configSchema.ts +0 -34
  87. package/src/BedpeAdapter/index.ts +0 -16
  88. package/src/BigBedAdapter/BigBedAdapter.test.ts +0 -28
  89. package/src/BigBedAdapter/BigBedAdapter.ts +0 -130
  90. package/src/BigBedAdapter/__snapshots__/BigBedAdapter.test.ts.snap +0 -254
  91. package/src/BigBedAdapter/configSchema.ts +0 -22
  92. package/src/BigBedAdapter/index.ts +0 -16
  93. package/src/BigBedAdapter/test_data/volvox.bb +0 -0
  94. package/src/__snapshots__/index.test.ts.snap +0 -3
  95. package/src/index.test.ts +0 -16
  96. package/src/index.ts +0 -120
  97. package/src/util.ts +0 -181
@@ -1,437 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`adapter can fetch bed with header 1`] = `
4
- [
5
- {
6
- "end": 3009,
7
- "refName": "contigA",
8
- "start": 3000,
9
- "strand": 0,
10
- "uniqueId": "test-163099",
11
- },
12
- {
13
- "end": 3114,
14
- "refName": "contigA",
15
- "start": 3105,
16
- "strand": 0,
17
- "uniqueId": "test-163117",
18
- },
19
- {
20
- "end": 3161,
21
- "refName": "contigA",
22
- "start": 3152,
23
- "strand": 0,
24
- "uniqueId": "test-163135",
25
- },
26
- {
27
- "end": 3180,
28
- "refName": "contigA",
29
- "start": 3171,
30
- "strand": 0,
31
- "uniqueId": "test-163153",
32
- },
33
- {
34
- "end": 3183,
35
- "refName": "contigA",
36
- "start": 3174,
37
- "strand": 0,
38
- "uniqueId": "test-163171",
39
- },
40
- {
41
- "end": 3222,
42
- "refName": "contigA",
43
- "start": 3213,
44
- "strand": 0,
45
- "uniqueId": "test-163189",
46
- },
47
- {
48
- "end": 3474,
49
- "refName": "contigA",
50
- "start": 3465,
51
- "strand": 0,
52
- "uniqueId": "test-163207",
53
- },
54
- {
55
- "end": 3804,
56
- "refName": "contigA",
57
- "start": 3795,
58
- "strand": 0,
59
- "uniqueId": "test-163225",
60
- },
61
- {
62
- "end": 4044,
63
- "refName": "contigA",
64
- "start": 4035,
65
- "strand": 0,
66
- "uniqueId": "test-163243",
67
- },
68
- {
69
- "end": 4082,
70
- "refName": "contigA",
71
- "start": 4073,
72
- "strand": 0,
73
- "uniqueId": "test-163261",
74
- },
75
- ]
76
- `;
77
-
78
- exports[`adapter can fetch features bed with autosql 1`] = `
79
- [
80
- {
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": [
112
- {
113
- "end": 2,
114
- "parentId": "test-52986",
115
- "start": 1,
116
- "strand": 0,
117
- "type": "three_prime_UTR",
118
- "uniqueId": "test-52986-0",
119
- },
120
- ],
121
- "type": "mRNA",
122
- "uniqueId": "test-52986",
123
- "weight": "--",
124
- "years_smoked": "--",
125
- },
126
- ]
127
- `;
128
-
129
- exports[`adapter can fetch features from volvox.sort.bed.gz simple bed3 1`] = `
130
- [
131
- {
132
- "end": 3009,
133
- "refName": "contigA",
134
- "start": 3000,
135
- "strand": 0,
136
- "uniqueId": "test-155163",
137
- },
138
- {
139
- "end": 3114,
140
- "refName": "contigA",
141
- "start": 3105,
142
- "strand": 0,
143
- "uniqueId": "test-155181",
144
- },
145
- {
146
- "end": 3161,
147
- "refName": "contigA",
148
- "start": 3152,
149
- "strand": 0,
150
- "uniqueId": "test-155199",
151
- },
152
- {
153
- "end": 3180,
154
- "refName": "contigA",
155
- "start": 3171,
156
- "strand": 0,
157
- "uniqueId": "test-155217",
158
- },
159
- {
160
- "end": 3183,
161
- "refName": "contigA",
162
- "start": 3174,
163
- "strand": 0,
164
- "uniqueId": "test-155235",
165
- },
166
- {
167
- "end": 3222,
168
- "refName": "contigA",
169
- "start": 3213,
170
- "strand": 0,
171
- "uniqueId": "test-155253",
172
- },
173
- {
174
- "end": 3474,
175
- "refName": "contigA",
176
- "start": 3465,
177
- "strand": 0,
178
- "uniqueId": "test-155271",
179
- },
180
- {
181
- "end": 3804,
182
- "refName": "contigA",
183
- "start": 3795,
184
- "strand": 0,
185
- "uniqueId": "test-155289",
186
- },
187
- {
188
- "end": 4044,
189
- "refName": "contigA",
190
- "start": 4035,
191
- "strand": 0,
192
- "uniqueId": "test-155307",
193
- },
194
- {
195
- "end": 4082,
196
- "refName": "contigA",
197
- "start": 4073,
198
- "strand": 0,
199
- "uniqueId": "test-155325",
200
- },
201
- ]
202
- `;
203
-
204
- exports[`adapter can fetch features from volvox-bed12.bed.gz 1`] = `
205
- [
206
- {
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": [
215
- {
216
- "end": 1200,
217
- "parentId": "test-45690",
218
- "start": 1049,
219
- "strand": 1,
220
- "type": "five_prime_UTR",
221
- "uniqueId": "test-45690-0",
222
- },
223
- {
224
- "end": 1500,
225
- "parentId": "test-45690",
226
- "start": 1200,
227
- "strand": 1,
228
- "type": "CDS",
229
- "uniqueId": "test-45690-1",
230
- },
231
- {
232
- "end": 3902,
233
- "parentId": "test-45690",
234
- "start": 2999,
235
- "strand": 1,
236
- "type": "CDS",
237
- "uniqueId": "test-45690-2",
238
- },
239
- {
240
- "end": 5500,
241
- "parentId": "test-45690",
242
- "start": 4999,
243
- "strand": 1,
244
- "type": "CDS",
245
- "uniqueId": "test-45690-3",
246
- },
247
- {
248
- "end": 7608,
249
- "parentId": "test-45690",
250
- "start": 6999,
251
- "strand": 1,
252
- "type": "CDS",
253
- "uniqueId": "test-45690-4",
254
- },
255
- {
256
- "end": 9000,
257
- "parentId": "test-45690",
258
- "start": 7608,
259
- "strand": 1,
260
- "type": "three_prime_UTR",
261
- "uniqueId": "test-45690-5",
262
- },
263
- ],
264
- "type": "mRNA",
265
- "uniqueId": "test-45690",
266
- },
267
- {
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": [
276
- {
277
- "end": 1200,
278
- "parentId": "test-45787",
279
- "start": 1049,
280
- "strand": 1,
281
- "type": "five_prime_UTR",
282
- "uniqueId": "test-45787-0",
283
- },
284
- {
285
- "end": 1500,
286
- "parentId": "test-45787",
287
- "start": 1200,
288
- "strand": 1,
289
- "type": "CDS",
290
- "uniqueId": "test-45787-1",
291
- },
292
- {
293
- "end": 5500,
294
- "parentId": "test-45787",
295
- "start": 4999,
296
- "strand": 1,
297
- "type": "CDS",
298
- "uniqueId": "test-45787-2",
299
- },
300
- {
301
- "end": 7608,
302
- "parentId": "test-45787",
303
- "start": 6999,
304
- "strand": 1,
305
- "type": "CDS",
306
- "uniqueId": "test-45787-3",
307
- },
308
- {
309
- "end": 9000,
310
- "parentId": "test-45787",
311
- "start": 7608,
312
- "strand": 1,
313
- "type": "three_prime_UTR",
314
- "uniqueId": "test-45787-4",
315
- },
316
- ],
317
- "type": "mRNA",
318
- "uniqueId": "test-45787",
319
- },
320
- {
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": [
329
- {
330
- "end": 1500,
331
- "parentId": "test-45875",
332
- "start": 1299,
333
- "strand": 1,
334
- "type": "five_prime_UTR",
335
- "uniqueId": "test-45875-0",
336
- },
337
- {
338
- "end": 3300,
339
- "parentId": "test-45875",
340
- "start": 2999,
341
- "strand": 1,
342
- "type": "five_prime_UTR",
343
- "uniqueId": "test-45875-1",
344
- },
345
- {
346
- "end": 3902,
347
- "parentId": "test-45875",
348
- "start": 3300,
349
- "strand": 1,
350
- "type": "CDS",
351
- "uniqueId": "test-45875-2",
352
- },
353
- {
354
- "end": 5500,
355
- "parentId": "test-45875",
356
- "start": 4999,
357
- "strand": 1,
358
- "type": "CDS",
359
- "uniqueId": "test-45875-3",
360
- },
361
- {
362
- "end": 7600,
363
- "parentId": "test-45875",
364
- "start": 6999,
365
- "strand": 1,
366
- "type": "CDS",
367
- "uniqueId": "test-45875-4",
368
- },
369
- {
370
- "end": 9000,
371
- "parentId": "test-45875",
372
- "start": 7600,
373
- "strand": 1,
374
- "type": "three_prime_UTR",
375
- "uniqueId": "test-45875-5",
376
- },
377
- ],
378
- "type": "mRNA",
379
- "uniqueId": "test-45875",
380
- },
381
- {
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": [
390
- {
391
- "end": 17999,
392
- "parentId": "test-45972",
393
- "start": 17399,
394
- "strand": 1,
395
- "type": "five_prime_UTR",
396
- "uniqueId": "test-45972-0",
397
- },
398
- {
399
- "end": 18800,
400
- "parentId": "test-45972",
401
- "start": 17999,
402
- "strand": 1,
403
- "type": "CDS",
404
- "uniqueId": "test-45972-1",
405
- },
406
- {
407
- "end": 19500,
408
- "parentId": "test-45972",
409
- "start": 18999,
410
- "strand": 1,
411
- "type": "CDS",
412
- "uniqueId": "test-45972-2",
413
- },
414
- {
415
- "end": 21200,
416
- "parentId": "test-45972",
417
- "start": 20999,
418
- "strand": 1,
419
- "type": "CDS",
420
- "uniqueId": "test-45972-3",
421
- },
422
- {
423
- "end": 23000,
424
- "parentId": "test-45972",
425
- "start": 21200,
426
- "strand": 1,
427
- "type": "three_prime_UTR",
428
- "uniqueId": "test-45972-4",
429
- },
430
- ],
431
- "type": "mRNA",
432
- "uniqueId": "test-45972",
433
- },
434
- ]
435
- `;
436
-
437
- exports[`adapter can use gwas header 1`] = `[]`;
@@ -1,71 +0,0 @@
1
- import { ConfigurationSchema } from '@jbrowse/core/configuration'
2
- import { types } from 'mobx-state-tree'
3
-
4
- /**
5
- * #config BedTabixAdapter
6
- */
7
- function x() {} // eslint-disable-line @typescript-eslint/no-unused-vars
8
-
9
- const BedTabixAdapter = ConfigurationSchema(
10
- 'BedTabixAdapter',
11
- {
12
- /**
13
- * #slot
14
- */
15
- bedGzLocation: {
16
- type: 'fileLocation',
17
- defaultValue: { uri: '/path/to/my.bed.gz', locationType: 'UriLocation' },
18
- },
19
-
20
- index: ConfigurationSchema('TabixIndex', {
21
- /**
22
- * #slot index.indexType
23
- */
24
- indexType: {
25
- model: types.enumeration('IndexType', ['TBI', 'CSI']),
26
- type: 'stringEnum',
27
- defaultValue: 'TBI',
28
- },
29
- /**
30
- * #slot index.location
31
- */
32
- location: {
33
- type: 'fileLocation',
34
- defaultValue: {
35
- uri: '/path/to/my.bed.gz.tbi',
36
- locationType: 'UriLocation',
37
- },
38
- },
39
- }),
40
-
41
- /**
42
- * #slot
43
- */
44
- columnNames: {
45
- type: 'stringArray',
46
- description: 'List of column names',
47
- defaultValue: [],
48
- },
49
-
50
- /**
51
- * #slot
52
- */
53
- scoreColumn: {
54
- type: 'string',
55
- description: 'The column to use as a "score" attribute',
56
- defaultValue: '',
57
- },
58
-
59
- /**
60
- * #slot
61
- */
62
- autoSql: {
63
- type: 'string',
64
- description: 'The autoSql definition for the data fields in the file',
65
- defaultValue: '',
66
- },
67
- },
68
- { explicitlyTyped: true },
69
- )
70
-
71
- export default BedTabixAdapter
@@ -1,16 +0,0 @@
1
- import PluginManager from '@jbrowse/core/PluginManager'
2
- import AdapterType from '@jbrowse/core/pluggableElementTypes/AdapterType'
3
-
4
- import configSchema from './configSchema'
5
-
6
- export default (pluginManager: PluginManager) => {
7
- pluginManager.addAdapterType(
8
- () =>
9
- new AdapterType({
10
- name: 'BedTabixAdapter',
11
- displayName: 'BED tabix adapter',
12
- configSchema,
13
- getAdapterClass: () => import('./BedTabixAdapter').then(r => r.default),
14
- }),
15
- )
16
- }