@jbrowse/plugin-wiggle 2.17.0 → 2.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/BigWigAdapter/BigWigAdapter.d.ts +4 -3
- package/dist/BigWigAdapter/BigWigAdapter.js +3 -8
- package/dist/BigWigAdapter/configSchema.d.ts +0 -9
- package/dist/BigWigAdapter/configSchema.js +1 -13
- package/dist/BigWigAdapter/index.d.ts +1 -1
- package/dist/CreateMultiWiggleExtension/ConfirmDialog.d.ts +1 -1
- package/dist/CreateMultiWiggleExtension/ConfirmDialog.js +2 -2
- package/dist/CreateMultiWiggleExtension/index.d.ts +1 -1
- package/dist/CreateMultiWiggleExtension/index.js +26 -26
- package/dist/DensityRenderer/DensityRenderer.d.ts +2 -1
- package/dist/DensityRenderer/DensityRenderer.js +1 -1
- package/dist/DensityRenderer/configSchema.js +1 -7
- package/dist/DensityRenderer/index.d.ts +1 -1
- package/dist/DensityRenderer/index.js +1 -1
- package/dist/LinePlotRenderer/LinePlotRenderer.d.ts +3 -2
- package/dist/LinePlotRenderer/LinePlotRenderer.js +1 -1
- package/dist/LinePlotRenderer/configSchema.d.ts +0 -3
- package/dist/LinePlotRenderer/configSchema.js +1 -10
- package/dist/LinePlotRenderer/index.d.ts +1 -1
- package/dist/LinearWiggleDisplay/components/SetColorDialog.js +2 -2
- package/dist/LinearWiggleDisplay/components/Tooltip.d.ts +2 -2
- package/dist/LinearWiggleDisplay/components/Tooltip.js +0 -1
- package/dist/LinearWiggleDisplay/components/WiggleDisplayComponent.d.ts +1 -1
- package/dist/LinearWiggleDisplay/components/WiggleDisplayComponent.js +2 -2
- package/dist/LinearWiggleDisplay/configSchema.d.ts +1 -12
- package/dist/LinearWiggleDisplay/configSchema.js +0 -15
- package/dist/LinearWiggleDisplay/index.d.ts +1 -1
- package/dist/LinearWiggleDisplay/index.js +1 -1
- package/dist/LinearWiggleDisplay/model.d.ts +13 -71
- package/dist/LinearWiggleDisplay/model.js +2 -51
- package/dist/LinearWiggleDisplay/renderSvg.d.ts +2 -2
- package/dist/LinearWiggleDisplay/renderSvg.js +1 -2
- package/dist/MultiDensityRenderer/MultiDensityRenderer.d.ts +4 -3
- package/dist/MultiDensityRenderer/MultiDensityRenderer.js +2 -3
- package/dist/MultiDensityRenderer/configSchema.js +1 -7
- package/dist/MultiDensityRenderer/index.d.ts +1 -1
- package/dist/MultiLineRenderer/MultiLineRenderer.d.ts +3 -2
- package/dist/MultiLineRenderer/MultiLineRenderer.js +1 -2
- package/dist/MultiLineRenderer/configSchema.d.ts +0 -6
- package/dist/MultiLineRenderer/configSchema.js +1 -13
- package/dist/MultiLineRenderer/index.d.ts +1 -1
- package/dist/MultiLinearWiggleDisplay/components/ColorLegend.d.ts +1 -1
- package/dist/MultiLinearWiggleDisplay/components/ColorLegend.js +0 -1
- package/dist/MultiLinearWiggleDisplay/components/DraggableDialog.d.ts +1 -1
- package/dist/MultiLinearWiggleDisplay/components/DraggableDialog.js +3 -7
- package/dist/MultiLinearWiggleDisplay/components/RectBg.js +1 -1
- package/dist/MultiLinearWiggleDisplay/components/ScoreLegend.d.ts +1 -1
- package/dist/MultiLinearWiggleDisplay/components/SetColorDialog.d.ts +1 -1
- package/dist/MultiLinearWiggleDisplay/components/SetColorDialog.js +3 -5
- package/dist/MultiLinearWiggleDisplay/components/SourcesGrid.d.ts +1 -1
- package/dist/MultiLinearWiggleDisplay/components/SourcesGrid.js +15 -26
- package/dist/MultiLinearWiggleDisplay/components/Tooltip.d.ts +3 -3
- package/dist/MultiLinearWiggleDisplay/components/Tooltip.js +1 -2
- package/dist/MultiLinearWiggleDisplay/components/WiggleDisplayComponent.d.ts +1 -1
- package/dist/MultiLinearWiggleDisplay/components/YScaleBars.d.ts +1 -1
- package/dist/MultiLinearWiggleDisplay/components/YScaleBars.js +1 -1
- package/dist/MultiLinearWiggleDisplay/components/util.d.ts +1 -1
- package/dist/MultiLinearWiggleDisplay/components/util.js +1 -1
- package/dist/MultiLinearWiggleDisplay/configSchema.d.ts +1 -10
- package/dist/MultiLinearWiggleDisplay/configSchema.js +1 -19
- package/dist/MultiLinearWiggleDisplay/index.d.ts +1 -1
- package/dist/MultiLinearWiggleDisplay/index.js +1 -1
- package/dist/MultiLinearWiggleDisplay/model.d.ts +17 -139
- package/dist/MultiLinearWiggleDisplay/model.js +14 -120
- package/dist/MultiLinearWiggleDisplay/renderSvg.d.ts +2 -2
- package/dist/MultiLinearWiggleDisplay/renderSvg.js +1 -1
- package/dist/MultiQuantitativeTrack/configSchema.d.ts +1 -1
- package/dist/MultiQuantitativeTrack/configSchema.js +1 -7
- package/dist/MultiQuantitativeTrack/index.d.ts +1 -1
- package/dist/MultiQuantitativeTrack/index.js +1 -1
- package/dist/MultiRowLineRenderer/MultiRowLineRenderer.d.ts +3 -2
- package/dist/MultiRowLineRenderer/MultiRowLineRenderer.js +1 -2
- package/dist/MultiRowLineRenderer/configSchema.d.ts +0 -6
- package/dist/MultiRowLineRenderer/configSchema.js +2 -14
- package/dist/MultiRowLineRenderer/index.d.ts +1 -1
- package/dist/MultiRowXYPlotRenderer/MultiRowXYPlotRenderer.d.ts +3 -2
- package/dist/MultiRowXYPlotRenderer/MultiRowXYPlotRenderer.js +1 -2
- package/dist/MultiRowXYPlotRenderer/configSchema.d.ts +0 -12
- package/dist/MultiRowXYPlotRenderer/configSchema.js +2 -20
- package/dist/MultiRowXYPlotRenderer/index.d.ts +1 -1
- package/dist/MultiWiggleAdapter/MultiWiggleAdapter.d.ts +4 -3
- package/dist/MultiWiggleAdapter/MultiWiggleAdapter.js +8 -13
- package/dist/MultiWiggleAdapter/configSchema.d.ts +0 -6
- package/dist/MultiWiggleAdapter/configSchema.js +1 -10
- package/dist/MultiWiggleAdapter/index.d.ts +1 -1
- package/dist/MultiWiggleAdapter/index.js +1 -1
- package/dist/MultiWiggleAddTrackWorkflow/AddTrackWorkflow.d.ts +1 -1
- package/dist/MultiWiggleAddTrackWorkflow/AddTrackWorkflow.js +2 -4
- package/dist/MultiWiggleAddTrackWorkflow/index.d.ts +1 -1
- package/dist/MultiWiggleAddTrackWorkflow/index.js +1 -2
- package/dist/MultiWiggleRendering.d.ts +3 -3
- package/dist/MultiWiggleRendering.js +2 -2
- package/dist/MultiXYPlotRenderer/MultiXYPlotRenderer.d.ts +3 -2
- package/dist/MultiXYPlotRenderer/MultiXYPlotRenderer.js +1 -2
- package/dist/MultiXYPlotRenderer/configSchema.d.ts +0 -12
- package/dist/MultiXYPlotRenderer/configSchema.js +1 -19
- package/dist/MultiXYPlotRenderer/index.d.ts +1 -1
- package/dist/QuantitativeTrack/configSchema.d.ts +1 -1
- package/dist/QuantitativeTrack/configSchema.js +1 -7
- package/dist/QuantitativeTrack/index.d.ts +1 -1
- package/dist/QuantitativeTrack/index.js +1 -1
- package/dist/Tooltip.d.ts +1 -1
- package/dist/Tooltip.js +1 -2
- package/dist/WiggleBaseRenderer.d.ts +5 -8
- package/dist/WiggleBaseRenderer.js +0 -1
- package/dist/WiggleRPC/MultiWiggleGetSources.d.ts +5 -12
- package/dist/WiggleRPC/MultiWiggleGetSources.js +2 -29
- package/dist/WiggleRPC/WiggleGetGlobalQuantitativeStats.d.ts +5 -7
- package/dist/WiggleRPC/WiggleGetGlobalQuantitativeStats.js +2 -15
- package/dist/WiggleRPC/WiggleGetMultiRegionQuantitativeStats.d.ts +4 -11
- package/dist/WiggleRPC/WiggleGetMultiRegionQuantitativeStats.js +2 -29
- package/dist/WiggleRendering.d.ts +2 -2
- package/dist/WiggleRendering.js +1 -3
- package/dist/XYPlotRenderer/XYPlotRenderer.d.ts +3 -2
- package/dist/XYPlotRenderer/XYPlotRenderer.js +3 -5
- package/dist/XYPlotRenderer/configSchema.d.ts +0 -12
- package/dist/XYPlotRenderer/configSchema.js +2 -20
- package/dist/XYPlotRenderer/index.d.ts +1 -1
- package/dist/configSchema.d.ts +0 -18
- package/dist/configSchema.js +1 -23
- package/dist/drawDensity.d.ts +3 -3
- package/dist/drawDensity.js +0 -4
- package/dist/drawLine.d.ts +3 -3
- package/dist/drawLine.js +0 -5
- package/dist/drawXY.d.ts +4 -3
- package/dist/drawXY.js +28 -12
- package/dist/getMultiWiggleSourcesAutorun.d.ts +2 -2
- package/dist/getMultiWiggleSourcesAutorun.js +10 -7
- package/dist/getQuantitativeStats.d.ts +3 -3
- package/dist/getQuantitativeStats.js +2 -10
- package/dist/getQuantitativeStatsAutorun.d.ts +3 -3
- package/dist/getQuantitativeStatsAutorun.js +18 -20
- package/dist/index.d.ts +4 -4
- package/dist/index.js +21 -24
- package/dist/shared/SetMinMaxDialog.js +1 -1
- package/dist/shared/SharedWiggleConfigSchema.d.ts +0 -26
- package/dist/shared/SharedWiggleConfigSchema.js +1 -30
- package/dist/shared/SharedWiggleMixin.d.ts +20 -225
- package/dist/shared/SharedWiggleMixin.js +7 -177
- package/dist/util.d.ts +0 -28
- package/dist/util.js +1 -45
- package/esm/BigWigAdapter/BigWigAdapter.d.ts +4 -3
- package/esm/BigWigAdapter/BigWigAdapter.js +5 -10
- package/esm/BigWigAdapter/configSchema.d.ts +0 -9
- package/esm/BigWigAdapter/configSchema.js +1 -13
- package/esm/BigWigAdapter/index.d.ts +1 -1
- package/esm/CreateMultiWiggleExtension/ConfirmDialog.d.ts +1 -1
- package/esm/CreateMultiWiggleExtension/ConfirmDialog.js +2 -2
- package/esm/CreateMultiWiggleExtension/index.d.ts +1 -1
- package/esm/CreateMultiWiggleExtension/index.js +26 -26
- package/esm/DensityRenderer/DensityRenderer.d.ts +2 -1
- package/esm/DensityRenderer/DensityRenderer.js +1 -1
- package/esm/DensityRenderer/configSchema.js +1 -7
- package/esm/DensityRenderer/index.d.ts +1 -1
- package/esm/DensityRenderer/index.js +1 -1
- package/esm/LinePlotRenderer/LinePlotRenderer.d.ts +3 -2
- package/esm/LinePlotRenderer/LinePlotRenderer.js +1 -1
- package/esm/LinePlotRenderer/configSchema.d.ts +0 -3
- package/esm/LinePlotRenderer/configSchema.js +1 -10
- package/esm/LinePlotRenderer/index.d.ts +1 -1
- package/esm/LinearWiggleDisplay/components/SetColorDialog.js +2 -2
- package/esm/LinearWiggleDisplay/components/Tooltip.d.ts +2 -2
- package/esm/LinearWiggleDisplay/components/Tooltip.js +0 -1
- package/esm/LinearWiggleDisplay/components/WiggleDisplayComponent.d.ts +1 -1
- package/esm/LinearWiggleDisplay/components/WiggleDisplayComponent.js +3 -3
- package/esm/LinearWiggleDisplay/configSchema.d.ts +1 -12
- package/esm/LinearWiggleDisplay/configSchema.js +0 -15
- package/esm/LinearWiggleDisplay/index.d.ts +1 -1
- package/esm/LinearWiggleDisplay/index.js +1 -1
- package/esm/LinearWiggleDisplay/model.d.ts +13 -71
- package/esm/LinearWiggleDisplay/model.js +4 -53
- package/esm/LinearWiggleDisplay/renderSvg.d.ts +2 -2
- package/esm/LinearWiggleDisplay/renderSvg.js +1 -2
- package/esm/MultiDensityRenderer/MultiDensityRenderer.d.ts +4 -3
- package/esm/MultiDensityRenderer/MultiDensityRenderer.js +1 -2
- package/esm/MultiDensityRenderer/configSchema.js +1 -7
- package/esm/MultiDensityRenderer/index.d.ts +1 -1
- package/esm/MultiLineRenderer/MultiLineRenderer.d.ts +3 -2
- package/esm/MultiLineRenderer/MultiLineRenderer.js +1 -2
- package/esm/MultiLineRenderer/configSchema.d.ts +0 -6
- package/esm/MultiLineRenderer/configSchema.js +1 -13
- package/esm/MultiLineRenderer/index.d.ts +1 -1
- package/esm/MultiLinearWiggleDisplay/components/ColorLegend.d.ts +1 -1
- package/esm/MultiLinearWiggleDisplay/components/ColorLegend.js +0 -1
- package/esm/MultiLinearWiggleDisplay/components/DraggableDialog.d.ts +1 -1
- package/esm/MultiLinearWiggleDisplay/components/DraggableDialog.js +4 -8
- package/esm/MultiLinearWiggleDisplay/components/RectBg.js +1 -1
- package/esm/MultiLinearWiggleDisplay/components/ScoreLegend.d.ts +1 -1
- package/esm/MultiLinearWiggleDisplay/components/ScoreLegend.js +1 -1
- package/esm/MultiLinearWiggleDisplay/components/SetColorDialog.d.ts +1 -1
- package/esm/MultiLinearWiggleDisplay/components/SetColorDialog.js +4 -6
- package/esm/MultiLinearWiggleDisplay/components/SourcesGrid.d.ts +1 -1
- package/esm/MultiLinearWiggleDisplay/components/SourcesGrid.js +16 -27
- package/esm/MultiLinearWiggleDisplay/components/Tooltip.d.ts +3 -3
- package/esm/MultiLinearWiggleDisplay/components/Tooltip.js +1 -2
- package/esm/MultiLinearWiggleDisplay/components/WiggleDisplayComponent.d.ts +1 -1
- package/esm/MultiLinearWiggleDisplay/components/YScaleBars.d.ts +1 -1
- package/esm/MultiLinearWiggleDisplay/components/YScaleBars.js +2 -2
- package/esm/MultiLinearWiggleDisplay/components/util.d.ts +1 -1
- package/esm/MultiLinearWiggleDisplay/components/util.js +1 -1
- package/esm/MultiLinearWiggleDisplay/configSchema.d.ts +1 -10
- package/esm/MultiLinearWiggleDisplay/configSchema.js +1 -19
- package/esm/MultiLinearWiggleDisplay/index.d.ts +1 -1
- package/esm/MultiLinearWiggleDisplay/index.js +1 -1
- package/esm/MultiLinearWiggleDisplay/model.d.ts +17 -139
- package/esm/MultiLinearWiggleDisplay/model.js +14 -120
- package/esm/MultiLinearWiggleDisplay/renderSvg.d.ts +2 -2
- package/esm/MultiLinearWiggleDisplay/renderSvg.js +1 -1
- package/esm/MultiQuantitativeTrack/configSchema.d.ts +1 -1
- package/esm/MultiQuantitativeTrack/configSchema.js +1 -7
- package/esm/MultiQuantitativeTrack/index.d.ts +1 -1
- package/esm/MultiQuantitativeTrack/index.js +1 -1
- package/esm/MultiRowLineRenderer/MultiRowLineRenderer.d.ts +3 -2
- package/esm/MultiRowLineRenderer/MultiRowLineRenderer.js +1 -2
- package/esm/MultiRowLineRenderer/configSchema.d.ts +0 -6
- package/esm/MultiRowLineRenderer/configSchema.js +2 -14
- package/esm/MultiRowLineRenderer/index.d.ts +1 -1
- package/esm/MultiRowXYPlotRenderer/MultiRowXYPlotRenderer.d.ts +3 -2
- package/esm/MultiRowXYPlotRenderer/MultiRowXYPlotRenderer.js +1 -2
- package/esm/MultiRowXYPlotRenderer/configSchema.d.ts +0 -12
- package/esm/MultiRowXYPlotRenderer/configSchema.js +2 -20
- package/esm/MultiRowXYPlotRenderer/index.d.ts +1 -1
- package/esm/MultiWiggleAdapter/MultiWiggleAdapter.d.ts +4 -3
- package/esm/MultiWiggleAdapter/MultiWiggleAdapter.js +9 -14
- package/esm/MultiWiggleAdapter/configSchema.d.ts +0 -6
- package/esm/MultiWiggleAdapter/configSchema.js +1 -10
- package/esm/MultiWiggleAdapter/index.d.ts +1 -1
- package/esm/MultiWiggleAdapter/index.js +1 -1
- package/esm/MultiWiggleAddTrackWorkflow/AddTrackWorkflow.d.ts +1 -1
- package/esm/MultiWiggleAddTrackWorkflow/AddTrackWorkflow.js +2 -4
- package/esm/MultiWiggleAddTrackWorkflow/index.d.ts +1 -1
- package/esm/MultiWiggleAddTrackWorkflow/index.js +1 -2
- package/esm/MultiWiggleRendering.d.ts +3 -3
- package/esm/MultiWiggleRendering.js +2 -2
- package/esm/MultiXYPlotRenderer/MultiXYPlotRenderer.d.ts +3 -2
- package/esm/MultiXYPlotRenderer/MultiXYPlotRenderer.js +1 -2
- package/esm/MultiXYPlotRenderer/configSchema.d.ts +0 -12
- package/esm/MultiXYPlotRenderer/configSchema.js +1 -19
- package/esm/MultiXYPlotRenderer/index.d.ts +1 -1
- package/esm/QuantitativeTrack/configSchema.d.ts +1 -1
- package/esm/QuantitativeTrack/configSchema.js +1 -7
- package/esm/QuantitativeTrack/index.d.ts +1 -1
- package/esm/QuantitativeTrack/index.js +1 -1
- package/esm/Tooltip.d.ts +1 -1
- package/esm/Tooltip.js +1 -2
- package/esm/WiggleBaseRenderer.d.ts +5 -8
- package/esm/WiggleBaseRenderer.js +0 -1
- package/esm/WiggleRPC/MultiWiggleGetSources.d.ts +5 -12
- package/esm/WiggleRPC/MultiWiggleGetSources.js +2 -29
- package/esm/WiggleRPC/WiggleGetGlobalQuantitativeStats.d.ts +5 -7
- package/esm/WiggleRPC/WiggleGetGlobalQuantitativeStats.js +2 -15
- package/esm/WiggleRPC/WiggleGetMultiRegionQuantitativeStats.d.ts +4 -11
- package/esm/WiggleRPC/WiggleGetMultiRegionQuantitativeStats.js +2 -29
- package/esm/WiggleRendering.d.ts +2 -2
- package/esm/WiggleRendering.js +1 -3
- package/esm/XYPlotRenderer/XYPlotRenderer.d.ts +3 -2
- package/esm/XYPlotRenderer/XYPlotRenderer.js +3 -5
- package/esm/XYPlotRenderer/configSchema.d.ts +0 -12
- package/esm/XYPlotRenderer/configSchema.js +2 -20
- package/esm/XYPlotRenderer/index.d.ts +1 -1
- package/esm/configSchema.d.ts +0 -18
- package/esm/configSchema.js +1 -23
- package/esm/drawDensity.d.ts +3 -3
- package/esm/drawDensity.js +1 -5
- package/esm/drawLine.d.ts +3 -3
- package/esm/drawLine.js +1 -6
- package/esm/drawXY.d.ts +4 -3
- package/esm/drawXY.js +29 -13
- package/esm/getMultiWiggleSourcesAutorun.d.ts +2 -2
- package/esm/getMultiWiggleSourcesAutorun.js +9 -6
- package/esm/getQuantitativeStats.d.ts +3 -3
- package/esm/getQuantitativeStats.js +3 -11
- package/esm/getQuantitativeStatsAutorun.d.ts +3 -3
- package/esm/getQuantitativeStatsAutorun.js +18 -20
- package/esm/index.d.ts +4 -4
- package/esm/index.js +13 -16
- package/esm/shared/SetMinMaxDialog.js +1 -1
- package/esm/shared/SharedWiggleConfigSchema.d.ts +0 -26
- package/esm/shared/SharedWiggleConfigSchema.js +1 -30
- package/esm/shared/SharedWiggleMixin.d.ts +20 -225
- package/esm/shared/SharedWiggleMixin.js +8 -178
- package/esm/util.d.ts +0 -28
- package/esm/util.js +1 -45
- package/package.json +2 -4
|
@@ -1,22 +1,13 @@
|
|
|
1
|
-
import { types } from 'mobx-state-tree';
|
|
2
1
|
import { ConfigurationSchema } from '@jbrowse/core/configuration';
|
|
2
|
+
import { types } from 'mobx-state-tree';
|
|
3
3
|
import baseWiggleRendererConfigSchema from '../configSchema';
|
|
4
|
-
|
|
5
|
-
* #config MultiRowLineRenderer
|
|
6
|
-
*/
|
|
7
|
-
function x() { } // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
4
|
+
function x() { }
|
|
8
5
|
const configSchema = ConfigurationSchema('MultiRowLineRenderer', {
|
|
9
|
-
/**
|
|
10
|
-
* #slot
|
|
11
|
-
*/
|
|
12
6
|
displayCrossHatches: {
|
|
13
7
|
type: 'boolean',
|
|
14
8
|
description: 'choose to draw cross hatches (sideways lines)',
|
|
15
9
|
defaultValue: false,
|
|
16
10
|
},
|
|
17
|
-
/**
|
|
18
|
-
* #slot
|
|
19
|
-
*/
|
|
20
11
|
summaryScoreMode: {
|
|
21
12
|
type: 'stringEnum',
|
|
22
13
|
model: types.enumeration('Score type', ['max', 'min', 'avg', 'whiskers']),
|
|
@@ -24,9 +15,6 @@ const configSchema = ConfigurationSchema('MultiRowLineRenderer', {
|
|
|
24
15
|
defaultValue: 'avg',
|
|
25
16
|
},
|
|
26
17
|
}, {
|
|
27
|
-
/**
|
|
28
|
-
* #baseConfiguration
|
|
29
|
-
*/
|
|
30
18
|
baseConfiguration: baseWiggleRendererConfigSchema,
|
|
31
19
|
explicitlyTyped: true,
|
|
32
20
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import PluginManager from '@jbrowse/core/PluginManager';
|
|
1
|
+
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
2
|
export default function MultiRowLineRendererF(pluginManager: PluginManager): void;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import WiggleBaseRenderer from '../WiggleBaseRenderer';
|
|
2
|
+
import type { MultiRenderArgsDeserialized as MultiArgs } from '../WiggleBaseRenderer';
|
|
3
|
+
import type { Feature } from '@jbrowse/core/util';
|
|
3
4
|
export default class MultiXYPlotRenderer extends WiggleBaseRenderer {
|
|
4
5
|
draw(ctx: CanvasRenderingContext2D, props: MultiArgs): Promise<{
|
|
5
6
|
reducedFeatures: Feature[];
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { groupBy } from '@jbrowse/core/util';
|
|
2
|
-
import { drawXY } from '../drawXY';
|
|
3
2
|
import WiggleBaseRenderer from '../WiggleBaseRenderer';
|
|
3
|
+
import { drawXY } from '../drawXY';
|
|
4
4
|
export default class MultiXYPlotRenderer extends WiggleBaseRenderer {
|
|
5
|
-
// @ts-expect-error
|
|
6
5
|
async draw(ctx, props) {
|
|
7
6
|
const { bpPerPx, sources, regions, features } = props;
|
|
8
7
|
const region = regions[0];
|
|
@@ -1,31 +1,19 @@
|
|
|
1
1
|
declare const configSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
2
|
-
/**
|
|
3
|
-
* #slot
|
|
4
|
-
*/
|
|
5
2
|
filled: {
|
|
6
3
|
type: string;
|
|
7
4
|
defaultValue: boolean;
|
|
8
5
|
};
|
|
9
|
-
/**
|
|
10
|
-
* #slot
|
|
11
|
-
*/
|
|
12
6
|
displayCrossHatches: {
|
|
13
7
|
type: string;
|
|
14
8
|
description: string;
|
|
15
9
|
defaultValue: boolean;
|
|
16
10
|
};
|
|
17
|
-
/**
|
|
18
|
-
* #slot
|
|
19
|
-
*/
|
|
20
11
|
summaryScoreMode: {
|
|
21
12
|
type: string;
|
|
22
13
|
model: import("mobx-state-tree").ISimpleType<string>;
|
|
23
14
|
description: string;
|
|
24
15
|
defaultValue: string;
|
|
25
16
|
};
|
|
26
|
-
/**
|
|
27
|
-
* #slot
|
|
28
|
-
*/
|
|
29
17
|
minSize: {
|
|
30
18
|
type: string;
|
|
31
19
|
defaultValue: number;
|
|
@@ -1,46 +1,28 @@
|
|
|
1
|
-
import { types } from 'mobx-state-tree';
|
|
2
1
|
import { ConfigurationSchema } from '@jbrowse/core/configuration';
|
|
2
|
+
import { types } from 'mobx-state-tree';
|
|
3
3
|
import baseWiggleRendererConfigSchema from '../configSchema';
|
|
4
|
-
|
|
5
|
-
* #config MultiRowXYPlotRenderer
|
|
6
|
-
*/
|
|
7
|
-
function x() { } // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
4
|
+
function x() { }
|
|
8
5
|
const configSchema = ConfigurationSchema('MultiRowXYPlotRenderer', {
|
|
9
|
-
/**
|
|
10
|
-
* #slot
|
|
11
|
-
*/
|
|
12
6
|
filled: {
|
|
13
7
|
type: 'boolean',
|
|
14
8
|
defaultValue: true,
|
|
15
9
|
},
|
|
16
|
-
/**
|
|
17
|
-
* #slot
|
|
18
|
-
*/
|
|
19
10
|
displayCrossHatches: {
|
|
20
11
|
type: 'boolean',
|
|
21
12
|
description: 'choose to draw cross hatches (sideways lines)',
|
|
22
13
|
defaultValue: false,
|
|
23
14
|
},
|
|
24
|
-
/**
|
|
25
|
-
* #slot
|
|
26
|
-
*/
|
|
27
15
|
summaryScoreMode: {
|
|
28
16
|
type: 'stringEnum',
|
|
29
17
|
model: types.enumeration('Score type', ['max', 'min', 'avg', 'whiskers']),
|
|
30
18
|
description: 'choose whether to use max/min/average or whiskers which combines all three into the same rendering',
|
|
31
19
|
defaultValue: 'whiskers',
|
|
32
20
|
},
|
|
33
|
-
/**
|
|
34
|
-
* #slot
|
|
35
|
-
*/
|
|
36
21
|
minSize: {
|
|
37
22
|
type: 'number',
|
|
38
23
|
defaultValue: 0.7,
|
|
39
24
|
},
|
|
40
25
|
}, {
|
|
41
|
-
/**
|
|
42
|
-
* #baseConfiguration
|
|
43
|
-
*/
|
|
44
26
|
baseConfiguration: baseWiggleRendererConfigSchema,
|
|
45
27
|
explicitlyTyped: true,
|
|
46
28
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import PluginManager from '@jbrowse/core/PluginManager';
|
|
1
|
+
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
2
|
export default function MultiRowXYPlotRendererF(pluginManager: PluginManager): void;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { BaseFeatureDataAdapter
|
|
2
|
-
import {
|
|
3
|
-
import { Feature } from '@jbrowse/core/util';
|
|
1
|
+
import { BaseFeatureDataAdapter } from '@jbrowse/core/data_adapters/BaseAdapter';
|
|
2
|
+
import type { BaseOptions } from '@jbrowse/core/data_adapters/BaseAdapter';
|
|
3
|
+
import type { Feature } from '@jbrowse/core/util';
|
|
4
|
+
import type { AugmentedRegion as Region } from '@jbrowse/core/util/types';
|
|
4
5
|
interface WiggleOptions extends BaseOptions {
|
|
5
6
|
resolution?: number;
|
|
6
7
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BaseFeatureDataAdapter
|
|
1
|
+
import { BaseFeatureDataAdapter } from '@jbrowse/core/data_adapters/BaseAdapter';
|
|
2
|
+
import { SimpleFeature, max, min } from '@jbrowse/core/util';
|
|
2
3
|
import { ObservableCreate } from '@jbrowse/core/util/rxjs';
|
|
3
|
-
import { SimpleFeature, min, max } from '@jbrowse/core/util';
|
|
4
4
|
import { merge } from 'rxjs';
|
|
5
5
|
import { map } from 'rxjs/operators';
|
|
6
6
|
function getFilename(uri) {
|
|
@@ -34,7 +34,6 @@ class MultiWiggleAdapter extends BaseFeatureDataAdapter {
|
|
|
34
34
|
};
|
|
35
35
|
}));
|
|
36
36
|
}
|
|
37
|
-
// note: can't really have dis-agreeing refNames
|
|
38
37
|
async getRefNames(opts) {
|
|
39
38
|
const adapters = await this.getAdapters();
|
|
40
39
|
const allNames = await Promise.all(adapters.map(a => a.dataAdapter.getRefNames(opts)));
|
|
@@ -42,35 +41,31 @@ class MultiWiggleAdapter extends BaseFeatureDataAdapter {
|
|
|
42
41
|
}
|
|
43
42
|
async getGlobalStats(opts) {
|
|
44
43
|
const adapters = await this.getAdapters();
|
|
45
|
-
const stats = (await Promise.all(
|
|
46
|
-
// @ts-expect-error
|
|
47
|
-
adapters.map(adp => { var _a, _b; return (_b = (_a = adp.dataAdapter).getGlobalStats) === null || _b === void 0 ? void 0 : _b.call(_a, opts); }))).filter(f => !!f);
|
|
44
|
+
const stats = (await Promise.all(adapters.map(adp => { var _a, _b; return (_b = (_a = adp.dataAdapter).getGlobalStats) === null || _b === void 0 ? void 0 : _b.call(_a, opts); }))).filter(f => !!f);
|
|
48
45
|
const scoreMin = min(stats.map(s => s.scoreMin));
|
|
49
46
|
const scoreMax = max(stats.map(s => s.scoreMax));
|
|
50
|
-
return {
|
|
47
|
+
return {
|
|
48
|
+
scoreMin,
|
|
49
|
+
scoreMax,
|
|
50
|
+
};
|
|
51
51
|
}
|
|
52
52
|
getFeatures(region, opts = {}) {
|
|
53
53
|
return ObservableCreate(async (observer) => {
|
|
54
54
|
const adapters = await this.getAdapters();
|
|
55
|
-
merge(...adapters.map(adp => adp.dataAdapter.getFeatures(region, opts).pipe(map(p =>
|
|
56
|
-
// add source field if it does not exist
|
|
57
|
-
p.get('source')
|
|
55
|
+
merge(...adapters.map(adp => adp.dataAdapter.getFeatures(region, opts).pipe(map(p => p.get('source')
|
|
58
56
|
? p
|
|
59
57
|
: new SimpleFeature({
|
|
60
58
|
...p.toJSON(),
|
|
61
59
|
uniqueId: `${adp.source}-${p.id()}`,
|
|
62
60
|
source: adp.source,
|
|
63
61
|
}))))).subscribe(observer);
|
|
64
|
-
}, opts.
|
|
62
|
+
}, opts.stopToken);
|
|
65
63
|
}
|
|
66
|
-
// always render bigwig instead of calculating a feature density for it
|
|
67
64
|
async getMultiRegionFeatureDensityStats(_regions) {
|
|
68
65
|
return {
|
|
69
66
|
featureDensity: 0,
|
|
70
67
|
};
|
|
71
68
|
}
|
|
72
|
-
// in another adapter type, this could be dynamic depending on region or
|
|
73
|
-
// something, but it is static for this particular multi-wiggle adapter type
|
|
74
69
|
async getSources(_regions) {
|
|
75
70
|
const adapters = await this.getAdapters();
|
|
76
71
|
return adapters.map(({ dataAdapter, source, name, ...rest }) => ({
|
|
@@ -1,15 +1,9 @@
|
|
|
1
1
|
declare const MultiWiggleAdapter: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
2
|
-
/**
|
|
3
|
-
* #slot
|
|
4
|
-
*/
|
|
5
2
|
subadapters: {
|
|
6
3
|
type: string;
|
|
7
4
|
defaultValue: never[];
|
|
8
5
|
description: string;
|
|
9
6
|
};
|
|
10
|
-
/**
|
|
11
|
-
* #slot
|
|
12
|
-
*/
|
|
13
7
|
bigWigs: {
|
|
14
8
|
type: string;
|
|
15
9
|
description: string;
|
|
@@ -1,20 +1,11 @@
|
|
|
1
1
|
import { ConfigurationSchema } from '@jbrowse/core/configuration';
|
|
2
|
-
|
|
3
|
-
* #config MultiWiggleAdapter
|
|
4
|
-
*/
|
|
5
|
-
function x() { } // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
2
|
+
function x() { }
|
|
6
3
|
const MultiWiggleAdapter = ConfigurationSchema('MultiWiggleAdapter', {
|
|
7
|
-
/**
|
|
8
|
-
* #slot
|
|
9
|
-
*/
|
|
10
4
|
subadapters: {
|
|
11
5
|
type: 'frozen',
|
|
12
6
|
defaultValue: [],
|
|
13
7
|
description: 'array of subadapter JSON objects',
|
|
14
8
|
},
|
|
15
|
-
/**
|
|
16
|
-
* #slot
|
|
17
|
-
*/
|
|
18
9
|
bigWigs: {
|
|
19
10
|
type: 'frozen',
|
|
20
11
|
description: 'array of bigwig filenames, alternative to the subadapters slot',
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import PluginManager from '@jbrowse/core/PluginManager';
|
|
1
|
+
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
2
|
export default function MultiWiggleAdapterF(pluginManager: PluginManager): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import configSchema from './configSchema';
|
|
2
1
|
import AdapterType from '@jbrowse/core/pluggableElementTypes/AdapterType';
|
|
2
|
+
import configSchema from './configSchema';
|
|
3
3
|
export default function MultiWiggleAdapterF(pluginManager) {
|
|
4
4
|
pluginManager.addAdapterType(() => new AdapterType({
|
|
5
5
|
name: 'MultiWiggleAdapter',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { AddTrackModel } from '@jbrowse/plugin-data-management';
|
|
2
|
+
import type { AddTrackModel } from '@jbrowse/plugin-data-management';
|
|
3
3
|
export default function MultiWiggleWidget({ model }: {
|
|
4
4
|
model: AddTrackModel;
|
|
5
5
|
}): React.JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
|
-
import { Button, Paper, TextField } from '@mui/material';
|
|
3
|
-
import { makeStyles } from 'tss-react/mui';
|
|
4
2
|
import { getSession, isElectron, isSessionModelWithWidgets, isSessionWithAddTracks, } from '@jbrowse/core/util';
|
|
5
3
|
import { storeBlobLocation } from '@jbrowse/core/util/tracks';
|
|
4
|
+
import { Button, Paper, TextField } from '@mui/material';
|
|
5
|
+
import { makeStyles } from 'tss-react/mui';
|
|
6
6
|
const useStyles = makeStyles()(theme => ({
|
|
7
7
|
paper: {
|
|
8
8
|
margin: theme.spacing(),
|
|
@@ -14,7 +14,6 @@ const useStyles = makeStyles()(theme => ({
|
|
|
14
14
|
display: 'block',
|
|
15
15
|
},
|
|
16
16
|
}));
|
|
17
|
-
// on electron, use path to LocalFileLocation, on web, use the BlobLocation
|
|
18
17
|
function makeFileLocation(file) {
|
|
19
18
|
const { webUtils } = window.require('electron');
|
|
20
19
|
return isElectron
|
|
@@ -56,7 +55,6 @@ export default function MultiWiggleWidget({ model }) {
|
|
|
56
55
|
`${trackName.toLowerCase().replaceAll(' ', '_')}-${Date.now()}`,
|
|
57
56
|
session.adminMode ? '' : '-sessionTrack',
|
|
58
57
|
].join('');
|
|
59
|
-
// allow list of bigwigs in JSON format or line-by-line
|
|
60
58
|
let bigWigs;
|
|
61
59
|
try {
|
|
62
60
|
bigWigs = JSON.parse(val);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import PluginManager from '@jbrowse/core/PluginManager';
|
|
1
|
+
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
2
|
export default function MultiWiggleAddTrackWorkflowF(pm: PluginManager): void;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
+
import { lazy } from 'react';
|
|
1
2
|
import { AddTrackWorkflowType } from '@jbrowse/core/pluggableElementTypes';
|
|
2
3
|
import { types } from 'mobx-state-tree';
|
|
3
|
-
// locals
|
|
4
|
-
import { lazy } from 'react';
|
|
5
4
|
export default function MultiWiggleAddTrackWorkflowF(pm) {
|
|
6
5
|
pm.addAddTrackWorkflowType(() => new AddTrackWorkflowType({
|
|
7
6
|
name: 'Multi-wiggle track',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { Feature } from '@jbrowse/core/util';
|
|
4
|
-
import {
|
|
2
|
+
import type { Source } from './util';
|
|
3
|
+
import type { Feature } from '@jbrowse/core/util';
|
|
4
|
+
import type { Region } from '@jbrowse/core/util/types';
|
|
5
5
|
declare const MultiWiggleRendering: (props: {
|
|
6
6
|
regions: Region[];
|
|
7
7
|
features: Map<string, Feature>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { observer } from 'mobx-react';
|
|
2
1
|
import React, { useRef } from 'react';
|
|
3
|
-
import { SimpleFeature } from '@jbrowse/core/util';
|
|
4
2
|
import { PrerenderedCanvas } from '@jbrowse/core/ui';
|
|
3
|
+
import { SimpleFeature } from '@jbrowse/core/util';
|
|
4
|
+
import { observer } from 'mobx-react';
|
|
5
5
|
const MultiWiggleRendering = observer(function (props) {
|
|
6
6
|
const { regions, features, bpPerPx, width, height, sources, onMouseLeave = () => { }, onMouseMove = () => { }, onFeatureClick = () => { }, displayModel, } = props;
|
|
7
7
|
const region = regions[0];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import WiggleBaseRenderer from '../WiggleBaseRenderer';
|
|
2
|
+
import type { MultiRenderArgsDeserialized as MultiArgs } from '../WiggleBaseRenderer';
|
|
3
|
+
import type { Feature } from '@jbrowse/core/util';
|
|
3
4
|
export default class MultiXYPlotRenderer extends WiggleBaseRenderer {
|
|
4
5
|
draw(ctx: CanvasRenderingContext2D, props: MultiArgs): Promise<{
|
|
5
6
|
reducedFeatures: Feature[];
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { groupBy } from '@jbrowse/core/util';
|
|
2
|
+
import WiggleBaseRenderer from '../WiggleBaseRenderer';
|
|
2
3
|
import { drawXY } from '../drawXY';
|
|
3
4
|
import { YSCALEBAR_LABEL_OFFSET } from '../util';
|
|
4
|
-
import WiggleBaseRenderer from '../WiggleBaseRenderer';
|
|
5
5
|
export default class MultiXYPlotRenderer extends WiggleBaseRenderer {
|
|
6
|
-
// @ts-expect-error
|
|
7
6
|
async draw(ctx, props) {
|
|
8
7
|
const { sources, features } = props;
|
|
9
8
|
const groups = groupBy(features.values(), f => f.get('source'));
|
|
@@ -1,31 +1,19 @@
|
|
|
1
1
|
declare const configSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
2
|
-
/**
|
|
3
|
-
* #slot
|
|
4
|
-
*/
|
|
5
2
|
filled: {
|
|
6
3
|
type: string;
|
|
7
4
|
defaultValue: boolean;
|
|
8
5
|
};
|
|
9
|
-
/**
|
|
10
|
-
* #slot
|
|
11
|
-
*/
|
|
12
6
|
displayCrossHatches: {
|
|
13
7
|
type: string;
|
|
14
8
|
description: string;
|
|
15
9
|
defaultValue: boolean;
|
|
16
10
|
};
|
|
17
|
-
/**
|
|
18
|
-
* #slot
|
|
19
|
-
*/
|
|
20
11
|
summaryScoreMode: {
|
|
21
12
|
type: string;
|
|
22
13
|
model: import("mobx-state-tree").ISimpleType<string>;
|
|
23
14
|
description: string;
|
|
24
15
|
defaultValue: string;
|
|
25
16
|
};
|
|
26
|
-
/**
|
|
27
|
-
* #slot
|
|
28
|
-
*/
|
|
29
17
|
minSize: {
|
|
30
18
|
type: string;
|
|
31
19
|
defaultValue: number;
|
|
@@ -1,46 +1,28 @@
|
|
|
1
1
|
import { ConfigurationSchema } from '@jbrowse/core/configuration';
|
|
2
2
|
import { types } from 'mobx-state-tree';
|
|
3
3
|
import baseWiggleRendererConfigSchema from '../configSchema';
|
|
4
|
-
|
|
5
|
-
* #config MultiXYPlotRenderer
|
|
6
|
-
*/
|
|
7
|
-
function x() { } // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
4
|
+
function x() { }
|
|
8
5
|
const configSchema = ConfigurationSchema('MultiXYPlotRenderer', {
|
|
9
|
-
/**
|
|
10
|
-
* #slot
|
|
11
|
-
*/
|
|
12
6
|
filled: {
|
|
13
7
|
type: 'boolean',
|
|
14
8
|
defaultValue: true,
|
|
15
9
|
},
|
|
16
|
-
/**
|
|
17
|
-
* #slot
|
|
18
|
-
*/
|
|
19
10
|
displayCrossHatches: {
|
|
20
11
|
type: 'boolean',
|
|
21
12
|
description: 'choose to draw cross hatches (sideways lines)',
|
|
22
13
|
defaultValue: false,
|
|
23
14
|
},
|
|
24
|
-
/**
|
|
25
|
-
* #slot
|
|
26
|
-
*/
|
|
27
15
|
summaryScoreMode: {
|
|
28
16
|
type: 'stringEnum',
|
|
29
17
|
model: types.enumeration('Score type', ['max', 'min', 'avg', 'whiskers']),
|
|
30
18
|
description: 'choose whether to use max/min/average or whiskers which combines all three into the same rendering',
|
|
31
19
|
defaultValue: 'avg',
|
|
32
20
|
},
|
|
33
|
-
/**
|
|
34
|
-
* #slot
|
|
35
|
-
*/
|
|
36
21
|
minSize: {
|
|
37
22
|
type: 'number',
|
|
38
23
|
defaultValue: 0.7,
|
|
39
24
|
},
|
|
40
25
|
}, {
|
|
41
|
-
/**
|
|
42
|
-
* #baseConfiguration
|
|
43
|
-
*/
|
|
44
26
|
baseConfiguration: baseWiggleRendererConfigSchema,
|
|
45
27
|
explicitlyTyped: true,
|
|
46
28
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import PluginManager from '@jbrowse/core/PluginManager';
|
|
1
|
+
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
2
|
export default function MultiXYPlotRendererF(pluginManager: PluginManager): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import PluginManager from '@jbrowse/core/PluginManager';
|
|
1
|
+
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
2
|
declare function configSchemaFactory(pluginManager: PluginManager): import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
3
3
|
name: {
|
|
4
4
|
description: string;
|
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
import { ConfigurationSchema } from '@jbrowse/core/configuration';
|
|
2
2
|
import { createBaseTrackConfig } from '@jbrowse/core/pluggableElementTypes/models';
|
|
3
|
-
|
|
4
|
-
* #config QuantitativeTrack
|
|
5
|
-
*/
|
|
6
|
-
function x() { } // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
3
|
+
function x() { }
|
|
7
4
|
function configSchemaFactory(pluginManager) {
|
|
8
5
|
return ConfigurationSchema('QuantitativeTrack', {}, {
|
|
9
|
-
/**
|
|
10
|
-
* #baseConfiguration
|
|
11
|
-
*/
|
|
12
6
|
baseConfiguration: createBaseTrackConfig(pluginManager),
|
|
13
7
|
});
|
|
14
8
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import PluginManager from '@jbrowse/core/PluginManager';
|
|
1
|
+
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
2
|
export default function QuantitativeTrackF(pluginManager: PluginManager): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createBaseTrackModel } from '@jbrowse/core/pluggableElementTypes/models';
|
|
2
1
|
import TrackType from '@jbrowse/core/pluggableElementTypes/TrackType';
|
|
2
|
+
import { createBaseTrackModel } from '@jbrowse/core/pluggableElementTypes/models';
|
|
3
3
|
import configSchemaF from './configSchema';
|
|
4
4
|
export default function QuantitativeTrackF(pluginManager) {
|
|
5
5
|
pluginManager.addTrackType(() => {
|
package/esm/Tooltip.d.ts
CHANGED
package/esm/Tooltip.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React, { Suspense } from 'react';
|
|
2
|
+
import BaseTooltip from '@jbrowse/core/ui/BaseTooltip';
|
|
2
3
|
import { observer } from 'mobx-react';
|
|
3
4
|
import { makeStyles } from 'tss-react/mui';
|
|
4
|
-
import BaseTooltip from '@jbrowse/core/ui/BaseTooltip';
|
|
5
|
-
// locals
|
|
6
5
|
import { YSCALEBAR_LABEL_OFFSET } from './util';
|
|
7
6
|
const useStyles = makeStyles()({
|
|
8
7
|
hoverVertical: {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import FeatureRendererType
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import FeatureRendererType from '@jbrowse/core/pluggableElementTypes/renderers/FeatureRendererType';
|
|
2
|
+
import type { ScaleOpts, Source } from './util';
|
|
3
|
+
import type { RenderArgs as FeatureRenderArgs, RenderArgsDeserialized as FeatureRenderArgsDeserialized } from '@jbrowse/core/pluggableElementTypes/renderers/FeatureRendererType';
|
|
4
|
+
import type { Feature } from '@jbrowse/core/util';
|
|
5
|
+
import type { ThemeOptions } from '@mui/material';
|
|
5
6
|
export interface RenderArgs extends FeatureRenderArgs {
|
|
6
7
|
scaleOpts: ScaleOpts;
|
|
7
8
|
}
|
|
@@ -48,10 +49,6 @@ export default abstract class WiggleBaseRenderer extends FeatureRendererType {
|
|
|
48
49
|
reactElement?: import("react").ReactElement;
|
|
49
50
|
html?: string;
|
|
50
51
|
}>;
|
|
51
|
-
/**
|
|
52
|
-
* draw features to context given props, to be used by derived renderer
|
|
53
|
-
* classes
|
|
54
|
-
*/
|
|
55
52
|
abstract draw<T extends RenderArgsDeserializedWithFeatures>(ctx: CanvasRenderingContext2D, props: T): Promise<Record<string, unknown> | undefined>;
|
|
56
53
|
}
|
|
57
54
|
export type { RenderArgsSerialized, RenderResults, ResultsDeserialized, ResultsSerialized, } from '@jbrowse/core/pluggableElementTypes/renderers/FeatureRendererType';
|
|
@@ -10,7 +10,6 @@ export default class WiggleBaseRenderer extends FeatureRendererType {
|
|
|
10
10
|
const { height, regions, bpPerPx } = renderProps;
|
|
11
11
|
const region = regions[0];
|
|
12
12
|
const width = (region.end - region.start) / bpPerPx;
|
|
13
|
-
// @ts-expect-error
|
|
14
13
|
const { reducedFeatures, ...rest } = await renderToAbstractCanvas(width, height, renderProps, ctx => this.draw(ctx, {
|
|
15
14
|
...renderProps,
|
|
16
15
|
features,
|
|
@@ -1,18 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import { Region } from '@jbrowse/core/util';
|
|
4
|
-
|
|
5
|
-
import { AnyConfigurationModel } from '@jbrowse/core/configuration';
|
|
6
|
-
export declare class MultiWiggleGetSources extends RpcMethodType {
|
|
1
|
+
import RpcMethodTypeWithFiltersAndRenameRegions from '@jbrowse/core/pluggableElementTypes/RpcMethodTypeWithFiltersAndRenameRegions';
|
|
2
|
+
import type { AnyConfigurationModel } from '@jbrowse/core/configuration';
|
|
3
|
+
import type { Region } from '@jbrowse/core/util';
|
|
4
|
+
export declare class MultiWiggleGetSources extends RpcMethodTypeWithFiltersAndRenameRegions {
|
|
7
5
|
name: string;
|
|
8
|
-
deserializeArguments(args: any, rpcDriverClassName: string): Promise<any>;
|
|
9
|
-
serializeArguments(args: RenderArgs & {
|
|
10
|
-
signal?: AbortSignal;
|
|
11
|
-
statusCallback?: (arg: string) => void;
|
|
12
|
-
}, rpcDriverClassName: string): Promise<Record<string, unknown>>;
|
|
13
6
|
execute(args: {
|
|
14
7
|
adapterConfig: AnyConfigurationModel;
|
|
15
|
-
|
|
8
|
+
stopToken?: string;
|
|
16
9
|
sessionId: string;
|
|
17
10
|
headers?: Record<string, string>;
|
|
18
11
|
regions: Region[];
|
|
@@ -1,42 +1,15 @@
|
|
|
1
|
-
import RpcMethodType from '@jbrowse/core/pluggableElementTypes/RpcMethodType';
|
|
2
|
-
import SerializableFilterChain from '@jbrowse/core/pluggableElementTypes/renderers/util/serializableFilterChain';
|
|
3
1
|
import { getAdapter } from '@jbrowse/core/data_adapters/dataAdapterCache';
|
|
4
|
-
import
|
|
5
|
-
export class MultiWiggleGetSources extends
|
|
2
|
+
import RpcMethodTypeWithFiltersAndRenameRegions from '@jbrowse/core/pluggableElementTypes/RpcMethodTypeWithFiltersAndRenameRegions';
|
|
3
|
+
export class MultiWiggleGetSources extends RpcMethodTypeWithFiltersAndRenameRegions {
|
|
6
4
|
constructor() {
|
|
7
5
|
super(...arguments);
|
|
8
6
|
this.name = 'MultiWiggleGetSources';
|
|
9
7
|
}
|
|
10
|
-
async deserializeArguments(args, rpcDriverClassName) {
|
|
11
|
-
const l = await super.deserializeArguments(args, rpcDriverClassName);
|
|
12
|
-
return {
|
|
13
|
-
...l,
|
|
14
|
-
filters: args.filters
|
|
15
|
-
? new SerializableFilterChain({
|
|
16
|
-
filters: args.filters,
|
|
17
|
-
})
|
|
18
|
-
: undefined,
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
async serializeArguments(args, rpcDriverClassName) {
|
|
22
|
-
var _a, _b, _c;
|
|
23
|
-
const pm = this.pluginManager;
|
|
24
|
-
const assemblyManager = (_b = (_a = pm.rootModel) === null || _a === void 0 ? void 0 : _a.session) === null || _b === void 0 ? void 0 : _b.assemblyManager;
|
|
25
|
-
if (!assemblyManager) {
|
|
26
|
-
return args;
|
|
27
|
-
}
|
|
28
|
-
const renamedArgs = await renameRegionsIfNeeded(assemblyManager, {
|
|
29
|
-
...args,
|
|
30
|
-
filters: (_c = args.filters) === null || _c === void 0 ? void 0 : _c.toJSON().filters,
|
|
31
|
-
});
|
|
32
|
-
return super.serializeArguments(renamedArgs, rpcDriverClassName);
|
|
33
|
-
}
|
|
34
8
|
async execute(args, rpcDriverClassName) {
|
|
35
9
|
const pm = this.pluginManager;
|
|
36
10
|
const deserializedArgs = await this.deserializeArguments(args, rpcDriverClassName);
|
|
37
11
|
const { regions, adapterConfig, sessionId } = deserializedArgs;
|
|
38
12
|
const { dataAdapter } = await getAdapter(pm, sessionId, adapterConfig);
|
|
39
|
-
// @ts-expect-error
|
|
40
13
|
return dataAdapter.getSources(regions, deserializedArgs);
|
|
41
14
|
}
|
|
42
15
|
}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import { QuantitativeStats } from '@jbrowse/core/util/stats';
|
|
4
|
-
|
|
5
|
-
export declare class WiggleGetGlobalQuantitativeStats extends RpcMethodType {
|
|
1
|
+
import RpcMethodTypeWithFiltersAndRenameRegions from '@jbrowse/core/pluggableElementTypes/RpcMethodTypeWithFiltersAndRenameRegions';
|
|
2
|
+
import type { AnyConfigurationModel } from '@jbrowse/core/configuration';
|
|
3
|
+
import type { QuantitativeStats } from '@jbrowse/core/util/stats';
|
|
4
|
+
export declare class WiggleGetGlobalQuantitativeStats extends RpcMethodTypeWithFiltersAndRenameRegions {
|
|
6
5
|
name: string;
|
|
7
|
-
deserializeArguments(args: any, rpcDriverClassName: string): Promise<any>;
|
|
8
6
|
execute(args: {
|
|
9
7
|
adapterConfig: AnyConfigurationModel;
|
|
10
|
-
|
|
8
|
+
stopToken?: string;
|
|
11
9
|
headers?: Record<string, string>;
|
|
12
10
|
sessionId: string;
|
|
13
11
|
}, rpcDriverClassName: string): Promise<QuantitativeStats>;
|