@jbrowse/plugin-gff3 3.2.0 → 3.4.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.
@@ -15,6 +15,5 @@ export default class Gff3Adapter extends BaseFeatureDataAdapter {
15
15
  getRefNames(opts?: BaseOptions): Promise<string[]>;
16
16
  getHeader(opts?: BaseOptions): Promise<string>;
17
17
  getFeatures(query: NoAssemblyRegion, opts?: BaseOptions): import("rxjs").Observable<Feature>;
18
- freeResources(): void;
19
18
  }
20
19
  export {};
@@ -18,7 +18,7 @@ class Gff3Adapter extends BaseAdapter_1.BaseFeatureDataAdapter {
18
18
  }
19
19
  async loadDataP(opts) {
20
20
  const { statusCallback = () => { } } = opts || {};
21
- const buffer = await (0, util_1.fetchAndMaybeUnzip)((0, io_1.openLocation)(this.getConf('gffLocation'), this.pluginManager));
21
+ const buffer = await (0, util_1.fetchAndMaybeUnzip)((0, io_1.openLocation)(this.getConf('gffLocation'), this.pluginManager), opts);
22
22
  const headerLines = [];
23
23
  const featureMap = {};
24
24
  const decoder = new TextDecoder('utf8');
@@ -109,6 +109,5 @@ class Gff3Adapter extends BaseAdapter_1.BaseFeatureDataAdapter {
109
109
  }
110
110
  }, opts.stopToken);
111
111
  }
112
- freeResources() { }
113
112
  }
114
113
  exports.default = Gff3Adapter;
@@ -19,5 +19,4 @@ export default class Gff3TabixAdapter extends BaseFeatureDataAdapter {
19
19
  getFeatures(query: Region, opts?: BaseOptions): import("rxjs").Observable<Feature>;
20
20
  private getFeaturesHelper;
21
21
  private parseLine;
22
- freeResources(): void;
23
22
  }
@@ -17,11 +17,7 @@ class Gff3TabixAdapter extends BaseAdapter_1.BaseFeatureDataAdapter {
17
17
  const gffGzLocation = this.getConf('gffGzLocation');
18
18
  const indexType = this.getConf(['index', 'indexType']);
19
19
  const loc = this.getConf(['index', 'location']);
20
- const dontRedispatch = this.getConf('dontRedispatch') || [
21
- 'chromosome',
22
- 'contig',
23
- 'region',
24
- ];
20
+ const dontRedispatch = this.getConf('dontRedispatch');
25
21
  const gff = new tabix_1.TabixIndexedFile({
26
22
  filehandle: (0, io_1.openLocation)(gffGzLocation, this.pluginManager),
27
23
  csiFilehandle: indexType === 'CSI' ? (0, io_1.openLocation)(loc, this.pluginManager) : undefined,
@@ -131,6 +127,5 @@ class Gff3TabixAdapter extends BaseAdapter_1.BaseFeatureDataAdapter {
131
127
  fields,
132
128
  };
133
129
  }
134
- freeResources() { }
135
130
  }
136
131
  exports.default = Gff3TabixAdapter;
@@ -41,7 +41,7 @@ const Gff3TabixAdapter = (0, configuration_1.ConfigurationSchema)('Gff3TabixAdap
41
41
  },
42
42
  index: {
43
43
  location: {
44
- uri: snap.uri,
44
+ uri: `${snap.uri}.tbi`,
45
45
  baseUri: snap.baseUri,
46
46
  },
47
47
  },
@@ -15,6 +15,5 @@ export default class Gff3Adapter extends BaseFeatureDataAdapter {
15
15
  getRefNames(opts?: BaseOptions): Promise<string[]>;
16
16
  getHeader(opts?: BaseOptions): Promise<string>;
17
17
  getFeatures(query: NoAssemblyRegion, opts?: BaseOptions): import("rxjs").Observable<Feature>;
18
- freeResources(): void;
19
18
  }
20
19
  export {};
@@ -13,7 +13,7 @@ export default class Gff3Adapter extends BaseFeatureDataAdapter {
13
13
  }
14
14
  async loadDataP(opts) {
15
15
  const { statusCallback = () => { } } = opts || {};
16
- const buffer = await fetchAndMaybeUnzip(openLocation(this.getConf('gffLocation'), this.pluginManager));
16
+ const buffer = await fetchAndMaybeUnzip(openLocation(this.getConf('gffLocation'), this.pluginManager), opts);
17
17
  const headerLines = [];
18
18
  const featureMap = {};
19
19
  const decoder = new TextDecoder('utf8');
@@ -104,5 +104,4 @@ export default class Gff3Adapter extends BaseFeatureDataAdapter {
104
104
  }
105
105
  }, opts.stopToken);
