@jbrowse/plugin-bed 2.3.1 → 2.3.3
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/package.json +4 -4
- package/src/BedAdapter/BedAdapter.test.ts +6 -10
- package/src/BedTabixAdapter/BedTabixAdapter.test.ts +6 -5
- package/src/BigBedAdapter/BigBedAdapter.test.ts +2 -1
- package/src/__snapshots__/{index.test.js.snap → index.test.ts.snap} +0 -0
- package/src/{index.test.js → index.test.ts} +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/plugin-bed",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.3",
|
|
4
4
|
"description": "JBrowse 2 bed adapters, tracks, etc.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@flatten-js/interval-tree": "^1.0.15",
|
|
41
|
-
"@gmod/bbi": "^
|
|
41
|
+
"@gmod/bbi": "^3.0.0",
|
|
42
42
|
"@gmod/bed": "^2.1.2",
|
|
43
43
|
"@gmod/bgzf-filehandle": "^1.4.3",
|
|
44
44
|
"@gmod/tabix": "^1.5.2"
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"mobx": "^6.0.0",
|
|
49
49
|
"mobx-react": "^7.0.0",
|
|
50
50
|
"mobx-state-tree": "^5.0.0",
|
|
51
|
-
"rxjs": "^
|
|
51
|
+
"rxjs": "^7.0.0"
|
|
52
52
|
},
|
|
53
53
|
"publishConfig": {
|
|
54
54
|
"access": "public"
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"distModule": "esm/index.js",
|
|
57
57
|
"srcModule": "src/index.ts",
|
|
58
58
|
"module": "esm/index.js",
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "283e0387ccd5acc9f092cf00804d1fcac212e68d"
|
|
60
60
|
}
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { toArray } from 'rxjs/operators'
|
|
2
|
+
import { firstValueFrom } from 'rxjs'
|
|
2
3
|
import BedAdapter from './BedAdapter'
|
|
3
4
|
import MyConfigSchema from './configSchema'
|
|
4
5
|
|
|
5
|
-
import { TextDecoder } from 'web-encoding'
|
|
6
|
-
if (!window.TextDecoder) {
|
|
7
|
-
window.TextDecoder = TextDecoder
|
|
8
|
-
}
|
|
9
|
-
|
|
10
6
|
test('adapter can fetch features from volvox-bed12.bed', async () => {
|
|
11
7
|
const adapter = new BedAdapter(
|
|
12
8
|
MyConfigSchema.create({
|
|
@@ -26,7 +22,7 @@ test('adapter can fetch features from volvox-bed12.bed', async () => {
|
|
|
26
22
|
expect(await adapter.hasDataForRefName('ctgA')).toBe(true)
|
|
27
23
|
expect(await adapter.hasDataForRefName('ctgB')).toBe(false)
|
|
28
24
|
|
|
29
|
-
const featuresArray = await features.pipe(toArray())
|
|
25
|
+
const featuresArray = await firstValueFrom(features.pipe(toArray()))
|
|
30
26
|
const featuresJsonArray = featuresArray.map(f => f.toJSON())
|
|
31
27
|
expect(featuresJsonArray.slice(0, 10)).toMatchSnapshot()
|
|
32
28
|
})
|
|
@@ -50,7 +46,7 @@ test('adapter can fetch features from volvox.sort.bed simple bed3', async () =>
|
|
|
50
46
|
expect(await adapter.hasDataForRefName('contigA')).toBe(true)
|
|
51
47
|
expect(await adapter.hasDataForRefName('ctgB')).toBe(false)
|
|
52
48
|
|
|
53
|
-
const featuresArray = await features.pipe(toArray())
|
|
49
|
+
const featuresArray = await firstValueFrom(features.pipe(toArray()))
|
|
54
50
|
const featuresJsonArray = featuresArray.map(f => f.toJSON())
|
|
55
51
|
expect(featuresJsonArray.slice(0, 10)).toMatchSnapshot()
|
|
56
52
|
})
|
|
@@ -115,7 +111,7 @@ test('adapter can fetch features bed with autosql', async () => {
|
|
|
115
111
|
expect(await adapter.hasDataForRefName('ctgA')).toBe(true)
|
|
116
112
|
expect(await adapter.hasDataForRefName('ctgB')).toBe(false)
|
|
117
113
|
|
|
118
|
-
const featuresArray = await features.pipe(toArray())
|
|
114
|
+
const featuresArray = await firstValueFrom(features.pipe(toArray()))
|
|
119
115
|
const featuresJsonArray = featuresArray.map(f => f.toJSON())
|
|
120
116
|
expect(featuresJsonArray.slice(0, 10)).toMatchSnapshot()
|
|
121
117
|
})
|
|
@@ -139,7 +135,7 @@ test('adapter can fetch bed with header', async () => {
|
|
|
139
135
|
expect(await adapter.hasDataForRefName('contigA')).toBe(true)
|
|
140
136
|
expect(await adapter.hasDataForRefName('ctgB')).toBe(false)
|
|
141
137
|
|
|
142
|
-
const featuresArray = await features.pipe(toArray())
|
|
138
|
+
const featuresArray = await firstValueFrom(features.pipe(toArray()))
|
|
143
139
|
const featuresJsonArray = featuresArray.map(f => f.toJSON())
|
|
144
140
|
expect(featuresJsonArray.slice(0, 10)).toMatchSnapshot()
|
|
145
141
|
})
|
|
@@ -164,7 +160,7 @@ test('adapter can use gwas header', async () => {
|
|
|
164
160
|
assemblyName: 'hg19',
|
|
165
161
|
})
|
|
166
162
|
|
|
167
|
-
const featuresArray = await features.pipe(toArray())
|
|
163
|
+
const featuresArray = await firstValueFrom(features.pipe(toArray()))
|
|
168
164
|
const featuresJsonArray = featuresArray.map(f => f.toJSON())
|
|
169
165
|
expect(featuresJsonArray.slice(0, 10)).toMatchSnapshot()
|
|
170
166
|
})
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { toArray } from 'rxjs/operators'
|
|
2
|
+
import { firstValueFrom } from 'rxjs'
|
|
2
3
|
import BedTabixAdapter from './BedTabixAdapter'
|
|
3
4
|
import MyConfigSchema from './configSchema'
|
|
4
5
|
|
|
@@ -27,7 +28,7 @@ test('adapter can fetch features from volvox-bed12.bed.gz', async () => {
|
|
|
27
28
|
expect(await adapter.hasDataForRefName('ctgA')).toBe(true)
|
|
28
29
|
expect(await adapter.hasDataForRefName('ctgB')).toBe(false)
|
|
29
30
|
|
|
30
|
-
const featuresArray = await features.pipe(toArray())
|
|
31
|
+
const featuresArray = await firstValueFrom(features.pipe(toArray()))
|
|
31
32
|
const featuresJsonArray = featuresArray.map(f => f.toJSON())
|
|
32
33
|
expect(featuresJsonArray.slice(0, 10)).toMatchSnapshot()
|
|
33
34
|
})
|
|
@@ -57,7 +58,7 @@ test('adapter can fetch features from volvox.sort.bed.gz simple bed3', async ()
|
|
|
57
58
|
expect(await adapter.hasDataForRefName('contigA')).toBe(true)
|
|
58
59
|
expect(await adapter.hasDataForRefName('ctgB')).toBe(false)
|
|
59
60
|
|
|
60
|
-
const featuresArray = await features.pipe(toArray())
|
|
61
|
+
const featuresArray = await firstValueFrom(features.pipe(toArray()))
|
|
61
62
|
const featuresJsonArray = featuresArray.map(f => f.toJSON())
|
|
62
63
|
expect(featuresJsonArray.slice(0, 10)).toMatchSnapshot()
|
|
63
64
|
})
|
|
@@ -127,7 +128,7 @@ test('adapter can fetch features bed with autosql', async () => {
|
|
|
127
128
|
expect(await adapter.hasDataForRefName('ctgA')).toBe(true)
|
|
128
129
|
expect(await adapter.hasDataForRefName('ctgB')).toBe(false)
|
|
129
130
|
|
|
130
|
-
const featuresArray = await features.pipe(toArray())
|
|
131
|
+
const featuresArray = await firstValueFrom(features.pipe(toArray()))
|
|
131
132
|
const featuresJsonArray = featuresArray.map(f => f.toJSON())
|
|
132
133
|
expect(featuresJsonArray.slice(0, 10)).toMatchSnapshot()
|
|
133
134
|
})
|
|
@@ -161,7 +162,7 @@ test('adapter can fetch bed with header', async () => {
|
|
|
161
162
|
expect(await adapter.hasDataForRefName('contigA')).toBe(true)
|
|
162
163
|
expect(await adapter.hasDataForRefName('ctgB')).toBe(false)
|
|
163
164
|
|
|
164
|
-
const featuresArray = await features.pipe(toArray())
|
|
165
|
+
const featuresArray = await firstValueFrom(features.pipe(toArray()))
|
|
165
166
|
const featuresJsonArray = featuresArray.map(f => f.toJSON())
|
|
166
167
|
expect(featuresJsonArray.slice(0, 10)).toMatchSnapshot()
|
|
167
168
|
})
|
|
@@ -189,7 +190,7 @@ test('adapter can use gwas header', async () => {
|
|
|
189
190
|
assemblyName: 'hg19',
|
|
190
191
|
})
|
|
191
192
|
|
|
192
|
-
const featuresArray = await features.pipe(toArray())
|
|
193
|
+
const featuresArray = await firstValueFrom(features.pipe(toArray()))
|
|
193
194
|
const featuresJsonArray = featuresArray.map(f => f.toJSON())
|
|
194
195
|
expect(featuresJsonArray.slice(0, 10)).toMatchSnapshot()
|
|
195
196
|
})
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { toArray } from 'rxjs/operators'
|
|
2
|
+
import { firstValueFrom } from 'rxjs'
|
|
2
3
|
import BigBedAdapter from './BigBedAdapter'
|
|
3
4
|
import configSchema from './configSchema'
|
|
4
5
|
|
|
@@ -21,7 +22,7 @@ test('adapter can fetch features from volvox.bb', async () => {
|
|
|
21
22
|
expect(await adapter.hasDataForRefName('ctgA')).toBe(true)
|
|
22
23
|
expect(await adapter.hasDataForRefName('ctgB')).toBe(false)
|
|
23
24
|
|
|
24
|
-
const featuresArray = await features.pipe(toArray())
|
|
25
|
+
const featuresArray = await firstValueFrom(features.pipe(toArray()))
|
|
25
26
|
const featuresJsonArray = featuresArray.map(f => f.toJSON())
|
|
26
27
|
expect(featuresJsonArray).toMatchSnapshot()
|
|
27
28
|
})
|
|
File without changes
|
|
@@ -3,7 +3,6 @@ import { getSnapshot } from 'mobx-state-tree'
|
|
|
3
3
|
import ThisPlugin from '.'
|
|
4
4
|
|
|
5
5
|
test('plugin in a stock JBrowse', () => {
|
|
6
|
-
console.warn = jest.fn()
|
|
7
6
|
const pluginManager = new PluginManager([new ThisPlugin()])
|
|
8
7
|
pluginManager.createPluggableElements()
|
|
9
8
|
pluginManager.configure()
|