@jbrowse/plugin-wiggle 2.17.0 → 3.0.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/BigWigAdapter/index.js +17 -7
- package/dist/CreateMultiWiggleExtension/ConfirmDialog.d.ts +2 -3
- package/dist/CreateMultiWiggleExtension/ConfirmDialog.js +14 -49
- package/dist/CreateMultiWiggleExtension/index.d.ts +1 -1
- package/dist/CreateMultiWiggleExtension/index.js +43 -33
- package/dist/DensityRenderer/DensityRenderer.d.ts +2 -1
- package/dist/DensityRenderer/DensityRenderer.js +35 -2
- package/dist/DensityRenderer/configSchema.js +1 -7
- package/dist/DensityRenderer/index.d.ts +1 -1
- package/dist/DensityRenderer/index.js +1 -1
- package/dist/GuessAdapter/index.d.ts +2 -0
- package/dist/GuessAdapter/index.js +25 -0
- package/dist/LinePlotRenderer/LinePlotRenderer.d.ts +3 -2
- package/dist/LinePlotRenderer/LinePlotRenderer.js +35 -2
- 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.d.ts +1 -2
- package/dist/LinearWiggleDisplay/components/SetColorDialog.js +23 -59
- package/dist/LinearWiggleDisplay/components/Tooltip.d.ts +3 -4
- package/dist/LinearWiggleDisplay/components/Tooltip.js +5 -18
- package/dist/LinearWiggleDisplay/components/WiggleDisplayComponent.d.ts +2 -3
- package/dist/LinearWiggleDisplay/components/WiggleDisplayComponent.js +11 -14
- 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 +18 -8
- package/dist/LinearWiggleDisplay/model.d.ts +44 -79
- package/dist/LinearWiggleDisplay/model.js +39 -71
- package/dist/LinearWiggleDisplay/renderSvg.d.ts +3 -4
- package/dist/LinearWiggleDisplay/renderSvg.js +2 -6
- package/dist/MultiDensityRenderer/MultiDensityRenderer.d.ts +4 -3
- package/dist/MultiDensityRenderer/MultiDensityRenderer.js +40 -6
- 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 +35 -3
- 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 +3 -5
- package/dist/MultiLinearWiggleDisplay/components/ColorLegend.js +5 -15
- package/dist/MultiLinearWiggleDisplay/components/FullHeightScaleBar.d.ts +7 -0
- package/dist/MultiLinearWiggleDisplay/components/FullHeightScaleBar.js +17 -0
- package/dist/MultiLinearWiggleDisplay/components/IndividualScaleBars.d.ts +7 -0
- package/dist/MultiLinearWiggleDisplay/components/IndividualScaleBars.js +15 -0
- package/dist/MultiLinearWiggleDisplay/components/LegendItem.d.ts +11 -0
- package/dist/MultiLinearWiggleDisplay/components/LegendItem.js +19 -0
- package/dist/MultiLinearWiggleDisplay/components/RectBg.d.ts +1 -2
- package/dist/MultiLinearWiggleDisplay/components/RectBg.js +2 -5
- package/dist/MultiLinearWiggleDisplay/components/ScoreLegend.d.ts +2 -3
- package/dist/MultiLinearWiggleDisplay/components/ScoreLegend.js +2 -4
- package/dist/MultiLinearWiggleDisplay/components/SetColorDialog.d.ts +2 -3
- package/dist/MultiLinearWiggleDisplay/components/SetColorDialog.js +21 -60
- package/dist/MultiLinearWiggleDisplay/components/SourcesGrid.d.ts +2 -3
- package/dist/MultiLinearWiggleDisplay/components/SourcesGrid.js +80 -97
- package/dist/MultiLinearWiggleDisplay/components/Tooltip.d.ts +4 -5
- package/dist/MultiLinearWiggleDisplay/components/Tooltip.js +8 -23
- package/dist/MultiLinearWiggleDisplay/components/WiggleDisplayComponent.d.ts +2 -3
- package/dist/MultiLinearWiggleDisplay/components/WiggleDisplayComponent.js +2 -4
- package/dist/MultiLinearWiggleDisplay/components/YScaleBars.d.ts +2 -3
- package/dist/MultiLinearWiggleDisplay/components/YScaleBars.js +7 -27
- 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 +18 -8
- package/dist/MultiLinearWiggleDisplay/model.d.ts +27 -146
- package/dist/MultiLinearWiggleDisplay/model.js +44 -128
- package/dist/MultiLinearWiggleDisplay/renderSvg.d.ts +3 -4
- package/dist/MultiLinearWiggleDisplay/renderSvg.js +2 -5
- package/dist/MultiLinearWiggleDisplay/util.d.ts +1 -0
- package/dist/MultiLinearWiggleDisplay/util.js +10 -0
- 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 +35 -3
- 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 +35 -3
- 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 +18 -8
- package/dist/MultiWiggleAddTrackWorkflow/AddTrackWorkflow.d.ts +4 -4
- package/dist/MultiWiggleAddTrackWorkflow/AddTrackWorkflow.js +63 -104
- package/dist/MultiWiggleAddTrackWorkflow/index.d.ts +1 -1
- package/dist/MultiWiggleAddTrackWorkflow/index.js +18 -9
- package/dist/MultiWiggleRendering.d.ts +4 -5
- package/dist/MultiWiggleRendering.js +6 -29
- package/dist/MultiXYPlotRenderer/MultiXYPlotRenderer.d.ts +3 -2
- package/dist/MultiXYPlotRenderer/MultiXYPlotRenderer.js +36 -4
- 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 +2 -3
- package/dist/Tooltip.js +7 -34
- package/dist/WiggleBaseRenderer.d.ts +8 -11
- 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 +3 -4
- package/dist/WiggleRendering.js +5 -30
- package/dist/XYPlotRenderer/XYPlotRenderer.d.ts +3 -2
- package/dist/XYPlotRenderer/XYPlotRenderer.js +37 -6
- 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 +7 -7
- package/dist/index.js +40 -58
- package/dist/shared/SetMinMaxDialog.d.ts +1 -2
- package/dist/shared/SetMinMaxDialog.js +12 -42
- package/dist/shared/SharedWiggleConfigSchema.d.ts +0 -26
- package/dist/shared/SharedWiggleConfigSchema.js +1 -30
- package/dist/shared/SharedWiggleMixin.d.ts +26 -231
- package/dist/shared/SharedWiggleMixin.js +24 -184
- package/dist/shared/YScaleBar.d.ts +1 -2
- package/dist/shared/YScaleBar.js +2 -5
- 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 +2 -3
- package/esm/CreateMultiWiggleExtension/ConfirmDialog.js +14 -26
- 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/GuessAdapter/index.d.ts +2 -0
- package/esm/GuessAdapter/index.js +22 -0
- 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.d.ts +1 -2
- package/esm/LinearWiggleDisplay/components/SetColorDialog.js +23 -36
- package/esm/LinearWiggleDisplay/components/Tooltip.d.ts +3 -4
- package/esm/LinearWiggleDisplay/components/Tooltip.js +5 -18
- package/esm/LinearWiggleDisplay/components/WiggleDisplayComponent.d.ts +2 -3
- package/esm/LinearWiggleDisplay/components/WiggleDisplayComponent.js +12 -15
- 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 +44 -79
- package/esm/LinearWiggleDisplay/model.js +24 -66
- package/esm/LinearWiggleDisplay/renderSvg.d.ts +3 -4
- package/esm/LinearWiggleDisplay/renderSvg.js +2 -6
- package/esm/MultiDensityRenderer/MultiDensityRenderer.d.ts +4 -3
- package/esm/MultiDensityRenderer/MultiDensityRenderer.js +5 -4
- 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 +3 -5
- package/esm/MultiLinearWiggleDisplay/components/ColorLegend.js +5 -15
- package/esm/MultiLinearWiggleDisplay/components/FullHeightScaleBar.d.ts +7 -0
- package/esm/MultiLinearWiggleDisplay/components/FullHeightScaleBar.js +12 -0
- package/esm/MultiLinearWiggleDisplay/components/IndividualScaleBars.d.ts +7 -0
- package/esm/MultiLinearWiggleDisplay/components/IndividualScaleBars.js +10 -0
- package/esm/MultiLinearWiggleDisplay/components/LegendItem.d.ts +11 -0
- package/esm/MultiLinearWiggleDisplay/components/LegendItem.js +14 -0
- package/esm/MultiLinearWiggleDisplay/components/RectBg.d.ts +1 -2
- package/esm/MultiLinearWiggleDisplay/components/RectBg.js +2 -2
- package/esm/MultiLinearWiggleDisplay/components/ScoreLegend.d.ts +2 -3
- package/esm/MultiLinearWiggleDisplay/components/ScoreLegend.js +3 -5
- package/esm/MultiLinearWiggleDisplay/components/SetColorDialog.d.ts +2 -3
- package/esm/MultiLinearWiggleDisplay/components/SetColorDialog.js +22 -38
- package/esm/MultiLinearWiggleDisplay/components/SourcesGrid.d.ts +2 -3
- package/esm/MultiLinearWiggleDisplay/components/SourcesGrid.js +64 -91
- package/esm/MultiLinearWiggleDisplay/components/Tooltip.d.ts +4 -5
- package/esm/MultiLinearWiggleDisplay/components/Tooltip.js +8 -23
- package/esm/MultiLinearWiggleDisplay/components/WiggleDisplayComponent.d.ts +2 -3
- package/esm/MultiLinearWiggleDisplay/components/WiggleDisplayComponent.js +2 -4
- package/esm/MultiLinearWiggleDisplay/components/YScaleBars.d.ts +2 -3
- package/esm/MultiLinearWiggleDisplay/components/YScaleBars.js +8 -28
- 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 +27 -146
- package/esm/MultiLinearWiggleDisplay/model.js +27 -121
- package/esm/MultiLinearWiggleDisplay/renderSvg.d.ts +3 -4
- package/esm/MultiLinearWiggleDisplay/renderSvg.js +2 -5
- package/esm/MultiLinearWiggleDisplay/util.d.ts +1 -0
- package/esm/MultiLinearWiggleDisplay/util.js +7 -0
- 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 +4 -4
- package/esm/MultiWiggleAddTrackWorkflow/AddTrackWorkflow.js +63 -80
- package/esm/MultiWiggleAddTrackWorkflow/index.d.ts +1 -1
- package/esm/MultiWiggleAddTrackWorkflow/index.js +1 -2
- package/esm/MultiWiggleRendering.d.ts +4 -5
- package/esm/MultiWiggleRendering.js +6 -6
- package/esm/MultiXYPlotRenderer/MultiXYPlotRenderer.d.ts +3 -2
- package/esm/MultiXYPlotRenderer/MultiXYPlotRenderer.js +2 -3
- 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 +2 -3
- package/esm/Tooltip.js +7 -11
- package/esm/WiggleBaseRenderer.d.ts +8 -11
- 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 +3 -4
- package/esm/WiggleRendering.js +5 -7
- 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 +7 -7
- package/esm/index.js +14 -42
- package/esm/shared/SetMinMaxDialog.d.ts +1 -2
- package/esm/shared/SetMinMaxDialog.js +12 -19
- package/esm/shared/SharedWiggleConfigSchema.d.ts +0 -26
- package/esm/shared/SharedWiggleConfigSchema.js +1 -30
- package/esm/shared/SharedWiggleMixin.d.ts +26 -231
- package/esm/shared/SharedWiggleMixin.js +8 -178
- package/esm/shared/YScaleBar.d.ts +1 -2
- package/esm/shared/YScaleBar.js +2 -2
- package/esm/util.d.ts +0 -28
- package/esm/util.js +1 -45
- package/package.json +3 -6
- package/dist/MultiLinearWiggleDisplay/components/DraggableDialog.d.ts +0 -6
- package/dist/MultiLinearWiggleDisplay/components/DraggableDialog.js +0 -66
- package/esm/MultiLinearWiggleDisplay/components/DraggableDialog.d.ts +0 -6
- package/esm/MultiLinearWiggleDisplay/components/DraggableDialog.js +0 -38
|
@@ -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
|
-
import
|
|
2
|
-
|
|
3
|
-
export default function MultiWiggleWidget({ model }: {
|
|
1
|
+
import type { AddTrackModel } from '@jbrowse/plugin-data-management';
|
|
2
|
+
declare const MultiWiggleAddTrackWorkflow: ({ model, }: {
|
|
4
3
|
model: AddTrackModel;
|
|
5
|
-
})
|
|
4
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export default MultiWiggleAddTrackWorkflow;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import { makeStyles } from 'tss-react/mui';
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from 'react';
|
|
4
3
|
import { getSession, isElectron, isSessionModelWithWidgets, isSessionWithAddTracks, } from '@jbrowse/core/util';
|
|
5
4
|
import { storeBlobLocation } from '@jbrowse/core/util/tracks';
|
|
5
|
+
import { Button, Paper, TextField } from '@mui/material';
|
|
6
|
+
import { observer } from 'mobx-react';
|
|
7
|
+
import { makeStyles } from 'tss-react/mui';
|
|
6
8
|
const useStyles = makeStyles()(theme => ({
|
|
7
9
|
paper: {
|
|
8
10
|
margin: theme.spacing(),
|
|
@@ -14,7 +16,6 @@ const useStyles = makeStyles()(theme => ({
|
|
|
14
16
|
display: 'block',
|
|
15
17
|
},
|
|
16
18
|
}));
|
|
17
|
-
// on electron, use path to LocalFileLocation, on web, use the BlobLocation
|
|
18
19
|
function makeFileLocation(file) {
|
|
19
20
|
const { webUtils } = window.require('electron');
|
|
20
21
|
return isElectron
|
|
@@ -24,82 +25,64 @@ function makeFileLocation(file) {
|
|
|
24
25
|
}
|
|
25
26
|
: storeBlobLocation({ blob: file });
|
|
26
27
|
}
|
|
27
|
-
|
|
28
|
+
function doSubmit({ trackName, val, model, }) {
|
|
29
|
+
var _a;
|
|
30
|
+
const session = getSession(model);
|
|
31
|
+
try {
|
|
32
|
+
const trackId = [
|
|
33
|
+
`${trackName.toLowerCase().replaceAll(' ', '_')}-${Date.now()}`,
|
|
34
|
+
session.adminMode ? '' : '-sessionTrack',
|
|
35
|
+
].join('');
|
|
36
|
+
let bigWigs;
|
|
37
|
+
try {
|
|
38
|
+
bigWigs = JSON.parse(val);
|
|
39
|
+
}
|
|
40
|
+
catch (e) {
|
|
41
|
+
bigWigs = val
|
|
42
|
+
.split(/\n|\r\n|\r/)
|
|
43
|
+
.map(f => f.trim())
|
|
44
|
+
.filter(f => !!f);
|
|
45
|
+
}
|
|
46
|
+
const obj = typeof bigWigs[0] === 'string' ? { bigWigs } : { subadapters: bigWigs };
|
|
47
|
+
if (isSessionWithAddTracks(session)) {
|
|
48
|
+
session.addTrackConf({
|
|
49
|
+
trackId,
|
|
50
|
+
type: 'MultiQuantitativeTrack',
|
|
51
|
+
name: trackName,
|
|
52
|
+
assemblyNames: [model.assembly],
|
|
53
|
+
adapter: {
|
|
54
|
+
type: 'MultiWiggleAdapter',
|
|
55
|
+
...obj,
|
|
56
|
+
},
|
|
57
|
+
});
|
|
58
|
+
(_a = model.view) === null || _a === void 0 ? void 0 : _a.showTrack(trackId);
|
|
59
|
+
}
|
|
60
|
+
model.clearData();
|
|
61
|
+
if (isSessionModelWithWidgets(session)) {
|
|
62
|
+
session.hideWidget(model);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
catch (e) {
|
|
66
|
+
console.error(e);
|
|
67
|
+
session.notifyError(`${e}`, e);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
const MultiWiggleAddTrackWorkflow = observer(function ({ model, }) {
|
|
28
71
|
const { classes } = useStyles();
|
|
29
72
|
const [val, setVal] = useState('');
|
|
30
73
|
const [trackName, setTrackName] = useState(`MultiWiggle${+Date.now()}`);
|
|
31
|
-
return (
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
setVal(JSON.stringify(res, null, 2));
|
|
47
|
-
} })),
|
|
48
|
-
React.createElement(TextField, { value: trackName, helperText: "Track name", onChange: event => {
|
|
49
|
-
setTrackName(event.target.value);
|
|
50
|
-
} }),
|
|
51
|
-
React.createElement(Button, { variant: "contained", className: classes.submit, onClick: () => {
|
|
52
|
-
var _a;
|
|
53
|
-
const session = getSession(model);
|
|
54
|
-
try {
|
|
55
|
-
const trackId = [
|
|
56
|
-
`${trackName.toLowerCase().replaceAll(' ', '_')}-${Date.now()}`,
|
|
57
|
-
session.adminMode ? '' : '-sessionTrack',
|
|
58
|
-
].join('');
|
|
59
|
-
// allow list of bigwigs in JSON format or line-by-line
|
|
60
|
-
let bigWigs;
|
|
61
|
-
try {
|
|
62
|
-
bigWigs = JSON.parse(val);
|
|
63
|
-
}
|
|
64
|
-
catch (e) {
|
|
65
|
-
bigWigs = val
|
|
66
|
-
.split(/\n|\r\n|\r/)
|
|
67
|
-
.map(f => f.trim())
|
|
68
|
-
.filter(f => !!f);
|
|
69
|
-
}
|
|
70
|
-
const obj = typeof bigWigs[0] === 'string'
|
|
71
|
-
? { bigWigs }
|
|
72
|
-
: { subadapters: bigWigs };
|
|
73
|
-
if (isSessionWithAddTracks(session)) {
|
|
74
|
-
session.addTrackConf({
|
|
75
|
-
trackId,
|
|
76
|
-
type: 'MultiQuantitativeTrack',
|
|
77
|
-
name: trackName,
|
|
78
|
-
assemblyNames: [model.assembly],
|
|
79
|
-
adapter: {
|
|
80
|
-
type: 'MultiWiggleAdapter',
|
|
81
|
-
...obj,
|
|
82
|
-
},
|
|
83
|
-
});
|
|
84
|
-
(_a = model.view) === null || _a === void 0 ? void 0 : _a.showTrack(trackId);
|
|
85
|
-
}
|
|
86
|
-
model.clearData();
|
|
87
|
-
if (isSessionModelWithWidgets(session)) {
|
|
88
|
-
session.hideWidget(model);
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
catch (e) {
|
|
92
|
-
console.error(e);
|
|
93
|
-
session.notifyError(`${e}`, e);
|
|
94
|
-
}
|
|
95
|
-
} }, "Submit"),
|
|
96
|
-
React.createElement("p", null, "Additional notes: "),
|
|
97
|
-
React.createElement("ul", null,
|
|
98
|
-
React.createElement("li", null,
|
|
99
|
-
"The list of bigwig files in the text box can be a list of URLs, or a list of elements like",
|
|
100
|
-
' ',
|
|
101
|
-
React.createElement("code", null, `[{"type":"BigWigAdapter","bigWigLocation":{"uri":"http://host/file.bw"}, "color":"green","source":"name for subtrack"}]`),
|
|
102
|
-
' ',
|
|
103
|
-
"to apply e.g. the color attribute to the view"),
|
|
104
|
-
React.createElement("li", null, "Adding local files will update the textbox with JSON contents that are ready to submit with the \"Submit\" button"))));
|
|
105
|
-
}
|
|
74
|
+
return (_jsxs(Paper, { className: classes.paper, children: [_jsxs("ul", { children: [_jsx("li", { children: "Enter list of URLs for bigwig files in the textbox" }), _jsx("li", { children: "Or, use the button below the text box to select files from your computer" })] }), _jsx(TextField, { multiline: true, fullWidth: true, rows: 10, value: val, placeholder: "Paste list of URLs here, or use file selector below", variant: "outlined", onChange: event => {
|
|
75
|
+
setVal(event.target.value);
|
|
76
|
+
} }), _jsxs(Button, { variant: "outlined", component: "label", children: ["Choose Files from your computer", _jsx("input", { type: "file", hidden: true, multiple: true, onChange: ({ target }) => {
|
|
77
|
+
setVal(JSON.stringify([...(target.files || [])].map(file => ({
|
|
78
|
+
type: 'BigWigAdapter',
|
|
79
|
+
bigWigLocation: makeFileLocation(file),
|
|
80
|
+
source: file.name,
|
|
81
|
+
})), null, 2));
|
|
82
|
+
} })] }), _jsx(TextField, { value: trackName, helperText: "Track name", onChange: event => {
|
|
83
|
+
setTrackName(event.target.value);
|
|
84
|
+
} }), _jsx(Button, { variant: "contained", className: classes.submit, onClick: () => {
|
|
85
|
+
doSubmit({ trackName, val, model });
|
|
86
|
+
}, children: "Submit" }), _jsx("p", { children: "Additional notes: " }), _jsxs("ul", { children: [_jsxs("li", { children: ["The list of bigwig files in the text box can be a list of URLs, or a list of elements like", ' ', _jsx("code", { children: `[{"type":"BigWigAdapter","bigWigLocation":{"uri":"http://host/file.bw"}, "color":"green","source":"name for subtrack"}]` }), ' ', "to apply e.g. the color attribute to the view"] }), _jsx("li", { children: "Adding local files will update the textbox with JSON contents that are ready to submit with the \"Submit\" button" })] })] }));
|
|
87
|
+
});
|
|
88
|
+
export default MultiWiggleAddTrackWorkflow;
|
|
@@ -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,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { Source } from './util';
|
|
1
|
+
import type { Source } from './util';
|
|
2
|
+
import type { Feature } from '@jbrowse/core/util';
|
|
3
|
+
import type { Region } from '@jbrowse/core/util/types';
|
|
5
4
|
declare const MultiWiggleRendering: (props: {
|
|
6
5
|
regions: Region[];
|
|
7
6
|
features: Map<string, Feature>;
|
|
@@ -16,5 +15,5 @@ declare const MultiWiggleRendering: (props: {
|
|
|
16
15
|
onMouseLeave?: (event: React.MouseEvent) => void;
|
|
17
16
|
onMouseMove?: (event: React.MouseEvent, arg?: Feature) => void;
|
|
18
17
|
onFeatureClick?: (event: React.MouseEvent, arg?: Feature) => void;
|
|
19
|
-
}) =>
|
|
18
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
20
19
|
export default MultiWiggleRendering;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import { SimpleFeature } from '@jbrowse/core/util';
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useRef } from 'react';
|
|
4
3
|
import { PrerenderedCanvas } from '@jbrowse/core/ui';
|
|
4
|
+
import { SimpleFeature } from '@jbrowse/core/util';
|
|
5
|
+
import { observer } from 'mobx-react';
|
|
5
6
|
const MultiWiggleRendering = observer(function (props) {
|
|
6
7
|
const { regions, features, bpPerPx, width, height, sources, onMouseLeave = () => { }, onMouseMove = () => { }, onFeatureClick = () => { }, displayModel, } = props;
|
|
7
8
|
const region = regions[0];
|
|
@@ -59,7 +60,7 @@ const MultiWiggleRendering = observer(function (props) {
|
|
|
59
60
|
}
|
|
60
61
|
return featureUnderMouse;
|
|
61
62
|
}
|
|
62
|
-
return (
|
|
63
|
+
return (_jsx("div", { ref: ref, onMouseMove: event => {
|
|
63
64
|
const { clientX, clientY } = event;
|
|
64
65
|
const featureUnderMouse = getFeatureUnderMouse(clientX, clientY);
|
|
65
66
|
onMouseMove(event, featureUnderMouse);
|
|
@@ -73,7 +74,6 @@ const MultiWiggleRendering = observer(function (props) {
|
|
|
73
74
|
overflow: 'visible',
|
|
74
75
|
position: 'relative',
|
|
75
76
|
height,
|
|
76
|
-
} }
|
|
77
|
-
React.createElement(PrerenderedCanvas, { ...props })));
|
|
77
|
+
}, children: _jsx(PrerenderedCanvas, { ...props }) }));
|
|
78
78
|
});
|
|
79
79
|
export default MultiWiggleRendering;
|
|
@@ -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,12 +1,11 @@
|
|
|
1
1
|
import { groupBy } from '@jbrowse/core/util';
|
|
2
|
-
import { drawXY } from '../drawXY';
|
|
3
|
-
import { YSCALEBAR_LABEL_OFFSET } from '../util';
|
|
4
2
|
import WiggleBaseRenderer from '../WiggleBaseRenderer';
|
|
3
|
+
import { YSCALEBAR_LABEL_OFFSET } from '../util';
|
|
5
4
|
export default class MultiXYPlotRenderer extends WiggleBaseRenderer {
|
|
6
|
-
// @ts-expect-error
|
|
7
5
|
async draw(ctx, props) {
|
|
8
6
|
const { sources, features } = props;
|
|
9
7
|
const groups = groupBy(features.values(), f => f.get('source'));
|
|
8
|
+
const { drawXY } = await import('../drawXY');
|
|
10
9
|
let feats = [];
|
|
11
10
|
for (const source of sources) {
|
|
12
11
|
const features = groups[source.name] || [];
|
|
@@ -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
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Feature } from '@jbrowse/core/util';
|
|
1
|
+
import type { Feature } from '@jbrowse/core/util';
|
|
3
2
|
type Coord = [number, number];
|
|
4
3
|
export type TooltipContentsComponent = React.ForwardRefExoticComponent<{
|
|
5
4
|
feature: Feature;
|
|
@@ -15,5 +14,5 @@ declare const Tooltip: ({ model, height, clientMouseCoord, offsetMouseCoord, cli
|
|
|
15
14
|
offsetMouseCoord: Coord;
|
|
16
15
|
clientRect?: DOMRect;
|
|
17
16
|
TooltipContents: TooltipContentsComponent;
|
|
18
|
-
}) =>
|
|
17
|
+
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
19
18
|
export default Tooltip;
|
package/esm/Tooltip.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Suspense } from 'react';
|
|
3
|
+
import BaseTooltip from '@jbrowse/core/ui/BaseTooltip';
|
|
2
4
|
import { observer } from 'mobx-react';
|
|
3
5
|
import { makeStyles } from 'tss-react/mui';
|
|
4
|
-
import BaseTooltip from '@jbrowse/core/ui/BaseTooltip';
|
|
5
|
-
// locals
|
|
6
6
|
import { YSCALEBAR_LABEL_OFFSET } from './util';
|
|
7
7
|
const useStyles = makeStyles()({
|
|
8
8
|
hoverVertical: {
|
|
@@ -21,13 +21,9 @@ const Tooltip = observer(function Tooltip({ model, height, clientMouseCoord, off
|
|
|
21
21
|
const { classes } = useStyles();
|
|
22
22
|
const x = clientMouseCoord[0] + 5;
|
|
23
23
|
const y = useClientY ? clientMouseCoord[1] : (clientRect === null || clientRect === void 0 ? void 0 : clientRect.top) || 0;
|
|
24
|
-
return featureUnderMouse ? (
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
React.createElement("div", { className: classes.hoverVertical, style: {
|
|
29
|
-
left: offsetMouseCoord[0],
|
|
30
|
-
height: height - YSCALEBAR_LABEL_OFFSET * 2,
|
|
31
|
-
} }))) : null;
|
|
24
|
+
return featureUnderMouse ? (_jsxs(_Fragment, { children: [_jsx(Suspense, { fallback: null, children: _jsx(BaseTooltip, { clientPoint: { x, y }, children: _jsx(TooltipContents, { model: model, feature: featureUnderMouse }) }) }), _jsx("div", { className: classes.hoverVertical, style: {
|
|
25
|
+
left: offsetMouseCoord[0],
|
|
26
|
+
height: height - YSCALEBAR_LABEL_OFFSET * 2,
|
|
27
|
+
} })] })) : null;
|
|
32
28
|
});
|
|
33
29
|
export default Tooltip;
|
|
@@ -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
|
}
|
|
@@ -30,14 +31,14 @@ export default abstract class WiggleBaseRenderer extends FeatureRendererType {
|
|
|
30
31
|
width: number;
|
|
31
32
|
containsNoTransferables: boolean;
|
|
32
33
|
canvasRecordedData: any;
|
|
33
|
-
reactElement?:
|
|
34
|
+
reactElement?: React.ReactElement;
|
|
34
35
|
html?: string;
|
|
35
36
|
} | {
|
|
36
37
|
features: Map<string, Feature>;
|
|
37
38
|
height: number;
|
|
38
39
|
width: number;
|
|
39
40
|
containsNoTransferables: boolean;
|
|
40
|
-
reactElement:
|
|
41
|
+
reactElement: import("react/jsx-runtime").JSX.Element;
|
|
41
42
|
html?: string;
|
|
42
43
|
} | {
|
|
43
44
|
features: Map<string, Feature>;
|
|
@@ -45,13 +46,9 @@ export default abstract class WiggleBaseRenderer extends FeatureRendererType {
|
|
|
45
46
|
width: number;
|
|
46
47
|
containsNoTransferables: boolean;
|
|
47
48
|
imageData: any;
|
|
48
|
-
reactElement?:
|
|
49
|
+
reactElement?: 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>;
|