@jbrowse/plugin-gccontent 2.10.3 → 2.11.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/GCContentTrack/configSchema.d.ts +82 -0
- package/dist/GCContentTrack/configSchema.js +16 -0
- package/dist/GCContentTrack/index.d.ts +3 -0
- package/dist/GCContentTrack/index.js +19 -0
- package/dist/LinearGCContentDisplay/{config.d.ts → config1.d.ts} +1 -1
- package/dist/LinearGCContentDisplay/{config.js → config1.js} +2 -2
- package/dist/LinearGCContentDisplay/config2.d.ts +16 -0
- package/dist/LinearGCContentDisplay/config2.js +28 -0
- package/dist/LinearGCContentDisplay/index.js +19 -4
- package/{esm/LinearGCContentDisplay/stateModel.d.ts → dist/LinearGCContentDisplay/shared.d.ts} +12 -17
- package/dist/LinearGCContentDisplay/{stateModel.js → shared.js} +6 -9
- package/dist/LinearGCContentDisplay/stateModel1.d.ts +403 -0
- package/dist/LinearGCContentDisplay/stateModel1.js +19 -0
- package/dist/LinearGCContentDisplay/stateModel2.d.ts +408 -0
- package/dist/LinearGCContentDisplay/stateModel2.js +24 -0
- package/dist/index.js +2 -0
- package/esm/GCContentTrack/configSchema.d.ts +82 -0
- package/esm/GCContentTrack/configSchema.js +14 -0
- package/esm/GCContentTrack/index.d.ts +3 -0
- package/esm/GCContentTrack/index.js +14 -0
- package/esm/LinearGCContentDisplay/{config.d.ts → config1.d.ts} +1 -1
- package/esm/LinearGCContentDisplay/{config.js → config1.js} +1 -1
- package/esm/LinearGCContentDisplay/config2.d.ts +16 -0
- package/esm/LinearGCContentDisplay/config2.js +25 -0
- package/esm/LinearGCContentDisplay/index.js +19 -4
- package/{dist/LinearGCContentDisplay/stateModel.d.ts → esm/LinearGCContentDisplay/shared.d.ts} +12 -17
- package/esm/LinearGCContentDisplay/{stateModel.js → shared.js} +5 -8
- package/esm/LinearGCContentDisplay/stateModel1.d.ts +403 -0
- package/esm/LinearGCContentDisplay/stateModel1.js +13 -0
- package/esm/LinearGCContentDisplay/stateModel2.d.ts +408 -0
- package/esm/LinearGCContentDisplay/stateModel2.js +18 -0
- package/esm/index.js +2 -0
- package/package.json +2 -2
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import PluginManager from '@jbrowse/core/PluginManager';
|
|
2
|
+
declare const configSchema: (pluginManager: PluginManager) => import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
3
|
+
name: {
|
|
4
|
+
description: string;
|
|
5
|
+
type: string;
|
|
6
|
+
defaultValue: string;
|
|
7
|
+
};
|
|
8
|
+
assemblyNames: {
|
|
9
|
+
description: string;
|
|
10
|
+
type: string; /**
|
|
11
|
+
* #baseConfiguration
|
|
12
|
+
*/
|
|
13
|
+
defaultValue: string[];
|
|
14
|
+
};
|
|
15
|
+
description: {
|
|
16
|
+
description: string;
|
|
17
|
+
type: string;
|
|
18
|
+
defaultValue: string;
|
|
19
|
+
};
|
|
20
|
+
category: {
|
|
21
|
+
description: string;
|
|
22
|
+
type: string;
|
|
23
|
+
defaultValue: never[];
|
|
24
|
+
};
|
|
25
|
+
metadata: {
|
|
26
|
+
type: string;
|
|
27
|
+
description: string;
|
|
28
|
+
defaultValue: {};
|
|
29
|
+
};
|
|
30
|
+
adapter: import("mobx-state-tree").IAnyModelType;
|
|
31
|
+
textSearching: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
32
|
+
indexingAttributes: {
|
|
33
|
+
type: string;
|
|
34
|
+
description: string;
|
|
35
|
+
defaultValue: string[];
|
|
36
|
+
};
|
|
37
|
+
indexingFeatureTypesToExclude: {
|
|
38
|
+
type: string;
|
|
39
|
+
description: string;
|
|
40
|
+
defaultValue: string[];
|
|
41
|
+
};
|
|
42
|
+
textSearchAdapter: import("mobx-state-tree").IAnyModelType;
|
|
43
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
44
|
+
displays: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyModelType>;
|
|
45
|
+
formatDetails: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
46
|
+
feature: {
|
|
47
|
+
type: string;
|
|
48
|
+
description: string;
|
|
49
|
+
defaultValue: {};
|
|
50
|
+
contextVariable: string[];
|
|
51
|
+
};
|
|
52
|
+
subfeatures: {
|
|
53
|
+
type: string;
|
|
54
|
+
description: string;
|
|
55
|
+
defaultValue: {};
|
|
56
|
+
contextVariable: string[];
|
|
57
|
+
};
|
|
58
|
+
depth: {
|
|
59
|
+
type: string;
|
|
60
|
+
defaultValue: number;
|
|
61
|
+
description: string;
|
|
62
|
+
};
|
|
63
|
+
maxDepth: {
|
|
64
|
+
type: string;
|
|
65
|
+
defaultValue: number;
|
|
66
|
+
description: string;
|
|
67
|
+
};
|
|
68
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
69
|
+
formatAbout: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
70
|
+
config: {
|
|
71
|
+
type: string;
|
|
72
|
+
description: string;
|
|
73
|
+
defaultValue: {};
|
|
74
|
+
contextVariable: string[];
|
|
75
|
+
};
|
|
76
|
+
hideUris: {
|
|
77
|
+
type: string;
|
|
78
|
+
defaultValue: boolean;
|
|
79
|
+
};
|
|
80
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
81
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "trackId">>, undefined>>;
|
|
82
|
+
export default configSchema;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const configuration_1 = require("@jbrowse/core/configuration");
|
|
4
|
+
const pluggableElementTypes_1 = require("@jbrowse/core/pluggableElementTypes");
|
|
5
|
+
/**
|
|
6
|
+
* #config GCContentTrack
|
|
7
|
+
* used for having a gc content track outside of the "reference sequence display"
|
|
8
|
+
*/
|
|
9
|
+
function x() { } // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
10
|
+
const configSchema = (pluginManager) => (0, configuration_1.ConfigurationSchema)('GCContentTrack', {}, {
|
|
11
|
+
/**
|
|
12
|
+
* #baseConfiguration
|
|
13
|
+
*/
|
|
14
|
+
baseConfiguration: (0, pluggableElementTypes_1.createBaseTrackConfig)(pluginManager),
|
|
15
|
+
});
|
|
16
|
+
exports.default = configSchema;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const TrackType_1 = __importDefault(require("@jbrowse/core/pluggableElementTypes/TrackType"));
|
|
7
|
+
const models_1 = require("@jbrowse/core/pluggableElementTypes/models");
|
|
8
|
+
const configSchema_1 = __importDefault(require("./configSchema"));
|
|
9
|
+
exports.default = (pm) => {
|
|
10
|
+
pm.addTrackType(() => {
|
|
11
|
+
const configSchema = (0, configSchema_1.default)(pm);
|
|
12
|
+
return new TrackType_1.default({
|
|
13
|
+
name: 'GCContentTrack',
|
|
14
|
+
displayName: 'GCContent track',
|
|
15
|
+
configSchema,
|
|
16
|
+
stateModel: (0, models_1.createBaseTrackModel)(pm, 'GCContentTrack', configSchema),
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
};
|
|
@@ -4,7 +4,7 @@ import PluginManager from '@jbrowse/core/PluginManager';
|
|
|
4
4
|
* #category display
|
|
5
5
|
* extends LinearWiggleDisplay
|
|
6
6
|
*/
|
|
7
|
-
export default function
|
|
7
|
+
export default function LinearGCContentDisplay(pluginManager: PluginManager): import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
8
8
|
windowSize: {
|
|
9
9
|
type: string;
|
|
10
10
|
defaultValue: number;
|
|
@@ -6,7 +6,7 @@ const configuration_1 = require("@jbrowse/core/configuration");
|
|
|
6
6
|
* #category display
|
|
7
7
|
* extends LinearWiggleDisplay
|
|
8
8
|
*/
|
|
9
|
-
function
|
|
9
|
+
function LinearGCContentDisplay(pluginManager) {
|
|
10
10
|
return (0, configuration_1.ConfigurationSchema)('LinearGCContentDisplay', {
|
|
11
11
|
windowSize: {
|
|
12
12
|
type: 'number',
|
|
@@ -25,4 +25,4 @@ function WiggleConfigFactory(pluginManager) {
|
|
|
25
25
|
explicitlyTyped: true,
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
|
-
exports.default =
|
|
28
|
+
exports.default = LinearGCContentDisplay;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import PluginManager from '@jbrowse/core/PluginManager';
|
|
2
|
+
/**
|
|
3
|
+
* #config LinearGCContentTrackDisplay
|
|
4
|
+
* #category display
|
|
5
|
+
* extends LinearWiggleDisplay, used specifically for GCContentTrack
|
|
6
|
+
*/
|
|
7
|
+
export default function LinearGCContentTrackDisplayF(pluginManager: PluginManager): import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
8
|
+
windowSize: {
|
|
9
|
+
type: string;
|
|
10
|
+
defaultValue: number;
|
|
11
|
+
};
|
|
12
|
+
windowDelta: {
|
|
13
|
+
type: string;
|
|
14
|
+
defaultValue: number;
|
|
15
|
+
};
|
|
16
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration").AnyConfigurationSchemaType, undefined>>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const configuration_1 = require("@jbrowse/core/configuration");
|
|
4
|
+
/**
|
|
5
|
+
* #config LinearGCContentTrackDisplay
|
|
6
|
+
* #category display
|
|
7
|
+
* extends LinearWiggleDisplay, used specifically for GCContentTrack
|
|
8
|
+
*/
|
|
9
|
+
function LinearGCContentTrackDisplayF(pluginManager) {
|
|
10
|
+
return (0, configuration_1.ConfigurationSchema)('LinearGCContentTrackDisplay', {
|
|
11
|
+
windowSize: {
|
|
12
|
+
type: 'number',
|
|
13
|
+
defaultValue: 100,
|
|
14
|
+
},
|
|
15
|
+
windowDelta: {
|
|
16
|
+
type: 'number',
|
|
17
|
+
defaultValue: 100,
|
|
18
|
+
},
|
|
19
|
+
}, {
|
|
20
|
+
/**
|
|
21
|
+
* #baseConfiguration
|
|
22
|
+
*/
|
|
23
|
+
baseConfiguration: pluginManager.getDisplayType('LinearWiggleDisplay')
|
|
24
|
+
.configSchema,
|
|
25
|
+
explicitlyTyped: true,
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
exports.default = LinearGCContentTrackDisplayF;
|
|
@@ -5,12 +5,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const pluggableElementTypes_1 = require("@jbrowse/core/pluggableElementTypes");
|
|
7
7
|
const plugin_wiggle_1 = require("@jbrowse/plugin-wiggle");
|
|
8
|
-
const
|
|
9
|
-
const
|
|
8
|
+
const config1_1 = __importDefault(require("./config1"));
|
|
9
|
+
const config2_1 = __importDefault(require("./config2"));
|
|
10
|
+
const stateModel1_1 = __importDefault(require("./stateModel1"));
|
|
11
|
+
const stateModel2_1 = __importDefault(require("./stateModel2"));
|
|
10
12
|
exports.default = (pluginManager) => {
|
|
11
13
|
pluginManager.addDisplayType(() => {
|
|
12
|
-
const configSchema = (0,
|
|
13
|
-
const stateModel = (0,
|
|
14
|
+
const configSchema = (0, config1_1.default)(pluginManager);
|
|
15
|
+
const stateModel = (0, stateModel1_1.default)(pluginManager, configSchema);
|
|
14
16
|
return new pluggableElementTypes_1.DisplayType({
|
|
15
17
|
name: 'LinearGCContentDisplay',
|
|
16
18
|
configSchema,
|
|
@@ -21,4 +23,17 @@ exports.default = (pluginManager) => {
|
|
|
21
23
|
ReactComponent: plugin_wiggle_1.LinearWiggleDisplayReactComponent,
|
|
22
24
|
});
|
|
23
25
|
});
|
|
26
|
+
pluginManager.addDisplayType(() => {
|
|
27
|
+
const configSchema = (0, config2_1.default)(pluginManager);
|
|
28
|
+
const stateModel = (0, stateModel2_1.default)(pluginManager, configSchema);
|
|
29
|
+
return new pluggableElementTypes_1.DisplayType({
|
|
30
|
+
name: 'LinearGCContentTrackDisplay',
|
|
31
|
+
configSchema,
|
|
32
|
+
stateModel,
|
|
33
|
+
displayName: 'GC content display',
|
|
34
|
+
trackType: 'GCContentTrack',
|
|
35
|
+
viewType: 'LinearGenomeView',
|
|
36
|
+
ReactComponent: plugin_wiggle_1.LinearWiggleDisplayReactComponent,
|
|
37
|
+
});
|
|
38
|
+
});
|
|
24
39
|
};
|
package/{esm/LinearGCContentDisplay/stateModel.d.ts → dist/LinearGCContentDisplay/shared.d.ts}
RENAMED
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
import { AnyConfigurationSchemaType } from '@jbrowse/core/configuration';
|
|
3
3
|
import PluginManager from '@jbrowse/core/PluginManager';
|
|
4
4
|
/**
|
|
5
|
-
* #stateModel
|
|
5
|
+
* #stateModel SharedGCContentModel
|
|
6
6
|
* #category display
|
|
7
|
-
*
|
|
7
|
+
* extends
|
|
8
|
+
* - [LinearWiggleDisplay](../linearwiggledisplay)
|
|
8
9
|
*/
|
|
9
|
-
export default function
|
|
10
|
+
export default function SharedModelF(pluginManager: PluginManager, configSchema: AnyConfigurationSchemaType): import("mobx-state-tree").IModelType<{
|
|
10
11
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
11
12
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
12
13
|
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
@@ -76,7 +77,9 @@ export default function stateModelFactory(pluginManager: PluginManager, configSc
|
|
|
76
77
|
defaultValue: number;
|
|
77
78
|
};
|
|
78
79
|
fetchSizeLimit: {
|
|
79
|
-
type: string;
|
|
80
|
+
type: string; /**
|
|
81
|
+
* #property
|
|
82
|
+
*/
|
|
80
83
|
defaultValue: number;
|
|
81
84
|
description: string;
|
|
82
85
|
};
|
|
@@ -109,18 +112,10 @@ export default function stateModelFactory(pluginManager: PluginManager, configSc
|
|
|
109
112
|
max: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
110
113
|
min: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
111
114
|
}, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
112
|
-
configuration: AnyConfigurationSchemaType;
|
|
113
|
-
* #method
|
|
114
|
-
* retrieves the sequence adapter from parent track, and puts it as a
|
|
115
|
-
* subadapter on a GCContentAdapter
|
|
116
|
-
*/
|
|
115
|
+
configuration: AnyConfigurationSchemaType;
|
|
117
116
|
} & {
|
|
118
117
|
type: import("mobx-state-tree").ISimpleType<"LinearWiggleDisplay">;
|
|
119
118
|
} & {
|
|
120
|
-
/**
|
|
121
|
-
* #property
|
|
122
|
-
*/
|
|
123
|
-
type: import("mobx-state-tree").ISimpleType<"LinearGCContentDisplay">;
|
|
124
119
|
/**
|
|
125
120
|
* #property
|
|
126
121
|
*/
|
|
@@ -138,13 +133,13 @@ export default function stateModelFactory(pluginManager: PluginManager, configSc
|
|
|
138
133
|
model: {
|
|
139
134
|
id: string;
|
|
140
135
|
type: string;
|
|
141
|
-
rpcDriverName: string | undefined;
|
|
136
|
+
rpcDriverName: string | undefined; /**
|
|
137
|
+
* #property
|
|
138
|
+
*/
|
|
142
139
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
143
140
|
rendererTypeName: string;
|
|
144
141
|
error: unknown;
|
|
145
|
-
message: string | undefined;
|
|
146
|
-
* #property
|
|
147
|
-
*/
|
|
142
|
+
message: string | undefined;
|
|
148
143
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
149
144
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
150
145
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -30,17 +30,14 @@ const mobx_state_tree_1 = require("mobx-state-tree");
|
|
|
30
30
|
const react_1 = require("react");
|
|
31
31
|
const EditGCContentParamsDialog = (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('./components/EditGCContentParams'))));
|
|
32
32
|
/**
|
|
33
|
-
* #stateModel
|
|
33
|
+
* #stateModel SharedGCContentModel
|
|
34
34
|
* #category display
|
|
35
|
-
*
|
|
35
|
+
* extends
|
|
36
|
+
* - [LinearWiggleDisplay](../linearwiggledisplay)
|
|
36
37
|
*/
|
|
37
|
-
function
|
|
38
|
+
function SharedModelF(pluginManager, configSchema) {
|
|
38
39
|
return mobx_state_tree_1.types
|
|
39
|
-
.compose('
|
|
40
|
-
/**
|
|
41
|
-
* #property
|
|
42
|
-
*/
|
|
43
|
-
type: mobx_state_tree_1.types.literal('LinearGCContentDisplay'),
|
|
40
|
+
.compose('SharedGCContentModel', (0, plugin_wiggle_1.linearWiggleDisplayModelFactory)(pluginManager, configSchema), mobx_state_tree_1.types.model({
|
|
44
41
|
/**
|
|
45
42
|
* #property
|
|
46
43
|
*/
|
|
@@ -103,4 +100,4 @@ function stateModelFactory(pluginManager, configSchema) {
|
|
|
103
100
|
};
|
|
104
101
|
});
|
|
105
102
|
}
|
|
106
|
-
exports.default =
|
|
103
|
+
exports.default = SharedModelF;
|