@jbrowse/plugin-gccontent 2.5.0 → 2.6.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.js +0 -1
- package/dist/GCContentAdapter/configSchema.js +1 -1
- package/dist/GCContentAdapter/index.js +0 -1
- package/dist/LinearGCContentDisplay/config.d.ts +1 -0
- package/dist/LinearGCContentDisplay/config.js +1 -1
- package/dist/LinearGCContentDisplay/index.js +0 -1
- package/dist/LinearGCContentDisplay/stateModel.d.ts +115 -57
- package/dist/LinearGCContentDisplay/stateModel.js +2 -2
- package/dist/index.js +0 -1
- package/esm/GCContentAdapter/GCContentAdapter.js +0 -1
- package/esm/GCContentAdapter/configSchema.js +1 -1
- package/esm/GCContentAdapter/index.js +0 -1
- package/esm/LinearGCContentDisplay/config.d.ts +1 -0
- package/esm/LinearGCContentDisplay/config.js +1 -1
- package/esm/LinearGCContentDisplay/index.js +0 -1
- package/esm/LinearGCContentDisplay/stateModel.d.ts +115 -57
- package/esm/LinearGCContentDisplay/stateModel.js +2 -2
- package/esm/index.js +0 -1
- package/package.json +3 -4
- package/dist/GCContentAdapter/GCContentAdapter.js.map +0 -1
- package/dist/GCContentAdapter/configSchema.js.map +0 -1
- package/dist/GCContentAdapter/index.js.map +0 -1
- package/dist/LinearGCContentDisplay/config.js.map +0 -1
- package/dist/LinearGCContentDisplay/index.js.map +0 -1
- package/dist/LinearGCContentDisplay/stateModel.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/esm/GCContentAdapter/GCContentAdapter.js.map +0 -1
- package/esm/GCContentAdapter/configSchema.js.map +0 -1
- package/esm/GCContentAdapter/index.js.map +0 -1
- package/esm/LinearGCContentDisplay/config.js.map +0 -1
- package/esm/LinearGCContentDisplay/index.js.map +0 -1
- package/esm/LinearGCContentDisplay/stateModel.js.map +0 -1
- package/esm/index.js.map +0 -1
- package/src/GCContentAdapter/GCContentAdapter.ts +0 -100
- package/src/GCContentAdapter/configSchema.ts +0 -25
- package/src/GCContentAdapter/index.ts +0 -20
- package/src/LinearGCContentDisplay/config.ts +0 -20
- package/src/LinearGCContentDisplay/index.ts +0 -22
- package/src/LinearGCContentDisplay/stateModel.ts +0 -48
- package/src/index.ts +0 -15
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const configuration_1 = require("@jbrowse/core/configuration");
|
|
4
4
|
/**
|
|
5
5
|
* #config GCContentAdapter
|
|
6
|
+
* #category adapter
|
|
6
7
|
*/
|
|
7
8
|
function x() { } // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
8
9
|
const GCContentAdapterF = (pluginManager) => {
|
|
@@ -17,4 +18,3 @@ const GCContentAdapterF = (pluginManager) => {
|
|
|
17
18
|
}, { explicitlyTyped: true });
|
|
18
19
|
};
|
|
19
20
|
exports.default = GCContentAdapterF;
|
|
20
|
-
//# sourceMappingURL=configSchema.js.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import PluginManager from '@jbrowse/core/PluginManager';
|
|
2
2
|
/**
|
|
3
3
|
* #config LinearGCContentDisplay
|
|
4
|
+
* #category display
|
|
4
5
|
*/
|
|
5
6
|
export default function WiggleConfigFactory(pluginManager: PluginManager): import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration").AnyConfigurationSchemaType, undefined>>;
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const configuration_1 = require("@jbrowse/core/configuration");
|
|
4
4
|
/**
|
|
5
5
|
* #config LinearGCContentDisplay
|
|
6
|
+
* #category display
|
|
6
7
|
*/
|
|
7
8
|
function WiggleConfigFactory(pluginManager) {
|
|
8
9
|
return (0, configuration_1.ConfigurationSchema)('LinearGCContentDisplay', {}, {
|
|
@@ -15,4 +16,3 @@ function WiggleConfigFactory(pluginManager) {
|
|
|
15
16
|
});
|
|
16
17
|
}
|
|
17
18
|
exports.default = WiggleConfigFactory;
|
|
18
|
-
//# sourceMappingURL=config.js.map
|
|
@@ -3,7 +3,8 @@ import { AnyConfigurationSchemaType } from '@jbrowse/core/configuration';
|
|
|
3
3
|
import PluginManager from '@jbrowse/core/PluginManager';
|
|
4
4
|
/**
|
|
5
5
|
* #stateModel LinearGCContentDisplay
|
|
6
|
-
*
|
|
6
|
+
* #category display
|
|
7
|
+
* base model `BaseWiggleDisplayModel`
|
|
7
8
|
*/
|
|
8
9
|
export default function stateModelFactory(pluginManager: PluginManager, configSchema: AnyConfigurationSchemaType): import("mobx-state-tree").IModelType<{
|
|
9
10
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
@@ -11,6 +12,10 @@ export default function stateModelFactory(pluginManager: PluginManager, configSc
|
|
|
11
12
|
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
12
13
|
} & {
|
|
13
14
|
heightPreConfig: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
15
|
+
} & {
|
|
16
|
+
userBpPerPxLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
17
|
+
userByteSizeLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
18
|
+
} & {
|
|
14
19
|
blockState: import("mobx-state-tree").IMapType<import("mobx-state-tree").IModelType<{
|
|
15
20
|
key: import("mobx-state-tree").ISimpleType<string>;
|
|
16
21
|
region: import("mobx-state-tree").IModelType<{
|
|
@@ -57,8 +62,6 @@ export default function stateModelFactory(pluginManager: PluginManager, configSc
|
|
|
57
62
|
reload(): void;
|
|
58
63
|
beforeDestroy(): void;
|
|
59
64
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
60
|
-
userBpPerPxLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
61
|
-
userByteSizeLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
62
65
|
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
63
66
|
maxFeatureScreenDensity: {
|
|
64
67
|
type: string;
|
|
@@ -83,8 +86,6 @@ export default function stateModelFactory(pluginManager: PluginManager, configSc
|
|
|
83
86
|
};
|
|
84
87
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
85
88
|
} & {
|
|
86
|
-
type: import("mobx-state-tree").ISimpleType<"LinearWiggleDisplay">;
|
|
87
|
-
configuration: AnyConfigurationSchemaType;
|
|
88
89
|
selectedRendering: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
89
90
|
resolution: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
90
91
|
fill: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<boolean>>;
|
|
@@ -101,6 +102,9 @@ export default function stateModelFactory(pluginManager: PluginManager, configSc
|
|
|
101
102
|
max: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
102
103
|
min: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
103
104
|
}, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
105
|
+
configuration: AnyConfigurationSchemaType;
|
|
106
|
+
} & {
|
|
107
|
+
type: import("mobx-state-tree").ISimpleType<"LinearWiggleDisplay">;
|
|
104
108
|
} & {
|
|
105
109
|
/**
|
|
106
110
|
* #property
|
|
@@ -109,6 +113,7 @@ export default function stateModelFactory(pluginManager: PluginManager, configSc
|
|
|
109
113
|
}, {
|
|
110
114
|
rendererTypeName: string;
|
|
111
115
|
error: unknown;
|
|
116
|
+
message: string | undefined;
|
|
112
117
|
} & {
|
|
113
118
|
readonly RenderingComponent: import("react").FC<{
|
|
114
119
|
model: {
|
|
@@ -118,6 +123,7 @@ export default function stateModelFactory(pluginManager: PluginManager, configSc
|
|
|
118
123
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
119
124
|
rendererTypeName: string;
|
|
120
125
|
error: unknown;
|
|
126
|
+
message: string | undefined;
|
|
121
127
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
122
128
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
123
129
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -125,6 +131,7 @@ export default function stateModelFactory(pluginManager: PluginManager, configSc
|
|
|
125
131
|
}, {
|
|
126
132
|
rendererTypeName: string;
|
|
127
133
|
error: unknown;
|
|
134
|
+
message: string | undefined;
|
|
128
135
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
129
136
|
onHorizontalScroll?: Function | undefined;
|
|
130
137
|
blockState?: Record<string, any> | undefined;
|
|
@@ -137,6 +144,7 @@ export default function stateModelFactory(pluginManager: PluginManager, configSc
|
|
|
137
144
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
138
145
|
rendererTypeName: string;
|
|
139
146
|
error: unknown;
|
|
147
|
+
message: string | undefined;
|
|
140
148
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
141
149
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
142
150
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -144,6 +152,7 @@ export default function stateModelFactory(pluginManager: PluginManager, configSc
|
|
|
144
152
|
}, {
|
|
145
153
|
rendererTypeName: string;
|
|
146
154
|
error: unknown;
|
|
155
|
+
message: string | undefined;
|
|
147
156
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
148
157
|
}> | null;
|
|
149
158
|
readonly adapterConfig: any;
|
|
@@ -153,21 +162,49 @@ export default function stateModelFactory(pluginManager: PluginManager, configSc
|
|
|
153
162
|
readonly DisplayMessageComponent: import("react").FC<any> | undefined;
|
|
154
163
|
trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
155
164
|
readonly viewMenuActions: import("@jbrowse/core/ui").MenuItem[];
|
|
156
|
-
regionCannotBeRendered():
|
|
165
|
+
regionCannotBeRendered(): null;
|
|
157
166
|
} & {
|
|
167
|
+
setMessage(arg?: string | undefined): void;
|
|
158
168
|
setError(error?: unknown): void;
|
|
159
169
|
setRpcDriverName(rpcDriverName: string): void;
|
|
160
170
|
reload(): void;
|
|
161
171
|
} & {
|
|
162
|
-
currBpPerPx: number;
|
|
163
172
|
scrollTop: number;
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
173
|
+
} & {
|
|
174
|
+
readonly height: number;
|
|
175
|
+
} & {
|
|
176
|
+
setScrollTop(scrollTop: number): void;
|
|
177
|
+
setHeight(displayHeight: number): number;
|
|
178
|
+
resizeHeight(distance: number): number;
|
|
179
|
+
} & {
|
|
167
180
|
featureDensityStatsP: Promise<import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats> | undefined;
|
|
168
181
|
featureDensityStats: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats | undefined;
|
|
182
|
+
currStatsBpPerPx: number;
|
|
183
|
+
} & {
|
|
184
|
+
readonly currentBytesRequested: number;
|
|
185
|
+
readonly currentFeatureScreenDensity: number;
|
|
186
|
+
readonly maxFeatureScreenDensity: any;
|
|
187
|
+
readonly featureDensityStatsReady: boolean;
|
|
188
|
+
readonly maxAllowableBytes: number;
|
|
189
|
+
} & {
|
|
190
|
+
afterAttach(): void;
|
|
191
|
+
} & {
|
|
192
|
+
setCurrStatsBpPerPx(n: number): void;
|
|
193
|
+
setFeatureDensityStatsLimit(stats?: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats | undefined): void;
|
|
194
|
+
getFeatureDensityStats(): Promise<import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats>;
|
|
195
|
+
setFeatureDensityStatsP(arg: any): void;
|
|
196
|
+
setFeatureDensityStats(featureDensityStats?: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats | undefined): void;
|
|
197
|
+
clearFeatureDensityStats(): void;
|
|
198
|
+
} & {
|
|
199
|
+
readonly regionTooLarge: boolean;
|
|
200
|
+
readonly regionTooLargeReason: string;
|
|
201
|
+
} & {
|
|
202
|
+
regionCannotBeRenderedText(_region: import("@jbrowse/core/util").Region): "" | "Force load to see features";
|
|
203
|
+
regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): import("react").JSX.Element | null;
|
|
204
|
+
} & {
|
|
205
|
+
featureIdUnderMouse: string | undefined;
|
|
206
|
+
contextMenuFeature: import("@jbrowse/core/util").Feature | undefined;
|
|
169
207
|
} & {
|
|
170
|
-
readonly height: number;
|
|
171
208
|
readonly blockType: "dynamicBlocks" | "staticBlocks";
|
|
172
209
|
readonly blockDefinitions: import("@jbrowse/core/util/blockTypes").BlockSet;
|
|
173
210
|
} & {
|
|
@@ -181,49 +218,22 @@ export default function stateModelFactory(pluginManager: PluginManager, configSc
|
|
|
181
218
|
getFeatureOverlapping(blockKey: string, x: number, y: number): string | undefined;
|
|
182
219
|
getFeatureByID(blockKey: string, id: string): [number, number, number, number] | undefined;
|
|
183
220
|
searchFeatureByID(id: string): [number, number, number, number] | undefined;
|
|
184
|
-
readonly currentBytesRequested: number;
|
|
185
|
-
readonly currentFeatureScreenDensity: number;
|
|
186
|
-
readonly maxFeatureScreenDensity: any;
|
|
187
|
-
readonly featureDensityStatsReady: boolean;
|
|
188
|
-
readonly maxAllowableBytes: number;
|
|
189
|
-
} & {
|
|
190
|
-
setMessage(message: string): void;
|
|
191
221
|
} & {
|
|
192
|
-
afterAttach(): void;
|
|
193
|
-
getFeatureDensityStats(): Promise<import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats>;
|
|
194
|
-
setFeatureDensityStatsP(arg: any): void;
|
|
195
|
-
setFeatureDensityStats(featureDensityStats?: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats | undefined): void;
|
|
196
|
-
clearFeatureDensityStats(): void;
|
|
197
|
-
setHeight(displayHeight: number): number;
|
|
198
|
-
resizeHeight(distance: number): number;
|
|
199
|
-
setScrollTop(scrollTop: number): void;
|
|
200
|
-
setFeatureDensityStatsLimit(stats?: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats | undefined): void;
|
|
201
222
|
addBlock(key: string, block: import("@jbrowse/core/util/blockTypes").BaseBlock): void;
|
|
202
|
-
setCurrBpPerPx(n: number): void;
|
|
203
223
|
deleteBlock(key: string): void;
|
|
204
224
|
selectFeature(feature: import("@jbrowse/core/util").Feature): void;
|
|
205
225
|
clearFeatureSelection(): void;
|
|
206
226
|
setFeatureIdUnderMouse(feature?: string | undefined): void;
|
|
207
|
-
reload(): void;
|
|
208
227
|
setContextMenuFeature(feature?: import("@jbrowse/core/util").Feature | undefined): void;
|
|
209
|
-
} & {
|
|
210
|
-
readonly regionTooLarge: boolean;
|
|
211
|
-
readonly regionTooLargeReason: string;
|
|
212
228
|
} & {
|
|
213
229
|
reload(): Promise<void>;
|
|
214
230
|
} & {
|
|
215
|
-
afterAttach(): void;
|
|
216
|
-
} & {
|
|
217
|
-
regionCannotBeRenderedText(_region: import("@jbrowse/core/util").Region): "" | "Force load to see features";
|
|
218
|
-
regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): JSX.Element | null;
|
|
219
231
|
trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
220
232
|
contextMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
221
233
|
renderProps(): any;
|
|
222
234
|
} & {
|
|
223
|
-
renderSvg(opts: import("@jbrowse/plugin-linear-genome-view
|
|
224
|
-
|
|
225
|
-
theme: import("@mui/material").ThemeOptions;
|
|
226
|
-
}): Promise<JSX.Element>;
|
|
235
|
+
renderSvg(opts: import("@jbrowse/plugin-linear-genome-view").ExportSvgDisplayOptions): Promise<import("react").JSX.Element>;
|
|
236
|
+
afterAttach(): void;
|
|
227
237
|
} & {
|
|
228
238
|
message: string | undefined;
|
|
229
239
|
stats: {
|
|
@@ -253,25 +263,25 @@ export default function stateModelFactory(pluginManager: PluginManager, configSc
|
|
|
253
263
|
toggleCrossHatches(): void;
|
|
254
264
|
setCrossHatches(cross: boolean): void;
|
|
255
265
|
} & {
|
|
256
|
-
readonly TooltipComponent: import("react").FC<{}>;
|
|
257
266
|
readonly adapterTypeName: any;
|
|
258
267
|
readonly rendererTypeNameSimple: any;
|
|
259
|
-
readonly rendererTypeName: string;
|
|
260
268
|
readonly filters: undefined;
|
|
261
269
|
readonly scaleType: any;
|
|
262
270
|
readonly maxScore: any;
|
|
263
271
|
readonly minScore: any;
|
|
264
272
|
} & {
|
|
273
|
+
readonly adapterCapabilities: string[];
|
|
265
274
|
readonly rendererConfig: {
|
|
266
275
|
[x: string]: any;
|
|
267
276
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
268
277
|
setSubschema(slotName: string, data: unknown): any;
|
|
269
278
|
} & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>;
|
|
279
|
+
readonly autoscaleType: any;
|
|
270
280
|
} & {
|
|
271
|
-
readonly filled: any;
|
|
272
|
-
readonly summaryScoreModeSetting: any;
|
|
273
281
|
readonly domain: number[] | undefined;
|
|
274
|
-
|
|
282
|
+
} & {
|
|
283
|
+
readonly filled: boolean;
|
|
284
|
+
readonly summaryScoreModeSetting: string;
|
|
275
285
|
readonly scaleOpts: {
|
|
276
286
|
domain: number[] | undefined;
|
|
277
287
|
stats: {
|
|
@@ -283,8 +293,36 @@ export default function stateModelFactory(pluginManager: PluginManager, configSc
|
|
|
283
293
|
inverted: any;
|
|
284
294
|
};
|
|
285
295
|
readonly canHaveFill: boolean;
|
|
286
|
-
readonly
|
|
287
|
-
readonly
|
|
296
|
+
readonly displayCrossHatchesSetting: boolean;
|
|
297
|
+
readonly hasResolution: boolean;
|
|
298
|
+
readonly hasGlobalStats: boolean;
|
|
299
|
+
} & {
|
|
300
|
+
scoreTrackMenuItems(): ({
|
|
301
|
+
label: string;
|
|
302
|
+
subMenu: {
|
|
303
|
+
label: string;
|
|
304
|
+
onClick: () => void;
|
|
305
|
+
}[];
|
|
306
|
+
onClick?: undefined;
|
|
307
|
+
} | {
|
|
308
|
+
label: string;
|
|
309
|
+
subMenu: {
|
|
310
|
+
label: string;
|
|
311
|
+
type: string;
|
|
312
|
+
checked: boolean;
|
|
313
|
+
onClick: () => void;
|
|
314
|
+
}[];
|
|
315
|
+
onClick?: undefined;
|
|
316
|
+
} | {
|
|
317
|
+
label: string;
|
|
318
|
+
onClick: () => void;
|
|
319
|
+
subMenu?: undefined;
|
|
320
|
+
})[];
|
|
321
|
+
} & {
|
|
322
|
+
reload(): Promise<void>;
|
|
323
|
+
} & {
|
|
324
|
+
readonly TooltipComponent: import("react").FC<{}>;
|
|
325
|
+
readonly rendererTypeName: string;
|
|
288
326
|
} & {
|
|
289
327
|
readonly ticks: {
|
|
290
328
|
range: number[];
|
|
@@ -292,14 +330,38 @@ export default function stateModelFactory(pluginManager: PluginManager, configSc
|
|
|
292
330
|
format: (d: import("d3-scale").NumberValue) => string;
|
|
293
331
|
position: import("d3-scale").ScaleLinear<number, number, never> | import("d3-scale").ScaleQuantize<number, never>;
|
|
294
332
|
} | undefined;
|
|
295
|
-
readonly adapterCapabilities: string[];
|
|
296
333
|
} & {
|
|
297
334
|
renderProps(): any;
|
|
298
|
-
readonly
|
|
299
|
-
readonly
|
|
300
|
-
readonly fillSetting: 0 | 1 | 2;
|
|
335
|
+
readonly needsScalebar: boolean;
|
|
336
|
+
readonly fillSetting: 1 | 2 | 0;
|
|
301
337
|
} & {
|
|
302
338
|
trackMenuItems(): (import("@jbrowse/core/ui").MenuDivider | import("@jbrowse/core/ui").MenuSubHeader | import("@jbrowse/core/ui").NormalMenuItem | import("@jbrowse/core/ui").CheckboxMenuItem | import("@jbrowse/core/ui").RadioMenuItem | import("@jbrowse/core/ui").SubMenuItem | {
|
|
339
|
+
label: string;
|
|
340
|
+
subMenu: ({
|
|
341
|
+
label: string;
|
|
342
|
+
subMenu: {
|
|
343
|
+
label: string;
|
|
344
|
+
onClick: () => void;
|
|
345
|
+
}[];
|
|
346
|
+
onClick?: undefined;
|
|
347
|
+
} | {
|
|
348
|
+
label: string;
|
|
349
|
+
subMenu: {
|
|
350
|
+
label: string;
|
|
351
|
+
type: string;
|
|
352
|
+
checked: boolean;
|
|
353
|
+
onClick: () => void;
|
|
354
|
+
}[];
|
|
355
|
+
onClick?: undefined;
|
|
356
|
+
} | {
|
|
357
|
+
label: string;
|
|
358
|
+
onClick: () => void;
|
|
359
|
+
subMenu?: undefined;
|
|
360
|
+
})[];
|
|
361
|
+
type?: undefined;
|
|
362
|
+
checked?: undefined;
|
|
363
|
+
onClick?: undefined;
|
|
364
|
+
} | {
|
|
303
365
|
label: string;
|
|
304
366
|
subMenu: {
|
|
305
367
|
label: string;
|
|
@@ -313,17 +375,13 @@ export default function stateModelFactory(pluginManager: PluginManager, configSc
|
|
|
313
375
|
} | {
|
|
314
376
|
type: string;
|
|
315
377
|
label: string;
|
|
316
|
-
checked:
|
|
378
|
+
checked: boolean;
|
|
317
379
|
onClick: () => void;
|
|
318
380
|
subMenu?: undefined;
|
|
319
381
|
})[];
|
|
320
382
|
} & {
|
|
321
|
-
reload(): Promise<void>;
|
|
322
383
|
afterAttach(): void;
|
|
323
|
-
renderSvg(opts: import("@jbrowse/plugin-linear-genome-view
|
|
324
|
-
overrideHeight: number;
|
|
325
|
-
theme: import("@mui/material").ThemeOptions;
|
|
326
|
-
}): Promise<JSX.Element>;
|
|
384
|
+
renderSvg(opts: import("@jbrowse/plugin-linear-genome-view").ExportSvgDisplayOptions): Promise<import("react").JSX.Element>;
|
|
327
385
|
} & {
|
|
328
386
|
/**
|
|
329
387
|
* #method
|
|
@@ -5,7 +5,8 @@ const plugin_wiggle_1 = require("@jbrowse/plugin-wiggle");
|
|
|
5
5
|
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
6
6
|
/**
|
|
7
7
|
* #stateModel LinearGCContentDisplay
|
|
8
|
-
*
|
|
8
|
+
* #category display
|
|
9
|
+
* base model `BaseWiggleDisplayModel`
|
|
9
10
|
*/
|
|
10
11
|
function stateModelFactory(pluginManager, configSchema) {
|
|
11
12
|
return mobx_state_tree_1.types
|
|
@@ -37,4 +38,3 @@ function stateModelFactory(pluginManager, configSchema) {
|
|
|
37
38
|
});
|
|
38
39
|
}
|
|
39
40
|
exports.default = stateModelFactory;
|
|
40
|
-
//# sourceMappingURL=stateModel.js.map
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ConfigurationSchema } from '@jbrowse/core/configuration';
|
|
2
2
|
/**
|
|
3
3
|
* #config GCContentAdapter
|
|
4
|
+
* #category adapter
|
|
4
5
|
*/
|
|
5
6
|
function x() { } // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
6
7
|
const GCContentAdapterF = (pluginManager) => {
|
|
@@ -15,4 +16,3 @@ const GCContentAdapterF = (pluginManager) => {
|
|
|
15
16
|
}, { explicitlyTyped: true });
|
|
16
17
|
};
|
|
17
18
|
export default GCContentAdapterF;
|
|
18
|
-
//# sourceMappingURL=configSchema.js.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import PluginManager from '@jbrowse/core/PluginManager';
|
|
2
2
|
/**
|
|
3
3
|
* #config LinearGCContentDisplay
|
|
4
|
+
* #category display
|
|
4
5
|
*/
|
|
5
6
|
export default function WiggleConfigFactory(pluginManager: PluginManager): import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration").AnyConfigurationSchemaType, undefined>>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ConfigurationSchema } from '@jbrowse/core/configuration';
|
|
2
2
|
/**
|
|
3
3
|
* #config LinearGCContentDisplay
|
|
4
|
+
* #category display
|
|
4
5
|
*/
|
|
5
6
|
export default function WiggleConfigFactory(pluginManager) {
|
|
6
7
|
return ConfigurationSchema('LinearGCContentDisplay', {}, {
|
|
@@ -12,4 +13,3 @@ export default function WiggleConfigFactory(pluginManager) {
|
|
|
12
13
|
explicitlyTyped: true,
|
|
13
14
|
});
|
|
14
15
|
}
|
|
15
|
-
//# sourceMappingURL=config.js.map
|
|
@@ -3,7 +3,8 @@ import { AnyConfigurationSchemaType } from '@jbrowse/core/configuration';
|
|
|
3
3
|
import PluginManager from '@jbrowse/core/PluginManager';
|
|
4
4
|
/**
|
|
5
5
|
* #stateModel LinearGCContentDisplay
|
|
6
|
-
*
|
|
6
|
+
* #category display
|
|
7
|
+
* base model `BaseWiggleDisplayModel`
|
|
7
8
|
*/
|
|
8
9
|
export default function stateModelFactory(pluginManager: PluginManager, configSchema: AnyConfigurationSchemaType): import("mobx-state-tree").IModelType<{
|
|
9
10
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
@@ -11,6 +12,10 @@ export default function stateModelFactory(pluginManager: PluginManager, configSc
|
|
|
11
12
|
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
12
13
|
} & {
|
|
13
14
|
heightPreConfig: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
15
|
+
} & {
|
|
16
|
+
userBpPerPxLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
17
|
+
userByteSizeLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
18
|
+
} & {
|
|
14
19
|
blockState: import("mobx-state-tree").IMapType<import("mobx-state-tree").IModelType<{
|
|
15
20
|
key: import("mobx-state-tree").ISimpleType<string>;
|
|
16
21
|
region: import("mobx-state-tree").IModelType<{
|
|
@@ -57,8 +62,6 @@ export default function stateModelFactory(pluginManager: PluginManager, configSc
|
|
|
57
62
|
reload(): void;
|
|
58
63
|
beforeDestroy(): void;
|
|
59
64
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
60
|
-
userBpPerPxLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
61
|
-
userByteSizeLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
62
65
|
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
63
66
|
maxFeatureScreenDensity: {
|
|
64
67
|
type: string;
|
|
@@ -83,8 +86,6 @@ export default function stateModelFactory(pluginManager: PluginManager, configSc
|
|
|
83
86
|
};
|
|
84
87
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
85
88
|
} & {
|
|
86
|
-
type: import("mobx-state-tree").ISimpleType<"LinearWiggleDisplay">;
|
|
87
|
-
configuration: AnyConfigurationSchemaType;
|
|
88
89
|
selectedRendering: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
89
90
|
resolution: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
90
91
|
fill: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<boolean>>;
|
|
@@ -101,6 +102,9 @@ export default function stateModelFactory(pluginManager: PluginManager, configSc
|
|
|
101
102
|
max: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
102
103
|
min: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
103
104
|
}, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
105
|
+
configuration: AnyConfigurationSchemaType;
|
|
106
|
+
} & {
|
|
107
|
+
type: import("mobx-state-tree").ISimpleType<"LinearWiggleDisplay">;
|
|
104
108
|
} & {
|
|
105
109
|
/**
|
|
106
110
|
* #property
|
|
@@ -109,6 +113,7 @@ export default function stateModelFactory(pluginManager: PluginManager, configSc
|
|
|
109
113
|
}, {
|
|
110
114
|
rendererTypeName: string;
|
|
111
115
|
error: unknown;
|
|
116
|
+
message: string | undefined;
|
|
112
117
|
} & {
|
|
113
118
|
readonly RenderingComponent: import("react").FC<{
|
|
114
119
|
model: {
|
|
@@ -118,6 +123,7 @@ export default function stateModelFactory(pluginManager: PluginManager, configSc
|
|
|
118
123
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
119
124
|
rendererTypeName: string;
|
|
120
125
|
error: unknown;
|
|
126
|
+
message: string | undefined;
|
|
121
127
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
122
128
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
123
129
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -125,6 +131,7 @@ export default function stateModelFactory(pluginManager: PluginManager, configSc
|
|
|
125
131
|
}, {
|
|
126
132
|
rendererTypeName: string;
|
|
127
133
|
error: unknown;
|
|
134
|
+
message: string | undefined;
|
|
128
135
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
129
136
|
onHorizontalScroll?: Function | undefined;
|
|
130
137
|
blockState?: Record<string, any> | undefined;
|
|
@@ -137,6 +144,7 @@ export default function stateModelFactory(pluginManager: PluginManager, configSc
|
|
|
137
144
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
138
145
|
rendererTypeName: string;
|
|
139
146
|
error: unknown;
|
|
147
|
+
message: string | undefined;
|
|
140
148
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
141
149
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
142
150
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -144,6 +152,7 @@ export default function stateModelFactory(pluginManager: PluginManager, configSc
|
|
|
144
152
|
}, {
|
|
145
153
|
rendererTypeName: string;
|
|
146
154
|
error: unknown;
|
|
155
|
+
message: string | undefined;
|
|
147
156
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
148
157
|
}> | null;
|
|
149
158
|
readonly adapterConfig: any;
|
|
@@ -153,21 +162,49 @@ export default function stateModelFactory(pluginManager: PluginManager, configSc
|
|
|
153
162
|
readonly DisplayMessageComponent: import("react").FC<any> | undefined;
|
|
154
163
|
trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
155
164
|
readonly viewMenuActions: import("@jbrowse/core/ui").MenuItem[];
|
|
156
|
-
regionCannotBeRendered():
|
|
165
|
+
regionCannotBeRendered(): null;
|
|
157
166
|
} & {
|
|
167
|
+
setMessage(arg?: string | undefined): void;
|
|
158
168
|
setError(error?: unknown): void;
|
|
159
169
|
setRpcDriverName(rpcDriverName: string): void;
|
|
160
170
|
reload(): void;
|
|
161
171
|
} & {
|
|
162
|
-
currBpPerPx: number;
|
|
163
172
|
scrollTop: number;
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
173
|
+
} & {
|
|
174
|
+
readonly height: number;
|
|
175
|
+
} & {
|
|
176
|
+
setScrollTop(scrollTop: number): void;
|
|
177
|
+
setHeight(displayHeight: number): number;
|
|
178
|
+
resizeHeight(distance: number): number;
|
|
179
|
+
} & {
|
|
167
180
|
featureDensityStatsP: Promise<import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats> | undefined;
|
|
168
181
|
featureDensityStats: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats | undefined;
|
|
182
|
+
currStatsBpPerPx: number;
|
|
183
|
+
} & {
|
|
184
|
+
readonly currentBytesRequested: number;
|
|
185
|
+
readonly currentFeatureScreenDensity: number;
|
|
186
|
+
readonly maxFeatureScreenDensity: any;
|
|
187
|
+
readonly featureDensityStatsReady: boolean;
|
|
188
|
+
readonly maxAllowableBytes: number;
|
|
189
|
+
} & {
|
|
190
|
+
afterAttach(): void;
|
|
191
|
+
} & {
|
|
192
|
+
setCurrStatsBpPerPx(n: number): void;
|
|
193
|
+
setFeatureDensityStatsLimit(stats?: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats | undefined): void;
|
|
194
|
+
getFeatureDensityStats(): Promise<import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats>;
|
|
195
|
+
setFeatureDensityStatsP(arg: any): void;
|
|
196
|
+
setFeatureDensityStats(featureDensityStats?: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats | undefined): void;
|
|
197
|
+
clearFeatureDensityStats(): void;
|
|
198
|
+
} & {
|
|
199
|
+
readonly regionTooLarge: boolean;
|
|
200
|
+
readonly regionTooLargeReason: string;
|
|
201
|
+
} & {
|
|
202
|
+
regionCannotBeRenderedText(_region: import("@jbrowse/core/util").Region): "" | "Force load to see features";
|
|
203
|
+
regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): import("react").JSX.Element | null;
|
|
204
|
+
} & {
|
|
205
|
+
featureIdUnderMouse: string | undefined;
|
|
206
|
+
contextMenuFeature: import("@jbrowse/core/util").Feature | undefined;
|
|
169
207
|
} & {
|
|
170
|
-
readonly height: number;
|
|
171
208
|
readonly blockType: "dynamicBlocks" | "staticBlocks";
|
|
172
209
|
readonly blockDefinitions: import("@jbrowse/core/util/blockTypes").BlockSet;
|
|
173
210
|
} & {
|
|
@@ -181,49 +218,22 @@ export default function stateModelFactory(pluginManager: PluginManager, configSc
|
|
|
181
218
|
getFeatureOverlapping(blockKey: string, x: number, y: number): string | undefined;
|
|
182
219
|
getFeatureByID(blockKey: string, id: string): [number, number, number, number] | undefined;
|
|
183
220
|
searchFeatureByID(id: string): [number, number, number, number] | undefined;
|
|
184
|
-
readonly currentBytesRequested: number;
|
|
185
|
-
readonly currentFeatureScreenDensity: number;
|
|
186
|
-
readonly maxFeatureScreenDensity: any;
|
|
187
|
-
readonly featureDensityStatsReady: boolean;
|
|
188
|
-
readonly maxAllowableBytes: number;
|
|
189
|
-
} & {
|
|
190
|
-
setMessage(message: string): void;
|
|
191
221
|
} & {
|
|
192
|
-
afterAttach(): void;
|
|
193
|
-
getFeatureDensityStats(): Promise<import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats>;
|
|
194
|
-
setFeatureDensityStatsP(arg: any): void;
|
|
195
|
-
setFeatureDensityStats(featureDensityStats?: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats | undefined): void;
|
|
196
|
-
clearFeatureDensityStats(): void;
|
|
197
|
-
setHeight(displayHeight: number): number;
|
|
198
|
-
resizeHeight(distance: number): number;
|
|
199
|
-
setScrollTop(scrollTop: number): void;
|
|
200
|
-
setFeatureDensityStatsLimit(stats?: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats | undefined): void;
|
|
201
222
|
addBlock(key: string, block: import("@jbrowse/core/util/blockTypes").BaseBlock): void;
|
|
202
|
-
setCurrBpPerPx(n: number): void;
|
|
203
223
|
deleteBlock(key: string): void;
|
|
204
224
|
selectFeature(feature: import("@jbrowse/core/util").Feature): void;
|
|
205
225
|
clearFeatureSelection(): void;
|
|
206
226
|
setFeatureIdUnderMouse(feature?: string | undefined): void;
|
|
207
|
-
reload(): void;
|
|
208
227
|
setContextMenuFeature(feature?: import("@jbrowse/core/util").Feature | undefined): void;
|
|
209
|
-
} & {
|
|
210
|
-
readonly regionTooLarge: boolean;
|
|
211
|
-
readonly regionTooLargeReason: string;
|
|
212
228
|
} & {
|
|
213
229
|
reload(): Promise<void>;
|
|
214
230
|
} & {
|
|
215
|
-
afterAttach(): void;
|
|
216
|
-
} & {
|
|
217
|
-
regionCannotBeRenderedText(_region: import("@jbrowse/core/util").Region): "" | "Force load to see features";
|
|
218
|
-
regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): JSX.Element | null;
|
|
219
231
|
trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
220
232
|
contextMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
221
233
|
renderProps(): any;
|
|
222
234
|
} & {
|
|
223
|
-
renderSvg(opts: import("@jbrowse/plugin-linear-genome-view
|
|
224
|
-
|
|
225
|
-
theme: import("@mui/material").ThemeOptions;
|
|
226
|
-
}): Promise<JSX.Element>;
|
|
235
|
+
renderSvg(opts: import("@jbrowse/plugin-linear-genome-view").ExportSvgDisplayOptions): Promise<import("react").JSX.Element>;
|
|
236
|
+
afterAttach(): void;
|
|
227
237
|
} & {
|
|
228
238
|
message: string | undefined;
|
|
229
239
|
stats: {
|
|
@@ -253,25 +263,25 @@ export default function stateModelFactory(pluginManager: PluginManager, configSc
|
|
|
253
263
|
toggleCrossHatches(): void;
|
|
254
264
|
setCrossHatches(cross: boolean): void;
|
|
255
265
|
} & {
|
|
256
|
-
readonly TooltipComponent: import("react").FC<{}>;
|
|
257
266
|
readonly adapterTypeName: any;
|
|
258
267
|
readonly rendererTypeNameSimple: any;
|
|
259
|
-
readonly rendererTypeName: string;
|
|
260
268
|
readonly filters: undefined;
|
|
261
269
|
readonly scaleType: any;
|
|
262
270
|
readonly maxScore: any;
|
|
263
271
|
readonly minScore: any;
|
|
264
272
|
} & {
|
|
273
|
+
readonly adapterCapabilities: string[];
|
|
265
274
|
readonly rendererConfig: {
|
|
266
275
|
[x: string]: any;
|
|
267
276
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
268
277
|
setSubschema(slotName: string, data: unknown): any;
|
|
269
278
|
} & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>;
|
|
279
|
+
readonly autoscaleType: any;
|
|
270
280
|
} & {
|
|
271
|
-
readonly filled: any;
|
|
272
|
-
readonly summaryScoreModeSetting: any;
|
|
273
281
|
readonly domain: number[] | undefined;
|
|
274
|
-
|
|
282
|
+
} & {
|
|
283
|
+
readonly filled: boolean;
|
|
284
|
+
readonly summaryScoreModeSetting: string;
|
|
275
285
|
readonly scaleOpts: {
|
|
276
286
|
domain: number[] | undefined;
|
|
277
287
|
stats: {
|
|
@@ -283,8 +293,36 @@ export default function stateModelFactory(pluginManager: PluginManager, configSc
|
|
|
283
293
|
inverted: any;
|
|
284
294
|
};
|
|
285
295
|
readonly canHaveFill: boolean;
|
|
286
|
-
readonly
|
|
287
|
-
readonly
|
|
296
|
+
readonly displayCrossHatchesSetting: boolean;
|
|
297
|
+
readonly hasResolution: boolean;
|
|
298
|
+
readonly hasGlobalStats: boolean;
|
|
299
|
+
} & {
|
|
300
|
+
scoreTrackMenuItems(): ({
|
|
301
|
+
label: string;
|
|
302
|
+
subMenu: {
|
|
303
|
+
label: string;
|
|
304
|
+
onClick: () => void;
|
|
305
|
+
}[];
|
|
306
|
+
onClick?: undefined;
|
|
307
|
+
} | {
|
|
308
|
+
label: string;
|
|
309
|
+
subMenu: {
|
|
310
|
+
label: string;
|
|
311
|
+
type: string;
|
|
312
|
+
checked: boolean;
|
|
313
|
+
onClick: () => void;
|
|
314
|
+
}[];
|
|
315
|
+
onClick?: undefined;
|
|
316
|
+
} | {
|
|
317
|
+
label: string;
|
|
318
|
+
onClick: () => void;
|
|
319
|
+
subMenu?: undefined;
|
|
320
|
+
})[];
|
|
321
|
+
} & {
|
|
322
|
+
reload(): Promise<void>;
|
|
323
|
+
} & {
|
|
324
|
+
readonly TooltipComponent: import("react").FC<{}>;
|
|
325
|
+
readonly rendererTypeName: string;
|
|
288
326
|
} & {
|
|
289
327
|
readonly ticks: {
|
|
290
328
|
range: number[];
|
|
@@ -292,14 +330,38 @@ export default function stateModelFactory(pluginManager: PluginManager, configSc
|
|
|
292
330
|
format: (d: import("d3-scale").NumberValue) => string;
|
|
293
331
|
position: import("d3-scale").ScaleLinear<number, number, never> | import("d3-scale").ScaleQuantize<number, never>;
|
|
294
332
|
} | undefined;
|
|
295
|
-
readonly adapterCapabilities: string[];
|
|
296
333
|
} & {
|
|
297
334
|
renderProps(): any;
|
|
298
|
-
readonly
|
|
299
|
-
readonly
|
|
300
|
-
readonly fillSetting: 0 | 1 | 2;
|
|
335
|
+
readonly needsScalebar: boolean;
|
|
336
|
+
readonly fillSetting: 1 | 2 | 0;
|
|
301
337
|
} & {
|
|
302
338
|
trackMenuItems(): (import("@jbrowse/core/ui").MenuDivider | import("@jbrowse/core/ui").MenuSubHeader | import("@jbrowse/core/ui").NormalMenuItem | import("@jbrowse/core/ui").CheckboxMenuItem | import("@jbrowse/core/ui").RadioMenuItem | import("@jbrowse/core/ui").SubMenuItem | {
|
|
339
|
+
label: string;
|
|
340
|
+
subMenu: ({
|
|
341
|
+
label: string;
|
|
342
|
+
subMenu: {
|
|
343
|
+
label: string;
|
|
344
|
+
onClick: () => void;
|
|
345
|
+
}[];
|
|
346
|
+
onClick?: undefined;
|
|
347
|
+
} | {
|
|
348
|
+
label: string;
|
|
349
|
+
subMenu: {
|
|
350
|
+
label: string;
|
|
351
|
+
type: string;
|
|
352
|
+
checked: boolean;
|
|
353
|
+
onClick: () => void;
|
|
354
|
+
}[];
|
|
355
|
+
onClick?: undefined;
|
|
356
|
+
} | {
|
|
357
|
+
label: string;
|
|
358
|
+
onClick: () => void;
|
|
359
|
+
subMenu?: undefined;
|
|
360
|
+
})[];
|
|
361
|
+
type?: undefined;
|
|
362
|
+
checked?: undefined;
|
|
363
|
+
onClick?: undefined;
|
|
364
|
+
} | {
|
|
303
365
|
label: string;
|
|
304
366
|
subMenu: {
|
|
305
367
|
label: string;
|
|
@@ -313,17 +375,13 @@ export default function stateModelFactory(pluginManager: PluginManager, configSc
|
|
|
313
375
|
} | {
|
|
314
376
|
type: string;
|
|
315
377
|
label: string;
|
|
316
|
-
checked:
|
|
378
|
+
checked: boolean;
|
|
317
379
|
onClick: () => void;
|
|
318
380
|
subMenu?: undefined;
|
|
319
381
|
})[];
|
|
320
382
|
} & {
|
|
321
|
-
reload(): Promise<void>;
|
|
322
383
|
afterAttach(): void;
|
|
323
|
-
renderSvg(opts: import("@jbrowse/plugin-linear-genome-view
|
|
324
|
-
overrideHeight: number;
|
|
325
|
-
theme: import("@mui/material").ThemeOptions;
|
|
326
|
-
}): Promise<JSX.Element>;
|
|
384
|
+
renderSvg(opts: import("@jbrowse/plugin-linear-genome-view").ExportSvgDisplayOptions): Promise<import("react").JSX.Element>;
|
|
327
385
|
} & {
|
|
328
386
|
/**
|
|
329
387
|
* #method
|
|
@@ -3,7 +3,8 @@ import { linearWiggleDisplayModelFactory } from '@jbrowse/plugin-wiggle';
|
|
|
3
3
|
import { types } from 'mobx-state-tree';
|
|
4
4
|
/**
|
|
5
5
|
* #stateModel LinearGCContentDisplay
|
|
6
|
-
*
|
|
6
|
+
* #category display
|
|
7
|
+
* base model `BaseWiggleDisplayModel`
|
|
7
8
|
*/
|
|
8
9
|
export default function stateModelFactory(pluginManager, configSchema) {
|
|
9
10
|
return types
|
|
@@ -34,4 +35,3 @@ export default function stateModelFactory(pluginManager, configSchema) {
|
|
|
34
35
|
};
|
|
35
36
|
});
|
|
36
37
|
}
|
|
37
|
-
//# sourceMappingURL=stateModel.js.map
|
package/esm/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/plugin-gccontent",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.2",
|
|
4
4
|
"description": "JBrowse 2 gccontent concepts",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -20,7 +20,6 @@
|
|
|
20
20
|
"main": "dist/index.js",
|
|
21
21
|
"files": [
|
|
22
22
|
"dist",
|
|
23
|
-
"src",
|
|
24
23
|
"esm"
|
|
25
24
|
],
|
|
26
25
|
"scripts": {
|
|
@@ -33,7 +32,7 @@
|
|
|
33
32
|
"useSrc": "node ../../scripts/useSrc.js",
|
|
34
33
|
"prebuild": "npm run clean",
|
|
35
34
|
"build:esm": "tsc --build tsconfig.build.esm.json",
|
|
36
|
-
"build:
|
|
35
|
+
"build:commonjs": "tsc --build tsconfig.build.commonjs.json",
|
|
37
36
|
"clean": "rimraf dist esm *.tsbuildinfo"
|
|
38
37
|
},
|
|
39
38
|
"peerDependencies": {
|
|
@@ -54,5 +53,5 @@
|
|
|
54
53
|
"distModule": "esm/index.js",
|
|
55
54
|
"srcModule": "src/index.ts",
|
|
56
55
|
"module": "esm/index.js",
|
|
57
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "bbea587a402d9974acdd804a33f4b77f31a2fd5f"
|
|
58
57
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GCContentAdapter.js","sourceRoot":"","sources":["../../src/GCContentAdapter/GCContentAdapter.ts"],"names":[],"mappings":";;AAAA,yEAGgD;AAChD,+BAAqC;AACrC,kDAA0D;AAC1D,6CAAmE;AACnE,8CAAwC;AAExC,eAAqB,SAAQ,oCAAsB;IAAnD;;QACU,eAAU,GAAG,IAAI,CAAA;QAEjB,gBAAW,GAAG,IAAI,CAAA;QAElB,WAAM,GAAG,SAAS,CAAA;IAqF5B,CAAC;IAjFQ,KAAK,CAAC,SAAS;;QACpB,MAAM,OAAO,GAAG,MAAM,CAAA,MAAA,IAAI,CAAC,aAAa,qDAAG,IAAI,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAAA,CAAA;QAC3E,IAAI,CAAC,OAAO,EAAE;YACZ,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAA;SAC5C;QACD,OAAO,OAAO,CAAC,WAAqC,CAAA;IACtD,CAAC;IAEM,KAAK,CAAC,WAAW;QACtB,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,SAAS,EAAE,CAAA;QACtC,OAAO,OAAO,CAAC,WAAW,EAAE,CAAA;IAC9B,CAAC;IAEM,WAAW,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AC,GAAG,IAAI,CAAC,WAAW;oBAC/B,KAAK;iBACN,CAAC,CACH,CAAA;aACF;YACD,QAAQ,CAAC,QAAQ,EAAE,CAAA;QACrB,CAAC,CAAC,CAAA;IACJ,CAAC;IAED;;;;OAIG;IACI,aAAa,EAAC,gBAAgB,IAAG,CAAC;;AAlF3B,sBAAY,GAAG,CAAC,eAAe,CAAC,AAApB,CAAoB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"configSchema.js","sourceRoot":"","sources":["../../src/GCContentAdapter/configSchema.ts"],"names":[],"mappings":";;AACA,+DAAiE;AAEjE;;GAEG;AACH,SAAS,CAAC,KAAI,CAAC,CAAC,wDAAwD;AAExE,MAAM,iBAAiB,GAAG,CAAC,aAA4B,EAAE,EAAE;IACzD,OAAO,IAAA,mCAAmB,EACxB,kBAAkB,EAClB;QACE;;WAEG;QACH,eAAe,EAAE;YACf,IAAI,EAAE,QAAQ;YACd,YAAY,EAAE,IAAI;SACnB;KACF,EACD,EAAE,eAAe,EAAE,IAAI,EAAE,CAC1B,CAAA;AACH,CAAC,CAAA;AAED,kBAAe,iBAAiB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/GCContentAdapter/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,kGAAyE;AAEzE,kEAA0C;AAE1C,kBAAe,CAAC,aAA4B,EAAE,EAAE;IAC9C,aAAa,CAAC,cAAc,CAC1B,GAAG,EAAE,CACH,IAAI,qBAAW,CAAC;QACd,IAAI,EAAE,kBAAkB;QACxB,WAAW,EAAE,oBAAoB;QACjC,eAAe,EAAE;YACf,aAAa,EAAE,IAAI;SACpB;QACD,YAAY,EAAE,IAAA,sBAAa,EAAC,aAAa,CAAC;QAC1C,eAAe,EAAE,GAAG,EAAE,CACpB,kDAAO,oBAAoB,IAAE,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;KACpD,CAAC,CACL,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/LinearGCContentDisplay/config.ts"],"names":[],"mappings":";;AAAA,+DAAiE;AAGjE;;GAEG;AACH,SAAwB,mBAAmB,CAAC,aAA4B;IACtE,OAAO,IAAA,mCAAmB,EACxB,wBAAwB,EACxB,EAAE,EACF;QACE;;WAEG;QACH,iBAAiB,EAAE,aAAa,CAAC,cAAc,CAAC,qBAAqB,CAAC;aACnE,YAAY;QACf,eAAe,EAAE,IAAI;KACtB,CACF,CAAA;AACH,CAAC;AAbD,sCAaC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/LinearGCContentDisplay/index.ts"],"names":[],"mappings":";;;;;AAAA,+EAAiE;AAEjE,0DAA0E;AAE1E,sDAA0C;AAC1C,8DAA4C;AAE5C,kBAAe,CAAC,aAA4B,EAAE,EAAE;IAC9C,aAAa,CAAC,cAAc,CAAC,GAAG,EAAE;QAChC,MAAM,YAAY,GAAG,IAAA,gBAAmB,EAAC,aAAa,CAAC,CAAA;QACvD,MAAM,UAAU,GAAG,IAAA,oBAAiB,EAAC,aAAa,EAAE,YAAY,CAAC,CAAA;QACjE,OAAO,IAAI,mCAAW,CAAC;YACrB,IAAI,EAAE,wBAAwB;YAC9B,YAAY;YACZ,UAAU;YACV,WAAW,EAAE,oBAAoB;YACjC,SAAS,EAAE,wBAAwB;YACnC,QAAQ,EAAE,kBAAkB;YAC5B,cAAc,EAAE,iDAAiC;SAClD,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stateModel.js","sourceRoot":"","sources":["../../src/LinearGCContentDisplay/stateModel.ts"],"names":[],"mappings":";;AAAA,+DAGoC;AAEpC,0DAAwE;AACxE,qDAAuC;AAEvC;;;GAGG;AACH,SAAwB,iBAAiB,CACvC,aAA4B,EAC5B,YAAwC;IAExC,OAAO,uBAAK;SACT,OAAO,CACN,wBAAwB,EACxB,IAAA,+CAA+B,EAAC,aAAa,EAAE,YAAY,CAAC,EAC5D,uBAAK,CAAC,KAAK,CAAC;QACV;;WAEG;QACH,IAAI,EAAE,uBAAK,CAAC,OAAO,CAAC,wBAAwB,CAAC;KAC9C,CAAC,CACH;SACA,KAAK,CAAC,IAAI,CAAC,EAAE;QACZ,MAAM,EAAE,WAAW,EAAE,gBAAgB,EAAE,GAAG,IAAI,CAAA;QAC9C,OAAO;YACL;;;;eAIG;YACH,WAAW;gBACT,MAAM,eAAe,GAAG,IAAA,uBAAO,EAAC,IAAI,CAAC,WAAW,EAAE,SAAS,CAAC,CAAA;gBAC5D,OAAO;oBACL,GAAG,gBAAgB,EAAE;oBACrB,aAAa,EAAE;wBACb,IAAI,EAAE,kBAAkB;wBACxB,eAAe;qBAChB;iBACF,CAAA;YACH,CAAC;SACF,CAAA;IACH,CAAC,CAAC,CAAA;AACN,CAAC;AAnCD,oCAmCC"}
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;AAAA,kEAAyC;AAGzC,SAAS;AACT,0EAAkD;AAClD,sFAA8D;AAE9D,MAAqB,eAAgB,SAAQ,gBAAM;IAAnD;;QACE,SAAI,GAAG,iBAAiB,CAAA;IAM1B,CAAC;IAJC,OAAO,CAAC,aAA4B;QAClC,IAAA,0BAAiB,EAAC,aAAa,CAAC,CAAA;QAChC,IAAA,gCAAuB,EAAC,aAAa,CAAC,CAAA;IACxC,CAAC;CACF;AAPD,kCAOC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GCContentAdapter.js","sourceRoot":"","sources":["../../src/GCContentAdapter/GCContentAdapter.ts"],"names":[],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6B,CAAA;AAEjE;;GAEG;AACH,SAAS,CAAC,KAAI,CAAC,CAAC,wDAAwD;AAExE,MAAM,iBAAiB,GAAG,CAAC,aAA4B,EAAE,EAAE;IACzD,OAAO,mBAAmB,CACxB,kBAAkB,EAClB;QACE;;WAEG;QACH,eAAe,EAAE;YACf,IAAI,EAAE,QAAQ;YACd,YAAY,EAAE,IAAI;SACnB;KACF,EACD,EAAE,eAAe,EAAE,IAAI,EAAE,CAC1B,CAAA;AACH,CAAC,CAAA;AAED,eAAe,iBAAiB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/GCContentAdapter/index.ts"],"names":[],"mappings":"AACA,OAAO,WAAW,MAAM,iDAAiD,CAAA;AAEzE,OAAO,aAAa,MAAM,gBAAgB,CAAA;AAE1C,eAAe,CAAC,aAA4B,EAAE,EAAE;IAC9C,aAAa,CAAC,cAAc,CAC1B,GAAG,EAAE,CACH,IAAI,WAAW,CAAC;QACd,IAAI,EAAE,kBAAkB;QACxB,WAAW,EAAE,oBAAoB;QACjC,eAAe,EAAE;YACf,aAAa,EAAE,IAAI;SACpB;QACD,YAAY,EAAE,aAAa,CAAC,aAAa,CAAC;QAC1C,eAAe,EAAE,GAAG,EAAE,CACpB,MAAM,CAAC,oBAAoB,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;KACpD,CAAC,CACL,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/LinearGCContentDisplay/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AAGjE;;GAEG;AACH,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,aAA4B;IACtE,OAAO,mBAAmB,CACxB,wBAAwB,EACxB,EAAE,EACF;QACE;;WAEG;QACH,iBAAiB,EAAE,aAAa,CAAC,cAAc,CAAC,qBAAqB,CAAC;aACnE,YAAY;QACf,eAAe,EAAE,IAAI;KACtB,CACF,CAAA;AACH,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/LinearGCContentDisplay/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAA;AAEjE,OAAO,EAAE,iCAAiC,EAAE,MAAM,wBAAwB,CAAA;AAE1E,OAAO,mBAAmB,MAAM,UAAU,CAAA;AAC1C,OAAO,iBAAiB,MAAM,cAAc,CAAA;AAE5C,eAAe,CAAC,aAA4B,EAAE,EAAE;IAC9C,aAAa,CAAC,cAAc,CAAC,GAAG,EAAE;QAChC,MAAM,YAAY,GAAG,mBAAmB,CAAC,aAAa,CAAC,CAAA;QACvD,MAAM,UAAU,GAAG,iBAAiB,CAAC,aAAa,EAAE,YAAY,CAAC,CAAA;QACjE,OAAO,IAAI,WAAW,CAAC;YACrB,IAAI,EAAE,wBAAwB;YAC9B,YAAY;YACZ,UAAU;YACV,WAAW,EAAE,oBAAoB;YACjC,SAAS,EAAE,wBAAwB;YACnC,QAAQ,EAAE,kBAAkB;YAC5B,cAAc,EAAE,iCAAiC;SAClD,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stateModel.js","sourceRoot":"","sources":["../../src/LinearGCContentDisplay/stateModel.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,GAER,MAAM,6BAA6B,CAAA;AAEpC,OAAO,EAAE,+BAA+B,EAAE,MAAM,wBAAwB,CAAA;AACxE,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AAEvC;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,iBAAiB,CACvC,aAA4B,EAC5B,YAAwC;IAExC,OAAO,KAAK;SACT,OAAO,CACN,wBAAwB,EACxB,+BAA+B,CAAC,aAAa,EAAE,YAAY,CAAC,EAC5D,KAAK,CAAC,KAAK,CAAC;QACV;;WAEG;QACH,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,wBAAwB,CAAC;KAC9C,CAAC,CACH;SACA,KAAK,CAAC,IAAI,CAAC,EAAE;QACZ,MAAM,EAAE,WAAW,EAAE,gBAAgB,EAAE,GAAG,IAAI,CAAA;QAC9C,OAAO;YACL;;;;eAIG;YACH,WAAW;gBACT,MAAM,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,SAAS,CAAC,CAAA;gBAC5D,OAAO;oBACL,GAAG,gBAAgB,EAAE;oBACrB,aAAa,EAAE;wBACb,IAAI,EAAE,kBAAkB;wBACxB,eAAe;qBAChB;iBACF,CAAA;YACH,CAAC;SACF,CAAA;IACH,CAAC,CAAC,CAAA;AACN,CAAC"}
|
package/esm/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,sBAAsB,CAAA;AAGzC,SAAS;AACT,OAAO,iBAAiB,MAAM,oBAAoB,CAAA;AAClD,OAAO,uBAAuB,MAAM,0BAA0B,CAAA;AAE9D,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,MAAM;IAAnD;;QACE,SAAI,GAAG,iBAAiB,CAAA;IAM1B,CAAC;IAJC,OAAO,CAAC,aAA4B;QAClC,iBAAiB,CAAC,aAAa,CAAC,CAAA;QAChC,uBAAuB,CAAC,aAAa,CAAC,CAAA;IACxC,CAAC;CACF"}
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
BaseFeatureDataAdapter,
|
|
3
|
-
BaseOptions,
|
|
4
|
-
} from '@jbrowse/core/data_adapters/BaseAdapter'
|
|
5
|
-
import { firstValueFrom } from 'rxjs'
|
|
6
|
-
import { ObservableCreate } from '@jbrowse/core/util/rxjs'
|
|
7
|
-
import { SimpleFeature, Feature, Region } from '@jbrowse/core/util'
|
|
8
|
-
import { toArray } from 'rxjs/operators'
|
|
9
|
-
|
|
10
|
-
export default class extends BaseFeatureDataAdapter {
|
|
11
|
-
private windowSize = 1000
|
|
12
|
-
|
|
13
|
-
private windowDelta = 1000
|
|
14
|
-
|
|
15
|
-
private gcMode = 'content'
|
|
16
|
-
|
|
17
|
-
public static capabilities = ['hasLocalStats']
|
|
18
|
-
|
|
19
|
-
public async configure() {
|
|
20
|
-
const adapter = await this.getSubAdapter?.(this.getConf('sequenceAdapter'))
|
|
21
|
-
if (!adapter) {
|
|
22
|
-
throw new Error('Error getting subadapter')
|
|
23
|
-
}
|
|
24
|
-
return adapter.dataAdapter as BaseFeatureDataAdapter
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
public async getRefNames() {
|
|
28
|
-
const adapter = await this.configure()
|
|
29
|
-
return adapter.getRefNames()
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
public getFeatures(query: Region, opts: BaseOptions) {
|
|
33
|
-
return ObservableCreate<Feature>(async observer => {
|
|
34
|
-
const sequenceAdapter = await this.configure()
|
|
35
|
-
const hw = this.windowSize === 1 ? 1 : this.windowSize / 2 // Half the window size
|
|
36
|
-
const f = this.windowSize === 1
|
|
37
|
-
|
|
38
|
-
let { start: queryStart, end: queryEnd } = query
|
|
39
|
-
queryStart = Math.max(0, queryStart - hw)
|
|
40
|
-
queryEnd += hw
|
|
41
|
-
|
|
42
|
-
if (queryEnd < 0 || queryStart > queryEnd) {
|
|
43
|
-
observer.complete()
|
|
44
|
-
return
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
const ret = sequenceAdapter.getFeatures(
|
|
48
|
-
{
|
|
49
|
-
...query,
|
|
50
|
-
start: queryStart,
|
|
51
|
-
end: queryEnd,
|
|
52
|
-
},
|
|
53
|
-
opts,
|
|
54
|
-
)
|
|
55
|
-
const feats = await firstValueFrom(ret.pipe(toArray()))
|
|
56
|
-
const residues = feats[0]?.get('seq') || ''
|
|
57
|
-
|
|
58
|
-
for (let i = hw; i < residues.length - hw; i += this.windowDelta) {
|
|
59
|
-
const r = f ? residues[i] : residues.slice(i - hw, i + hw)
|
|
60
|
-
let nc = 0
|
|
61
|
-
let ng = 0
|
|
62
|
-
let len = 0
|
|
63
|
-
for (let j = 0; j < r.length; j++) {
|
|
64
|
-
if (r[j] === 'c' || r[j] === 'C') {
|
|
65
|
-
nc++
|
|
66
|
-
} else if (r[j] === 'g' || r[j] === 'G') {
|
|
67
|
-
ng++
|
|
68
|
-
}
|
|
69
|
-
if (r[j] !== 'N') {
|
|
70
|
-
len++
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
const pos = queryStart
|
|
74
|
-
let score
|
|
75
|
-
if (this.gcMode === 'content') {
|
|
76
|
-
score = (ng + nc) / (len || 1)
|
|
77
|
-
} else if (this.gcMode === 'skew') {
|
|
78
|
-
score = (ng - nc) / (ng + nc || 1)
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
observer.next(
|
|
82
|
-
new SimpleFeature({
|
|
83
|
-
uniqueId: `${this.id}_${pos + i}`,
|
|
84
|
-
start: pos + i,
|
|
85
|
-
end: pos + i + this.windowDelta,
|
|
86
|
-
score,
|
|
87
|
-
}),
|
|
88
|
-
)
|
|
89
|
-
}
|
|
90
|
-
observer.complete()
|
|
91
|
-
})
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* called to provide a hint that data tied to a certain region
|
|
96
|
-
* will not be needed for the foreseeable future and can be purged
|
|
97
|
-
* from caches, etc
|
|
98
|
-
*/
|
|
99
|
-
public freeResources(/* { region } */) {}
|
|
100
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import PluginManager from '@jbrowse/core/PluginManager'
|
|
2
|
-
import { ConfigurationSchema } from '@jbrowse/core/configuration'
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* #config GCContentAdapter
|
|
6
|
-
*/
|
|
7
|
-
function x() {} // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
8
|
-
|
|
9
|
-
const GCContentAdapterF = (pluginManager: PluginManager) => {
|
|
10
|
-
return ConfigurationSchema(
|
|
11
|
-
'GCContentAdapter',
|
|
12
|
-
{
|
|
13
|
-
/**
|
|
14
|
-
* #slot
|
|
15
|
-
*/
|
|
16
|
-
sequenceAdapter: {
|
|
17
|
-
type: 'frozen',
|
|
18
|
-
defaultValue: null,
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
{ explicitlyTyped: true },
|
|
22
|
-
)
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export default GCContentAdapterF
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import PluginManager from '@jbrowse/core/PluginManager'
|
|
2
|
-
import AdapterType from '@jbrowse/core/pluggableElementTypes/AdapterType'
|
|
3
|
-
|
|
4
|
-
import configSchemaF from './configSchema'
|
|
5
|
-
|
|
6
|
-
export default (pluginManager: PluginManager) => {
|
|
7
|
-
pluginManager.addAdapterType(
|
|
8
|
-
() =>
|
|
9
|
-
new AdapterType({
|
|
10
|
-
name: 'GCContentAdapter',
|
|
11
|
-
displayName: 'GC content adapter',
|
|
12
|
-
adapterMetadata: {
|
|
13
|
-
hiddenFromGUI: true,
|
|
14
|
-
},
|
|
15
|
-
configSchema: configSchemaF(pluginManager),
|
|
16
|
-
getAdapterClass: () =>
|
|
17
|
-
import('./GCContentAdapter').then(r => r.default),
|
|
18
|
-
}),
|
|
19
|
-
)
|
|
20
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { ConfigurationSchema } from '@jbrowse/core/configuration'
|
|
2
|
-
import PluginManager from '@jbrowse/core/PluginManager'
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* #config LinearGCContentDisplay
|
|
6
|
-
*/
|
|
7
|
-
export default function WiggleConfigFactory(pluginManager: PluginManager) {
|
|
8
|
-
return ConfigurationSchema(
|
|
9
|
-
'LinearGCContentDisplay',
|
|
10
|
-
{},
|
|
11
|
-
{
|
|
12
|
-
/**
|
|
13
|
-
* #baseConfiguration
|
|
14
|
-
*/
|
|
15
|
-
baseConfiguration: pluginManager.getDisplayType('LinearWiggleDisplay')
|
|
16
|
-
.configSchema,
|
|
17
|
-
explicitlyTyped: true,
|
|
18
|
-
},
|
|
19
|
-
)
|
|
20
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { DisplayType } from '@jbrowse/core/pluggableElementTypes'
|
|
2
|
-
import PluginManager from '@jbrowse/core/PluginManager'
|
|
3
|
-
import { LinearWiggleDisplayReactComponent } from '@jbrowse/plugin-wiggle'
|
|
4
|
-
|
|
5
|
-
import configSchemaFactory from './config'
|
|
6
|
-
import stateModelFactory from './stateModel'
|
|
7
|
-
|
|
8
|
-
export default (pluginManager: PluginManager) => {
|
|
9
|
-
pluginManager.addDisplayType(() => {
|
|
10
|
-
const configSchema = configSchemaFactory(pluginManager)
|
|
11
|
-
const stateModel = stateModelFactory(pluginManager, configSchema)
|
|
12
|
-
return new DisplayType({
|
|
13
|
-
name: 'LinearGCContentDisplay',
|
|
14
|
-
configSchema,
|
|
15
|
-
stateModel,
|
|
16
|
-
displayName: 'GC content display',
|
|
17
|
-
trackType: 'ReferenceSequenceTrack',
|
|
18
|
-
viewType: 'LinearGenomeView',
|
|
19
|
-
ReactComponent: LinearWiggleDisplayReactComponent,
|
|
20
|
-
})
|
|
21
|
-
})
|
|
22
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
getConf,
|
|
3
|
-
AnyConfigurationSchemaType,
|
|
4
|
-
} from '@jbrowse/core/configuration'
|
|
5
|
-
import PluginManager from '@jbrowse/core/PluginManager'
|
|
6
|
-
import { linearWiggleDisplayModelFactory } from '@jbrowse/plugin-wiggle'
|
|
7
|
-
import { types } from 'mobx-state-tree'
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* #stateModel LinearGCContentDisplay
|
|
11
|
-
* base model BaseWiggleDisplayModel
|
|
12
|
-
*/
|
|
13
|
-
export default function stateModelFactory(
|
|
14
|
-
pluginManager: PluginManager,
|
|
15
|
-
configSchema: AnyConfigurationSchemaType,
|
|
16
|
-
) {
|
|
17
|
-
return types
|
|
18
|
-
.compose(
|
|
19
|
-
'LinearGCContentDisplay',
|
|
20
|
-
linearWiggleDisplayModelFactory(pluginManager, configSchema),
|
|
21
|
-
types.model({
|
|
22
|
-
/**
|
|
23
|
-
* #property
|
|
24
|
-
*/
|
|
25
|
-
type: types.literal('LinearGCContentDisplay'),
|
|
26
|
-
}),
|
|
27
|
-
)
|
|
28
|
-
.views(self => {
|
|
29
|
-
const { renderProps: superRenderProps } = self
|
|
30
|
-
return {
|
|
31
|
-
/**
|
|
32
|
-
* #method
|
|
33
|
-
* retrieves the sequence adapter from parent track, and puts it as a
|
|
34
|
-
* subadapter on a GCContentAdapter
|
|
35
|
-
*/
|
|
36
|
-
renderProps() {
|
|
37
|
-
const sequenceAdapter = getConf(self.parentTrack, 'adapter')
|
|
38
|
-
return {
|
|
39
|
-
...superRenderProps(),
|
|
40
|
-
adapterConfig: {
|
|
41
|
-
type: 'GCContentAdapter',
|
|
42
|
-
sequenceAdapter,
|
|
43
|
-
},
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
}
|
|
47
|
-
})
|
|
48
|
-
}
|
package/src/index.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import Plugin from '@jbrowse/core/Plugin'
|
|
2
|
-
import PluginManager from '@jbrowse/core/PluginManager'
|
|
3
|
-
|
|
4
|
-
// locals
|
|
5
|
-
import GCContentAdapterF from './GCContentAdapter'
|
|
6
|
-
import LinearGCContentDisplayF from './LinearGCContentDisplay'
|
|
7
|
-
|
|
8
|
-
export default class GCContentPlugin extends Plugin {
|
|
9
|
-
name = 'GCContentPlugin'
|
|
10
|
-
|
|
11
|
-
install(pluginManager: PluginManager) {
|
|
12
|
-
GCContentAdapterF(pluginManager)
|
|
13
|
-
LinearGCContentDisplayF(pluginManager)
|
|
14
|
-
}
|
|
15
|
-
}
|