@jbrowse/plugin-gtf 3.0.5 → 3.1.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.
@@ -5,11 +5,27 @@ function x() { }
5
5
  const GtfAdapter = (0, configuration_1.ConfigurationSchema)('GtfAdapter', {
6
6
  gtfLocation: {
7
7
  type: 'fileLocation',
8
- defaultValue: { uri: '/path/to/my.gtf', locationType: 'UriLocation' },
8
+ defaultValue: {
9
+ uri: '/path/to/my.gtf',
10
+ locationType: 'UriLocation',
11
+ },
9
12
  },
10
13
  aggregateField: {
11
14
  type: 'string',
12
15
  defaultValue: 'gene_name',
13
16
  },
14
- }, { explicitlyTyped: true });
17
+ }, {
18
+ explicitlyTyped: true,
19
+ preProcessSnapshot: snap => {
20
+ return snap.uri
21
+ ? {
22
+ ...snap,
23
+ gtfLocation: {
24
+ uri: snap.uri,
25
+ baseUri: snap.baseUri,
26
+ },
27
+ }
28
+ : snap;
29
+ },
30
+ });
15
31
  exports.default = GtfAdapter;
@@ -3,11 +3,27 @@ function x() { }
3
3
  const GtfAdapter = ConfigurationSchema('GtfAdapter', {
4
4
  gtfLocation: {
5
5
  type: 'fileLocation',
6
- defaultValue: { uri: '/path/to/my.gtf', locationType: 'UriLocation' },
6
+ defaultValue: {
7
+ uri: '/path/to/my.gtf',
8
+ locationType: 'UriLocation',
9
+ },
7
10
  },
8
11
  aggregateField: {
9
12
  type: 'string',
10
13
  defaultValue: 'gene_name',
11
14
  },
12
- }, { explicitlyTyped: true });
15
+ }, {
16
+ explicitlyTyped: true,
17
+ preProcessSnapshot: snap => {
18
+ return snap.uri
19
+ ? {
20
+ ...snap,
21
+ gtfLocation: {
22
+ uri: snap.uri,
23
+ baseUri: snap.baseUri,
24
+ },
25
+ }
26
+ : snap;
27
+ },
28
+ });
13
29
  export default GtfAdapter;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jbrowse/plugin-gtf",
3
- "version": "3.0.5",
3
+ "version": "3.1.0",
4
4
  "description": "JBrowse 2 gtf feature adapter",
5
5
  "keywords": [
6
6
  "jbrowse",
@@ -38,8 +38,8 @@
38
38
  "dependencies": {
39
39
  "@flatten-js/interval-tree": "^1.0.15",
40
40
  "@gmod/bgzf-filehandle": "^2.0.1",
41
- "@jbrowse/core": "^3.0.5",
42
- "@jbrowse/plugin-linear-genome-view": "^3.0.5",
41
+ "@jbrowse/core": "^3.1.0",
42
+ "@jbrowse/plugin-linear-genome-view": "^3.1.0",
43
43
  "@mui/material": "^6.0.0",
44
44
  "gtf-nostream": "^1.0.0",
45
45
  "mobx": "^6.0.0",
@@ -56,5 +56,5 @@
56
56
  "distModule": "esm/index.js",
57
57
  "srcModule": "src/index.ts",
58
58
  "module": "esm/index.js",
59
- "gitHead": "a03749efe19e51609922272b845a331897346789"
59
+ "gitHead": "91492049ddea0aed90eb24d3c066c2d9f5a6b189"
60
60
  }