@jbrowse/plugin-legacy-jbrowse 2.1.6 → 2.2.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.
- package/dist/JBrowse1Connection/configSchema.d.ts +2 -2
- package/dist/JBrowse1Connection/configSchema.js +18 -2
- package/dist/JBrowse1Connection/configSchema.js.map +1 -1
- package/dist/JBrowse1TextSeachAdapter/HttpMap.js +1 -1
- package/dist/JBrowse1TextSeachAdapter/configSchema.js +21 -2
- package/dist/JBrowse1TextSeachAdapter/configSchema.js.map +1 -1
- package/dist/NCListAdapter/NCListAdapter.d.ts +5 -3
- package/dist/NCListAdapter/NCListAdapter.js +5 -7
- package/dist/NCListAdapter/NCListAdapter.js.map +1 -1
- package/dist/NCListAdapter/configSchema.d.ts +2 -2
- package/dist/NCListAdapter/configSchema.js +12 -1
- package/dist/NCListAdapter/configSchema.js.map +1 -1
- package/esm/JBrowse1Connection/configSchema.d.ts +2 -2
- package/esm/JBrowse1Connection/configSchema.js +18 -2
- package/esm/JBrowse1Connection/configSchema.js.map +1 -1
- package/esm/JBrowse1TextSeachAdapter/HttpMap.js +1 -1
- package/esm/JBrowse1TextSeachAdapter/configSchema.js +21 -2
- package/esm/JBrowse1TextSeachAdapter/configSchema.js.map +1 -1
- package/esm/NCListAdapter/NCListAdapter.d.ts +5 -3
- package/esm/NCListAdapter/NCListAdapter.js +5 -7
- package/esm/NCListAdapter/NCListAdapter.js.map +1 -1
- package/esm/NCListAdapter/configSchema.d.ts +2 -2
- package/esm/NCListAdapter/configSchema.js +12 -1
- package/esm/NCListAdapter/configSchema.js.map +1 -1
- package/package.json +2 -2
- package/src/JBrowse1Connection/configSchema.ts +20 -2
- package/src/JBrowse1TextSeachAdapter/HttpMap.ts +1 -1
- package/src/JBrowse1TextSeachAdapter/configSchema.ts +22 -2
- package/src/NCListAdapter/NCListAdapter.ts +7 -10
- package/src/NCListAdapter/configSchema.ts +13 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
export default
|
|
1
|
+
declare const JBrowse1Connection: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
|
|
2
|
+
export default JBrowse1Connection;
|
|
@@ -2,7 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const models_1 = require("@jbrowse/core/pluggableElementTypes/models");
|
|
4
4
|
const configuration_1 = require("@jbrowse/core/configuration");
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* #config JBrowse1Connection
|
|
7
|
+
*/
|
|
8
|
+
function x() { } // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
9
|
+
const JBrowse1Connection = (0, configuration_1.ConfigurationSchema)('JBrowse1Connection', {
|
|
10
|
+
/**
|
|
11
|
+
* #slot
|
|
12
|
+
*/
|
|
6
13
|
dataDirLocation: {
|
|
7
14
|
type: 'fileLocation',
|
|
8
15
|
defaultValue: {
|
|
@@ -11,10 +18,19 @@ exports.default = (0, configuration_1.ConfigurationSchema)('JBrowse1Connection',
|
|
|
11
18
|
},
|
|
12
19
|
description: 'the location of the JBrowse 1 data directory, often something like http://mysite.com/jbrowse/data/',
|
|
13
20
|
},
|
|
21
|
+
/**
|
|
22
|
+
* #slot
|
|
23
|
+
*/
|
|
14
24
|
assemblyNames: {
|
|
15
25
|
description: 'name of the assembly the connection belongs to, should be a single entry',
|
|
16
26
|
type: 'stringArray',
|
|
17
27
|
defaultValue: [],
|
|
18
28
|
},
|
|
19
|
-
}, {
|
|
29
|
+
}, {
|
|
30
|
+
/**
|
|
31
|
+
* #baseConfiguration
|
|
32
|
+
*/
|
|
33
|
+
baseConfiguration: models_1.baseConnectionConfig,
|
|
34
|
+
});
|
|
35
|
+
exports.default = JBrowse1Connection;
|
|
20
36
|
//# sourceMappingURL=configSchema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configSchema.js","sourceRoot":"","sources":["../../src/JBrowse1Connection/configSchema.ts"],"names":[],"mappings":";;AAAA,uEAAiF;AACjF,+DAAiE;AAEjE,
|
|
1
|
+
{"version":3,"file":"configSchema.js","sourceRoot":"","sources":["../../src/JBrowse1Connection/configSchema.ts"],"names":[],"mappings":";;AAAA,uEAAiF;AACjF,+DAAiE;AAEjE;;GAEG;AACH,SAAS,CAAC,KAAI,CAAC,CAAC,wDAAwD;AAExE,MAAM,kBAAkB,GAAG,IAAA,mCAAmB,EAC5C,oBAAoB,EACpB;IACE;;OAEG;IACH,eAAe,EAAE;QACf,IAAI,EAAE,cAAc;QACpB,YAAY,EAAE;YACZ,GAAG,EAAE,iCAAiC;YACtC,YAAY,EAAE,aAAa;SAC5B;QACD,WAAW,EACT,oGAAoG;KACvG;IACD;;OAEG;IACH,aAAa,EAAE;QACb,WAAW,EACT,0EAA0E;QAC5E,IAAI,EAAE,aAAa;QACnB,YAAY,EAAE,EAAE;KACjB;CACF,EACD;IACE;;OAEG;IACH,iBAAiB,EAAE,6BAAoB;CACxC,CACF,CAAA;AAED,kBAAe,kBAAkB,CAAA"}
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
7
|
* Helper class allows reading names index generated in JBrowse1
|
|
8
8
|
* Adapted from https://github.com/GMOD/jbrowse/blob/master/src/JBrowse/Store/Hash.js
|
|
9
9
|
*/
|
|
@@ -1,22 +1,41 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const configuration_1 = require("@jbrowse/core/configuration");
|
|
4
|
+
/**
|
|
5
|
+
* #config JBrowse1TextSearchAdapter
|
|
6
|
+
* note: metadata about tracks and assemblies covered by text search adapter
|
|
7
|
+
*/
|
|
8
|
+
function x() { } // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
4
9
|
exports.default = (0, configuration_1.ConfigurationSchema)('JBrowse1TextSearchAdapter', {
|
|
5
|
-
|
|
10
|
+
/**
|
|
11
|
+
* #slot
|
|
12
|
+
*/
|
|
6
13
|
namesIndexLocation: {
|
|
7
14
|
type: 'fileLocation',
|
|
8
15
|
defaultValue: { uri: '/volvox/names', locationType: 'UriLocation' },
|
|
9
16
|
description: 'the location of the JBrowse1 names index data directory',
|
|
10
17
|
},
|
|
18
|
+
/**
|
|
19
|
+
* #slot
|
|
20
|
+
*/
|
|
11
21
|
tracks: {
|
|
12
22
|
type: 'stringArray',
|
|
13
23
|
defaultValue: [],
|
|
14
24
|
description: 'List of tracks covered by text search adapter',
|
|
15
25
|
},
|
|
26
|
+
/**
|
|
27
|
+
* #slot
|
|
28
|
+
*/
|
|
16
29
|
assemblyNames: {
|
|
17
30
|
type: 'stringArray',
|
|
18
31
|
defaultValue: [],
|
|
19
32
|
description: 'List of assemblies covered by text search adapter',
|
|
20
33
|
},
|
|
21
|
-
}, {
|
|
34
|
+
}, {
|
|
35
|
+
explicitlyTyped: true,
|
|
36
|
+
/**
|
|
37
|
+
* #identifier
|
|
38
|
+
*/
|
|
39
|
+
explicitIdentifier: 'textSearchAdapterId',
|
|
40
|
+
});
|
|
22
41
|
//# sourceMappingURL=configSchema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configSchema.js","sourceRoot":"","sources":["../../src/JBrowse1TextSeachAdapter/configSchema.ts"],"names":[],"mappings":";;AAAA,+DAAiE;AAEjE,kBAAe,IAAA,mCAAmB,EAChC,2BAA2B,EAC3B;IACE
|
|
1
|
+
{"version":3,"file":"configSchema.js","sourceRoot":"","sources":["../../src/JBrowse1TextSeachAdapter/configSchema.ts"],"names":[],"mappings":";;AAAA,+DAAiE;AAEjE;;;GAGG;AACH,SAAS,CAAC,KAAI,CAAC,CAAC,wDAAwD;AAExE,kBAAe,IAAA,mCAAmB,EAChC,2BAA2B,EAC3B;IACE;;OAEG;IACH,kBAAkB,EAAE;QAClB,IAAI,EAAE,cAAc;QACpB,YAAY,EAAE,EAAE,GAAG,EAAE,eAAe,EAAE,YAAY,EAAE,aAAa,EAAE;QACnE,WAAW,EAAE,yDAAyD;KACvE;IACD;;OAEG;IACH,MAAM,EAAE;QACN,IAAI,EAAE,aAAa;QACnB,YAAY,EAAE,EAAE;QAChB,WAAW,EAAE,+CAA+C;KAC7D;IACD;;OAEG;IACH,aAAa,EAAE;QACb,IAAI,EAAE,aAAa;QACnB,YAAY,EAAE,EAAE;QAChB,WAAW,EAAE,mDAAmD;KACjE;CACF,EACD;IACE,eAAe,EAAE,IAAI;IACrB;;OAEG;IACH,kBAAkB,EAAE,qBAAqB;CAC1C,CACF,CAAA"}
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { Region } from '@jbrowse/core/util/types';
|
|
2
2
|
import { BaseFeatureDataAdapter, BaseOptions } from '@jbrowse/core/data_adapters/BaseAdapter';
|
|
3
3
|
import { Feature } from '@jbrowse/core/util/simpleFeature';
|
|
4
|
-
import { Instance } from 'mobx-state-tree';
|
|
5
4
|
import NCListFeature from './NCListFeature';
|
|
6
|
-
import MyConfigSchema from './configSchema';
|
|
7
5
|
import PluginManager from '@jbrowse/core/PluginManager';
|
|
8
6
|
import { getSubAdapterType } from '@jbrowse/core/data_adapters/dataAdapterCache';
|
|
7
|
+
import { AnyConfigurationModel } from '@jbrowse/core/configuration';
|
|
9
8
|
export default class NCListAdapter extends BaseFeatureDataAdapter {
|
|
10
9
|
private nclist;
|
|
11
10
|
private configRefNames?;
|
|
12
|
-
constructor(config:
|
|
11
|
+
constructor(config: AnyConfigurationModel, getSubAdapter?: getSubAdapterType, pluginManager?: PluginManager);
|
|
13
12
|
/**
|
|
14
13
|
* Fetch features for a certain region. Use getFeaturesInRegion() if you also
|
|
15
14
|
* want to verify that the store has features for the given reference sequence
|
|
@@ -21,6 +20,9 @@ export default class NCListAdapter extends BaseFeatureDataAdapter {
|
|
|
21
20
|
getFeatures(region: Region, opts?: BaseOptions): import("rxjs").Observable<Feature>;
|
|
22
21
|
wrapFeature(ncFeature: any): NCListFeature;
|
|
23
22
|
hasDataForRefName(refName: string): Promise<boolean>;
|
|
23
|
+
/**
|
|
24
|
+
* NCList is unable to get list of ref names so returns empty
|
|
25
|
+
*/
|
|
24
26
|
getRefNames(): Promise<string[]>;
|
|
25
27
|
/**
|
|
26
28
|
* called to provide a hint that data tied to a certain region
|
|
@@ -8,13 +8,12 @@ const BaseAdapter_1 = require("@jbrowse/core/data_adapters/BaseAdapter");
|
|
|
8
8
|
const rxjs_1 = require("@jbrowse/core/util/rxjs");
|
|
9
9
|
const util_1 = require("@jbrowse/core/util");
|
|
10
10
|
const generic_filehandle_1 = require("generic-filehandle");
|
|
11
|
-
const configuration_1 = require("@jbrowse/core/configuration");
|
|
12
11
|
const NCListFeature_1 = __importDefault(require("./NCListFeature"));
|
|
13
12
|
class NCListAdapter extends BaseAdapter_1.BaseFeatureDataAdapter {
|
|
14
13
|
constructor(config, getSubAdapter, pluginManager) {
|
|
15
14
|
super(config, getSubAdapter, pluginManager);
|
|
16
|
-
const refNames =
|
|
17
|
-
const rootUrlTemplate =
|
|
15
|
+
const refNames = this.getConf('refNames');
|
|
16
|
+
const rootUrlTemplate = this.getConf('rootUrlTemplate');
|
|
18
17
|
this.configRefNames = refNames;
|
|
19
18
|
this.nclist = new nclist_1.default({
|
|
20
19
|
baseUrl: '',
|
|
@@ -50,12 +49,11 @@ class NCListAdapter extends BaseAdapter_1.BaseFeatureDataAdapter {
|
|
|
50
49
|
const root = await this.nclist.getDataRoot(refName);
|
|
51
50
|
return !!(root && root.stats && root.stats.featureCount);
|
|
52
51
|
}
|
|
53
|
-
|
|
52
|
+
/**
|
|
54
53
|
* NCList is unable to get list of ref names so returns empty
|
|
55
|
-
* @return Promise<string[]> of empty list
|
|
56
54
|
*/
|
|
57
|
-
getRefNames() {
|
|
58
|
-
return
|
|
55
|
+
async getRefNames() {
|
|
56
|
+
return this.configRefNames || [];
|
|
59
57
|
}
|
|
60
58
|
/**
|
|
61
59
|
* called to provide a hint that data tied to a certain region
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NCListAdapter.js","sourceRoot":"","sources":["../../src/NCListAdapter/NCListAdapter.ts"],"names":[],"mappings":";;;;;AAAA,0DAAsC;AAEtC,yEAGgD;AAEhD,kDAA0D;AAC1D,6CAAqD;AACrD,2DAA+C;
|
|
1
|
+
{"version":3,"file":"NCListAdapter.js","sourceRoot":"","sources":["../../src/NCListAdapter/NCListAdapter.ts"],"names":[],"mappings":";;;;;AAAA,0DAAsC;AAEtC,yEAGgD;AAEhD,kDAA0D;AAC1D,6CAAqD;AACrD,2DAA+C;AAC/C,oEAA2C;AAK3C,MAAqB,aAAc,SAAQ,oCAAsB;IAM/D,YACE,MAA6B,EAC7B,aAAiC,EACjC,aAA6B;QAE7B,KAAK,CAAC,MAAM,EAAE,aAAa,EAAE,aAAa,CAAC,CAAA;QAC3C,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAA;QACzC,MAAM,eAAe,GAAG,IAAI,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAA;QACvD,IAAI,CAAC,cAAc,GAAG,QAAQ,CAAA;QAE9B,IAAI,CAAC,MAAM,GAAG,IAAI,gBAAW,CAAC;YAC5B,OAAO,EAAE,EAAE;YACX,WAAW,EAAE,eAAe,CAAC,GAAG;YAChC,QAAQ,EAAE,CAAC,GAAW,EAAE,EAAE,CACxB,IAAI,+BAAU,CACZ,MAAM,CACJ,eAAe,CAAC,OAAO;gBACrB,CAAC,CAAC,IAAI,GAAG,CAAC,GAAG,EAAE,eAAe,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE;gBAClD,CAAC,CAAC,GAAG,CACR,CACF,CAAC,QAAQ,EAAE;SACf,CAAC,CAAA;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,WAAW,CAAC,MAAc,EAAE,OAAoB,EAAE;QAChD,OAAO,IAAA,uBAAgB,EAAU,KAAK,EAAC,QAAQ,EAAC,EAAE;YAChD,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,CAAA;YACvB,IAAI,KAAK,EAAE,MAAM,OAAO,IAAI,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,IAAI,CAAC,EAAE;gBACjE,IAAA,uBAAgB,EAAC,MAAM,CAAC,CAAA;gBACxB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAA;aACzC;YACD,QAAQ,CAAC,QAAQ,EAAE,CAAA;QACrB,CAAC,CAAC,CAAA;IACJ,CAAC;IAED,8DAA8D;IAC9D,WAAW,CAAC,SAAc;QACxB,OAAO,IAAI,uBAAa,CACtB,SAAS,EACT,SAAS,EACT,GAAG,IAAI,CAAC,EAAE,IAAI,SAAS,CAAC,EAAE,EAAE,EAAE,CAC/B,CAAA;IACH,CAAC;IAED,KAAK,CAAC,iBAAiB,CAAC,OAAe;QACrC,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,OAAO,CAAC,CAAA;QACnD,OAAO,CAAC,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,CAAA;IAC1D,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,WAAW;QACf,OAAO,IAAI,CAAC,cAAc,IAAI,EAAE,CAAA;IAClC,CAAC;IAED;;;;OAIG;IACH,aAAa,KAAI,CAAC;CACnB;AA5ED,gCA4EC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
export default
|
|
1
|
+
declare const NCListAdapter: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
|
|
2
|
+
export default NCListAdapter;
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const configuration_1 = require("@jbrowse/core/configuration");
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* #config NCListAdapter
|
|
6
|
+
*/
|
|
7
|
+
function x() { } // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
8
|
+
const NCListAdapter = (0, configuration_1.ConfigurationSchema)('NCListAdapter', {
|
|
9
|
+
/**
|
|
10
|
+
* #slot
|
|
11
|
+
*/
|
|
5
12
|
rootUrlTemplate: {
|
|
6
13
|
type: 'fileLocation',
|
|
7
14
|
defaultValue: {
|
|
@@ -9,10 +16,14 @@ exports.default = (0, configuration_1.ConfigurationSchema)('NCListAdapter', {
|
|
|
9
16
|
locationType: 'UriLocation',
|
|
10
17
|
},
|
|
11
18
|
},
|
|
19
|
+
/**
|
|
20
|
+
* #slot
|
|
21
|
+
*/
|
|
12
22
|
refNames: {
|
|
13
23
|
type: 'stringArray',
|
|
14
24
|
defaultValue: [],
|
|
15
25
|
description: 'List of refNames used by the NCList used for aliasing',
|
|
16
26
|
},
|
|
17
27
|
}, { explicitlyTyped: true });
|
|
28
|
+
exports.default = NCListAdapter;
|
|
18
29
|
//# sourceMappingURL=configSchema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configSchema.js","sourceRoot":"","sources":["../../src/NCListAdapter/configSchema.ts"],"names":[],"mappings":";;AAAA,+DAAiE;AAEjE,
|
|
1
|
+
{"version":3,"file":"configSchema.js","sourceRoot":"","sources":["../../src/NCListAdapter/configSchema.ts"],"names":[],"mappings":";;AAAA,+DAAiE;AAEjE;;GAEG;AACH,SAAS,CAAC,KAAI,CAAC,CAAC,wDAAwD;AAExE,MAAM,aAAa,GAAG,IAAA,mCAAmB,EACvC,eAAe,EACf;IACE;;OAEG;IACH,eAAe,EAAE;QACf,IAAI,EAAE,cAAc;QACpB,YAAY,EAAE;YACZ,GAAG,EAAE,qCAAqC;YAC1C,YAAY,EAAE,aAAa;SAC5B;KACF;IACD;;OAEG;IACH,QAAQ,EAAE;QACR,IAAI,EAAE,aAAa;QACnB,YAAY,EAAE,EAAE;QAChB,WAAW,EAAE,uDAAuD;KACrE;CACF,EACD,EAAE,eAAe,EAAE,IAAI,EAAE,CAC1B,CAAA;AACD,kBAAe,aAAa,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
export default
|
|
1
|
+
declare const JBrowse1Connection: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
|
|
2
|
+
export default JBrowse1Connection;
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { baseConnectionConfig } from '@jbrowse/core/pluggableElementTypes/models';
|
|
2
2
|
import { ConfigurationSchema } from '@jbrowse/core/configuration';
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* #config JBrowse1Connection
|
|
5
|
+
*/
|
|
6
|
+
function x() { } // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
7
|
+
const JBrowse1Connection = ConfigurationSchema('JBrowse1Connection', {
|
|
8
|
+
/**
|
|
9
|
+
* #slot
|
|
10
|
+
*/
|
|
4
11
|
dataDirLocation: {
|
|
5
12
|
type: 'fileLocation',
|
|
6
13
|
defaultValue: {
|
|
@@ -9,10 +16,19 @@ export default ConfigurationSchema('JBrowse1Connection', {
|
|
|
9
16
|
},
|
|
10
17
|
description: 'the location of the JBrowse 1 data directory, often something like http://mysite.com/jbrowse/data/',
|
|
11
18
|
},
|
|
19
|
+
/**
|
|
20
|
+
* #slot
|
|
21
|
+
*/
|
|
12
22
|
assemblyNames: {
|
|
13
23
|
description: 'name of the assembly the connection belongs to, should be a single entry',
|
|
14
24
|
type: 'stringArray',
|
|
15
25
|
defaultValue: [],
|
|
16
26
|
},
|
|
17
|
-
}, {
|
|
27
|
+
}, {
|
|
28
|
+
/**
|
|
29
|
+
* #baseConfiguration
|
|
30
|
+
*/
|
|
31
|
+
baseConfiguration: baseConnectionConfig,
|
|
32
|
+
});
|
|
33
|
+
export default JBrowse1Connection;
|
|
18
34
|
//# sourceMappingURL=configSchema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configSchema.js","sourceRoot":"","sources":["../../src/JBrowse1Connection/configSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAA;AACjF,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AAEjE,
|
|
1
|
+
{"version":3,"file":"configSchema.js","sourceRoot":"","sources":["../../src/JBrowse1Connection/configSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAA;AACjF,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AAEjE;;GAEG;AACH,SAAS,CAAC,KAAI,CAAC,CAAC,wDAAwD;AAExE,MAAM,kBAAkB,GAAG,mBAAmB,CAC5C,oBAAoB,EACpB;IACE;;OAEG;IACH,eAAe,EAAE;QACf,IAAI,EAAE,cAAc;QACpB,YAAY,EAAE;YACZ,GAAG,EAAE,iCAAiC;YACtC,YAAY,EAAE,aAAa;SAC5B;QACD,WAAW,EACT,oGAAoG;KACvG;IACD;;OAEG;IACH,aAAa,EAAE;QACb,WAAW,EACT,0EAA0E;QAC5E,IAAI,EAAE,aAAa;QACnB,YAAY,EAAE,EAAE;KACjB;CACF,EACD;IACE;;OAEG;IACH,iBAAiB,EAAE,oBAAoB;CACxC,CACF,CAAA;AAED,eAAe,kBAAkB,CAAA"}
|
|
@@ -1,20 +1,39 @@
|
|
|
1
1
|
import { ConfigurationSchema } from '@jbrowse/core/configuration';
|
|
2
|
+
/**
|
|
3
|
+
* #config JBrowse1TextSearchAdapter
|
|
4
|
+
* note: metadata about tracks and assemblies covered by text search adapter
|
|
5
|
+
*/
|
|
6
|
+
function x() { } // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
2
7
|
export default ConfigurationSchema('JBrowse1TextSearchAdapter', {
|
|
3
|
-
|
|
8
|
+
/**
|
|
9
|
+
* #slot
|
|
10
|
+
*/
|
|
4
11
|
namesIndexLocation: {
|
|
5
12
|
type: 'fileLocation',
|
|
6
13
|
defaultValue: { uri: '/volvox/names', locationType: 'UriLocation' },
|
|
7
14
|
description: 'the location of the JBrowse1 names index data directory',
|
|
8
15
|
},
|
|
16
|
+
/**
|
|
17
|
+
* #slot
|
|
18
|
+
*/
|
|
9
19
|
tracks: {
|
|
10
20
|
type: 'stringArray',
|
|
11
21
|
defaultValue: [],
|
|
12
22
|
description: 'List of tracks covered by text search adapter',
|
|
13
23
|
},
|
|
24
|
+
/**
|
|
25
|
+
* #slot
|
|
26
|
+
*/
|
|
14
27
|
assemblyNames: {
|
|
15
28
|
type: 'stringArray',
|
|
16
29
|
defaultValue: [],
|
|
17
30
|
description: 'List of assemblies covered by text search adapter',
|
|
18
31
|
},
|
|
19
|
-
}, {
|
|
32
|
+
}, {
|
|
33
|
+
explicitlyTyped: true,
|
|
34
|
+
/**
|
|
35
|
+
* #identifier
|
|
36
|
+
*/
|
|
37
|
+
explicitIdentifier: 'textSearchAdapterId',
|
|
38
|
+
});
|
|
20
39
|
//# sourceMappingURL=configSchema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configSchema.js","sourceRoot":"","sources":["../../src/JBrowse1TextSeachAdapter/configSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AAEjE,eAAe,mBAAmB,CAChC,2BAA2B,EAC3B;IACE
|
|
1
|
+
{"version":3,"file":"configSchema.js","sourceRoot":"","sources":["../../src/JBrowse1TextSeachAdapter/configSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AAEjE;;;GAGG;AACH,SAAS,CAAC,KAAI,CAAC,CAAC,wDAAwD;AAExE,eAAe,mBAAmB,CAChC,2BAA2B,EAC3B;IACE;;OAEG;IACH,kBAAkB,EAAE;QAClB,IAAI,EAAE,cAAc;QACpB,YAAY,EAAE,EAAE,GAAG,EAAE,eAAe,EAAE,YAAY,EAAE,aAAa,EAAE;QACnE,WAAW,EAAE,yDAAyD;KACvE;IACD;;OAEG;IACH,MAAM,EAAE;QACN,IAAI,EAAE,aAAa;QACnB,YAAY,EAAE,EAAE;QAChB,WAAW,EAAE,+CAA+C;KAC7D;IACD;;OAEG;IACH,aAAa,EAAE;QACb,IAAI,EAAE,aAAa;QACnB,YAAY,EAAE,EAAE;QAChB,WAAW,EAAE,mDAAmD;KACjE;CACF,EACD;IACE,eAAe,EAAE,IAAI;IACrB;;OAEG;IACH,kBAAkB,EAAE,qBAAqB;CAC1C,CACF,CAAA"}
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { Region } from '@jbrowse/core/util/types';
|
|
2
2
|
import { BaseFeatureDataAdapter, BaseOptions } from '@jbrowse/core/data_adapters/BaseAdapter';
|
|
3
3
|
import { Feature } from '@jbrowse/core/util/simpleFeature';
|
|
4
|
-
import { Instance } from 'mobx-state-tree';
|
|
5
4
|
import NCListFeature from './NCListFeature';
|
|
6
|
-
import MyConfigSchema from './configSchema';
|
|
7
5
|
import PluginManager from '@jbrowse/core/PluginManager';
|
|
8
6
|
import { getSubAdapterType } from '@jbrowse/core/data_adapters/dataAdapterCache';
|
|
7
|
+
import { AnyConfigurationModel } from '@jbrowse/core/configuration';
|
|
9
8
|
export default class NCListAdapter extends BaseFeatureDataAdapter {
|
|
10
9
|
private nclist;
|
|
11
10
|
private configRefNames?;
|
|
12
|
-
constructor(config:
|
|
11
|
+
constructor(config: AnyConfigurationModel, getSubAdapter?: getSubAdapterType, pluginManager?: PluginManager);
|
|
13
12
|
/**
|
|
14
13
|
* Fetch features for a certain region. Use getFeaturesInRegion() if you also
|
|
15
14
|
* want to verify that the store has features for the given reference sequence
|
|
@@ -21,6 +20,9 @@ export default class NCListAdapter extends BaseFeatureDataAdapter {
|
|
|
21
20
|
getFeatures(region: Region, opts?: BaseOptions): import("rxjs").Observable<Feature>;
|
|
22
21
|
wrapFeature(ncFeature: any): NCListFeature;
|
|
23
22
|
hasDataForRefName(refName: string): Promise<boolean>;
|
|
23
|
+
/**
|
|
24
|
+
* NCList is unable to get list of ref names so returns empty
|
|
25
|
+
*/
|
|
24
26
|
getRefNames(): Promise<string[]>;
|
|
25
27
|
/**
|
|
26
28
|
* called to provide a hint that data tied to a certain region
|
|
@@ -3,13 +3,12 @@ import { BaseFeatureDataAdapter, } from '@jbrowse/core/data_adapters/BaseAdapter
|
|
|
3
3
|
import { ObservableCreate } from '@jbrowse/core/util/rxjs';
|
|
4
4
|
import { checkAbortSignal } from '@jbrowse/core/util';
|
|
5
5
|
import { RemoteFile } from 'generic-filehandle';
|
|
6
|
-
import { readConfObject } from '@jbrowse/core/configuration';
|
|
7
6
|
import NCListFeature from './NCListFeature';
|
|
8
7
|
export default class NCListAdapter extends BaseFeatureDataAdapter {
|
|
9
8
|
constructor(config, getSubAdapter, pluginManager) {
|
|
10
9
|
super(config, getSubAdapter, pluginManager);
|
|
11
|
-
const refNames =
|
|
12
|
-
const rootUrlTemplate =
|
|
10
|
+
const refNames = this.getConf('refNames');
|
|
11
|
+
const rootUrlTemplate = this.getConf('rootUrlTemplate');
|
|
13
12
|
this.configRefNames = refNames;
|
|
14
13
|
this.nclist = new NCListStore({
|
|
15
14
|
baseUrl: '',
|
|
@@ -45,12 +44,11 @@ export default class NCListAdapter extends BaseFeatureDataAdapter {
|
|
|
45
44
|
const root = await this.nclist.getDataRoot(refName);
|
|
46
45
|
return !!(root && root.stats && root.stats.featureCount);
|
|
47
46
|
}
|
|
48
|
-
|
|
47
|
+
/**
|
|
49
48
|
* NCList is unable to get list of ref names so returns empty
|
|
50
|
-
* @return Promise<string[]> of empty list
|
|
51
49
|
*/
|
|
52
|
-
getRefNames() {
|
|
53
|
-
return
|
|
50
|
+
async getRefNames() {
|
|
51
|
+
return this.configRefNames || [];
|
|
54
52
|
}
|
|
55
53
|
/**
|
|
56
54
|
* called to provide a hint that data tied to a certain region
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NCListAdapter.js","sourceRoot":"","sources":["../../src/NCListAdapter/NCListAdapter.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,cAAc,CAAA;AAEtC,OAAO,EACL,sBAAsB,GAEvB,MAAM,yCAAyC,CAAA;AAEhD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;
|
|
1
|
+
{"version":3,"file":"NCListAdapter.js","sourceRoot":"","sources":["../../src/NCListAdapter/NCListAdapter.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,cAAc,CAAA;AAEtC,OAAO,EACL,sBAAsB,GAEvB,MAAM,yCAAyC,CAAA;AAEhD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAC/C,OAAO,aAAa,MAAM,iBAAiB,CAAA;AAK3C,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,sBAAsB;IAM/D,YACE,MAA6B,EAC7B,aAAiC,EACjC,aAA6B;QAE7B,KAAK,CAAC,MAAM,EAAE,aAAa,EAAE,aAAa,CAAC,CAAA;QAC3C,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAA;QACzC,MAAM,eAAe,GAAG,IAAI,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAA;QACvD,IAAI,CAAC,cAAc,GAAG,QAAQ,CAAA;QAE9B,IAAI,CAAC,MAAM,GAAG,IAAI,WAAW,CAAC;YAC5B,OAAO,EAAE,EAAE;YACX,WAAW,EAAE,eAAe,CAAC,GAAG;YAChC,QAAQ,EAAE,CAAC,GAAW,EAAE,EAAE,CACxB,IAAI,UAAU,CACZ,MAAM,CACJ,eAAe,CAAC,OAAO;gBACrB,CAAC,CAAC,IAAI,GAAG,CAAC,GAAG,EAAE,eAAe,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE;gBAClD,CAAC,CAAC,GAAG,CACR,CACF,CAAC,QAAQ,EAAE;SACf,CAAC,CAAA;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,WAAW,CAAC,MAAc,EAAE,OAAoB,EAAE;QAChD,OAAO,gBAAgB,CAAU,KAAK,EAAC,QAAQ,EAAC,EAAE;YAChD,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,CAAA;YACvB,IAAI,KAAK,EAAE,MAAM,OAAO,IAAI,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,IAAI,CAAC,EAAE;gBACjE,gBAAgB,CAAC,MAAM,CAAC,CAAA;gBACxB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAA;aACzC;YACD,QAAQ,CAAC,QAAQ,EAAE,CAAA;QACrB,CAAC,CAAC,CAAA;IACJ,CAAC;IAED,8DAA8D;IAC9D,WAAW,CAAC,SAAc;QACxB,OAAO,IAAI,aAAa,CACtB,SAAS,EACT,SAAS,EACT,GAAG,IAAI,CAAC,EAAE,IAAI,SAAS,CAAC,EAAE,EAAE,EAAE,CAC/B,CAAA;IACH,CAAC;IAED,KAAK,CAAC,iBAAiB,CAAC,OAAe;QACrC,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,OAAO,CAAC,CAAA;QACnD,OAAO,CAAC,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,CAAA;IAC1D,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,WAAW;QACf,OAAO,IAAI,CAAC,cAAc,IAAI,EAAE,CAAA;IAClC,CAAC;IAED;;;;OAIG;IACH,aAAa,KAAI,CAAC;CACnB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
export default
|
|
1
|
+
declare const NCListAdapter: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
|
|
2
|
+
export default NCListAdapter;
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { ConfigurationSchema } from '@jbrowse/core/configuration';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* #config NCListAdapter
|
|
4
|
+
*/
|
|
5
|
+
function x() { } // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
6
|
+
const NCListAdapter = ConfigurationSchema('NCListAdapter', {
|
|
7
|
+
/**
|
|
8
|
+
* #slot
|
|
9
|
+
*/
|
|
3
10
|
rootUrlTemplate: {
|
|
4
11
|
type: 'fileLocation',
|
|
5
12
|
defaultValue: {
|
|
@@ -7,10 +14,14 @@ export default ConfigurationSchema('NCListAdapter', {
|
|
|
7
14
|
locationType: 'UriLocation',
|
|
8
15
|
},
|
|
9
16
|
},
|
|
17
|
+
/**
|
|
18
|
+
* #slot
|
|
19
|
+
*/
|
|
10
20
|
refNames: {
|
|
11
21
|
type: 'stringArray',
|
|
12
22
|
defaultValue: [],
|
|
13
23
|
description: 'List of refNames used by the NCList used for aliasing',
|
|
14
24
|
},
|
|
15
25
|
}, { explicitlyTyped: true });
|
|
26
|
+
export default NCListAdapter;
|
|
16
27
|
//# sourceMappingURL=configSchema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configSchema.js","sourceRoot":"","sources":["../../src/NCListAdapter/configSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AAEjE,
|
|
1
|
+
{"version":3,"file":"configSchema.js","sourceRoot":"","sources":["../../src/NCListAdapter/configSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AAEjE;;GAEG;AACH,SAAS,CAAC,KAAI,CAAC,CAAC,wDAAwD;AAExE,MAAM,aAAa,GAAG,mBAAmB,CACvC,eAAe,EACf;IACE;;OAEG;IACH,eAAe,EAAE;QACf,IAAI,EAAE,cAAc;QACpB,YAAY,EAAE;YACZ,GAAG,EAAE,qCAAqC;YAC1C,YAAY,EAAE,aAAa;SAC5B;KACF;IACD;;OAEG;IACH,QAAQ,EAAE;QACR,IAAI,EAAE,aAAa;QACnB,YAAY,EAAE,EAAE;QAChB,WAAW,EAAE,uDAAuD;KACrE;CACF,EACD,EAAE,eAAe,EAAE,IAAI,EAAE,CAC1B,CAAA;AACD,eAAe,aAAa,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/plugin-legacy-jbrowse",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "JBrowse 2 plugin for connecting to and reading JBrowse 1 data",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"distModule": "esm/index.js",
|
|
57
57
|
"srcModule": "src/index.ts",
|
|
58
58
|
"module": "esm/index.js",
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "cf31db8d833117f8822510340664fb3f045975cb"
|
|
60
60
|
}
|
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
import { baseConnectionConfig } from '@jbrowse/core/pluggableElementTypes/models'
|
|
2
2
|
import { ConfigurationSchema } from '@jbrowse/core/configuration'
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* #config JBrowse1Connection
|
|
6
|
+
*/
|
|
7
|
+
function x() {} // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
8
|
+
|
|
9
|
+
const JBrowse1Connection = ConfigurationSchema(
|
|
5
10
|
'JBrowse1Connection',
|
|
6
11
|
{
|
|
12
|
+
/**
|
|
13
|
+
* #slot
|
|
14
|
+
*/
|
|
7
15
|
dataDirLocation: {
|
|
8
16
|
type: 'fileLocation',
|
|
9
17
|
defaultValue: {
|
|
@@ -13,6 +21,9 @@ export default ConfigurationSchema(
|
|
|
13
21
|
description:
|
|
14
22
|
'the location of the JBrowse 1 data directory, often something like http://mysite.com/jbrowse/data/',
|
|
15
23
|
},
|
|
24
|
+
/**
|
|
25
|
+
* #slot
|
|
26
|
+
*/
|
|
16
27
|
assemblyNames: {
|
|
17
28
|
description:
|
|
18
29
|
'name of the assembly the connection belongs to, should be a single entry',
|
|
@@ -20,5 +31,12 @@ export default ConfigurationSchema(
|
|
|
20
31
|
defaultValue: [],
|
|
21
32
|
},
|
|
22
33
|
},
|
|
23
|
-
{
|
|
34
|
+
{
|
|
35
|
+
/**
|
|
36
|
+
* #baseConfiguration
|
|
37
|
+
*/
|
|
38
|
+
baseConfiguration: baseConnectionConfig,
|
|
39
|
+
},
|
|
24
40
|
)
|
|
41
|
+
|
|
42
|
+
export default JBrowse1Connection
|
|
@@ -1,24 +1,44 @@
|
|
|
1
1
|
import { ConfigurationSchema } from '@jbrowse/core/configuration'
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* #config JBrowse1TextSearchAdapter
|
|
5
|
+
* note: metadata about tracks and assemblies covered by text search adapter
|
|
6
|
+
*/
|
|
7
|
+
function x() {} // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
8
|
+
|
|
3
9
|
export default ConfigurationSchema(
|
|
4
10
|
'JBrowse1TextSearchAdapter',
|
|
5
11
|
{
|
|
6
|
-
|
|
12
|
+
/**
|
|
13
|
+
* #slot
|
|
14
|
+
*/
|
|
7
15
|
namesIndexLocation: {
|
|
8
16
|
type: 'fileLocation',
|
|
9
17
|
defaultValue: { uri: '/volvox/names', locationType: 'UriLocation' },
|
|
10
18
|
description: 'the location of the JBrowse1 names index data directory',
|
|
11
19
|
},
|
|
20
|
+
/**
|
|
21
|
+
* #slot
|
|
22
|
+
*/
|
|
12
23
|
tracks: {
|
|
13
24
|
type: 'stringArray',
|
|
14
25
|
defaultValue: [],
|
|
15
26
|
description: 'List of tracks covered by text search adapter',
|
|
16
27
|
},
|
|
28
|
+
/**
|
|
29
|
+
* #slot
|
|
30
|
+
*/
|
|
17
31
|
assemblyNames: {
|
|
18
32
|
type: 'stringArray',
|
|
19
33
|
defaultValue: [],
|
|
20
34
|
description: 'List of assemblies covered by text search adapter',
|
|
21
35
|
},
|
|
22
36
|
},
|
|
23
|
-
{
|
|
37
|
+
{
|
|
38
|
+
explicitlyTyped: true,
|
|
39
|
+
/**
|
|
40
|
+
* #identifier
|
|
41
|
+
*/
|
|
42
|
+
explicitIdentifier: 'textSearchAdapterId',
|
|
43
|
+
},
|
|
24
44
|
)
|
|
@@ -8,12 +8,10 @@ import { Feature } from '@jbrowse/core/util/simpleFeature'
|
|
|
8
8
|
import { ObservableCreate } from '@jbrowse/core/util/rxjs'
|
|
9
9
|
import { checkAbortSignal } from '@jbrowse/core/util'
|
|
10
10
|
import { RemoteFile } from 'generic-filehandle'
|
|
11
|
-
import { Instance } from 'mobx-state-tree'
|
|
12
|
-
import { readConfObject } from '@jbrowse/core/configuration'
|
|
13
11
|
import NCListFeature from './NCListFeature'
|
|
14
|
-
import MyConfigSchema from './configSchema'
|
|
15
12
|
import PluginManager from '@jbrowse/core/PluginManager'
|
|
16
13
|
import { getSubAdapterType } from '@jbrowse/core/data_adapters/dataAdapterCache'
|
|
14
|
+
import { AnyConfigurationModel } from '@jbrowse/core/configuration'
|
|
17
15
|
|
|
18
16
|
export default class NCListAdapter extends BaseFeatureDataAdapter {
|
|
19
17
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -22,13 +20,13 @@ export default class NCListAdapter extends BaseFeatureDataAdapter {
|
|
|
22
20
|
private configRefNames?: string[]
|
|
23
21
|
|
|
24
22
|
constructor(
|
|
25
|
-
config:
|
|
23
|
+
config: AnyConfigurationModel,
|
|
26
24
|
getSubAdapter?: getSubAdapterType,
|
|
27
25
|
pluginManager?: PluginManager,
|
|
28
26
|
) {
|
|
29
27
|
super(config, getSubAdapter, pluginManager)
|
|
30
|
-
const refNames =
|
|
31
|
-
const rootUrlTemplate =
|
|
28
|
+
const refNames = this.getConf('refNames')
|
|
29
|
+
const rootUrlTemplate = this.getConf('rootUrlTemplate')
|
|
32
30
|
this.configRefNames = refNames
|
|
33
31
|
|
|
34
32
|
this.nclist = new NCListStore({
|
|
@@ -78,12 +76,11 @@ export default class NCListAdapter extends BaseFeatureDataAdapter {
|
|
|
78
76
|
return !!(root && root.stats && root.stats.featureCount)
|
|
79
77
|
}
|
|
80
78
|
|
|
81
|
-
|
|
79
|
+
/**
|
|
82
80
|
* NCList is unable to get list of ref names so returns empty
|
|
83
|
-
* @return Promise<string[]> of empty list
|
|
84
81
|
*/
|
|
85
|
-
getRefNames() {
|
|
86
|
-
return
|
|
82
|
+
async getRefNames() {
|
|
83
|
+
return this.configRefNames || []
|
|
87
84
|
}
|
|
88
85
|
|
|
89
86
|
/**
|
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
import { ConfigurationSchema } from '@jbrowse/core/configuration'
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* #config NCListAdapter
|
|
5
|
+
*/
|
|
6
|
+
function x() {} // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
7
|
+
|
|
8
|
+
const NCListAdapter = ConfigurationSchema(
|
|
4
9
|
'NCListAdapter',
|
|
5
10
|
{
|
|
11
|
+
/**
|
|
12
|
+
* #slot
|
|
13
|
+
*/
|
|
6
14
|
rootUrlTemplate: {
|
|
7
15
|
type: 'fileLocation',
|
|
8
16
|
defaultValue: {
|
|
@@ -10,6 +18,9 @@ export default ConfigurationSchema(
|
|
|
10
18
|
locationType: 'UriLocation',
|
|
11
19
|
},
|
|
12
20
|
},
|
|
21
|
+
/**
|
|
22
|
+
* #slot
|
|
23
|
+
*/
|
|
13
24
|
refNames: {
|
|
14
25
|
type: 'stringArray',
|
|
15
26
|
defaultValue: [],
|
|
@@ -18,3 +29,4 @@ export default ConfigurationSchema(
|
|
|
18
29
|
},
|
|
19
30
|
{ explicitlyTyped: true },
|
|
20
31
|
)
|
|
32
|
+
export default NCListAdapter
|