@jbrowse/plugin-bed 2.3.2 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jbrowse/plugin-bed",
3
- "version": "2.3.2",
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": "^2.0.3",
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": "^6.0.0"
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": "467d973535bb7b2664e9f66311fb0dc21c1ce5ba"
59
+ "gitHead": "283e0387ccd5acc9f092cf00804d1fcac212e68d"
60
60
  }
@@ -1,4 +1,5 @@
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
 
@@ -21,7 +22,7 @@ test('adapter can fetch features from volvox-bed12.bed', 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()).toPromise()
25
+ const featuresArray = await firstValueFrom(features.pipe(toArray()))
25
26
  const featuresJsonArray = featuresArray.map(f => f.toJSON())
26
27
  expect(featuresJsonArray.slice(0, 10)).toMatchSnapshot()
27
28
  })
@@ -45,7 +46,7 @@ test('adapter can fetch features from volvox.sort.bed simple bed3', async () =>
45
46
  expect(await adapter.hasDataForRefName('contigA')).toBe(true)
46
47
  expect(await adapter.hasDataForRefName('ctgB')).toBe(false)
47
48
 
48
- const featuresArray = await features.pipe(toArray()).toPromise()
49
+ const featuresArray = await firstValueFrom(features.pipe(toArray()))
49
50
  const featuresJsonArray = featuresArray.map(f => f.toJSON())
50
51
  expect(featuresJsonArray.slice(0, 10)).toMatchSnapshot()
51
52
  })
@@ -110,7 +111,7 @@ test('adapter can fetch features bed with autosql', async () => {
110
111
  expect(await adapter.hasDataForRefName('ctgA')).toBe(true)
111
112
  expect(await adapter.hasDataForRefName('ctgB')).toBe(false)
112
113
 
113
- const featuresArray = await features.pipe(toArray()).toPromise()
114
+ const featuresArray = await firstValueFrom(features.pipe(toArray()))
114
115
  const featuresJsonArray = featuresArray.map(f => f.toJSON())
115
116
  expect(featuresJsonArray.slice(0, 10)).toMatchSnapshot()
116
117
  })
@@ -134,7 +135,7 @@ test('adapter can fetch bed with header', async () => {
134
135
  expect(await adapter.hasDataForRefName('contigA')).toBe(true)
135
136
  expect(await adapter.hasDataForRefName('ctgB')).toBe(false)
136
137
 
137
- const featuresArray = await features.pipe(toArray()).toPromise()
138
+ const featuresArray = await firstValueFrom(features.pipe(toArray()))
138
139
  const featuresJsonArray = featuresArray.map(f => f.toJSON())
139
140
  expect(featuresJsonArray.slice(0, 10)).toMatchSnapshot()
140
141
  })
@@ -159,7 +160,7 @@ test('adapter can use gwas header', async () => {
159
160
  assemblyName: 'hg19',
160
161
  })
161
162
 
162
- const featuresArray = await features.pipe(toArray()).toPromise()
163
+ const featuresArray = await firstValueFrom(features.pipe(toArray()))
163
164
  const featuresJsonArray = featuresArray.map(f => f.toJSON())
164
165
  expect(featuresJsonArray.slice(0, 10)).toMatchSnapshot()
165
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()).toPromise()
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()).toPromise()
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()).toPromise()
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()).toPromise()
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()).toPromise()
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()).toPromise()
25
+ const featuresArray = await firstValueFrom(features.pipe(toArray()))
25
26
  const featuresJsonArray = featuresArray.map(f => f.toJSON())
26
27
  expect(featuresJsonArray).toMatchSnapshot()
27
28
  })
@@ -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()