@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
|
@@ -24,99 +24,41 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.default = SharedWiggleMixin;
|
|
27
|
+
const react_1 = require("react");
|
|
27
28
|
const configuration_1 = require("@jbrowse/core/configuration");
|
|
28
29
|
const util_1 = require("@jbrowse/core/util");
|
|
30
|
+
const stopToken_1 = require("@jbrowse/core/util/stopToken");
|
|
29
31
|
const plugin_linear_genome_view_1 = require("@jbrowse/plugin-linear-genome-view");
|
|
30
32
|
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
31
|
-
// locals
|
|
32
33
|
const util_2 = require("../util");
|
|
33
|
-
const react_1 = require("react");
|
|
34
|
-
// lazies
|
|
35
34
|
const SetMinMaxDialog = (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('./SetMinMaxDialog'))));
|
|
36
|
-
/**
|
|
37
|
-
* #stateModel SharedWiggleMixin
|
|
38
|
-
*/
|
|
39
35
|
function SharedWiggleMixin(configSchema) {
|
|
40
36
|
return mobx_state_tree_1.types
|
|
41
37
|
.compose(plugin_linear_genome_view_1.BaseLinearDisplay, mobx_state_tree_1.types.model({
|
|
42
|
-
/**
|
|
43
|
-
* #property
|
|
44
|
-
*/
|
|
45
38
|
selectedRendering: mobx_state_tree_1.types.optional(mobx_state_tree_1.types.string, ''),
|
|
46
|
-
/**
|
|
47
|
-
* #property
|
|
48
|
-
*/
|
|
49
39
|
resolution: mobx_state_tree_1.types.optional(mobx_state_tree_1.types.number, 1),
|
|
50
|
-
/**
|
|
51
|
-
* #property
|
|
52
|
-
*/
|
|
53
40
|
fill: mobx_state_tree_1.types.maybe(mobx_state_tree_1.types.boolean),
|
|
54
|
-
/**
|
|
55
|
-
* #property
|
|
56
|
-
*/
|
|
57
41
|
minSize: mobx_state_tree_1.types.maybe(mobx_state_tree_1.types.number),
|
|
58
|
-
/**
|
|
59
|
-
* #property
|
|
60
|
-
*/
|
|
61
42
|
color: mobx_state_tree_1.types.maybe(mobx_state_tree_1.types.string),
|
|
62
|
-
/**
|
|
63
|
-
* #property
|
|
64
|
-
*/
|
|
65
43
|
posColor: mobx_state_tree_1.types.maybe(mobx_state_tree_1.types.string),
|
|
66
|
-
/**
|
|
67
|
-
* #property
|
|
68
|
-
*/
|
|
69
44
|
negColor: mobx_state_tree_1.types.maybe(mobx_state_tree_1.types.string),
|
|
70
|
-
/**
|
|
71
|
-
* #property
|
|
72
|
-
*/
|
|
73
45
|
summaryScoreMode: mobx_state_tree_1.types.maybe(mobx_state_tree_1.types.string),
|
|
74
|
-
/**
|
|
75
|
-
* #property
|
|
76
|
-
*/
|
|
77
46
|
rendererTypeNameState: mobx_state_tree_1.types.maybe(mobx_state_tree_1.types.string),
|
|
78
|
-
/**
|
|
79
|
-
* #property
|
|
80
|
-
*/
|
|
81
47
|
scale: mobx_state_tree_1.types.maybe(mobx_state_tree_1.types.string),
|
|
82
|
-
/**
|
|
83
|
-
* #property
|
|
84
|
-
*/
|
|
85
48
|
autoscale: mobx_state_tree_1.types.maybe(mobx_state_tree_1.types.string),
|
|
86
|
-
/**
|
|
87
|
-
* #property
|
|
88
|
-
*/
|
|
89
49
|
displayCrossHatches: mobx_state_tree_1.types.maybe(mobx_state_tree_1.types.boolean),
|
|
90
|
-
/**
|
|
91
|
-
* #property
|
|
92
|
-
*/
|
|
93
50
|
constraints: mobx_state_tree_1.types.optional(mobx_state_tree_1.types.model({
|
|
94
51
|
max: mobx_state_tree_1.types.maybe(mobx_state_tree_1.types.number),
|
|
95
52
|
min: mobx_state_tree_1.types.maybe(mobx_state_tree_1.types.number),
|
|
96
53
|
}), {}),
|
|
97
|
-
/**
|
|
98
|
-
* #property
|
|
99
|
-
*/
|
|
100
54
|
configuration: (0, configuration_1.ConfigurationReference)(configSchema),
|
|
101
55
|
}))
|
|
102
56
|
.volatile(() => ({
|
|
103
|
-
/**
|
|
104
|
-
* #volatile
|
|
105
|
-
*/
|
|
106
57
|
message: undefined,
|
|
107
|
-
/**
|
|
108
|
-
* #volatile
|
|
109
|
-
*/
|
|
110
58
|
stats: undefined,
|
|
111
|
-
/**
|
|
112
|
-
* #volatile
|
|
113
|
-
*/
|
|
114
59
|
statsFetchInProgress: undefined,
|
|
115
60
|
}))
|
|
116
61
|
.actions(self => ({
|
|
117
|
-
/**
|
|
118
|
-
* #action
|
|
119
|
-
*/
|
|
120
62
|
updateQuantitativeStats(stats) {
|
|
121
63
|
const { currStatsBpPerPx, scoreMin, scoreMax } = stats;
|
|
122
64
|
const EPSILON = 0.000001;
|
|
@@ -130,55 +72,30 @@ function SharedWiggleMixin(configSchema) {
|
|
|
130
72
|
};
|
|
131
73
|
}
|
|
132
74
|
},
|
|
133
|
-
/**
|
|
134
|
-
* #action
|
|
135
|
-
*/
|
|
136
75
|
setColor(color) {
|
|
137
76
|
self.color = color;
|
|
138
77
|
},
|
|
139
|
-
/**
|
|
140
|
-
* #action
|
|
141
|
-
*/
|
|
142
78
|
setPosColor(color) {
|
|
143
79
|
self.posColor = color;
|
|
144
80
|
},
|
|
145
|
-
/**
|
|
146
|
-
* #action
|
|
147
|
-
*/
|
|
148
81
|
setNegColor(color) {
|
|
149
82
|
self.negColor = color;
|
|
150
83
|
},
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
setStatsLoading(aborter) {
|
|
155
|
-
if (self.statsFetchInProgress !== undefined &&
|
|
156
|
-
!self.statsFetchInProgress.signal.aborted) {
|
|
157
|
-
self.statsFetchInProgress.abort();
|
|
84
|
+
setStatsLoading(arg) {
|
|
85
|
+
if (self.statsFetchInProgress) {
|
|
86
|
+
(0, stopToken_1.stopStopToken)(self.statsFetchInProgress);
|
|
158
87
|
}
|
|
159
|
-
self.statsFetchInProgress =
|
|
160
|
-
},
|
|
161
|
-
/**
|
|
162
|
-
* #action
|
|
163
|
-
* this overrides the BaseLinearDisplayModel to avoid popping up a
|
|
164
|
-
* feature detail display, but still sets the feature selection on the
|
|
165
|
-
* model so listeners can detect a click
|
|
166
|
-
*/
|
|
88
|
+
self.statsFetchInProgress = arg;
|
|
89
|
+
},
|
|
167
90
|
selectFeature(feature) {
|
|
168
91
|
const session = (0, util_1.getSession)(self);
|
|
169
92
|
if ((0, util_1.isSelectionContainer)(session)) {
|
|
170
93
|
session.setSelection(feature);
|
|
171
94
|
}
|
|
172
95
|
},
|
|
173
|
-
/**
|
|
174
|
-
* #action
|
|
175
|
-
*/
|
|
176
96
|
setResolution(res) {
|
|
177
97
|
self.resolution = res;
|
|
178
98
|
},
|
|
179
|
-
/**
|
|
180
|
-
* #action
|
|
181
|
-
*/
|
|
182
99
|
setFill(fill) {
|
|
183
100
|
if (fill === 0) {
|
|
184
101
|
self.fill = true;
|
|
@@ -193,116 +110,64 @@ function SharedWiggleMixin(configSchema) {
|
|
|
193
110
|
self.minSize = 2;
|
|
194
111
|
}
|
|
195
112
|
},
|
|
196
|
-
/**
|
|
197
|
-
* #action
|
|
198
|
-
*/
|
|
199
113
|
toggleLogScale() {
|
|
200
114
|
self.scale = self.scale === 'log' ? 'linear' : 'log';
|
|
201
115
|
},
|
|
202
|
-
/**
|
|
203
|
-
* #action
|
|
204
|
-
*/
|
|
205
116
|
setScaleType(scale) {
|
|
206
117
|
self.scale = scale;
|
|
207
118
|
},
|
|
208
|
-
/**
|
|
209
|
-
* #action
|
|
210
|
-
*/
|
|
211
119
|
setSummaryScoreMode(val) {
|
|
212
120
|
self.summaryScoreMode = val;
|
|
213
121
|
},
|
|
214
|
-
/**
|
|
215
|
-
* #action
|
|
216
|
-
*/
|
|
217
122
|
setAutoscale(val) {
|
|
218
123
|
self.autoscale = val;
|
|
219
124
|
},
|
|
220
|
-
/**
|
|
221
|
-
* #action
|
|
222
|
-
*/
|
|
223
125
|
setMaxScore(val) {
|
|
224
126
|
self.constraints.max = val;
|
|
225
127
|
},
|
|
226
|
-
/**
|
|
227
|
-
* #action
|
|
228
|
-
*/
|
|
229
128
|
setRendererType(val) {
|
|
230
129
|
self.rendererTypeNameState = val;
|
|
231
130
|
},
|
|
232
|
-
/**
|
|
233
|
-
* #action
|
|
234
|
-
*/
|
|
235
131
|
setMinScore(val) {
|
|
236
132
|
self.constraints.min = val;
|
|
237
133
|
},
|
|
238
|
-
/**
|
|
239
|
-
* #action
|
|
240
|
-
*/
|
|
241
134
|
toggleCrossHatches() {
|
|
242
135
|
self.displayCrossHatches = !self.displayCrossHatches;
|
|
243
136
|
},
|
|
244
|
-
/**
|
|
245
|
-
* #action
|
|
246
|
-
*/
|
|
247
137
|
setCrossHatches(cross) {
|
|
248
138
|
self.displayCrossHatches = cross;
|
|
249
139
|
},
|
|
250
140
|
}))
|
|
251
141
|
.views(self => ({
|
|
252
|
-
/**
|
|
253
|
-
* #getter
|
|
254
|
-
*/
|
|
255
142
|
get adapterTypeName() {
|
|
256
143
|
return self.adapterConfig.type;
|
|
257
144
|
},
|
|
258
|
-
/**
|
|
259
|
-
* #getter
|
|
260
|
-
*/
|
|
261
145
|
get rendererTypeNameSimple() {
|
|
262
146
|
var _a;
|
|
263
147
|
return (_a = self.rendererTypeNameState) !== null && _a !== void 0 ? _a : (0, configuration_1.getConf)(self, 'defaultRendering');
|
|
264
148
|
},
|
|
265
|
-
/**
|
|
266
|
-
* #getter
|
|
267
|
-
* subclasses can define these, as snpcoverage track does
|
|
268
|
-
*/
|
|
269
149
|
get filters() {
|
|
270
150
|
return undefined;
|
|
271
151
|
},
|
|
272
|
-
/**
|
|
273
|
-
* #getter
|
|
274
|
-
*/
|
|
275
152
|
get scaleType() {
|
|
276
153
|
var _a;
|
|
277
154
|
return (_a = self.scale) !== null && _a !== void 0 ? _a : (0, configuration_1.getConf)(self, 'scaleType');
|
|
278
155
|
},
|
|
279
|
-
/**
|
|
280
|
-
* #getter
|
|
281
|
-
*/
|
|
282
156
|
get maxScore() {
|
|
283
157
|
var _a;
|
|
284
158
|
return (_a = self.constraints.max) !== null && _a !== void 0 ? _a : (0, configuration_1.getConf)(self, 'maxScore');
|
|
285
159
|
},
|
|
286
|
-
/**
|
|
287
|
-
* #getter
|
|
288
|
-
*/
|
|
289
160
|
get minScore() {
|
|
290
161
|
var _a;
|
|
291
162
|
return (_a = self.constraints.min) !== null && _a !== void 0 ? _a : (0, configuration_1.getConf)(self, 'minScore');
|
|
292
163
|
},
|
|
293
164
|
}))
|
|
294
165
|
.views(self => ({
|
|
295
|
-
/**
|
|
296
|
-
* #getter
|
|
297
|
-
*/
|
|
298
166
|
get adapterCapabilities() {
|
|
299
167
|
const type = self.adapterTypeName;
|
|
300
168
|
const { pluginManager } = (0, util_1.getEnv)(self);
|
|
301
169
|
return pluginManager.getAdapterType(type).adapterCapabilities;
|
|
302
170
|
},
|
|
303
|
-
/**
|
|
304
|
-
* #getter
|
|
305
|
-
*/
|
|
306
171
|
get rendererConfig() {
|
|
307
172
|
const { color, displayCrossHatches, fill, minSize, negColor, posColor, summaryScoreMode, scaleType, rendererTypeName, } = self;
|
|
308
173
|
const configBlob = (0, configuration_1.getConf)(self, ['renderers', rendererTypeName]) || {};
|
|
@@ -320,9 +185,6 @@ function SharedWiggleMixin(configSchema) {
|
|
|
320
185
|
...(minSize !== undefined ? { minSize } : {}),
|
|
321
186
|
}, (0, util_1.getEnv)(self));
|
|
322
187
|
},
|
|
323
|
-
/**
|
|
324
|
-
* #getter
|
|
325
|
-
*/
|
|
326
188
|
get autoscaleType() {
|
|
327
189
|
var _a;
|
|
328
190
|
return (_a = self.autoscale) !== null && _a !== void 0 ? _a : (0, configuration_1.getConf)(self, 'autoscale');
|
|
@@ -331,9 +193,6 @@ function SharedWiggleMixin(configSchema) {
|
|
|
331
193
|
.views(self => {
|
|
332
194
|
let oldDomain = [0, 0];
|
|
333
195
|
return {
|
|
334
|
-
/**
|
|
335
|
-
* #getter
|
|
336
|
-
*/
|
|
337
196
|
get domain() {
|
|
338
197
|
const { stats, scaleType, minScore, maxScore } = self;
|
|
339
198
|
if (!stats) {
|
|
@@ -344,11 +203,9 @@ function SharedWiggleMixin(configSchema) {
|
|
|
344
203
|
bounds: [minScore, maxScore],
|
|
345
204
|
scaleType,
|
|
346
205
|
});
|
|
347
|
-
// avoid weird scalebar if log value and empty region displayed
|
|
348
206
|
if (scaleType === 'log' && ret[1] === Number.MIN_VALUE) {
|
|
349
207
|
return [0, Number.MIN_VALUE];
|
|
350
208
|
}
|
|
351
|
-
// avoid returning a new object if it matches the old value
|
|
352
209
|
if (JSON.stringify(oldDomain) !== JSON.stringify(ret)) {
|
|
353
210
|
oldDomain = ret;
|
|
354
211
|
}
|
|
@@ -357,23 +214,14 @@ function SharedWiggleMixin(configSchema) {
|
|
|
357
214
|
};
|
|
358
215
|
})
|
|
359
216
|
.views(self => ({
|
|
360
|
-
/**
|
|
361
|
-
* #getter
|
|
362
|
-
*/
|
|
363
217
|
get filled() {
|
|
364
218
|
const { fill, rendererConfig } = self;
|
|
365
219
|
return fill !== null && fill !== void 0 ? fill : (0, configuration_1.readConfObject)(rendererConfig, 'filled');
|
|
366
220
|
},
|
|
367
|
-
/**
|
|
368
|
-
* #getter
|
|
369
|
-
*/
|
|
370
221
|
get summaryScoreModeSetting() {
|
|
371
222
|
const { summaryScoreMode: mode, rendererConfig } = self;
|
|
372
223
|
return mode !== null && mode !== void 0 ? mode : (0, configuration_1.readConfObject)(rendererConfig, 'summaryScoreMode');
|
|
373
224
|
},
|
|
374
|
-
/**
|
|
375
|
-
* #getter
|
|
376
|
-
*/
|
|
377
225
|
get scaleOpts() {
|
|
378
226
|
return {
|
|
379
227
|
domain: self.domain,
|
|
@@ -383,36 +231,21 @@ function SharedWiggleMixin(configSchema) {
|
|
|
383
231
|
inverted: (0, configuration_1.getConf)(self, 'inverted'),
|
|
384
232
|
};
|
|
385
233
|
},
|
|
386
|
-
/**
|
|
387
|
-
* #getter
|
|
388
|
-
*/
|
|
389
234
|
get canHaveFill() {
|
|
390
235
|
return self.rendererTypeName === 'XYPlotRenderer';
|
|
391
236
|
},
|
|
392
|
-
/**
|
|
393
|
-
* #getter
|
|
394
|
-
*/
|
|
395
237
|
get displayCrossHatchesSetting() {
|
|
396
238
|
const { displayCrossHatches: hatches, rendererConfig } = self;
|
|
397
239
|
return hatches !== null && hatches !== void 0 ? hatches : (0, configuration_1.readConfObject)(rendererConfig, 'displayCrossHatches');
|
|
398
240
|
},
|
|
399
|
-
/**
|
|
400
|
-
* #getter
|
|
401
|
-
*/
|
|
402
241
|
get hasResolution() {
|
|
403
242
|
return self.adapterCapabilities.includes('hasResolution');
|
|
404
243
|
},
|
|
405
|
-
/**
|
|
406
|
-
* #getter
|
|
407
|
-
*/
|
|
408
244
|
get hasGlobalStats() {
|
|
409
245
|
return self.adapterCapabilities.includes('hasGlobalStats');
|
|
410
246
|
},
|
|
411
247
|
}))
|
|
412
248
|
.views(self => ({
|
|
413
|
-
/**
|
|
414
|
-
* #method
|
|
415
|
-
*/
|
|
416
249
|
scoreTrackMenuItems() {
|
|
417
250
|
return [
|
|
418
251
|
...(self.hasResolution
|
|
@@ -488,9 +321,6 @@ function SharedWiggleMixin(configSchema) {
|
|
|
488
321
|
.actions(self => {
|
|
489
322
|
const { reload: superReload } = self;
|
|
490
323
|
return {
|
|
491
|
-
/**
|
|
492
|
-
* #action
|
|
493
|
-
*/
|
|
494
324
|
async reload() {
|
|
495
325
|
self.setError();
|
|
496
326
|
superReload();
|
package/dist/util.d.ts
CHANGED
|
@@ -12,36 +12,8 @@ export interface Source {
|
|
|
12
12
|
color?: string;
|
|
13
13
|
group?: string;
|
|
14
14
|
}
|
|
15
|
-
/**
|
|
16
|
-
* produces a d3-scale from arguments. applies a "nice domain" adjustment
|
|
17
|
-
*
|
|
18
|
-
* @param object - containing attributes
|
|
19
|
-
* - domain [min,max]
|
|
20
|
-
* - range [min,max]
|
|
21
|
-
* - bounds [min,max]
|
|
22
|
-
* - scaleType (linear or log)
|
|
23
|
-
* - pivotValue (number)
|
|
24
|
-
* - inverted (boolean)
|
|
25
|
-
*/
|
|
26
15
|
export declare function getScale({ domain, range, scaleType, pivotValue, inverted, }: ScaleOpts): import("d3-scale").ScaleLinear<number, number, never> | import("d3-scale").ScaleLogarithmic<number, number, never> | import("d3-scale").ScaleQuantize<number, never>;
|
|
27
|
-
/**
|
|
28
|
-
* gets the origin for drawing the graph. for linear this is 0, for log this is
|
|
29
|
-
* arbitrarily set to log(1)==0
|
|
30
|
-
*
|
|
31
|
-
* @param scaleType -
|
|
32
|
-
*/
|
|
33
16
|
export declare function getOrigin(scaleType: string): 1 | 0;
|
|
34
|
-
/**
|
|
35
|
-
* produces a "nice" domain that actually rounds down to 0 for the min or 0 to
|
|
36
|
-
* the max depending on if all values are positive or negative
|
|
37
|
-
*
|
|
38
|
-
* @param object - containing attributes
|
|
39
|
-
* - domain [min,max]
|
|
40
|
-
* - bounds [min,max]
|
|
41
|
-
* - mean
|
|
42
|
-
* - stddev
|
|
43
|
-
* - scaleType (linear or log)
|
|
44
|
-
*/
|
|
45
17
|
export declare function getNiceDomain({ scaleType, domain, bounds, }: {
|
|
46
18
|
scaleType: string;
|
|
47
19
|
domain: readonly [number, number];
|
package/dist/util.js
CHANGED
|
@@ -9,17 +9,6 @@ exports.round = round;
|
|
|
9
9
|
exports.fillRectCtx = fillRectCtx;
|
|
10
10
|
const d3_scale_1 = require("@mui/x-charts-vendor/d3-scale");
|
|
11
11
|
exports.YSCALEBAR_LABEL_OFFSET = 5;
|
|
12
|
-
/**
|
|
13
|
-
* produces a d3-scale from arguments. applies a "nice domain" adjustment
|
|
14
|
-
*
|
|
15
|
-
* @param object - containing attributes
|
|
16
|
-
* - domain [min,max]
|
|
17
|
-
* - range [min,max]
|
|
18
|
-
* - bounds [min,max]
|
|
19
|
-
* - scaleType (linear or log)
|
|
20
|
-
* - pivotValue (number)
|
|
21
|
-
* - inverted (boolean)
|
|
22
|
-
*/
|
|
23
12
|
function getScale({ domain = [], range = [], scaleType, pivotValue, inverted, }) {
|
|
24
13
|
let scale;
|
|
25
14
|
const [min, max] = domain;
|
|
@@ -47,41 +36,12 @@ function getScale({ domain = [], range = [], scaleType, pivotValue, inverted, })
|
|
|
47
36
|
scale.range(inverted ? range.slice().reverse() : range);
|
|
48
37
|
return scale;
|
|
49
38
|
}
|
|
50
|
-
|
|
51
|
-
* gets the origin for drawing the graph. for linear this is 0, for log this is
|
|
52
|
-
* arbitrarily set to log(1)==0
|
|
53
|
-
*
|
|
54
|
-
* @param scaleType -
|
|
55
|
-
*/
|
|
56
|
-
function getOrigin(scaleType /* , pivot, stats */) {
|
|
57
|
-
// if (pivot) {
|
|
58
|
-
// if (pivot === 'mean') {
|
|
59
|
-
// return stats.scoreMean || 0
|
|
60
|
-
// }
|
|
61
|
-
// if (pivot === 'zero') {
|
|
62
|
-
// return 0
|
|
63
|
-
// }
|
|
64
|
-
// return parseFloat()
|
|
65
|
-
// }
|
|
66
|
-
// if (scaleType === 'z_score') {
|
|
67
|
-
// return stats.scoreMean || 0
|
|
68
|
-
// }
|
|
39
|
+
function getOrigin(scaleType) {
|
|
69
40
|
if (scaleType === 'log') {
|
|
70
41
|
return 1;
|
|
71
42
|
}
|
|
72
43
|
return 0;
|
|
73
44
|
}
|
|
74
|
-
/**
|
|
75
|
-
* produces a "nice" domain that actually rounds down to 0 for the min or 0 to
|
|
76
|
-
* the max depending on if all values are positive or negative
|
|
77
|
-
*
|
|
78
|
-
* @param object - containing attributes
|
|
79
|
-
* - domain [min,max]
|
|
80
|
-
* - bounds [min,max]
|
|
81
|
-
* - mean
|
|
82
|
-
* - stddev
|
|
83
|
-
* - scaleType (linear or log)
|
|
84
|
-
*/
|
|
85
45
|
function getNiceDomain({ scaleType, domain, bounds, }) {
|
|
86
46
|
const [minScore, maxScore] = bounds;
|
|
87
47
|
let [min, max] = domain;
|
|
@@ -94,9 +54,6 @@ function getNiceDomain({ scaleType, domain, bounds, }) {
|
|
|
94
54
|
}
|
|
95
55
|
}
|
|
96
56
|
if (scaleType === 'log') {
|
|
97
|
-
// for min>0 and max>1, set log min to 1, which works for most coverage
|
|
98
|
-
// types tracks. if max is not >1, might be like raw p-values so then it'll
|
|
99
|
-
// display negative values
|
|
100
57
|
if (min >= 0 && max > 1) {
|
|
101
58
|
min = 1;
|
|
102
59
|
}
|
|
@@ -132,7 +89,6 @@ function toP(s = 0) {
|
|
|
132
89
|
function round(value) {
|
|
133
90
|
return Math.round(value * 1e5) / 1e5;
|
|
134
91
|
}
|
|
135
|
-
// avoid drawing negative width features for SVG exports
|
|
136
92
|
function fillRectCtx(x, y, width, height, ctx, color) {
|
|
137
93
|
if (width < 0) {
|
|
138
94
|
x += width;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { BigWig } from '@gmod/bbi';
|
|
2
|
-
import { BaseFeatureDataAdapter
|
|
3
|
-
import {
|
|
4
|
-
import { Feature } from '@jbrowse/core/util';
|
|
2
|
+
import { BaseFeatureDataAdapter } from '@jbrowse/core/data_adapters/BaseAdapter';
|
|
3
|
+
import type { BaseOptions } from '@jbrowse/core/data_adapters/BaseAdapter';
|
|
4
|
+
import type { Feature } from '@jbrowse/core/util';
|
|
5
|
+
import type { AugmentedRegion as Region } from '@jbrowse/core/util/types';
|
|
5
6
|
interface WiggleOptions extends BaseOptions {
|
|
6
7
|
resolution?: number;
|
|
7
8
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { BigWig } from '@gmod/bbi';
|
|
2
|
-
import { BaseFeatureDataAdapter
|
|
3
|
-
import { openLocation } from '@jbrowse/core/util/io';
|
|
2
|
+
import { BaseFeatureDataAdapter } from '@jbrowse/core/data_adapters/BaseAdapter';
|
|
4
3
|
import { updateStatus } from '@jbrowse/core/util';
|
|
4
|
+
import { openLocation } from '@jbrowse/core/util/io';
|
|
5
5
|
import { ObservableCreate } from '@jbrowse/core/util/rxjs';
|
|
6
|
-
import { rectifyStats
|
|
6
|
+
import { rectifyStats } from '@jbrowse/core/util/stats';
|
|
7
7
|
class BigWigAdapter extends BaseFeatureDataAdapter {
|
|
8
8
|
async setupPre(opts) {
|
|
9
9
|
const { statusCallback = () => { } } = opts || {};
|
|
@@ -38,7 +38,7 @@ class BigWigAdapter extends BaseFeatureDataAdapter {
|
|
|
38
38
|
}
|
|
39
39
|
getFeatures(region, opts = {}) {
|
|
40
40
|
const { refName, start, end } = region;
|
|
41
|
-
const { bpPerPx = 0,
|
|
41
|
+
const { bpPerPx = 0, stopToken, resolution = 1, statusCallback = () => { }, } = opts;
|
|
42
42
|
return ObservableCreate(async (observer) => {
|
|
43
43
|
statusCallback('Downloading bigwig data');
|
|
44
44
|
const source = this.getConf('source');
|
|
@@ -50,25 +50,20 @@ class BigWigAdapter extends BaseFeatureDataAdapter {
|
|
|
50
50
|
});
|
|
51
51
|
for (const data of feats) {
|
|
52
52
|
if (source) {
|
|
53
|
-
// @ts-expect-error
|
|
54
53
|
data.source = source;
|
|
55
54
|
}
|
|
56
55
|
const uniqueId = `${source}:${region.refName}:${data.start}-${data.end}`;
|
|
57
|
-
// @ts-expect-error
|
|
58
56
|
data.refName = refName;
|
|
59
57
|
data.uniqueId = uniqueId;
|
|
60
58
|
observer.next({
|
|
61
|
-
// @ts-expect-error
|
|
62
59
|
get: (str) => data[str],
|
|
63
60
|
id: () => uniqueId,
|
|
64
|
-
// @ts-expect-error
|
|
65
61
|
toJSON: () => data,
|
|
66
62
|
});
|
|
67
63
|
}
|
|
68
64
|
observer.complete();
|
|
69
|
-
},
|
|
65
|
+
}, stopToken);
|
|
70
66
|
}
|
|
71
|
-
// always render bigwig instead of calculating a feature density for it
|
|
72
67
|
async getMultiRegionFeatureDensityStats(_regions) {
|
|
73
68
|
return { featureDensity: 0 };
|
|
74
69
|
}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
declare const BigWigAdapter: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
2
|
-
/**
|
|
3
|
-
* #slot
|
|
4
|
-
*/
|
|
5
2
|
bigWigLocation: {
|
|
6
3
|
type: string;
|
|
7
4
|
defaultValue: {
|
|
@@ -9,17 +6,11 @@ declare const BigWigAdapter: import("@jbrowse/core/configuration/configurationSc
|
|
|
9
6
|
locationType: string;
|
|
10
7
|
};
|
|
11
8
|
};
|
|
12
|
-
/**
|
|
13
|
-
* #slot
|
|
14
|
-
*/
|
|
15
9
|
source: {
|
|
16
10
|
type: string;
|
|
17
11
|
defaultValue: string;
|
|
18
12
|
description: string;
|
|
19
13
|
};
|
|
20
|
-
/**
|
|
21
|
-
* #slot
|
|
22
|
-
*/
|
|
23
14
|
resolutionMultiplier: {
|
|
24
15
|
type: string;
|
|
25
16
|
defaultValue: number;
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import { ConfigurationSchema } from '@jbrowse/core/configuration';
|
|
2
|
-
|
|
3
|
-
* #config BigWigAdapter
|
|
4
|
-
*/
|
|
5
|
-
function x() { } // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
2
|
+
function x() { }
|
|
6
3
|
const BigWigAdapter = ConfigurationSchema('BigWigAdapter', {
|
|
7
|
-
/**
|
|
8
|
-
* #slot
|
|
9
|
-
*/
|
|
10
4
|
bigWigLocation: {
|
|
11
5
|
type: 'fileLocation',
|
|
12
6
|
defaultValue: {
|
|
@@ -14,17 +8,11 @@ const BigWigAdapter = ConfigurationSchema('BigWigAdapter', {
|
|
|
14
8
|
locationType: 'UriLocation',
|
|
15
9
|
},
|
|
16
10
|
},
|
|
17
|
-
/**
|
|
18
|
-
* #slot
|
|
19
|
-
*/
|
|
20
11
|
source: {
|
|
21
12
|
type: 'string',
|
|
22
13
|
defaultValue: '',
|
|
23
14
|
description: 'Used for multiwiggle',
|
|
24
15
|
},
|
|
25
|
-
/**
|
|
26
|
-
* #slot
|
|
27
|
-
*/
|
|
28
16
|
resolutionMultiplier: {
|
|
29
17
|
type: 'number',
|
|
30
18
|
defaultValue: 1,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import PluginManager from '@jbrowse/core/PluginManager';
|
|
1
|
+
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
2
|
export default function BigWigAdapterF(pluginManager: PluginManager): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { AnyConfigurationModel } from '@jbrowse/core/configuration';
|
|
2
|
+
import type { AnyConfigurationModel } from '@jbrowse/core/configuration';
|
|
3
3
|
declare const ConfirmDialog: ({ tracks, onClose, }: {
|
|
4
4
|
tracks: AnyConfigurationModel[];
|
|
5
5
|
onClose: (arg: boolean, arg1?: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { readConfObject } from '@jbrowse/core/configuration';
|
|
3
3
|
import Dialog from '@jbrowse/core/ui/Dialog';
|
|
4
|
-
import {
|
|
4
|
+
import { Button, DialogActions, DialogContent, TextField, Typography, } from '@mui/material';
|
|
5
5
|
const ConfirmDialog = ({ tracks, onClose, }) => {
|
|
6
6
|
const [val, setVal] = useState(`MultiWiggle ${Date.now()}`);
|
|
7
7
|
const allQuant = tracks.every(t => t.type === 'QuantitativeTrack');
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import PluginManager from '@jbrowse/core/PluginManager';
|
|
1
|
+
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
2
|
export default function CreateMultiWiggleExtensionF(pm: PluginManager): void;
|