@jbrowse/plugin-hic 3.0.4 → 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.
@@ -15,5 +15,18 @@ const HicAdapter = (0, configuration_1.ConfigurationSchema)('HicAdapter', {
15
15
  defaultValue: 1,
16
16
  description: 'Initial resolution multiplier',
17
17
  },
18
- }, { explicitlyTyped: true });
18
+ }, {
19
+ explicitlyTyped: true,
20
+ preProcessSnapshot: snap => {
21
+ return snap.uri
22
+ ? {
23
+ ...snap,
24
+ hicLocation: {
25
+ uri: snap.uri,
26
+ baseUri: snap.baseUri,
27
+ },
28
+ }
29
+ : snap;
30
+ },
31
+ });
19
32
  exports.default = HicAdapter;
@@ -13,5 +13,18 @@ const HicAdapter = ConfigurationSchema('HicAdapter', {
13
13
  defaultValue: 1,
14
14
  description: 'Initial resolution multiplier',
15
15
  },
16
- }, { explicitlyTyped: true });
16
+ }, {
17
+ explicitlyTyped: true,
18
+ preProcessSnapshot: snap => {
19
+ return snap.uri
20
+ ? {
21
+ ...snap,
22
+ hicLocation: {
23
+ uri: snap.uri,
24
+ baseUri: snap.baseUri,
25
+ },
26
+ }
27
+ : snap;
28
+ },
29
+ });
17
30
  export default HicAdapter;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jbrowse/plugin-hic",
3
- "version": "3.0.4",
3
+ "version": "3.1.0",
4
4
  "description": "JBrowse 2 hic adapters, tracks, etc.",
5
5
  "keywords": [
6
6
  "jbrowse",
@@ -36,8 +36,8 @@
36
36
  "clean": "rimraf dist esm *.tsbuildinfo"
37
37
  },
38
38
  "dependencies": {
39
- "@jbrowse/core": "^3.0.4",
40
- "@jbrowse/plugin-linear-genome-view": "^3.0.4",
39
+ "@jbrowse/core": "^3.1.0",
40
+ "@jbrowse/plugin-linear-genome-view": "^3.1.0",
41
41
  "@mui/material": "^6.0.0",
42
42
  "@mui/x-charts-vendor": "^7.12.0",
43
43
  "hic-straw": "^2.0.3",
@@ -55,5 +55,5 @@
55
55
  "publishConfig": {
56
56
  "access": "public"
57
57
  },
58
- "gitHead": "61e6d26f83acbf58a946c2add3415bc46b878df9"
58
+ "gitHead": "91492049ddea0aed90eb24d3c066c2d9f5a6b189"
59
59
  }