@jbrowse/plugin-wiggle 2.11.1 → 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/LinePlotRenderer/LinePlotRenderer.d.ts +2 -1
- package/dist/LinePlotRenderer/LinePlotRenderer.js +6 -1
- package/dist/LinearWiggleDisplay/components/SetColorDialog.js +2 -2
- package/dist/LinearWiggleDisplay/models/configSchema.d.ts +8 -1
- package/dist/LinearWiggleDisplay/models/model.d.ts +6 -0
- package/dist/MultiLinearWiggleDisplay/models/configSchema.d.ts +8 -1
- package/dist/MultiLinearWiggleDisplay/models/model.d.ts +9 -1
- package/dist/WiggleRPC/WiggleGetMultiRegionQuantitativeStats.d.ts +1 -1
- package/dist/WiggleRPC/WiggleGetMultiRegionQuantitativeStats.js +2 -5
- package/dist/index.d.ts +12 -0
- package/dist/shared/configShared.d.ts +8 -1
- package/dist/shared/modelShared.d.ts +25 -10
- package/esm/LinePlotRenderer/LinePlotRenderer.d.ts +2 -1
- package/esm/LinePlotRenderer/LinePlotRenderer.js +6 -1
- package/esm/LinearWiggleDisplay/components/SetColorDialog.js +2 -2
- package/esm/LinearWiggleDisplay/models/configSchema.d.ts +8 -1
- package/esm/LinearWiggleDisplay/models/model.d.ts +6 -0
- package/esm/MultiLinearWiggleDisplay/models/configSchema.d.ts +8 -1
- package/esm/MultiLinearWiggleDisplay/models/model.d.ts +9 -1
- package/esm/WiggleRPC/WiggleGetMultiRegionQuantitativeStats.d.ts +1 -1
- package/esm/WiggleRPC/WiggleGetMultiRegionQuantitativeStats.js +2 -5
- package/esm/index.d.ts +12 -0
- package/esm/shared/configShared.d.ts +8 -1
- package/esm/shared/modelShared.d.ts +25 -10
- package/package.json +3 -3
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { Feature } from '@jbrowse/core/util';
|
|
1
2
|
import WiggleBaseRenderer, { RenderArgsDeserializedWithFeatures } from '../WiggleBaseRenderer';
|
|
2
3
|
export default class LinePlotRenderer extends WiggleBaseRenderer {
|
|
3
4
|
draw(ctx: CanvasRenderingContext2D, props: RenderArgsDeserializedWithFeatures): Promise<{
|
|
4
|
-
reducedFeatures:
|
|
5
|
+
reducedFeatures: Feature[];
|
|
5
6
|
}>;
|
|
6
7
|
}
|
|
@@ -3,15 +3,20 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const configuration_1 = require("@jbrowse/core/configuration");
|
|
6
7
|
const WiggleBaseRenderer_1 = __importDefault(require("../WiggleBaseRenderer"));
|
|
7
8
|
const util_1 = require("../util");
|
|
8
9
|
const drawLine_1 = require("../drawLine");
|
|
9
10
|
class LinePlotRenderer extends WiggleBaseRenderer_1.default {
|
|
10
11
|
async draw(ctx, props) {
|
|
12
|
+
const { config } = props;
|
|
13
|
+
const c = (0, configuration_1.readConfObject)(config, 'color');
|
|
11
14
|
return (0, drawLine_1.drawLine)(ctx, {
|
|
12
15
|
...props,
|
|
13
16
|
offset: util_1.YSCALEBAR_LABEL_OFFSET,
|
|
14
|
-
colorCallback:
|
|
17
|
+
colorCallback: c === '#f0f'
|
|
18
|
+
? () => 'grey'
|
|
19
|
+
: (feature) => (0, configuration_1.readConfObject)(config, 'color', { feature }),
|
|
15
20
|
});
|
|
16
21
|
}
|
|
17
22
|
}
|
|
@@ -33,8 +33,8 @@ const SetColorDialog = (0, mobx_react_1.observer)(function SetColorDialog({ mode
|
|
|
33
33
|
return (react_1.default.createElement(ui_1.Dialog, { open: true, onClose: handleClose, title: "Set color" },
|
|
34
34
|
react_1.default.createElement(material_1.DialogContent, null,
|
|
35
35
|
react_1.default.createElement(material_1.Typography, null, "Select either an overall color, or the positive/negative colors. Note that density renderers only work properly with positive/negative colors"),
|
|
36
|
-
react_1.default.createElement(material_1.FormControlLabel, { checked: !posneg, onClick: () => setPosNeg(false), control: react_1.default.createElement(material_1.Radio, null), label:
|
|
37
|
-
react_1.default.createElement(material_1.FormControlLabel, { checked: posneg, onClick: () => setPosNeg(true), control: react_1.default.createElement(material_1.Radio, null), label:
|
|
36
|
+
react_1.default.createElement(material_1.FormControlLabel, { checked: !posneg, onClick: () => setPosNeg(false), control: react_1.default.createElement(material_1.Radio, null), label: "Overall color" }),
|
|
37
|
+
react_1.default.createElement(material_1.FormControlLabel, { checked: posneg, onClick: () => setPosNeg(true), control: react_1.default.createElement(material_1.Radio, null), label: "Positive/negative color" }),
|
|
38
38
|
posneg ? (react_1.default.createElement(react_1.default.Fragment, null,
|
|
39
39
|
react_1.default.createElement(material_1.Typography, null, "Positive color"),
|
|
40
40
|
react_1.default.createElement(ColorPicker_1.ColorPicker, { color: model.posColor || 'black', onChange: event => {
|
|
@@ -69,7 +69,9 @@ export default function WiggleConfigFactory(pluginManager: PluginManager): impor
|
|
|
69
69
|
type: string;
|
|
70
70
|
defaultValue: number;
|
|
71
71
|
description: string;
|
|
72
|
-
};
|
|
72
|
+
}; /**
|
|
73
|
+
* #slot
|
|
74
|
+
*/
|
|
73
75
|
height: {
|
|
74
76
|
type: string;
|
|
75
77
|
defaultValue: number;
|
|
@@ -81,4 +83,9 @@ export default function WiggleConfigFactory(pluginManager: PluginManager): impor
|
|
|
81
83
|
defaultValue: string;
|
|
82
84
|
contextVariable: string[];
|
|
83
85
|
};
|
|
86
|
+
jexlFilters: {
|
|
87
|
+
type: string;
|
|
88
|
+
description: string;
|
|
89
|
+
defaultValue: never[];
|
|
90
|
+
};
|
|
84
91
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>, undefined>>, undefined>>;
|
|
@@ -95,6 +95,11 @@ declare function stateModelFactory(pluginManager: PluginManager, configSchema: A
|
|
|
95
95
|
defaultValue: string;
|
|
96
96
|
contextVariable: string[];
|
|
97
97
|
};
|
|
98
|
+
jexlFilters: {
|
|
99
|
+
type: string;
|
|
100
|
+
description: string;
|
|
101
|
+
defaultValue: never[];
|
|
102
|
+
};
|
|
98
103
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
99
104
|
} & {
|
|
100
105
|
selectedRendering: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
@@ -235,6 +240,7 @@ declare function stateModelFactory(pluginManager: PluginManager, configSchema: A
|
|
|
235
240
|
addBlock(key: string, block: import("@jbrowse/core/util/blockTypes").BaseBlock): void;
|
|
236
241
|
deleteBlock(key: string): void;
|
|
237
242
|
selectFeature(feature: import("@jbrowse/core/util").Feature): void;
|
|
243
|
+
navToFeature(feature: import("@jbrowse/core/util").Feature): void;
|
|
238
244
|
clearFeatureSelection(): void;
|
|
239
245
|
setFeatureIdUnderMouse(feature?: string | undefined): void;
|
|
240
246
|
setContextMenuFeature(feature?: import("@jbrowse/core/util").Feature | undefined): void;
|
|
@@ -78,11 +78,18 @@ export default function WiggleConfigFactory(pluginManager: PluginManager): impor
|
|
|
78
78
|
type: string;
|
|
79
79
|
defaultValue: number;
|
|
80
80
|
description: string;
|
|
81
|
-
};
|
|
81
|
+
}; /**
|
|
82
|
+
* #slot
|
|
83
|
+
*/
|
|
82
84
|
mouseover: {
|
|
83
85
|
type: string;
|
|
84
86
|
description: string;
|
|
85
87
|
defaultValue: string;
|
|
86
88
|
contextVariable: string[];
|
|
87
89
|
};
|
|
90
|
+
jexlFilters: {
|
|
91
|
+
type: string;
|
|
92
|
+
description: string;
|
|
93
|
+
defaultValue: never[];
|
|
94
|
+
};
|
|
88
95
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>, undefined>>, undefined>>;
|
|
@@ -101,7 +101,14 @@ export declare function stateModelFactory(pluginManager: PluginManager, configSc
|
|
|
101
101
|
defaultValue: string;
|
|
102
102
|
contextVariable: string[];
|
|
103
103
|
};
|
|
104
|
-
|
|
104
|
+
jexlFilters: {
|
|
105
|
+
type: string;
|
|
106
|
+
description: string;
|
|
107
|
+
defaultValue: never[];
|
|
108
|
+
};
|
|
109
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>; /**
|
|
110
|
+
* #action
|
|
111
|
+
*/
|
|
105
112
|
} & {
|
|
106
113
|
selectedRendering: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
107
114
|
resolution: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
@@ -249,6 +256,7 @@ export declare function stateModelFactory(pluginManager: PluginManager, configSc
|
|
|
249
256
|
addBlock(key: string, block: import("@jbrowse/core/util/blockTypes").BaseBlock): void;
|
|
250
257
|
deleteBlock(key: string): void;
|
|
251
258
|
selectFeature(feature: Feature): void;
|
|
259
|
+
navToFeature(feature: Feature): void;
|
|
252
260
|
clearFeatureSelection(): void;
|
|
253
261
|
setFeatureIdUnderMouse(feature?: string | undefined): void;
|
|
254
262
|
setContextMenuFeature(feature?: Feature | undefined): void;
|
|
@@ -16,5 +16,5 @@ export declare class WiggleGetMultiRegionQuantitativeStats extends RpcMethodType
|
|
|
16
16
|
headers?: Record<string, string>;
|
|
17
17
|
regions: Region[];
|
|
18
18
|
bpPerPx: number;
|
|
19
|
-
}, rpcDriverClassName: string): Promise<
|
|
19
|
+
}, rpcDriverClassName: string): Promise<any>;
|
|
20
20
|
}
|
|
@@ -8,7 +8,6 @@ const RpcMethodType_1 = __importDefault(require("@jbrowse/core/pluggableElementT
|
|
|
8
8
|
const serializableFilterChain_1 = __importDefault(require("@jbrowse/core/pluggableElementTypes/renderers/util/serializableFilterChain"));
|
|
9
9
|
const dataAdapterCache_1 = require("@jbrowse/core/data_adapters/dataAdapterCache");
|
|
10
10
|
const util_1 = require("@jbrowse/core/util");
|
|
11
|
-
const BaseAdapter_1 = require("@jbrowse/core/data_adapters/BaseAdapter");
|
|
12
11
|
class WiggleGetMultiRegionQuantitativeStats extends RpcMethodType_1.default {
|
|
13
12
|
constructor() {
|
|
14
13
|
super(...arguments);
|
|
@@ -44,10 +43,8 @@ class WiggleGetMultiRegionQuantitativeStats extends RpcMethodType_1.default {
|
|
|
44
43
|
const deserializedArgs = await this.deserializeArguments(args, rpcDriverClassName);
|
|
45
44
|
const { regions, adapterConfig, sessionId } = deserializedArgs;
|
|
46
45
|
const { dataAdapter } = await (0, dataAdapterCache_1.getAdapter)(pm, sessionId, adapterConfig);
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
throw new Error('Data adapter not found');
|
|
46
|
+
// @ts-expect-error
|
|
47
|
+
return dataAdapter.getMultiRegionQuantitativeStats(regions, deserializedArgs);
|
|
51
48
|
}
|
|
52
49
|
}
|
|
53
50
|
exports.WiggleGetMultiRegionQuantitativeStats = WiggleGetMultiRegionQuantitativeStats;
|
package/dist/index.d.ts
CHANGED
|
@@ -148,6 +148,11 @@ export default class WigglePlugin extends Plugin {
|
|
|
148
148
|
defaultValue: string;
|
|
149
149
|
contextVariable: string[];
|
|
150
150
|
};
|
|
151
|
+
jexlFilters: {
|
|
152
|
+
type: string;
|
|
153
|
+
description: string;
|
|
154
|
+
defaultValue: never[];
|
|
155
|
+
};
|
|
151
156
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">> & import("@jbrowse/core/configuration").AnyConfigurationSchemaType>;
|
|
152
157
|
selectedRendering: string;
|
|
153
158
|
resolution: number;
|
|
@@ -280,6 +285,7 @@ export default class WigglePlugin extends Plugin {
|
|
|
280
285
|
addBlock(key: string, block: import("@jbrowse/core/util/blockTypes").BaseBlock): void;
|
|
281
286
|
deleteBlock(key: string): void;
|
|
282
287
|
selectFeature(feature: import("@jbrowse/core/util").Feature): void;
|
|
288
|
+
navToFeature(feature: import("@jbrowse/core/util").Feature): void;
|
|
283
289
|
clearFeatureSelection(): void;
|
|
284
290
|
setFeatureIdUnderMouse(feature?: string | undefined): void;
|
|
285
291
|
setContextMenuFeature(feature?: import("@jbrowse/core/util").Feature | undefined): void;
|
|
@@ -525,6 +531,11 @@ export default class WigglePlugin extends Plugin {
|
|
|
525
531
|
defaultValue: string;
|
|
526
532
|
contextVariable: string[];
|
|
527
533
|
};
|
|
534
|
+
jexlFilters: {
|
|
535
|
+
type: string;
|
|
536
|
+
description: string;
|
|
537
|
+
defaultValue: never[];
|
|
538
|
+
};
|
|
528
539
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
529
540
|
} & {
|
|
530
541
|
selectedRendering: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
@@ -658,6 +669,7 @@ export default class WigglePlugin extends Plugin {
|
|
|
658
669
|
addBlock(key: string, block: import("@jbrowse/core/util/blockTypes").BaseBlock): void;
|
|
659
670
|
deleteBlock(key: string): void;
|
|
660
671
|
selectFeature(feature: import("@jbrowse/core/util").Feature): void;
|
|
672
|
+
navToFeature(feature: import("@jbrowse/core/util").Feature): void;
|
|
661
673
|
clearFeatureSelection(): void;
|
|
662
674
|
setFeatureIdUnderMouse(feature?: string | undefined): void;
|
|
663
675
|
setContextMenuFeature(feature?: import("@jbrowse/core/util").Feature | undefined): void;
|
|
@@ -71,7 +71,9 @@ export default function sharedWiggleConfigFactory(): import("@jbrowse/core/confi
|
|
|
71
71
|
fetchSizeLimit: {
|
|
72
72
|
type: string;
|
|
73
73
|
defaultValue: number;
|
|
74
|
-
description: string;
|
|
74
|
+
description: string; /**
|
|
75
|
+
* #slot
|
|
76
|
+
*/
|
|
75
77
|
};
|
|
76
78
|
height: {
|
|
77
79
|
type: string;
|
|
@@ -84,4 +86,9 @@ export default function sharedWiggleConfigFactory(): import("@jbrowse/core/confi
|
|
|
84
86
|
defaultValue: string;
|
|
85
87
|
contextVariable: string[];
|
|
86
88
|
};
|
|
89
|
+
jexlFilters: {
|
|
90
|
+
type: string;
|
|
91
|
+
description: string;
|
|
92
|
+
defaultValue: never[];
|
|
93
|
+
};
|
|
87
94
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>, undefined>>;
|
|
@@ -76,7 +76,9 @@ export default function SharedWiggleMixin(configSchema: AnyConfigurationSchemaTy
|
|
|
76
76
|
fetchSizeLimit: {
|
|
77
77
|
type: string;
|
|
78
78
|
defaultValue: number;
|
|
79
|
-
description: string;
|
|
79
|
+
description: string; /**
|
|
80
|
+
* #property
|
|
81
|
+
*/
|
|
80
82
|
};
|
|
81
83
|
height: {
|
|
82
84
|
type: string;
|
|
@@ -89,6 +91,11 @@ export default function SharedWiggleMixin(configSchema: AnyConfigurationSchemaTy
|
|
|
89
91
|
defaultValue: string;
|
|
90
92
|
contextVariable: string[];
|
|
91
93
|
};
|
|
94
|
+
jexlFilters: {
|
|
95
|
+
type: string;
|
|
96
|
+
description: string;
|
|
97
|
+
defaultValue: never[];
|
|
98
|
+
};
|
|
92
99
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
93
100
|
} & {
|
|
94
101
|
/**
|
|
@@ -268,13 +275,15 @@ export default function SharedWiggleMixin(configSchema: AnyConfigurationSchemaTy
|
|
|
268
275
|
readonly featureUnderMouse: Feature | undefined;
|
|
269
276
|
getFeatureOverlapping(blockKey: string, x: number, y: number): string | undefined;
|
|
270
277
|
getFeatureByID(blockKey: string, id: string): [number, number, number, number] | undefined;
|
|
278
|
+
/**
|
|
279
|
+
* #action
|
|
280
|
+
*/
|
|
271
281
|
searchFeatureByID(id: string): [number, number, number, number] | undefined;
|
|
272
282
|
} & {
|
|
273
283
|
addBlock(key: string, block: import("@jbrowse/core/util/blockTypes").BaseBlock): void;
|
|
274
284
|
deleteBlock(key: string): void;
|
|
275
|
-
selectFeature(feature: Feature): void;
|
|
276
|
-
|
|
277
|
-
*/
|
|
285
|
+
selectFeature(feature: Feature): void;
|
|
286
|
+
navToFeature(feature: Feature): void;
|
|
278
287
|
clearFeatureSelection(): void;
|
|
279
288
|
setFeatureIdUnderMouse(feature?: string | undefined): void;
|
|
280
289
|
setContextMenuFeature(feature?: Feature | undefined): void;
|
|
@@ -283,12 +292,11 @@ export default function SharedWiggleMixin(configSchema: AnyConfigurationSchemaTy
|
|
|
283
292
|
} & {
|
|
284
293
|
trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
285
294
|
contextMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
286
|
-
renderProps(): any;
|
|
287
|
-
* #getter
|
|
288
|
-
*/
|
|
295
|
+
renderProps(): any;
|
|
289
296
|
} & {
|
|
290
|
-
renderSvg(opts: import("@jbrowse/plugin-linear-genome-view").ExportSvgDisplayOptions): Promise<import("react").JSX.Element>;
|
|
291
|
-
|
|
297
|
+
renderSvg(opts: import("@jbrowse/plugin-linear-genome-view").ExportSvgDisplayOptions): Promise<import("react").JSX.Element>;
|
|
298
|
+
/**
|
|
299
|
+
* #method
|
|
292
300
|
*/
|
|
293
301
|
afterAttach(): void;
|
|
294
302
|
} & {
|
|
@@ -563,7 +571,9 @@ export default function SharedWiggleMixin(configSchema: AnyConfigurationSchemaTy
|
|
|
563
571
|
fetchSizeLimit: {
|
|
564
572
|
type: string;
|
|
565
573
|
defaultValue: number;
|
|
566
|
-
description: string;
|
|
574
|
+
description: string; /**
|
|
575
|
+
* #property
|
|
576
|
+
*/
|
|
567
577
|
};
|
|
568
578
|
height: {
|
|
569
579
|
type: string;
|
|
@@ -576,6 +586,11 @@ export default function SharedWiggleMixin(configSchema: AnyConfigurationSchemaTy
|
|
|
576
586
|
defaultValue: string;
|
|
577
587
|
contextVariable: string[];
|
|
578
588
|
};
|
|
589
|
+
jexlFilters: {
|
|
590
|
+
type: string;
|
|
591
|
+
description: string;
|
|
592
|
+
defaultValue: never[];
|
|
593
|
+
};
|
|
579
594
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
580
595
|
}>> & import("mobx-state-tree/dist/internal").NonEmptyObject & import("mobx-state-tree")._NotCustomized, {
|
|
581
596
|
type: string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { Feature } from '@jbrowse/core/util';
|
|
1
2
|
import WiggleBaseRenderer, { RenderArgsDeserializedWithFeatures } from '../WiggleBaseRenderer';
|
|
2
3
|
export default class LinePlotRenderer extends WiggleBaseRenderer {
|
|
3
4
|
draw(ctx: CanvasRenderingContext2D, props: RenderArgsDeserializedWithFeatures): Promise<{
|
|
4
|
-
reducedFeatures:
|
|
5
|
+
reducedFeatures: Feature[];
|
|
5
6
|
}>;
|
|
6
7
|
}
|
|
@@ -1,12 +1,17 @@
|
|
|
1
|
+
import { readConfObject } from '@jbrowse/core/configuration';
|
|
1
2
|
import WiggleBaseRenderer from '../WiggleBaseRenderer';
|
|
2
3
|
import { YSCALEBAR_LABEL_OFFSET } from '../util';
|
|
3
4
|
import { drawLine } from '../drawLine';
|
|
4
5
|
export default class LinePlotRenderer extends WiggleBaseRenderer {
|
|
5
6
|
async draw(ctx, props) {
|
|
7
|
+
const { config } = props;
|
|
8
|
+
const c = readConfObject(config, 'color');
|
|
6
9
|
return drawLine(ctx, {
|
|
7
10
|
...props,
|
|
8
11
|
offset: YSCALEBAR_LABEL_OFFSET,
|
|
9
|
-
colorCallback:
|
|
12
|
+
colorCallback: c === '#f0f'
|
|
13
|
+
? () => 'grey'
|
|
14
|
+
: (feature) => readConfObject(config, 'color', { feature }),
|
|
10
15
|
});
|
|
11
16
|
}
|
|
12
17
|
}
|
|
@@ -8,8 +8,8 @@ const SetColorDialog = observer(function SetColorDialog({ model, handleClose, })
|
|
|
8
8
|
return (React.createElement(Dialog, { open: true, onClose: handleClose, title: "Set color" },
|
|
9
9
|
React.createElement(DialogContent, null,
|
|
10
10
|
React.createElement(Typography, null, "Select either an overall color, or the positive/negative colors. Note that density renderers only work properly with positive/negative colors"),
|
|
11
|
-
React.createElement(FormControlLabel, { checked: !posneg, onClick: () => setPosNeg(false), control: React.createElement(Radio, null), label:
|
|
12
|
-
React.createElement(FormControlLabel, { checked: posneg, onClick: () => setPosNeg(true), control: React.createElement(Radio, null), label:
|
|
11
|
+
React.createElement(FormControlLabel, { checked: !posneg, onClick: () => setPosNeg(false), control: React.createElement(Radio, null), label: "Overall color" }),
|
|
12
|
+
React.createElement(FormControlLabel, { checked: posneg, onClick: () => setPosNeg(true), control: React.createElement(Radio, null), label: "Positive/negative color" }),
|
|
13
13
|
posneg ? (React.createElement(React.Fragment, null,
|
|
14
14
|
React.createElement(Typography, null, "Positive color"),
|
|
15
15
|
React.createElement(ColorPicker, { color: model.posColor || 'black', onChange: event => {
|
|
@@ -69,7 +69,9 @@ export default function WiggleConfigFactory(pluginManager: PluginManager): impor
|
|
|
69
69
|
type: string;
|
|
70
70
|
defaultValue: number;
|
|
71
71
|
description: string;
|
|
72
|
-
};
|
|
72
|
+
}; /**
|
|
73
|
+
* #slot
|
|
74
|
+
*/
|
|
73
75
|
height: {
|
|
74
76
|
type: string;
|
|
75
77
|
defaultValue: number;
|
|
@@ -81,4 +83,9 @@ export default function WiggleConfigFactory(pluginManager: PluginManager): impor
|
|
|
81
83
|
defaultValue: string;
|
|
82
84
|
contextVariable: string[];
|
|
83
85
|
};
|
|
86
|
+
jexlFilters: {
|
|
87
|
+
type: string;
|
|
88
|
+
description: string;
|
|
89
|
+
defaultValue: never[];
|
|
90
|
+
};
|
|
84
91
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>, undefined>>, undefined>>;
|
|
@@ -95,6 +95,11 @@ declare function stateModelFactory(pluginManager: PluginManager, configSchema: A
|
|
|
95
95
|
defaultValue: string;
|
|
96
96
|
contextVariable: string[];
|
|
97
97
|
};
|
|
98
|
+
jexlFilters: {
|
|
99
|
+
type: string;
|
|
100
|
+
description: string;
|
|
101
|
+
defaultValue: never[];
|
|
102
|
+
};
|
|
98
103
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
99
104
|
} & {
|
|
100
105
|
selectedRendering: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
@@ -235,6 +240,7 @@ declare function stateModelFactory(pluginManager: PluginManager, configSchema: A
|
|
|
235
240
|
addBlock(key: string, block: import("@jbrowse/core/util/blockTypes").BaseBlock): void;
|
|
236
241
|
deleteBlock(key: string): void;
|
|
237
242
|
selectFeature(feature: import("@jbrowse/core/util").Feature): void;
|
|
243
|
+
navToFeature(feature: import("@jbrowse/core/util").Feature): void;
|
|
238
244
|
clearFeatureSelection(): void;
|
|
239
245
|
setFeatureIdUnderMouse(feature?: string | undefined): void;
|
|
240
246
|
setContextMenuFeature(feature?: import("@jbrowse/core/util").Feature | undefined): void;
|
|
@@ -78,11 +78,18 @@ export default function WiggleConfigFactory(pluginManager: PluginManager): impor
|
|
|
78
78
|
type: string;
|
|
79
79
|
defaultValue: number;
|
|
80
80
|
description: string;
|
|
81
|
-
};
|
|
81
|
+
}; /**
|
|
82
|
+
* #slot
|
|
83
|
+
*/
|
|
82
84
|
mouseover: {
|
|
83
85
|
type: string;
|
|
84
86
|
description: string;
|
|
85
87
|
defaultValue: string;
|
|
86
88
|
contextVariable: string[];
|
|
87
89
|
};
|
|
90
|
+
jexlFilters: {
|
|
91
|
+
type: string;
|
|
92
|
+
description: string;
|
|
93
|
+
defaultValue: never[];
|
|
94
|
+
};
|
|
88
95
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>, undefined>>, undefined>>;
|
|
@@ -101,7 +101,14 @@ export declare function stateModelFactory(pluginManager: PluginManager, configSc
|
|
|
101
101
|
defaultValue: string;
|
|
102
102
|
contextVariable: string[];
|
|
103
103
|
};
|
|
104
|
-
|
|
104
|
+
jexlFilters: {
|
|
105
|
+
type: string;
|
|
106
|
+
description: string;
|
|
107
|
+
defaultValue: never[];
|
|
108
|
+
};
|
|
109
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>; /**
|
|
110
|
+
* #action
|
|
111
|
+
*/
|
|
105
112
|
} & {
|
|
106
113
|
selectedRendering: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
107
114
|
resolution: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
@@ -249,6 +256,7 @@ export declare function stateModelFactory(pluginManager: PluginManager, configSc
|
|
|
249
256
|
addBlock(key: string, block: import("@jbrowse/core/util/blockTypes").BaseBlock): void;
|
|
250
257
|
deleteBlock(key: string): void;
|
|
251
258
|
selectFeature(feature: Feature): void;
|
|
259
|
+
navToFeature(feature: Feature): void;
|
|
252
260
|
clearFeatureSelection(): void;
|
|
253
261
|
setFeatureIdUnderMouse(feature?: string | undefined): void;
|
|
254
262
|
setContextMenuFeature(feature?: Feature | undefined): void;
|
|
@@ -16,5 +16,5 @@ export declare class WiggleGetMultiRegionQuantitativeStats extends RpcMethodType
|
|
|
16
16
|
headers?: Record<string, string>;
|
|
17
17
|
regions: Region[];
|
|
18
18
|
bpPerPx: number;
|
|
19
|
-
}, rpcDriverClassName: string): Promise<
|
|
19
|
+
}, rpcDriverClassName: string): Promise<any>;
|
|
20
20
|
}
|
|
@@ -2,7 +2,6 @@ import RpcMethodType from '@jbrowse/core/pluggableElementTypes/RpcMethodType';
|
|
|
2
2
|
import SerializableFilterChain from '@jbrowse/core/pluggableElementTypes/renderers/util/serializableFilterChain';
|
|
3
3
|
import { getAdapter } from '@jbrowse/core/data_adapters/dataAdapterCache';
|
|
4
4
|
import { renameRegionsIfNeeded } from '@jbrowse/core/util';
|
|
5
|
-
import { BaseFeatureDataAdapter } from '@jbrowse/core/data_adapters/BaseAdapter';
|
|
6
5
|
export class WiggleGetMultiRegionQuantitativeStats extends RpcMethodType {
|
|
7
6
|
constructor() {
|
|
8
7
|
super(...arguments);
|
|
@@ -38,9 +37,7 @@ export class WiggleGetMultiRegionQuantitativeStats extends RpcMethodType {
|
|
|
38
37
|
const deserializedArgs = await this.deserializeArguments(args, rpcDriverClassName);
|
|
39
38
|
const { regions, adapterConfig, sessionId } = deserializedArgs;
|
|
40
39
|
const { dataAdapter } = await getAdapter(pm, sessionId, adapterConfig);
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
44
|
-
throw new Error('Data adapter not found');
|
|
40
|
+
// @ts-expect-error
|
|
41
|
+
return dataAdapter.getMultiRegionQuantitativeStats(regions, deserializedArgs);
|
|
45
42
|
}
|
|
46
43
|
}
|
package/esm/index.d.ts
CHANGED
|
@@ -148,6 +148,11 @@ export default class WigglePlugin extends Plugin {
|
|
|
148
148
|
defaultValue: string;
|
|
149
149
|
contextVariable: string[];
|
|
150
150
|
};
|
|
151
|
+
jexlFilters: {
|
|
152
|
+
type: string;
|
|
153
|
+
description: string;
|
|
154
|
+
defaultValue: never[];
|
|
155
|
+
};
|
|
151
156
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">> & import("@jbrowse/core/configuration").AnyConfigurationSchemaType>;
|
|
152
157
|
selectedRendering: string;
|
|
153
158
|
resolution: number;
|
|
@@ -280,6 +285,7 @@ export default class WigglePlugin extends Plugin {
|
|
|
280
285
|
addBlock(key: string, block: import("@jbrowse/core/util/blockTypes").BaseBlock): void;
|
|
281
286
|
deleteBlock(key: string): void;
|
|
282
287
|
selectFeature(feature: import("@jbrowse/core/util").Feature): void;
|
|
288
|
+
navToFeature(feature: import("@jbrowse/core/util").Feature): void;
|
|
283
289
|
clearFeatureSelection(): void;
|
|
284
290
|
setFeatureIdUnderMouse(feature?: string | undefined): void;
|
|
285
291
|
setContextMenuFeature(feature?: import("@jbrowse/core/util").Feature | undefined): void;
|
|
@@ -525,6 +531,11 @@ export default class WigglePlugin extends Plugin {
|
|
|
525
531
|
defaultValue: string;
|
|
526
532
|
contextVariable: string[];
|
|
527
533
|
};
|
|
534
|
+
jexlFilters: {
|
|
535
|
+
type: string;
|
|
536
|
+
description: string;
|
|
537
|
+
defaultValue: never[];
|
|
538
|
+
};
|
|
528
539
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
529
540
|
} & {
|
|
530
541
|
selectedRendering: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
@@ -658,6 +669,7 @@ export default class WigglePlugin extends Plugin {
|
|
|
658
669
|
addBlock(key: string, block: import("@jbrowse/core/util/blockTypes").BaseBlock): void;
|
|
659
670
|
deleteBlock(key: string): void;
|
|
660
671
|
selectFeature(feature: import("@jbrowse/core/util").Feature): void;
|
|
672
|
+
navToFeature(feature: import("@jbrowse/core/util").Feature): void;
|
|
661
673
|
clearFeatureSelection(): void;
|
|
662
674
|
setFeatureIdUnderMouse(feature?: string | undefined): void;
|
|
663
675
|
setContextMenuFeature(feature?: import("@jbrowse/core/util").Feature | undefined): void;
|
|
@@ -71,7 +71,9 @@ export default function sharedWiggleConfigFactory(): import("@jbrowse/core/confi
|
|
|
71
71
|
fetchSizeLimit: {
|
|
72
72
|
type: string;
|
|
73
73
|
defaultValue: number;
|
|
74
|
-
description: string;
|
|
74
|
+
description: string; /**
|
|
75
|
+
* #slot
|
|
76
|
+
*/
|
|
75
77
|
};
|
|
76
78
|
height: {
|
|
77
79
|
type: string;
|
|
@@ -84,4 +86,9 @@ export default function sharedWiggleConfigFactory(): import("@jbrowse/core/confi
|
|
|
84
86
|
defaultValue: string;
|
|
85
87
|
contextVariable: string[];
|
|
86
88
|
};
|
|
89
|
+
jexlFilters: {
|
|
90
|
+
type: string;
|
|
91
|
+
description: string;
|
|
92
|
+
defaultValue: never[];
|
|
93
|
+
};
|
|
87
94
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>, undefined>>;
|
|
@@ -76,7 +76,9 @@ export default function SharedWiggleMixin(configSchema: AnyConfigurationSchemaTy
|
|
|
76
76
|
fetchSizeLimit: {
|
|
77
77
|
type: string;
|
|
78
78
|
defaultValue: number;
|
|
79
|
-
description: string;
|
|
79
|
+
description: string; /**
|
|
80
|
+
* #property
|
|
81
|
+
*/
|
|
80
82
|
};
|
|
81
83
|
height: {
|
|
82
84
|
type: string;
|
|
@@ -89,6 +91,11 @@ export default function SharedWiggleMixin(configSchema: AnyConfigurationSchemaTy
|
|
|
89
91
|
defaultValue: string;
|
|
90
92
|
contextVariable: string[];
|
|
91
93
|
};
|
|
94
|
+
jexlFilters: {
|
|
95
|
+
type: string;
|
|
96
|
+
description: string;
|
|
97
|
+
defaultValue: never[];
|
|
98
|
+
};
|
|
92
99
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
93
100
|
} & {
|
|
94
101
|
/**
|
|
@@ -268,13 +275,15 @@ export default function SharedWiggleMixin(configSchema: AnyConfigurationSchemaTy
|
|
|
268
275
|
readonly featureUnderMouse: Feature | undefined;
|
|
269
276
|
getFeatureOverlapping(blockKey: string, x: number, y: number): string | undefined;
|
|
270
277
|
getFeatureByID(blockKey: string, id: string): [number, number, number, number] | undefined;
|
|
278
|
+
/**
|
|
279
|
+
* #action
|
|
280
|
+
*/
|
|
271
281
|
searchFeatureByID(id: string): [number, number, number, number] | undefined;
|
|
272
282
|
} & {
|
|
273
283
|
addBlock(key: string, block: import("@jbrowse/core/util/blockTypes").BaseBlock): void;
|
|
274
284
|
deleteBlock(key: string): void;
|
|
275
|
-
selectFeature(feature: Feature): void;
|
|
276
|
-
|
|
277
|
-
*/
|
|
285
|
+
selectFeature(feature: Feature): void;
|
|
286
|
+
navToFeature(feature: Feature): void;
|
|
278
287
|
clearFeatureSelection(): void;
|
|
279
288
|
setFeatureIdUnderMouse(feature?: string | undefined): void;
|
|
280
289
|
setContextMenuFeature(feature?: Feature | undefined): void;
|
|
@@ -283,12 +292,11 @@ export default function SharedWiggleMixin(configSchema: AnyConfigurationSchemaTy
|
|
|
283
292
|
} & {
|
|
284
293
|
trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
285
294
|
contextMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
286
|
-
renderProps(): any;
|
|
287
|
-
* #getter
|
|
288
|
-
*/
|
|
295
|
+
renderProps(): any;
|
|
289
296
|
} & {
|
|
290
|
-
renderSvg(opts: import("@jbrowse/plugin-linear-genome-view").ExportSvgDisplayOptions): Promise<import("react").JSX.Element>;
|
|
291
|
-
|
|
297
|
+
renderSvg(opts: import("@jbrowse/plugin-linear-genome-view").ExportSvgDisplayOptions): Promise<import("react").JSX.Element>;
|
|
298
|
+
/**
|
|
299
|
+
* #method
|
|
292
300
|
*/
|
|
293
301
|
afterAttach(): void;
|
|
294
302
|
} & {
|
|
@@ -563,7 +571,9 @@ export default function SharedWiggleMixin(configSchema: AnyConfigurationSchemaTy
|
|
|
563
571
|
fetchSizeLimit: {
|
|
564
572
|
type: string;
|
|
565
573
|
defaultValue: number;
|
|
566
|
-
description: string;
|
|
574
|
+
description: string; /**
|
|
575
|
+
* #property
|
|
576
|
+
*/
|
|
567
577
|
};
|
|
568
578
|
height: {
|
|
569
579
|
type: string;
|
|
@@ -576,6 +586,11 @@ export default function SharedWiggleMixin(configSchema: AnyConfigurationSchemaTy
|
|
|
576
586
|
defaultValue: string;
|
|
577
587
|
contextVariable: string[];
|
|
578
588
|
};
|
|
589
|
+
jexlFilters: {
|
|
590
|
+
type: string;
|
|
591
|
+
description: string;
|
|
592
|
+
defaultValue: never[];
|
|
593
|
+
};
|
|
579
594
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
580
595
|
}>> & import("mobx-state-tree/dist/internal").NonEmptyObject & import("mobx-state-tree")._NotCustomized, {
|
|
581
596
|
type: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/plugin-wiggle",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.2",
|
|
4
4
|
"description": "JBrowse 2 wiggle adapters, tracks, etc.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
"@floating-ui/react": "^0.26.3",
|
|
40
40
|
"@gmod/bbi": "^4.0.0",
|
|
41
41
|
"@mui/icons-material": "^5.0.2",
|
|
42
|
+
"@mui/x-data-grid": "^7.0.0",
|
|
42
43
|
"clone": "^2.1.2",
|
|
43
44
|
"d3-color": "^3.0.2",
|
|
44
45
|
"d3-scale": "^3.0.2",
|
|
@@ -52,7 +53,6 @@
|
|
|
52
53
|
"@jbrowse/plugin-data-management": "^2.0.0",
|
|
53
54
|
"@jbrowse/plugin-linear-genome-view": "^2.0.0",
|
|
54
55
|
"@mui/material": "^5.0.0",
|
|
55
|
-
"@mui/x-data-grid": "^7.0.0",
|
|
56
56
|
"mobx": "^6.0.0",
|
|
57
57
|
"mobx-react": "^9.0.0",
|
|
58
58
|
"mobx-state-tree": "^5.0.0",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"distModule": "esm/index.js",
|
|
67
67
|
"srcModule": "src/index.ts",
|
|
68
68
|
"module": "esm/index.js",
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "511048cb6965f0bf624c96de244e7fd47fce17d6"
|
|
70
70
|
}
|