@jbrowse/plugin-wiggle 2.11.0 → 2.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/BigWigAdapter/index.d.ts +1 -2
- package/dist/BigWigAdapter/index.js +3 -2
- package/dist/CreateMultiWiggleExtension/index.d.ts +1 -1
- package/dist/CreateMultiWiggleExtension/index.js +2 -2
- package/dist/DensityRenderer/index.d.ts +1 -2
- package/dist/DensityRenderer/index.js +3 -2
- package/dist/LinePlotRenderer/LinePlotRenderer.d.ts +2 -1
- package/dist/LinePlotRenderer/LinePlotRenderer.js +6 -1
- package/dist/LinePlotRenderer/index.d.ts +1 -2
- package/dist/LinePlotRenderer/index.js +3 -2
- package/dist/LinearWiggleDisplay/components/SetColorDialog.js +2 -2
- package/dist/LinearWiggleDisplay/index.d.ts +1 -2
- package/dist/LinearWiggleDisplay/index.js +3 -2
- package/dist/LinearWiggleDisplay/models/configSchema.d.ts +8 -1
- package/dist/LinearWiggleDisplay/models/model.d.ts +6 -0
- package/dist/MultiDensityRenderer/index.d.ts +1 -2
- package/dist/MultiDensityRenderer/index.js +3 -2
- package/dist/MultiLineRenderer/index.d.ts +1 -2
- package/dist/MultiLineRenderer/index.js +3 -2
- package/dist/MultiLinearWiggleDisplay/components/RectBg.js +2 -1
- package/dist/MultiLinearWiggleDisplay/index.d.ts +1 -2
- package/dist/MultiLinearWiggleDisplay/index.js +3 -2
- package/dist/MultiLinearWiggleDisplay/models/configSchema.d.ts +8 -1
- package/dist/MultiLinearWiggleDisplay/models/model.d.ts +9 -1
- package/dist/MultiQuantitativeTrack/index.d.ts +1 -2
- package/dist/MultiQuantitativeTrack/index.js +3 -2
- package/dist/MultiRowLineRenderer/index.d.ts +1 -2
- package/dist/MultiRowLineRenderer/index.js +3 -2
- package/dist/MultiRowXYPlotRenderer/index.d.ts +1 -2
- package/dist/MultiRowXYPlotRenderer/index.js +3 -2
- package/dist/MultiWiggleAdapter/index.d.ts +1 -2
- package/dist/MultiWiggleAdapter/index.js +3 -2
- package/dist/MultiWiggleAddTrackWorkflow/index.d.ts +2 -0
- package/dist/{MultiWiggleAddTrackWidget → MultiWiggleAddTrackWorkflow}/index.js +3 -2
- package/dist/MultiXYPlotRenderer/index.d.ts +1 -2
- package/dist/MultiXYPlotRenderer/index.js +3 -2
- package/dist/QuantitativeTrack/index.d.ts +1 -2
- package/dist/QuantitativeTrack/index.js +3 -2
- package/dist/Tooltip.js +1 -0
- package/dist/WiggleRPC/WiggleGetMultiRegionQuantitativeStats.d.ts +1 -1
- package/dist/WiggleRPC/WiggleGetMultiRegionQuantitativeStats.js +2 -5
- package/dist/XYPlotRenderer/index.d.ts +1 -2
- package/dist/XYPlotRenderer/index.js +3 -2
- package/dist/index.d.ts +12 -0
- package/dist/index.js +2 -2
- package/dist/shared/configShared.d.ts +8 -1
- package/dist/shared/modelShared.d.ts +25 -10
- package/esm/BigWigAdapter/index.d.ts +1 -2
- package/esm/BigWigAdapter/index.js +2 -2
- package/esm/CreateMultiWiggleExtension/index.d.ts +1 -1
- package/esm/CreateMultiWiggleExtension/index.js +1 -1
- package/esm/DensityRenderer/index.d.ts +1 -2
- package/esm/DensityRenderer/index.js +2 -2
- package/esm/LinePlotRenderer/LinePlotRenderer.d.ts +2 -1
- package/esm/LinePlotRenderer/LinePlotRenderer.js +6 -1
- package/esm/LinePlotRenderer/index.d.ts +1 -2
- package/esm/LinePlotRenderer/index.js +2 -2
- package/esm/LinearWiggleDisplay/components/SetColorDialog.js +2 -2
- package/esm/LinearWiggleDisplay/index.d.ts +1 -2
- package/esm/LinearWiggleDisplay/index.js +2 -2
- package/esm/LinearWiggleDisplay/models/configSchema.d.ts +8 -1
- package/esm/LinearWiggleDisplay/models/model.d.ts +6 -0
- package/esm/MultiDensityRenderer/index.d.ts +1 -2
- package/esm/MultiDensityRenderer/index.js +2 -2
- package/esm/MultiLineRenderer/index.d.ts +1 -2
- package/esm/MultiLineRenderer/index.js +2 -2
- package/esm/MultiLinearWiggleDisplay/components/RectBg.js +2 -1
- package/esm/MultiLinearWiggleDisplay/index.d.ts +1 -2
- package/esm/MultiLinearWiggleDisplay/index.js +2 -2
- package/esm/MultiLinearWiggleDisplay/models/configSchema.d.ts +8 -1
- package/esm/MultiLinearWiggleDisplay/models/model.d.ts +9 -1
- package/esm/MultiQuantitativeTrack/index.d.ts +1 -2
- package/esm/MultiQuantitativeTrack/index.js +2 -2
- package/esm/MultiRowLineRenderer/index.d.ts +1 -2
- package/esm/MultiRowLineRenderer/index.js +2 -2
- package/esm/MultiRowXYPlotRenderer/index.d.ts +1 -2
- package/esm/MultiRowXYPlotRenderer/index.js +2 -2
- package/esm/MultiWiggleAdapter/index.d.ts +1 -2
- package/esm/MultiWiggleAdapter/index.js +2 -2
- package/esm/MultiWiggleAddTrackWorkflow/index.d.ts +2 -0
- package/esm/{MultiWiggleAddTrackWidget → MultiWiggleAddTrackWorkflow}/index.js +2 -2
- package/esm/MultiXYPlotRenderer/index.d.ts +1 -2
- package/esm/MultiXYPlotRenderer/index.js +2 -2
- package/esm/QuantitativeTrack/index.d.ts +1 -2
- package/esm/QuantitativeTrack/index.js +2 -2
- package/esm/Tooltip.js +1 -0
- package/esm/WiggleRPC/WiggleGetMultiRegionQuantitativeStats.d.ts +1 -1
- package/esm/WiggleRPC/WiggleGetMultiRegionQuantitativeStats.js +2 -5
- package/esm/XYPlotRenderer/index.d.ts +1 -2
- package/esm/XYPlotRenderer/index.js +2 -2
- package/esm/index.d.ts +12 -0
- package/esm/index.js +2 -2
- package/esm/shared/configShared.d.ts +8 -1
- package/esm/shared/modelShared.d.ts +25 -10
- package/package.json +3 -3
- package/dist/MultiWiggleAddTrackWidget/index.d.ts +0 -3
- package/esm/MultiWiggleAddTrackWidget/index.d.ts +0 -3
- /package/dist/{MultiWiggleAddTrackWidget → MultiWiggleAddTrackWorkflow}/AddTrackWorkflow.d.ts +0 -0
- /package/dist/{MultiWiggleAddTrackWidget → MultiWiggleAddTrackWorkflow}/AddTrackWorkflow.js +0 -0
- /package/esm/{MultiWiggleAddTrackWidget → MultiWiggleAddTrackWorkflow}/AddTrackWorkflow.d.ts +0 -0
- /package/esm/{MultiWiggleAddTrackWidget → MultiWiggleAddTrackWorkflow}/AddTrackWorkflow.js +0 -0
|
@@ -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,6 @@
|
|
|
1
1
|
import AdapterType from '@jbrowse/core/pluggableElementTypes/AdapterType';
|
|
2
2
|
import configSchema from './configSchema';
|
|
3
|
-
export default (pluginManager)
|
|
3
|
+
export default function BigWigAdapterF(pluginManager) {
|
|
4
4
|
pluginManager.addAdapterType(() => new AdapterType({
|
|
5
5
|
name: 'BigWigAdapter',
|
|
6
6
|
displayName: 'BigWig adapter',
|
|
@@ -12,4 +12,4 @@ export default (pluginManager) => {
|
|
|
12
12
|
],
|
|
13
13
|
getAdapterClass: () => import('./BigWigAdapter').then(r => r.default),
|
|
14
14
|
}));
|
|
15
|
-
}
|
|
15
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import PluginManager from '@jbrowse/core/PluginManager';
|
|
2
|
-
export default function (pm: PluginManager): void;
|
|
2
|
+
export default function CreateMultiWiggleExtensionF(pm: PluginManager): void;
|
|
@@ -2,7 +2,7 @@ import { lazy } from 'react';
|
|
|
2
2
|
import { readConfObject } from '@jbrowse/core/configuration';
|
|
3
3
|
import { getSession, isSessionWithAddTracks } from '@jbrowse/core/util';
|
|
4
4
|
const ConfirmDialog = lazy(() => import('./ConfirmDialog'));
|
|
5
|
-
export default function (pm) {
|
|
5
|
+
export default function CreateMultiWiggleExtensionF(pm) {
|
|
6
6
|
pm.addToExtensionPoint('TrackSelector-multiTrackMenuItems', (items, props) => {
|
|
7
7
|
const { session } = props;
|
|
8
8
|
return [
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import configSchema from './configSchema';
|
|
2
2
|
import DensityRenderer from './DensityRenderer';
|
|
3
3
|
import ReactComponent from '../WiggleRendering';
|
|
4
|
-
export default (pluginManager)
|
|
4
|
+
export default function DensityRendererF(pluginManager) {
|
|
5
5
|
pluginManager.addRendererType(() => new DensityRenderer({
|
|
6
6
|
name: 'DensityRenderer',
|
|
7
7
|
ReactComponent,
|
|
8
8
|
configSchema,
|
|
9
9
|
pluginManager,
|
|
10
10
|
}));
|
|
11
|
-
}
|
|
11
|
+
}
|
|
@@ -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
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import configSchema from './configSchema';
|
|
2
2
|
import ReactComponent from '../WiggleRendering';
|
|
3
3
|
import LinePlotRenderer from './LinePlotRenderer';
|
|
4
|
-
export default (pluginManager)
|
|
4
|
+
export default function LinePlotRendererF(pluginManager) {
|
|
5
5
|
pluginManager.addRendererType(() => new LinePlotRenderer({
|
|
6
6
|
name: 'LinePlotRenderer',
|
|
7
7
|
ReactComponent,
|
|
8
8
|
configSchema,
|
|
9
9
|
pluginManager,
|
|
10
10
|
}));
|
|
11
|
-
}
|
|
11
|
+
}
|
|
@@ -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 => {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import PluginManager from '@jbrowse/core/PluginManager';
|
|
2
|
-
|
|
3
|
-
export default _default;
|
|
2
|
+
export default function LinearWiggleDisplayF(pluginManager: PluginManager): void;
|
|
4
3
|
export { default as Tooltip } from './components/Tooltip';
|
|
5
4
|
export { default as ReactComponent } from './components/WiggleDisplayComponent';
|
|
6
5
|
export { default as modelFactory } from './models/model';
|
|
@@ -2,7 +2,7 @@ import DisplayType from '@jbrowse/core/pluggableElementTypes/DisplayType';
|
|
|
2
2
|
import configSchemaFactory from './models/configSchema';
|
|
3
3
|
import modelFactory from './models/model';
|
|
4
4
|
import { lazy } from 'react';
|
|
5
|
-
export default (pluginManager)
|
|
5
|
+
export default function LinearWiggleDisplayF(pluginManager) {
|
|
6
6
|
pluginManager.addDisplayType(() => {
|
|
7
7
|
const configSchema = configSchemaFactory(pluginManager);
|
|
8
8
|
const stateModel = modelFactory(pluginManager, configSchema);
|
|
@@ -16,7 +16,7 @@ export default (pluginManager) => {
|
|
|
16
16
|
ReactComponent: lazy(() => import('./components/WiggleDisplayComponent')),
|
|
17
17
|
});
|
|
18
18
|
});
|
|
19
|
-
}
|
|
19
|
+
}
|
|
20
20
|
export { default as Tooltip } from './components/Tooltip';
|
|
21
21
|
export { default as ReactComponent } from './components/WiggleDisplayComponent';
|
|
22
22
|
export { default as modelFactory } from './models/model';
|
|
@@ -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;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import configSchema from './configSchema';
|
|
2
2
|
import ReactComponent from '../MultiWiggleRendering';
|
|
3
3
|
import MultiDensityRenderer from './MultiDensityRenderer';
|
|
4
|
-
export default (pluginManager)
|
|
4
|
+
export default function MultiDensityRendererF(pluginManager) {
|
|
5
5
|
pluginManager.addRendererType(() => new MultiDensityRenderer({
|
|
6
6
|
name: 'MultiDensityRenderer',
|
|
7
7
|
ReactComponent,
|
|
8
8
|
configSchema,
|
|
9
9
|
pluginManager,
|
|
10
10
|
}));
|
|
11
|
-
}
|
|
11
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import ReactComponent from '../MultiWiggleRendering';
|
|
2
2
|
import MultiLineRenderer from './MultiLineRenderer';
|
|
3
3
|
import configSchema from './configSchema';
|
|
4
|
-
export default (pluginManager)
|
|
4
|
+
export default function MultiLineRendererF(pluginManager) {
|
|
5
5
|
pluginManager.addRendererType(() => new MultiLineRenderer({
|
|
6
6
|
name: 'MultiLineRenderer',
|
|
7
7
|
ReactComponent,
|
|
8
8
|
configSchema,
|
|
9
9
|
pluginManager,
|
|
10
10
|
}));
|
|
11
|
-
}
|
|
11
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { getFillProps } from '@jbrowse/core/util';
|
|
1
2
|
import React from 'react';
|
|
2
3
|
const RectBg = (props) => {
|
|
3
4
|
const { color = 'rgb(255,255,255,0.8)' } = props;
|
|
4
|
-
return React.createElement("rect", { ...props,
|
|
5
|
+
return React.createElement("rect", { ...props, ...getFillProps(color) });
|
|
5
6
|
};
|
|
6
7
|
export default RectBg;
|
|
@@ -2,7 +2,7 @@ import DisplayType from '@jbrowse/core/pluggableElementTypes/DisplayType';
|
|
|
2
2
|
import configSchemaFactory from './models/configSchema';
|
|
3
3
|
import modelFactory from './models/model';
|
|
4
4
|
import { lazy } from 'react';
|
|
5
|
-
export default (pluginManager)
|
|
5
|
+
export default function MultiLinearWiggleDisplayF(pluginManager) {
|
|
6
6
|
pluginManager.addDisplayType(() => {
|
|
7
7
|
const configSchema = configSchemaFactory(pluginManager);
|
|
8
8
|
return new DisplayType({
|
|
@@ -15,4 +15,4 @@ export default (pluginManager) => {
|
|
|
15
15
|
ReactComponent: lazy(() => import('./components/WiggleDisplayComponent')),
|
|
16
16
|
});
|
|
17
17
|
});
|
|
18
|
-
}
|
|
18
|
+
}
|
|
@@ -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;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createBaseTrackModel } from '@jbrowse/core/pluggableElementTypes/models';
|
|
2
2
|
import TrackType from '@jbrowse/core/pluggableElementTypes/TrackType';
|
|
3
3
|
import configSchemaF from './configSchema';
|
|
4
|
-
export default (pluginManager)
|
|
4
|
+
export default function MultiQuantitativeTrackF(pluginManager) {
|
|
5
5
|
pluginManager.addTrackType(() => {
|
|
6
6
|
const configSchema = configSchemaF(pluginManager);
|
|
7
7
|
return new TrackType({
|
|
@@ -11,4 +11,4 @@ export default (pluginManager) => {
|
|
|
11
11
|
stateModel: createBaseTrackModel(pluginManager, 'MultiQuantitativeTrack', configSchema),
|
|
12
12
|
});
|
|
13
13
|
});
|
|
14
|
-
}
|
|
14
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import ReactComponent from '../MultiWiggleRendering';
|
|
2
2
|
import MultiRowLineRenderer from './MultiRowLineRenderer';
|
|
3
3
|
import configSchema from './configSchema';
|
|
4
|
-
export default (pluginManager)
|
|
4
|
+
export default function MultiRowLineRendererF(pluginManager) {
|
|
5
5
|
pluginManager.addRendererType(() => new MultiRowLineRenderer({
|
|
6
6
|
name: 'MultiRowLineRenderer',
|
|
7
7
|
ReactComponent,
|
|
8
8
|
configSchema,
|
|
9
9
|
pluginManager,
|
|
10
10
|
}));
|
|
11
|
-
}
|
|
11
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import ReactComponent from '../MultiWiggleRendering';
|
|
2
2
|
import MultiRowXYPlotRenderer from './MultiRowXYPlotRenderer';
|
|
3
3
|
import configSchema from './configSchema';
|
|
4
|
-
export default (pluginManager)
|
|
4
|
+
export default function MultiRowXYPlotRendererF(pluginManager) {
|
|
5
5
|
pluginManager.addRendererType(() => new MultiRowXYPlotRenderer({
|
|
6
6
|
name: 'MultiRowXYPlotRenderer',
|
|
7
7
|
ReactComponent,
|
|
8
8
|
configSchema,
|
|
9
9
|
pluginManager,
|
|
10
10
|
}));
|
|
11
|
-
}
|
|
11
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import configSchema from './configSchema';
|
|
2
2
|
import AdapterType from '@jbrowse/core/pluggableElementTypes/AdapterType';
|
|
3
|
-
export default (pluginManager)
|
|
3
|
+
export default function MultiWiggleAdapterF(pluginManager) {
|
|
4
4
|
pluginManager.addAdapterType(() => new AdapterType({
|
|
5
5
|
name: 'MultiWiggleAdapter',
|
|
6
6
|
displayName: 'Multi-wiggle adapter',
|
|
@@ -15,4 +15,4 @@ export default (pluginManager) => {
|
|
|
15
15
|
},
|
|
16
16
|
getAdapterClass: () => import('./MultiWiggleAdapter').then(r => r.default),
|
|
17
17
|
}));
|
|
18
|
-
}
|
|
18
|
+
}
|
|
@@ -2,10 +2,10 @@ import { AddTrackWorkflowType } from '@jbrowse/core/pluggableElementTypes';
|
|
|
2
2
|
import { types } from 'mobx-state-tree';
|
|
3
3
|
// locals
|
|
4
4
|
import { lazy } from 'react';
|
|
5
|
-
export default (pm)
|
|
5
|
+
export default function MultiWiggleAddTrackWorkflowF(pm) {
|
|
6
6
|
pm.addAddTrackWorkflowType(() => new AddTrackWorkflowType({
|
|
7
7
|
name: 'Multi-wiggle track',
|
|
8
8
|
ReactComponent: lazy(() => import('./AddTrackWorkflow')),
|
|
9
9
|
stateModel: types.model({}),
|
|
10
10
|
}));
|
|
11
|
-
}
|
|
11
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import ReactComponent from '../MultiWiggleRendering';
|
|
2
2
|
import MultiXYPlotRenderer from './MultiXYPlotRenderer';
|
|
3
3
|
import configSchema from './configSchema';
|
|
4
|
-
export default (pluginManager)
|
|
4
|
+
export default function MultiXYPlotRendererF(pluginManager) {
|
|
5
5
|
pluginManager.addRendererType(() => new MultiXYPlotRenderer({
|
|
6
6
|
name: 'MultiXYPlotRenderer',
|
|
7
7
|
ReactComponent,
|
|
8
8
|
configSchema,
|
|
9
9
|
pluginManager,
|
|
10
10
|
}));
|
|
11
|
-
}
|
|
11
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createBaseTrackModel } from '@jbrowse/core/pluggableElementTypes/models';
|
|
2
2
|
import TrackType from '@jbrowse/core/pluggableElementTypes/TrackType';
|
|
3
3
|
import configSchemaF from './configSchema';
|
|
4
|
-
export default (pluginManager)
|
|
4
|
+
export default function QuantitativeTrackF(pluginManager) {
|
|
5
5
|
pluginManager.addTrackType(() => {
|
|
6
6
|
const configSchema = configSchemaF(pluginManager);
|
|
7
7
|
return new TrackType({
|
|
@@ -11,4 +11,4 @@ export default (pluginManager) => {
|
|
|
11
11
|
stateModel: createBaseTrackModel(pluginManager, 'QuantitativeTrack', configSchema),
|
|
12
12
|
});
|
|
13
13
|
});
|
|
14
|
-
}
|
|
14
|
+
}
|
package/esm/Tooltip.js
CHANGED
|
@@ -39,6 +39,7 @@ const Tooltip = observer(function Tooltip({ model, height, clientMouseCoord, off
|
|
|
39
39
|
const { classes } = useStyles();
|
|
40
40
|
const { refs, floatingStyles, context } = useFloating({
|
|
41
41
|
placement: 'right',
|
|
42
|
+
strategy: 'fixed',
|
|
42
43
|
});
|
|
43
44
|
const x = clientMouseCoord[0] + 5;
|
|
44
45
|
const y = useClientY ? clientMouseCoord[1] : (clientRect === null || clientRect === void 0 ? void 0 : clientRect.top) || 0;
|
|
@@ -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
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import PluginManager from '@jbrowse/core/PluginManager';
|
|
2
|
-
|
|
3
|
-
export default _default;
|
|
2
|
+
export default function XYPlotRendererF(pluginManager: PluginManager): void;
|
|
4
3
|
export { default as XYPlotRenderer } from './XYPlotRenderer';
|
|
5
4
|
export { default as ReactComponent } from '../WiggleRendering';
|
|
6
5
|
export { default as configSchema } from './configSchema';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import ReactComponent from '../WiggleRendering';
|
|
2
2
|
import XYPlotRenderer from './XYPlotRenderer';
|
|
3
3
|
import configSchema from './configSchema';
|
|
4
|
-
export default (pluginManager)
|
|
4
|
+
export default function XYPlotRendererF(pluginManager) {
|
|
5
5
|
pluginManager.addRendererType(() => new XYPlotRenderer({
|
|
6
6
|
name: 'XYPlotRenderer',
|
|
7
7
|
ReactComponent,
|
|
8
8
|
configSchema,
|
|
9
9
|
pluginManager,
|
|
10
10
|
}));
|
|
11
|
-
}
|
|
11
|
+
}
|
|
12
12
|
export { default as XYPlotRenderer } from './XYPlotRenderer';
|
|
13
13
|
export { default as ReactComponent } from '../WiggleRendering';
|
|
14
14
|
export { default as configSchema } from './configSchema';
|