@jbrowse/plugin-gccontent 2.11.0 → 2.11.2
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/GCContentAdapter/GCContentAdapter.d.ts +1 -1
- package/dist/GCContentAdapter/GCContentAdapter.js +4 -3
- package/dist/GCContentAdapter/index.d.ts +1 -2
- package/dist/GCContentAdapter/index.js +3 -2
- package/dist/GCContentTrack/index.d.ts +1 -2
- package/dist/GCContentTrack/index.js +3 -2
- package/dist/LinearGCContentDisplay/index.d.ts +1 -2
- package/dist/LinearGCContentDisplay/index.js +3 -2
- package/dist/LinearGCContentDisplay/shared.d.ts +7 -3
- package/dist/LinearGCContentDisplay/stateModel1.d.ts +6 -0
- package/dist/LinearGCContentDisplay/stateModel2.d.ts +6 -0
- package/esm/GCContentAdapter/GCContentAdapter.d.ts +1 -1
- package/esm/GCContentAdapter/GCContentAdapter.js +4 -3
- package/esm/GCContentAdapter/index.d.ts +1 -2
- package/esm/GCContentAdapter/index.js +2 -2
- package/esm/GCContentTrack/index.d.ts +1 -2
- package/esm/GCContentTrack/index.js +2 -2
- package/esm/LinearGCContentDisplay/index.d.ts +1 -2
- package/esm/LinearGCContentDisplay/index.js +2 -2
- package/esm/LinearGCContentDisplay/shared.d.ts +7 -3
- package/esm/LinearGCContentDisplay/stateModel1.d.ts +6 -0
- package/esm/LinearGCContentDisplay/stateModel2.d.ts +6 -0
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseFeatureDataAdapter, BaseOptions } from '@jbrowse/core/data_adapters/BaseAdapter';
|
|
2
2
|
import { Feature, Region } from '@jbrowse/core/util';
|
|
3
|
-
export default class extends BaseFeatureDataAdapter {
|
|
3
|
+
export default class GCContentAdapter extends BaseFeatureDataAdapter {
|
|
4
4
|
private gcMode;
|
|
5
5
|
static capabilities: string[];
|
|
6
6
|
configure(): Promise<BaseFeatureDataAdapter>;
|
|
@@ -5,7 +5,7 @@ const rxjs_1 = require("rxjs");
|
|
|
5
5
|
const rxjs_2 = require("@jbrowse/core/util/rxjs");
|
|
6
6
|
const util_1 = require("@jbrowse/core/util");
|
|
7
7
|
const operators_1 = require("rxjs/operators");
|
|
8
|
-
class
|
|
8
|
+
class GCContentAdapter extends BaseAdapter_1.BaseFeatureDataAdapter {
|
|
9
9
|
constructor() {
|
|
10
10
|
super(...arguments);
|
|
11
11
|
this.gcMode = 'content';
|
|
@@ -70,6 +70,7 @@ class default_1 extends BaseAdapter_1.BaseFeatureDataAdapter {
|
|
|
70
70
|
}
|
|
71
71
|
observer.next(new util_1.SimpleFeature({
|
|
72
72
|
uniqueId: `${this.id}_${pos + i}`,
|
|
73
|
+
refName: query.refName,
|
|
73
74
|
start: pos + i,
|
|
74
75
|
end: pos + i + windowDelta,
|
|
75
76
|
score,
|
|
@@ -85,5 +86,5 @@ class default_1 extends BaseAdapter_1.BaseFeatureDataAdapter {
|
|
|
85
86
|
*/
|
|
86
87
|
freeResources( /* { region } */) { }
|
|
87
88
|
}
|
|
88
|
-
|
|
89
|
-
exports.default =
|
|
89
|
+
GCContentAdapter.capabilities = ['hasLocalStats'];
|
|
90
|
+
exports.default = GCContentAdapter;
|
|
@@ -28,7 +28,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
const AdapterType_1 = __importDefault(require("@jbrowse/core/pluggableElementTypes/AdapterType"));
|
|
30
30
|
const configSchema_1 = __importDefault(require("./configSchema"));
|
|
31
|
-
|
|
31
|
+
function GCContentAdapterF(pluginManager) {
|
|
32
32
|
pluginManager.addAdapterType(() => new AdapterType_1.default({
|
|
33
33
|
name: 'GCContentAdapter',
|
|
34
34
|
displayName: 'GC content adapter',
|
|
@@ -38,4 +38,5 @@ exports.default = (pluginManager) => {
|
|
|
38
38
|
configSchema: (0, configSchema_1.default)(pluginManager),
|
|
39
39
|
getAdapterClass: () => Promise.resolve().then(() => __importStar(require('./GCContentAdapter'))).then(r => r.default),
|
|
40
40
|
}));
|
|
41
|
-
}
|
|
41
|
+
}
|
|
42
|
+
exports.default = GCContentAdapterF;
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
const TrackType_1 = __importDefault(require("@jbrowse/core/pluggableElementTypes/TrackType"));
|
|
7
7
|
const models_1 = require("@jbrowse/core/pluggableElementTypes/models");
|
|
8
8
|
const configSchema_1 = __importDefault(require("./configSchema"));
|
|
9
|
-
|
|
9
|
+
function GCContentTrackF(pm) {
|
|
10
10
|
pm.addTrackType(() => {
|
|
11
11
|
const configSchema = (0, configSchema_1.default)(pm);
|
|
12
12
|
return new TrackType_1.default({
|
|
@@ -16,4 +16,5 @@ exports.default = (pm) => {
|
|
|
16
16
|
stateModel: (0, models_1.createBaseTrackModel)(pm, 'GCContentTrack', configSchema),
|
|
17
17
|
});
|
|
18
18
|
});
|
|
19
|
-
}
|
|
19
|
+
}
|
|
20
|
+
exports.default = GCContentTrackF;
|
|
@@ -9,7 +9,7 @@ const config1_1 = __importDefault(require("./config1"));
|
|
|
9
9
|
const config2_1 = __importDefault(require("./config2"));
|
|
10
10
|
const stateModel1_1 = __importDefault(require("./stateModel1"));
|
|
11
11
|
const stateModel2_1 = __importDefault(require("./stateModel2"));
|
|
12
|
-
|
|
12
|
+
function LinearGCContentDisplayF(pluginManager) {
|
|
13
13
|
pluginManager.addDisplayType(() => {
|
|
14
14
|
const configSchema = (0, config1_1.default)(pluginManager);
|
|
15
15
|
const stateModel = (0, stateModel1_1.default)(pluginManager, configSchema);
|
|
@@ -36,4 +36,5 @@ exports.default = (pluginManager) => {
|
|
|
36
36
|
ReactComponent: plugin_wiggle_1.LinearWiggleDisplayReactComponent,
|
|
37
37
|
});
|
|
38
38
|
});
|
|
39
|
-
}
|
|
39
|
+
}
|
|
40
|
+
exports.default = LinearGCContentDisplayF;
|
|
@@ -77,9 +77,7 @@ export default function SharedModelF(pluginManager: PluginManager, configSchema:
|
|
|
77
77
|
defaultValue: number;
|
|
78
78
|
};
|
|
79
79
|
fetchSizeLimit: {
|
|
80
|
-
type: string;
|
|
81
|
-
* #property
|
|
82
|
-
*/
|
|
80
|
+
type: string;
|
|
83
81
|
defaultValue: number;
|
|
84
82
|
description: string;
|
|
85
83
|
};
|
|
@@ -94,6 +92,11 @@ export default function SharedModelF(pluginManager: PluginManager, configSchema:
|
|
|
94
92
|
defaultValue: string;
|
|
95
93
|
contextVariable: string[];
|
|
96
94
|
};
|
|
95
|
+
jexlFilters: {
|
|
96
|
+
type: string;
|
|
97
|
+
description: string;
|
|
98
|
+
defaultValue: never[];
|
|
99
|
+
};
|
|
97
100
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
98
101
|
} & {
|
|
99
102
|
selectedRendering: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
@@ -238,6 +241,7 @@ export default function SharedModelF(pluginManager: PluginManager, configSchema:
|
|
|
238
241
|
addBlock(key: string, block: import("@jbrowse/core/util/blockTypes").BaseBlock): void;
|
|
239
242
|
deleteBlock(key: string): void;
|
|
240
243
|
selectFeature(feature: import("@jbrowse/core/util").Feature): void;
|
|
244
|
+
navToFeature(feature: import("@jbrowse/core/util").Feature): void;
|
|
241
245
|
clearFeatureSelection(): void;
|
|
242
246
|
setFeatureIdUnderMouse(feature?: string | undefined): void;
|
|
243
247
|
setContextMenuFeature(feature?: import("@jbrowse/core/util").Feature | undefined): void;
|
|
@@ -91,6 +91,11 @@ export default function stateModelF(pluginManager: PluginManager, configSchema:
|
|
|
91
91
|
defaultValue: string;
|
|
92
92
|
contextVariable: string[];
|
|
93
93
|
};
|
|
94
|
+
jexlFilters: {
|
|
95
|
+
type: string;
|
|
96
|
+
description: string;
|
|
97
|
+
defaultValue: never[];
|
|
98
|
+
};
|
|
94
99
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
95
100
|
} & {
|
|
96
101
|
selectedRendering: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
@@ -229,6 +234,7 @@ export default function stateModelF(pluginManager: PluginManager, configSchema:
|
|
|
229
234
|
addBlock(key: string, block: import("@jbrowse/core/util/blockTypes").BaseBlock): void;
|
|
230
235
|
deleteBlock(key: string): void;
|
|
231
236
|
selectFeature(feature: import("@jbrowse/core/util").Feature): void;
|
|
237
|
+
navToFeature(feature: import("@jbrowse/core/util").Feature): void;
|
|
232
238
|
clearFeatureSelection(): void;
|
|
233
239
|
setFeatureIdUnderMouse(feature?: string | undefined): void;
|
|
234
240
|
setContextMenuFeature(feature?: import("@jbrowse/core/util").Feature | undefined): void;
|
|
@@ -96,6 +96,11 @@ export default function stateModelF(pluginManager: PluginManager, configSchema:
|
|
|
96
96
|
defaultValue: string;
|
|
97
97
|
contextVariable: string[];
|
|
98
98
|
};
|
|
99
|
+
jexlFilters: {
|
|
100
|
+
type: string;
|
|
101
|
+
description: string;
|
|
102
|
+
defaultValue: never[];
|
|
103
|
+
};
|
|
99
104
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
100
105
|
} & {
|
|
101
106
|
selectedRendering: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
@@ -234,6 +239,7 @@ export default function stateModelF(pluginManager: PluginManager, configSchema:
|
|
|
234
239
|
addBlock(key: string, block: import("@jbrowse/core/util/blockTypes").BaseBlock): void;
|
|
235
240
|
deleteBlock(key: string): void;
|
|
236
241
|
selectFeature(feature: import("@jbrowse/core/util").Feature): void;
|
|
242
|
+
navToFeature(feature: import("@jbrowse/core/util").Feature): void;
|
|
237
243
|
clearFeatureSelection(): void;
|
|
238
244
|
setFeatureIdUnderMouse(feature?: string | undefined): void;
|
|
239
245
|
setContextMenuFeature(feature?: import("@jbrowse/core/util").Feature | undefined): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseFeatureDataAdapter, BaseOptions } from '@jbrowse/core/data_adapters/BaseAdapter';
|
|
2
2
|
import { Feature, Region } from '@jbrowse/core/util';
|
|
3
|
-
export default class extends BaseFeatureDataAdapter {
|
|
3
|
+
export default class GCContentAdapter extends BaseFeatureDataAdapter {
|
|
4
4
|
private gcMode;
|
|
5
5
|
static capabilities: string[];
|
|
6
6
|
configure(): Promise<BaseFeatureDataAdapter>;
|
|
@@ -3,7 +3,7 @@ import { firstValueFrom } from 'rxjs';
|
|
|
3
3
|
import { ObservableCreate } from '@jbrowse/core/util/rxjs';
|
|
4
4
|
import { SimpleFeature } from '@jbrowse/core/util';
|
|
5
5
|
import { toArray } from 'rxjs/operators';
|
|
6
|
-
class
|
|
6
|
+
class GCContentAdapter extends BaseFeatureDataAdapter {
|
|
7
7
|
constructor() {
|
|
8
8
|
super(...arguments);
|
|
9
9
|
this.gcMode = 'content';
|
|
@@ -68,6 +68,7 @@ class default_1 extends BaseFeatureDataAdapter {
|
|
|
68
68
|
}
|
|
69
69
|
observer.next(new SimpleFeature({
|
|
70
70
|
uniqueId: `${this.id}_${pos + i}`,
|
|
71
|
+
refName: query.refName,
|
|
71
72
|
start: pos + i,
|
|
72
73
|
end: pos + i + windowDelta,
|
|
73
74
|
score,
|
|
@@ -83,5 +84,5 @@ class default_1 extends BaseFeatureDataAdapter {
|
|
|
83
84
|
*/
|
|
84
85
|
freeResources( /* { region } */) { }
|
|
85
86
|
}
|
|
86
|
-
|
|
87
|
-
export default
|
|
87
|
+
GCContentAdapter.capabilities = ['hasLocalStats'];
|
|
88
|
+
export default GCContentAdapter;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import AdapterType from '@jbrowse/core/pluggableElementTypes/AdapterType';
|
|
2
2
|
import configSchemaF from './configSchema';
|
|
3
|
-
export default (pluginManager)
|
|
3
|
+
export default function GCContentAdapterF(pluginManager) {
|
|
4
4
|
pluginManager.addAdapterType(() => new AdapterType({
|
|
5
5
|
name: 'GCContentAdapter',
|
|
6
6
|
displayName: 'GC content adapter',
|
|
@@ -10,4 +10,4 @@ export default (pluginManager) => {
|
|
|
10
10
|
configSchema: configSchemaF(pluginManager),
|
|
11
11
|
getAdapterClass: () => import('./GCContentAdapter').then(r => r.default),
|
|
12
12
|
}));
|
|
13
|
-
}
|
|
13
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import TrackType from '@jbrowse/core/pluggableElementTypes/TrackType';
|
|
2
2
|
import { createBaseTrackModel } from '@jbrowse/core/pluggableElementTypes/models';
|
|
3
3
|
import configSchemaF from './configSchema';
|
|
4
|
-
export default (pm)
|
|
4
|
+
export default function GCContentTrackF(pm) {
|
|
5
5
|
pm.addTrackType(() => {
|
|
6
6
|
const configSchema = configSchemaF(pm);
|
|
7
7
|
return new TrackType({
|
|
@@ -11,4 +11,4 @@ export default (pm) => {
|
|
|
11
11
|
stateModel: createBaseTrackModel(pm, 'GCContentTrack', configSchema),
|
|
12
12
|
});
|
|
13
13
|
});
|
|
14
|
-
}
|
|
14
|
+
}
|
|
@@ -4,7 +4,7 @@ import configSchemaFactory1 from './config1';
|
|
|
4
4
|
import configSchemaFactory2 from './config2';
|
|
5
5
|
import stateModelF1 from './stateModel1';
|
|
6
6
|
import stateModelF2 from './stateModel2';
|
|
7
|
-
export default (pluginManager)
|
|
7
|
+
export default function LinearGCContentDisplayF(pluginManager) {
|
|
8
8
|
pluginManager.addDisplayType(() => {
|
|
9
9
|
const configSchema = configSchemaFactory1(pluginManager);
|
|
10
10
|
const stateModel = stateModelF1(pluginManager, configSchema);
|
|
@@ -31,4 +31,4 @@ export default (pluginManager) => {
|
|
|
31
31
|
ReactComponent: LinearWiggleDisplayReactComponent,
|
|
32
32
|
});
|
|
33
33
|
});
|
|
34
|
-
}
|
|
34
|
+
}
|
|
@@ -77,9 +77,7 @@ export default function SharedModelF(pluginManager: PluginManager, configSchema:
|
|
|
77
77
|
defaultValue: number;
|
|
78
78
|
};
|
|
79
79
|
fetchSizeLimit: {
|
|
80
|
-
type: string;
|
|
81
|
-
* #property
|
|
82
|
-
*/
|
|
80
|
+
type: string;
|
|
83
81
|
defaultValue: number;
|
|
84
82
|
description: string;
|
|
85
83
|
};
|
|
@@ -94,6 +92,11 @@ export default function SharedModelF(pluginManager: PluginManager, configSchema:
|
|
|
94
92
|
defaultValue: string;
|
|
95
93
|
contextVariable: string[];
|
|
96
94
|
};
|
|
95
|
+
jexlFilters: {
|
|
96
|
+
type: string;
|
|
97
|
+
description: string;
|
|
98
|
+
defaultValue: never[];
|
|
99
|
+
};
|
|
97
100
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
98
101
|
} & {
|
|
99
102
|
selectedRendering: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
@@ -238,6 +241,7 @@ export default function SharedModelF(pluginManager: PluginManager, configSchema:
|
|
|
238
241
|
addBlock(key: string, block: import("@jbrowse/core/util/blockTypes").BaseBlock): void;
|
|
239
242
|
deleteBlock(key: string): void;
|
|
240
243
|
selectFeature(feature: import("@jbrowse/core/util").Feature): void;
|
|
244
|
+
navToFeature(feature: import("@jbrowse/core/util").Feature): void;
|
|
241
245
|
clearFeatureSelection(): void;
|
|
242
246
|
setFeatureIdUnderMouse(feature?: string | undefined): void;
|
|
243
247
|
setContextMenuFeature(feature?: import("@jbrowse/core/util").Feature | undefined): void;
|
|
@@ -91,6 +91,11 @@ export default function stateModelF(pluginManager: PluginManager, configSchema:
|
|
|
91
91
|
defaultValue: string;
|
|
92
92
|
contextVariable: string[];
|
|
93
93
|
};
|
|
94
|
+
jexlFilters: {
|
|
95
|
+
type: string;
|
|
96
|
+
description: string;
|
|
97
|
+
defaultValue: never[];
|
|
98
|
+
};
|
|
94
99
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
95
100
|
} & {
|
|
96
101
|
selectedRendering: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
@@ -229,6 +234,7 @@ export default function stateModelF(pluginManager: PluginManager, configSchema:
|
|
|
229
234
|
addBlock(key: string, block: import("@jbrowse/core/util/blockTypes").BaseBlock): void;
|
|
230
235
|
deleteBlock(key: string): void;
|
|
231
236
|
selectFeature(feature: import("@jbrowse/core/util").Feature): void;
|
|
237
|
+
navToFeature(feature: import("@jbrowse/core/util").Feature): void;
|
|
232
238
|
clearFeatureSelection(): void;
|
|
233
239
|
setFeatureIdUnderMouse(feature?: string | undefined): void;
|
|
234
240
|
setContextMenuFeature(feature?: import("@jbrowse/core/util").Feature | undefined): void;
|
|
@@ -96,6 +96,11 @@ export default function stateModelF(pluginManager: PluginManager, configSchema:
|
|
|
96
96
|
defaultValue: string;
|
|
97
97
|
contextVariable: string[];
|
|
98
98
|
};
|
|
99
|
+
jexlFilters: {
|
|
100
|
+
type: string;
|
|
101
|
+
description: string;
|
|
102
|
+
defaultValue: never[];
|
|
103
|
+
};
|
|
99
104
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
100
105
|
} & {
|
|
101
106
|
selectedRendering: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
@@ -234,6 +239,7 @@ export default function stateModelF(pluginManager: PluginManager, configSchema:
|
|
|
234
239
|
addBlock(key: string, block: import("@jbrowse/core/util/blockTypes").BaseBlock): void;
|
|
235
240
|
deleteBlock(key: string): void;
|
|
236
241
|
selectFeature(feature: import("@jbrowse/core/util").Feature): void;
|
|
242
|
+
navToFeature(feature: import("@jbrowse/core/util").Feature): void;
|
|
237
243
|
clearFeatureSelection(): void;
|
|
238
244
|
setFeatureIdUnderMouse(feature?: string | undefined): void;
|
|
239
245
|
setContextMenuFeature(feature?: import("@jbrowse/core/util").Feature | undefined): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/plugin-gccontent",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.2",
|
|
4
4
|
"description": "JBrowse 2 gccontent concepts",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"distModule": "esm/index.js",
|
|
54
54
|
"srcModule": "src/index.ts",
|
|
55
55
|
"module": "esm/index.js",
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "511048cb6965f0bf624c96de244e7fd47fce17d6"
|
|
57
57
|
}
|