@jbrowse/plugin-comparative-adapters 3.5.0 → 3.6.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.
@@ -13,7 +13,7 @@ export default class PAFAdapter extends BaseFeatureDataAdapter {
13
13
  static capabilities: string[];
14
14
  protected pif: TabixIndexedFile;
15
15
  constructor(config: AnyConfigurationModel, getSubAdapter?: getSubAdapterType, pluginManager?: PluginManager);
16
- getHeader(): Promise<string>;
16
+ getHeader(opts?: BaseOptions): Promise<string>;
17
17
  getAssemblyNames(): string[];
18
18
  hasDataForRefName(): Promise<boolean>;
19
19
  getRefNames(opts?: BaseOptions & {
@@ -24,18 +24,18 @@ class PAFAdapter extends BaseAdapter_1.BaseFeatureDataAdapter {
24
24
  chunkCacheSize: 50 * 2 ** 20,
25
25
  });
26
26
  }
27
- async getHeader() {
28
- return this.pif.getHeader();
27
+ async getHeader(opts) {
28
+ const { statusCallback = () => { } } = opts || {};
29
+ return (0, util_1.updateStatus)('Downloading header', statusCallback, () => this.pif.getHeader());
29
30
  }
30
31
  getAssemblyNames() {
31
32
  const assemblyNames = this.getConf('assemblyNames');
32
- if (assemblyNames.length === 0) {
33
- return [
33
+ return assemblyNames.length === 0
34
+ ? [
34
35
  this.getConf('queryAssembly'),
35
36
  this.getConf('targetAssembly'),
36
- ];
37
- }
38
- return assemblyNames;
37
+ ]
38
+ : assemblyNames;
39
39
  }
40
40
  async hasDataForRefName() {
41
41
  return true;
@@ -13,7 +13,7 @@ export default class PAFAdapter extends BaseFeatureDataAdapter {
13
13
  static capabilities: string[];
14
14
  protected pif: TabixIndexedFile;
15
15
  constructor(config: AnyConfigurationModel, getSubAdapter?: getSubAdapterType, pluginManager?: PluginManager);
16
- getHeader(): Promise<string>;
16
+ getHeader(opts?: BaseOptions): Promise<string>;
17
17
  getAssemblyNames(): string[];
18
18
  hasDataForRefName(): Promise<boolean>;
19
19
  getRefNames(opts?: BaseOptions & {
@@ -19,18 +19,18 @@ class PAFAdapter extends BaseFeatureDataAdapter {
19
19
  chunkCacheSize: 50 * 2 ** 20,
20
20
  });
21
21
  }
22
- async getHeader() {
23
- return this.pif.getHeader();
22
+ async getHeader(opts) {
23
+ const { statusCallback = () => { } } = opts || {};
24
+ return updateStatus('Downloading header', statusCallback, () => this.pif.getHeader());
24
25
  }
25
26
  getAssemblyNames() {
26
27
  const assemblyNames = this.getConf('assemblyNames');
27
- if (assemblyNames.length === 0) {
28
- return [
28
+ return assemblyNames.length === 0
29
+ ? [
29
30
  this.getConf('queryAssembly'),
30
31
  this.getConf('targetAssembly'),
31
- ];
32
- }
33
- return assemblyNames;
32
+ ]
33
+ : assemblyNames;
34
34
  }
35
35
  async hasDataForRefName() {
36
36
  return true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jbrowse/plugin-comparative-adapters",
3
- "version": "3.5.0",
3
+ "version": "3.6.0",
4
4
  "description": "JBrowse 2 comparative adapters",
5
5
  "keywords": [
6
6
  "jbrowse",
@@ -38,9 +38,9 @@
38
38
  "dependencies": {
39
39
  "@gmod/bgzf-filehandle": "^4.0.0",
40
40
  "@gmod/tabix": "^3.0.1",
41
- "@jbrowse/core": "^3.5.0",
42
- "@jbrowse/plugin-alignments": "^3.5.0",
43
- "@jbrowse/plugin-linear-genome-view": "^3.5.0",
41
+ "@jbrowse/core": "^3.6.0",
42
+ "@jbrowse/plugin-alignments": "^3.6.0",
43
+ "@jbrowse/plugin-linear-genome-view": "^3.6.0",
44
44
  "@mui/material": "^7.0.0",
45
45
  "generic-filehandle2": "^2.0.1",
46
46
  "mobx": "^6.0.0",
@@ -58,5 +58,5 @@
58
58
  "publishConfig": {
59
59
  "access": "public"
60
60
  },
61
- "gitHead": "8a8aa0aab2229dece106a5715a767e649e2fe92b"
61
+ "gitHead": "133a68815ab348d156c18d83cffc997356c3cfbb"
62
62
  }