106
106
  }
107
- freeResources() { }
108
107
  }
@@ -19,5 +19,4 @@ export default class Gff3TabixAdapter extends BaseFeatureDataAdapter {
19
19
  getFeatures(query: Region, opts?: BaseOptions): import("rxjs").Observable<Feature>;
20
20
  private getFeaturesHelper;
21
21
  private parseLine;
22
- freeResources(): void;
23
22
  }
@@ -12,11 +12,7 @@ export default class Gff3TabixAdapter extends BaseFeatureDataAdapter {
12
12
  const gffGzLocation = this.getConf('gffGzLocation');
13
13
  const indexType = this.getConf(['index', 'indexType']);
14
14
  const loc = this.getConf(['index', 'location']);
15
- const dontRedispatch = this.getConf('dontRedispatch') || [
16
- 'chromosome',
17
- 'contig',
18
- 'region',
19
- ];
15
+ const dontRedispatch = this.getConf('dontRedispatch');
20
16
  const gff = new TabixIndexedFile({
21
17
  filehandle: openLocation(gffGzLocation, this.pluginManager),
22
18
  csiFilehandle: indexType === 'CSI' ? openLocation(loc, this.pluginManager) : undefined,
@@ -126,5 +122,4 @@ export default class Gff3TabixAdapter extends BaseFeatureDataAdapter {
126
122
  fields,
127
123
  };
128
124
  }
129
- freeResources() { }
130
125
  }
@@ -39,7 +39,7 @@ const Gff3TabixAdapter = ConfigurationSchema('Gff3TabixAdapter', {
39
39
  },
40
40
  index: {
41
41
  location: {
42
- uri: snap.uri,
42
+ uri: `${snap.uri}.tbi`,
43
43
  baseUri: snap.baseUri,
44
44
  },
45
45
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jbrowse/plugin-gff3",
3
- "version": "3.2.0",
3
+ "version": "3.4.0",
4
4
  "description": "JBrowse 2 gff3.",
5
5
  "keywords": [
6
6
  "jbrowse",
@@ -37,11 +37,11 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "@flatten-js/interval-tree": "^1.0.15",
40
- "@gmod/bgzf-filehandle": "^2.0.1",
41
- "@gmod/tabix": "^2.0.0",
42
- "@jbrowse/core": "^3.2.0",
43
- "@jbrowse/plugin-linear-genome-view": "^3.2.0",
44
- "@mui/material": "^6.0.0",
40
+ "@gmod/bgzf-filehandle": "^3.0.2",
41
+ "@gmod/tabix": "^3.0.1",
42
+ "@jbrowse/core": "^3.4.0",
43
+ "@jbrowse/plugin-linear-genome-view": "^3.4.0",
44
+ "@mui/material": "^7.0.0",
45
45
  "gff-nostream": "^1.3.3",
46
46
  "mobx": "^6.0.0",
47
47
  "mobx-state-tree": "^5.0.0",
@@ -53,5 +53,5 @@
53
53
  "distModule": "esm/index.js",
54
54
  "srcModule": "src/index.ts",
55
55
  "module": "esm/index.js",
56
- "gitHead": "c750e3f56706a490c19ba75abd807fec5e38aebf"
56
+ "gitHead": "a9f1ac35fc2dd810bae92cdaf1fc19995bee4413"
57
57
  }