@jbrowse/plugin-dotplot-view 3.7.0 → 4.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/esm/ComparativeRenderer/index.d.ts +10 -10
- package/esm/ComparativeRenderer/index.js +4 -17
- package/esm/DiagonalizeDotplotRpc.js +9 -12
- package/esm/DotplotDisplay/components/DotplotDisplay.d.ts +1 -1
- package/esm/DotplotDisplay/index.d.ts +3 -3
- package/esm/DotplotDisplay/index.js +4 -4
- package/esm/DotplotDisplay/renderDotplotBlock.d.ts +2 -1
- package/esm/DotplotDisplay/renderDotplotBlock.js +6 -4
- package/esm/DotplotDisplay/stateModelFactory.d.ts +143 -30
- package/esm/DotplotDisplay/stateModelFactory.js +5 -14
- package/esm/DotplotReadVsRef/DotplotReadVsRef.js +5 -6
- package/esm/DotplotReadVsRef/index.js +1 -1
- package/esm/DotplotRenderer/DotplotRenderer.d.ts +30 -39
- package/esm/DotplotRenderer/DotplotRenderer.js +55 -22
- package/esm/DotplotRenderer/components/DotplotRendering.d.ts +1 -1
- package/esm/DotplotRenderer/components/DotplotRendering.js +1 -1
- package/esm/DotplotRenderer/configSchema.d.ts +3 -3
- package/esm/DotplotRenderer/configSchema.js +1 -1
- package/esm/DotplotRenderer/drawDotplot.d.ts +3 -3
- package/esm/DotplotRenderer/drawDotplot.js +5 -6
- package/esm/DotplotRenderer/index.js +4 -4
- package/esm/DotplotView/1dview.d.ts +25 -25
- package/esm/DotplotView/1dview.js +13 -3
- package/esm/DotplotView/components/Axes.d.ts +1 -1
- package/esm/DotplotView/components/Axes.js +31 -41
- package/esm/DotplotView/components/ColorBySelector.d.ts +1 -1
- package/esm/DotplotView/components/ColorBySelector.js +3 -4
- package/esm/DotplotView/components/DiagonalizationProgressDialog.d.ts +1 -1
- package/esm/DotplotView/components/DiagonalizationProgressDialog.js +1 -1
- package/esm/DotplotView/components/DotplotControls.d.ts +1 -1
- package/esm/DotplotView/components/DotplotControls.js +7 -8
- package/esm/DotplotView/components/DotplotGrid.d.ts +6 -0
- package/esm/DotplotView/components/{Grid.js → DotplotGrid.js} +19 -20
- package/esm/DotplotView/components/DotplotGridWrapper.d.ts +6 -0
- package/esm/DotplotView/components/DotplotGridWrapper.js +8 -0
- package/esm/DotplotView/components/DotplotTooltipClick.d.ts +2 -2
- package/esm/DotplotView/components/DotplotTooltipClick.js +4 -4
- package/esm/DotplotView/components/DotplotTooltipMouseover.d.ts +1 -1
- package/esm/DotplotView/components/DotplotTooltipMouseover.js +2 -2
- package/esm/DotplotView/components/DotplotTooltips.d.ts +1 -1
- package/esm/DotplotView/components/DotplotTooltips.js +2 -2
- package/esm/DotplotView/components/DotplotView.d.ts +2 -2
- package/esm/DotplotView/components/DotplotView.js +23 -21
- package/esm/DotplotView/components/DotplotWarnings.d.ts +1 -1
- package/esm/DotplotView/components/DotplotWarnings.js +3 -3
- package/esm/DotplotView/components/ExportSvgDialog.d.ts +1 -1
- package/esm/DotplotView/components/Header.d.ts +1 -1
- package/esm/DotplotView/components/Header.js +5 -5
- package/esm/DotplotView/components/ImportForm/ImportSyntenyOpenCustomTrack.d.ts +1 -1
- package/esm/DotplotView/components/ImportForm/ImportSyntenyOpenCustomTrack.js +6 -5
- package/esm/DotplotView/components/ImportForm/ImportSyntenyTrackSelector.d.ts +1 -1
- package/esm/DotplotView/components/ImportForm/ImportSyntenyTrackSelector.js +2 -3
- package/esm/DotplotView/components/ImportForm/TrackSelector.d.ts +10 -1
- package/esm/DotplotView/components/ImportForm/TrackSelector.js +8 -4
- package/esm/DotplotView/components/ImportForm/index.d.ts +1 -1
- package/esm/DotplotView/components/ImportForm/index.js +4 -9
- package/esm/DotplotView/components/ImportForm/selectors/AnchorsFileSelector.d.ts +1 -1
- package/esm/DotplotView/components/ImportForm/selectors/AnchorsFileSelector.js +2 -2
- package/esm/DotplotView/components/ImportForm/selectors/PifGzSelector.d.ts +1 -1
- package/esm/DotplotView/components/ImportForm/selectors/PifGzSelector.js +2 -2
- package/esm/DotplotView/components/ImportForm/selectors/SwapAssemblies.js +3 -3
- package/esm/DotplotView/components/ImportForm/selectors/SyntenyFileSelector.d.ts +1 -1
- package/esm/DotplotView/components/ImportForm/selectors/SyntenyFileSelector.js +3 -3
- package/esm/DotplotView/components/ImportForm/selectors/index.d.ts +3 -3
- package/esm/DotplotView/components/ImportForm/selectors/index.js +3 -3
- package/esm/DotplotView/components/MinLengthSlider.d.ts +1 -1
- package/esm/DotplotView/components/MinLengthSlider.js +7 -7
- package/esm/DotplotView/components/MouseInteractionLayer.d.ts +3 -3
- package/esm/DotplotView/components/MouseInteractionLayer.js +6 -4
- package/esm/DotplotView/components/OpacitySlider.d.ts +1 -1
- package/esm/DotplotView/components/OpacitySlider.js +5 -6
- package/esm/DotplotView/components/PanButtons.d.ts +1 -1
- package/esm/DotplotView/components/PanButtons.js +1 -1
- package/esm/DotplotView/components/SelectionContextMenu.d.ts +1 -1
- package/esm/DotplotView/components/WarningDialog.js +1 -1
- package/esm/DotplotView/components/util.d.ts +1 -1
- package/esm/DotplotView/components/util.js +17 -5
- package/esm/DotplotView/index.js +2 -2
- package/esm/DotplotView/model.d.ts +208 -90
- package/esm/DotplotView/model.js +118 -79
- package/esm/DotplotView/svgcomponents/SVGDotplotView.d.ts +1 -1
- package/esm/DotplotView/svgcomponents/SVGDotplotView.js +5 -6
- package/esm/DotplotView/types.d.ts +7 -1
- package/esm/LaunchDotplotView.js +6 -36
- package/esm/ServerSideRenderedBlockContent.js +2 -6
- package/esm/ServerSideSyntenyRendering.d.ts +1 -1
- package/esm/ServerSideSyntenyRendering.js +1 -1
- package/esm/index.d.ts +1 -0
- package/esm/index.js +8 -11
- package/esm/util.d.ts +1 -1
- package/package.json +28 -35
- package/dist/ComparativeRenderer/index.d.ts +0 -22
- package/dist/ComparativeRenderer/index.js +0 -53
- package/dist/DiagonalizeDotplotRpc.d.ts +0 -30
- package/dist/DiagonalizeDotplotRpc.js +0 -156
- package/dist/DotplotDisplay/components/DotplotDisplay.d.ts +0 -6
- package/dist/DotplotDisplay/components/DotplotDisplay.js +0 -18
- package/dist/DotplotDisplay/index.d.ts +0 -5
- package/dist/DotplotDisplay/index.js +0 -36
- package/dist/DotplotDisplay/renderDotplotBlock.d.ts +0 -11
- package/dist/DotplotDisplay/renderDotplotBlock.js +0 -52
- package/dist/DotplotDisplay/stateModelFactory.d.ts +0 -108
- package/dist/DotplotDisplay/stateModelFactory.js +0 -134
- package/dist/DotplotReadVsRef/DotplotReadVsRef.d.ts +0 -3
- package/dist/DotplotReadVsRef/DotplotReadVsRef.js +0 -100
- package/dist/DotplotReadVsRef/index.d.ts +0 -2
- package/dist/DotplotReadVsRef/index.js +0 -41
- package/dist/DotplotRenderer/ComparativeRenderRpc.d.ts +0 -22
- package/dist/DotplotRenderer/ComparativeRenderRpc.js +0 -53
- package/dist/DotplotRenderer/DotplotRenderer.d.ts +0 -65
- package/dist/DotplotRenderer/DotplotRenderer.js +0 -102
- package/dist/DotplotRenderer/clamp.d.ts +0 -7
- package/dist/DotplotRenderer/clamp.js +0 -62
- package/dist/DotplotRenderer/components/DotplotRendering.d.ts +0 -3
- package/dist/DotplotRenderer/components/DotplotRendering.js +0 -9
- package/dist/DotplotRenderer/configSchema.d.ts +0 -40
- package/dist/DotplotRenderer/configSchema.js +0 -57
- package/dist/DotplotRenderer/drawDotplot.d.ts +0 -22
- package/dist/DotplotRenderer/drawDotplot.js +0 -209
- package/dist/DotplotRenderer/index.d.ts +0 -2
- package/dist/DotplotRenderer/index.js +0 -17
- package/dist/DotplotView/1dview.d.ts +0 -199
- package/dist/DotplotView/1dview.js +0 -65
- package/dist/DotplotView/components/Axes.d.ts +0 -13
- package/dist/DotplotView/components/Axes.js +0 -107
- package/dist/DotplotView/components/ColorBySelector.d.ts +0 -5
- package/dist/DotplotView/components/ColorBySelector.js +0 -79
- package/dist/DotplotView/components/CursorIcon.d.ts +0 -3
- package/dist/DotplotView/components/CursorIcon.js +0 -15
- package/dist/DotplotView/components/DiagonalizationProgressDialog.d.ts +0 -6
- package/dist/DotplotView/components/DiagonalizationProgressDialog.js +0 -125
- package/dist/DotplotView/components/DotplotControls.d.ts +0 -5
- package/dist/DotplotView/components/DotplotControls.js +0 -187
- package/dist/DotplotView/components/DotplotTooltipClick.d.ts +0 -10
- package/dist/DotplotView/components/DotplotTooltipClick.js +0 -17
- package/dist/DotplotView/components/DotplotTooltipMouseover.d.ts +0 -9
- package/dist/DotplotView/components/DotplotTooltipMouseover.js +0 -16
- package/dist/DotplotView/components/DotplotTooltips.d.ts +0 -15
- package/dist/DotplotView/components/DotplotTooltips.js +0 -43
- package/dist/DotplotView/components/DotplotView.d.ts +0 -5
- package/dist/DotplotView/components/DotplotView.js +0 -100
- package/dist/DotplotView/components/DotplotWarnings.d.ts +0 -5
- package/dist/DotplotView/components/DotplotWarnings.js +0 -53
- package/dist/DotplotView/components/ExportSvgDialog.d.ts +0 -7
- package/dist/DotplotView/components/ExportSvgDialog.js +0 -53
- package/dist/DotplotView/components/Grid.d.ts +0 -9
- package/dist/DotplotView/components/Grid.js +0 -47
- package/dist/DotplotView/components/Header.d.ts +0 -9
- package/dist/DotplotView/components/Header.js +0 -33
- package/dist/DotplotView/components/ImportForm/ImportSyntenyOpenCustomTrack.d.ts +0 -7
- package/dist/DotplotView/components/ImportForm/ImportSyntenyOpenCustomTrack.js +0 -78
- package/dist/DotplotView/components/ImportForm/ImportSyntenyTrackSelector.d.ts +0 -7
- package/dist/DotplotView/components/ImportForm/ImportSyntenyTrackSelector.js +0 -42
- package/dist/DotplotView/components/ImportForm/TrackSelector.d.ts +0 -7
- package/dist/DotplotView/components/ImportForm/TrackSelector.js +0 -23
- package/dist/DotplotView/components/ImportForm/getAdapter.d.ts +0 -117
- package/dist/DotplotView/components/ImportForm/getAdapter.js +0 -68
- package/dist/DotplotView/components/ImportForm/index.d.ts +0 -5
- package/dist/DotplotView/components/ImportForm/index.js +0 -75
- package/dist/DotplotView/components/ImportForm/selectors/AnchorsFileSelector.d.ts +0 -3
- package/dist/DotplotView/components/ImportForm/selectors/AnchorsFileSelector.js +0 -23
- package/dist/DotplotView/components/ImportForm/selectors/PifGzSelector.d.ts +0 -3
- package/dist/DotplotView/components/ImportForm/selectors/PifGzSelector.js +0 -13
- package/dist/DotplotView/components/ImportForm/selectors/SelectorTypes.d.ts +0 -23
- package/dist/DotplotView/components/ImportForm/selectors/SelectorTypes.js +0 -10
- package/dist/DotplotView/components/ImportForm/selectors/SwapAssemblies.d.ts +0 -13
- package/dist/DotplotView/components/ImportForm/selectors/SwapAssemblies.js +0 -32
- package/dist/DotplotView/components/ImportForm/selectors/SyntenyFileSelector.d.ts +0 -3
- package/dist/DotplotView/components/ImportForm/selectors/SyntenyFileSelector.js +0 -24
- package/dist/DotplotView/components/ImportForm/selectors/index.d.ts +0 -3
- package/dist/DotplotView/components/ImportForm/selectors/index.js +0 -12
- package/dist/DotplotView/components/ImportForm/util.d.ts +0 -10
- package/dist/DotplotView/components/ImportForm/util.js +0 -24
- package/dist/DotplotView/components/MinLengthSlider.d.ts +0 -5
- package/dist/DotplotView/components/MinLengthSlider.js +0 -44
- package/dist/DotplotView/components/MouseInteractionLayer.d.ts +0 -17
- package/dist/DotplotView/components/MouseInteractionLayer.js +0 -18
- package/dist/DotplotView/components/OpacitySlider.d.ts +0 -5
- package/dist/DotplotView/components/OpacitySlider.js +0 -43
- package/dist/DotplotView/components/PanButtons.d.ts +0 -5
- package/dist/DotplotView/components/PanButtons.js +0 -47
- package/dist/DotplotView/components/SelectionContextMenu.d.ts +0 -13
- package/dist/DotplotView/components/SelectionContextMenu.js +0 -42
- package/dist/DotplotView/components/SliderTooltip.d.ts +0 -2
- package/dist/DotplotView/components/SliderTooltip.js +0 -9
- package/dist/DotplotView/components/WarningDialog.d.ts +0 -16
- package/dist/DotplotView/components/WarningDialog.js +0 -39
- package/dist/DotplotView/components/hooks/useCtrlKeyTracking.d.ts +0 -1
- package/dist/DotplotView/components/hooks/useCtrlKeyTracking.js +0 -24
- package/dist/DotplotView/components/hooks/useCursorMode.d.ts +0 -7
- package/dist/DotplotView/components/hooks/useCursorMode.js +0 -19
- package/dist/DotplotView/components/hooks/useMouseCoordinates.d.ts +0 -29
- package/dist/DotplotView/components/hooks/useMouseCoordinates.js +0 -52
- package/dist/DotplotView/components/hooks/useMouseMoveHandler.d.ts +0 -6
- package/dist/DotplotView/components/hooks/useMouseMoveHandler.js +0 -27
- package/dist/DotplotView/components/hooks/useMouseUpHandler.d.ts +0 -3
- package/dist/DotplotView/components/hooks/useMouseUpHandler.js +0 -31
- package/dist/DotplotView/components/hooks/useWheelHandler.d.ts +0 -8
- package/dist/DotplotView/components/hooks/useWheelHandler.js +0 -47
- package/dist/DotplotView/components/util.d.ts +0 -14
- package/dist/DotplotView/components/util.js +0 -80
- package/dist/DotplotView/index.d.ts +0 -2
- package/dist/DotplotView/index.js +0 -52
- package/dist/DotplotView/model.d.ts +0 -440
- package/dist/DotplotView/model.js +0 -502
- package/dist/DotplotView/svgcomponents/SVGBackground.d.ts +0 -4
- package/dist/DotplotView/svgcomponents/SVGBackground.js +0 -10
- package/dist/DotplotView/svgcomponents/SVGDotplotView.d.ts +0 -2
- package/dist/DotplotView/svgcomponents/SVGDotplotView.js +0 -30
- package/dist/DotplotView/types.d.ts +0 -12
- package/dist/DotplotView/types.js +0 -2
- package/dist/LaunchDotplotView.d.ts +0 -2
- package/dist/LaunchDotplotView.js +0 -43
- package/dist/ServerSideRenderedBlockContent.d.ts +0 -12
- package/dist/ServerSideRenderedBlockContent.js +0 -48
- package/dist/ServerSideSyntenyRendering.d.ts +0 -13
- package/dist/ServerSideSyntenyRendering.js +0 -23
- package/dist/index.d.ts +0 -7
- package/dist/index.js +0 -42
- package/dist/util.d.ts +0 -9
- package/dist/util.js +0 -7
- package/esm/DotplotRenderer/ComparativeRenderRpc.d.ts +0 -22
- package/esm/DotplotRenderer/ComparativeRenderRpc.js +0 -47
- package/esm/DotplotView/components/Grid.d.ts +0 -9
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.onClick = onClick;
|
|
4
|
-
const configuration_1 = require("@jbrowse/core/configuration");
|
|
5
|
-
const util_1 = require("@jbrowse/core/util");
|
|
6
|
-
const plugin_alignments_1 = require("@jbrowse/plugin-alignments");
|
|
7
|
-
const { featurizeSA, getClip, getLength, getLengthSansClipping } = plugin_alignments_1.MismatchParser;
|
|
8
|
-
function onClick(feature, self) {
|
|
9
|
-
var _a;
|
|
10
|
-
const session = (0, util_1.getSession)(self);
|
|
11
|
-
try {
|
|
12
|
-
const cigar = feature.get('CIGAR');
|
|
13
|
-
const clipPos = getClip(cigar, 1);
|
|
14
|
-
const flags = feature.get('flags');
|
|
15
|
-
const strand = feature.get('strand');
|
|
16
|
-
const readName = feature.get('name');
|
|
17
|
-
const readAssembly = `${readName}_assembly_${Date.now()}`;
|
|
18
|
-
const { parentTrack } = self;
|
|
19
|
-
const [trackAssembly] = (0, configuration_1.getConf)(parentTrack, 'assemblyNames');
|
|
20
|
-
const assemblyNames = [trackAssembly, readAssembly];
|
|
21
|
-
const trackId = `track-${Date.now()}`;
|
|
22
|
-
const trackName = `${readName}_vs_${trackAssembly}`;
|
|
23
|
-
const SA = (_a = feature.get('tags')) === null || _a === void 0 ? void 0 : _a.SA;
|
|
24
|
-
const SA2 = featurizeSA(SA, feature.id(), strand, readName, true);
|
|
25
|
-
const totalLength = getLength(flags & 2048 ? SA2[0].CIGAR : cigar);
|
|
26
|
-
const features = [
|
|
27
|
-
{
|
|
28
|
-
...feature.toJSON(),
|
|
29
|
-
strand: 1,
|
|
30
|
-
mate: {
|
|
31
|
-
refName: readName,
|
|
32
|
-
start: clipPos,
|
|
33
|
-
end: clipPos + getLengthSansClipping(cigar),
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
...SA2,
|
|
37
|
-
].sort((a, b) => a.clipPos - b.clipPos);
|
|
38
|
-
session.addView('DotplotView', {
|
|
39
|
-
type: 'DotplotView',
|
|
40
|
-
hview: {
|
|
41
|
-
offsetPx: 0,
|
|
42
|
-
bpPerPx: (0, util_1.sum)(features.map(a => a.end - a.start)) / 800,
|
|
43
|
-
displayedRegions: (0, util_1.gatherOverlaps)(features.map((f, index) => {
|
|
44
|
-
const { start, end, refName } = f;
|
|
45
|
-
return {
|
|
46
|
-
start,
|
|
47
|
-
end,
|
|
48
|
-
refName,
|
|
49
|
-
index,
|
|
50
|
-
assemblyName: trackAssembly,
|
|
51
|
-
};
|
|
52
|
-
})),
|
|
53
|
-
},
|
|
54
|
-
vview: {
|
|
55
|
-
offsetPx: 0,
|
|
56
|
-
bpPerPx: totalLength / 400,
|
|
57
|
-
minimumBlockWidth: 0,
|
|
58
|
-
interRegionPaddingWidth: 0,
|
|
59
|
-
displayedRegions: [
|
|
60
|
-
{
|
|
61
|
-
assemblyName: readAssembly,
|
|
62
|
-
start: 0,
|
|
63
|
-
end: totalLength,
|
|
64
|
-
refName: readName,
|
|
65
|
-
},
|
|
66
|
-
],
|
|
67
|
-
},
|
|
68
|
-
viewTrackConfigs: [
|
|
69
|
-
{
|
|
70
|
-
type: 'SyntenyTrack',
|
|
71
|
-
assemblyNames,
|
|
72
|
-
adapter: {
|
|
73
|
-
type: 'FromConfigAdapter',
|
|
74
|
-
features,
|
|
75
|
-
},
|
|
76
|
-
trackId,
|
|
77
|
-
name: trackName,
|
|
78
|
-
},
|
|
79
|
-
],
|
|
80
|
-
assemblyNames,
|
|
81
|
-
tracks: [
|
|
82
|
-
{
|
|
83
|
-
configuration: trackId,
|
|
84
|
-
type: 'SyntenyTrack',
|
|
85
|
-
displays: [
|
|
86
|
-
{
|
|
87
|
-
type: 'DotplotDisplay',
|
|
88
|
-
configuration: `${trackId}-DotplotDisplay`,
|
|
89
|
-
},
|
|
90
|
-
],
|
|
91
|
-
},
|
|
92
|
-
],
|
|
93
|
-
displayName: `${readName} vs ${trackAssembly}`,
|
|
94
|
-
});
|
|
95
|
-
}
|
|
96
|
-
catch (e) {
|
|
97
|
-
console.error(e);
|
|
98
|
-
session.notifyError(`${e}`, e);
|
|
99
|
-
}
|
|
100
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.default = DotplotReadVsRefMenuItem;
|
|
7
|
-
const Add_1 = __importDefault(require("@mui/icons-material/Add"));
|
|
8
|
-
const DotplotReadVsRef_1 = require("./DotplotReadVsRef");
|
|
9
|
-
function DotplotReadVsRefMenuItem(pluginManager) {
|
|
10
|
-
pluginManager.addToExtensionPoint('Core-extendPluggableElement', (pluggableElement) => {
|
|
11
|
-
if (pluggableElement.name === 'LinearPileupDisplay') {
|
|
12
|
-
const { stateModel } = pluggableElement;
|
|
13
|
-
const newStateModel = stateModel.extend((self) => {
|
|
14
|
-
const superContextMenuItems = self.contextMenuItems;
|
|
15
|
-
return {
|
|
16
|
-
views: {
|
|
17
|
-
contextMenuItems() {
|
|
18
|
-
const feature = self.contextMenuFeature;
|
|
19
|
-
return [
|
|
20
|
-
...superContextMenuItems(),
|
|
21
|
-
...(feature
|
|
22
|
-
? [
|
|
23
|
-
{
|
|
24
|
-
label: 'Dotplot of read vs ref',
|
|
25
|
-
icon: Add_1.default,
|
|
26
|
-
onClick: () => {
|
|
27
|
-
(0, DotplotReadVsRef_1.onClick)(feature, self);
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
]
|
|
31
|
-
: []),
|
|
32
|
-
];
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
};
|
|
36
|
-
});
|
|
37
|
-
pluggableElement.stateModel = newStateModel;
|
|
38
|
-
}
|
|
39
|
-
return pluggableElement;
|
|
40
|
-
});
|
|
41
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import RpcMethodType from '@jbrowse/core/pluggableElementTypes/RpcMethodType';
|
|
2
|
-
import type { RenderArgs as ComparativeRenderArgs, RenderArgsSerialized as ComparativeRenderArgsSerialized, RenderResults, ResultsSerialized } from '@jbrowse/core/pluggableElementTypes/renderers/ComparativeServerSideRendererType';
|
|
3
|
-
import type ComparativeRenderer from '@jbrowse/core/pluggableElementTypes/renderers/ComparativeServerSideRendererType';
|
|
4
|
-
interface RenderArgs extends ComparativeRenderArgs {
|
|
5
|
-
adapterConfig: Record<string, unknown>;
|
|
6
|
-
rendererType: string;
|
|
7
|
-
}
|
|
8
|
-
interface RenderArgsSerialized extends ComparativeRenderArgsSerialized {
|
|
9
|
-
adapterConfig: Record<string, unknown>;
|
|
10
|
-
rendererType: string;
|
|
11
|
-
}
|
|
12
|
-
export default class ComparativeRender extends RpcMethodType {
|
|
13
|
-
name: string;
|
|
14
|
-
renameRegionsIfNeeded(args: RenderArgs, rend: ComparativeRenderer): Promise<ComparativeRenderArgs>;
|
|
15
|
-
getRenderer(rendererType: string): ComparativeRenderer;
|
|
16
|
-
serializeArguments(args: RenderArgs, rpcDriver: string): Promise<ComparativeRenderArgs | import("@jbrowse/core/pluggableElementTypes/renderers/ServerSideRendererType").RenderArgsSerialized>;
|
|
17
|
-
execute(args: RenderArgsSerialized & {
|
|
18
|
-
stopToken?: string;
|
|
19
|
-
}, rpcDriver: string): Promise<RenderResults | import("@jbrowse/core/pluggableElementTypes/renderers/ServerSideRendererType").ResultsSerialized>;
|
|
20
|
-
deserializeReturn(val: RenderResults | ResultsSerialized, args: RenderArgs, rpcDriver: string): Promise<unknown>;
|
|
21
|
-
}
|
|
22
|
-
export {};
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const RpcMethodType_1 = __importDefault(require("@jbrowse/core/pluggableElementTypes/RpcMethodType"));
|
|
7
|
-
const stopToken_1 = require("@jbrowse/core/util/stopToken");
|
|
8
|
-
class ComparativeRender extends RpcMethodType_1.default {
|
|
9
|
-
constructor() {
|
|
10
|
-
super(...arguments);
|
|
11
|
-
this.name = 'ComparativeRender';
|
|
12
|
-
}
|
|
13
|
-
async renameRegionsIfNeeded(args, rend) {
|
|
14
|
-
return rend.renameRegionsIfNeeded(args);
|
|
15
|
-
}
|
|
16
|
-
getRenderer(rendererType) {
|
|
17
|
-
const pm = this.pluginManager;
|
|
18
|
-
return pm.getRendererType(rendererType);
|
|
19
|
-
}
|
|
20
|
-
async serializeArguments(args, rpcDriver) {
|
|
21
|
-
const { rendererType } = args;
|
|
22
|
-
const renderer = this.getRenderer(rendererType);
|
|
23
|
-
const n = (await super.serializeArguments(args, rpcDriver));
|
|
24
|
-
const result = await this.renameRegionsIfNeeded(n, renderer);
|
|
25
|
-
return rpcDriver === 'MainThreadRpcDriver'
|
|
26
|
-
? result
|
|
27
|
-
: renderer.serializeArgsInClient(result);
|
|
28
|
-
}
|
|
29
|
-
async execute(args, rpcDriver) {
|
|
30
|
-
let deserializedArgs = args;
|
|
31
|
-
if (rpcDriver !== 'MainThreadRpcDriver') {
|
|
32
|
-
deserializedArgs = await this.deserializeArguments(args, rpcDriver);
|
|
33
|
-
}
|
|
34
|
-
const { sessionId, rendererType, stopToken } = deserializedArgs;
|
|
35
|
-
if (!sessionId) {
|
|
36
|
-
throw new Error('must pass a unique session id');
|
|
37
|
-
}
|
|
38
|
-
(0, stopToken_1.checkStopToken)(stopToken);
|
|
39
|
-
const renderer = this.getRenderer(rendererType);
|
|
40
|
-
return rpcDriver === 'MainThreadRpcDriver'
|
|
41
|
-
? renderer.render(deserializedArgs)
|
|
42
|
-
: renderer.renderInWorker(deserializedArgs);
|
|
43
|
-
}
|
|
44
|
-
async deserializeReturn(val, args, rpcDriver) {
|
|
45
|
-
const ret = (await super.deserializeReturn(val, args, rpcDriver));
|
|
46
|
-
if (rpcDriver === 'MainThreadRpcDriver') {
|
|
47
|
-
return ret;
|
|
48
|
-
}
|
|
49
|
-
const renderer = this.getRenderer(args.rendererType);
|
|
50
|
-
return renderer.deserializeResultsInClient(ret, args);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
exports.default = ComparativeRender;
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import ComparativeRenderer from '@jbrowse/core/pluggableElementTypes/renderers/ComparativeServerSideRendererType';
|
|
2
|
-
import type { Dotplot1DViewModel } from '../DotplotView/model';
|
|
3
|
-
import type { AnyConfigurationModel } from '@jbrowse/core/configuration';
|
|
4
|
-
import type { RenderArgs, RenderArgsDeserialized } from '@jbrowse/core/pluggableElementTypes/renderers/ComparativeServerSideRendererType';
|
|
5
|
-
import type { Region } from '@jbrowse/core/util';
|
|
6
|
-
export interface DotplotRenderArgsDeserialized extends RenderArgsDeserialized {
|
|
7
|
-
adapterConfig: AnyConfigurationModel;
|
|
8
|
-
height: number;
|
|
9
|
-
width: number;
|
|
10
|
-
highResolutionScaling: number;
|
|
11
|
-
view: {
|
|
12
|
-
hview: Dotplot1DViewModel;
|
|
13
|
-
vview: Dotplot1DViewModel;
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
interface DotplotRenderArgs extends RenderArgs {
|
|
17
|
-
adapterConfig: AnyConfigurationModel;
|
|
18
|
-
sessionId: string;
|
|
19
|
-
view: {
|
|
20
|
-
hview: {
|
|
21
|
-
displayedRegions: Region[];
|
|
22
|
-
};
|
|
23
|
-
vview: {
|
|
24
|
-
displayedRegions: Region[];
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
export default class DotplotRenderer extends ComparativeRenderer {
|
|
29
|
-
supportsSVG: boolean;
|
|
30
|
-
renameRegionsIfNeeded(args: DotplotRenderArgs): Promise<DotplotRenderArgs>;
|
|
31
|
-
render(renderProps: DotplotRenderArgsDeserialized): Promise<{
|
|
32
|
-
height: number;
|
|
33
|
-
width: number;
|
|
34
|
-
offsetX: number;
|
|
35
|
-
offsetY: number;
|
|
36
|
-
bpPerPxX: number;
|
|
37
|
-
bpPerPxY: number;
|
|
38
|
-
warnings: import("./clamp").Warning[];
|
|
39
|
-
canvasRecordedData: Record<string, unknown>;
|
|
40
|
-
reactElement?: React.ReactElement;
|
|
41
|
-
html?: string;
|
|
42
|
-
} | {
|
|
43
|
-
height: number;
|
|
44
|
-
width: number;
|
|
45
|
-
offsetX: number;
|
|
46
|
-
offsetY: number;
|
|
47
|
-
bpPerPxX: number;
|
|
48
|
-
bpPerPxY: number;
|
|
49
|
-
warnings: import("./clamp").Warning[];
|
|
50
|
-
imageData: any;
|
|
51
|
-
reactElement?: React.ReactElement;
|
|
52
|
-
html?: string;
|
|
53
|
-
} | {
|
|
54
|
-
height: number;
|
|
55
|
-
width: number;
|
|
56
|
-
offsetX: number;
|
|
57
|
-
offsetY: number;
|
|
58
|
-
bpPerPxX: number;
|
|
59
|
-
bpPerPxY: number;
|
|
60
|
-
warnings: import("./clamp").Warning[];
|
|
61
|
-
reactElement: React.ReactElement;
|
|
62
|
-
html?: string;
|
|
63
|
-
}>;
|
|
64
|
-
}
|
|
65
|
-
export {};
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
const ComparativeServerSideRendererType_1 = __importDefault(require("@jbrowse/core/pluggableElementTypes/renderers/ComparativeServerSideRendererType"));
|
|
40
|
-
const util_1 = require("@jbrowse/core/util");
|
|
41
|
-
const model_1 = require("../DotplotView/model");
|
|
42
|
-
class DotplotRenderer extends ComparativeServerSideRendererType_1.default {
|
|
43
|
-
constructor() {
|
|
44
|
-
super(...arguments);
|
|
45
|
-
this.supportsSVG = true;
|
|
46
|
-
}
|
|
47
|
-
async renameRegionsIfNeeded(args) {
|
|
48
|
-
var _a, _b;
|
|
49
|
-
const pm = this.pluginManager;
|
|
50
|
-
const assemblyManager = (_b = (_a = pm.rootModel) === null || _a === void 0 ? void 0 : _a.session) === null || _b === void 0 ? void 0 : _b.assemblyManager;
|
|
51
|
-
const { view, sessionId, adapterConfig } = args;
|
|
52
|
-
async function process(regions) {
|
|
53
|
-
if (!assemblyManager) {
|
|
54
|
-
throw new Error('No assembly manager provided');
|
|
55
|
-
}
|
|
56
|
-
const result = await (0, util_1.renameRegionsIfNeeded)(assemblyManager, {
|
|
57
|
-
sessionId,
|
|
58
|
-
adapterConfig,
|
|
59
|
-
regions,
|
|
60
|
-
});
|
|
61
|
-
return result.regions;
|
|
62
|
-
}
|
|
63
|
-
view.hview.displayedRegions = await process(view.hview.displayedRegions);
|
|
64
|
-
view.vview.displayedRegions = await process(view.vview.displayedRegions);
|
|
65
|
-
return args;
|
|
66
|
-
}
|
|
67
|
-
async render(renderProps) {
|
|
68
|
-
var _a, _b;
|
|
69
|
-
const { width, height, view: { hview, vview }, } = renderProps;
|
|
70
|
-
const dimensions = [width, height];
|
|
71
|
-
const views = [hview, vview].map((snap, idx) => {
|
|
72
|
-
const view = model_1.Dotplot1DView.create(snap);
|
|
73
|
-
view.setVolatileWidth(dimensions[idx]);
|
|
74
|
-
return view;
|
|
75
|
-
});
|
|
76
|
-
const target = views[0];
|
|
77
|
-
const feats = await this.getFeatures({
|
|
78
|
-
...renderProps,
|
|
79
|
-
regions: target.dynamicBlocks.contentBlocks,
|
|
80
|
-
});
|
|
81
|
-
target.setFeatures(feats);
|
|
82
|
-
const { drawDotplot } = await Promise.resolve().then(() => __importStar(require('./drawDotplot')));
|
|
83
|
-
const ret = await (0, util_1.renderToAbstractCanvas)(width, height, renderProps, ctx => drawDotplot(ctx, { ...renderProps, views }));
|
|
84
|
-
const results = await super.render({
|
|
85
|
-
...renderProps,
|
|
86
|
-
...ret,
|
|
87
|
-
height,
|
|
88
|
-
width,
|
|
89
|
-
});
|
|
90
|
-
return {
|
|
91
|
-
...results,
|
|
92
|
-
...ret,
|
|
93
|
-
height,
|
|
94
|
-
width,
|
|
95
|
-
offsetX: ((_a = views[0].dynamicBlocks.blocks[0]) === null || _a === void 0 ? void 0 : _a.offsetPx) || 0,
|
|
96
|
-
offsetY: ((_b = views[1].dynamicBlocks.blocks[0]) === null || _b === void 0 ? void 0 : _b.offsetPx) || 0,
|
|
97
|
-
bpPerPxX: views[0].bpPerPx,
|
|
98
|
-
bpPerPxY: views[1].bpPerPx,
|
|
99
|
-
};
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
exports.default = DotplotRenderer;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { Feature } from '@jbrowse/core/util';
|
|
2
|
-
export declare function clampWithWarnX(num: number, min: number, max: number, feature: Feature, warnings: Warning[]): number;
|
|
3
|
-
export declare function clampWithWarnY(num: number, min: number, max: number, feature: Feature, warnings: Warning[]): number;
|
|
4
|
-
export interface Warning {
|
|
5
|
-
message: string;
|
|
6
|
-
effect: string;
|
|
7
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.clampWithWarnX = clampWithWarnX;
|
|
4
|
-
exports.clampWithWarnY = clampWithWarnY;
|
|
5
|
-
const r = 'fell outside of range due to CIGAR string';
|
|
6
|
-
const lt = '(less than min coordinate of feature)';
|
|
7
|
-
const gt = '(greater than max coordinate of feature)';
|
|
8
|
-
const fudgeFactor = 1;
|
|
9
|
-
function clampWithWarnX(num, min, max, feature, warnings) {
|
|
10
|
-
const strand = feature.get('strand') || 1;
|
|
11
|
-
if (strand === -1) {
|
|
12
|
-
;
|
|
13
|
-
[max, min] = [min, max];
|
|
14
|
-
}
|
|
15
|
-
if (num < min - fudgeFactor) {
|
|
16
|
-
let start = feature.get('start');
|
|
17
|
-
let end = feature.get('end');
|
|
18
|
-
const refName = feature.get('refName');
|
|
19
|
-
if (strand === -1) {
|
|
20
|
-
;
|
|
21
|
-
[end, start] = [start, end];
|
|
22
|
-
}
|
|
23
|
-
warnings.push({
|
|
24
|
-
message: `feature at (X ${refName}:${start}-${end}) ${r} ${lt}`,
|
|
25
|
-
effect: 'clipped the feature',
|
|
26
|
-
});
|
|
27
|
-
return min;
|
|
28
|
-
}
|
|
29
|
-
if (num > max + fudgeFactor) {
|
|
30
|
-
const strand = feature.get('strand') || 1;
|
|
31
|
-
const start = strand === 1 ? feature.get('start') : feature.get('end');
|
|
32
|
-
const end = strand === 1 ? feature.get('end') : feature.get('start');
|
|
33
|
-
const refName = feature.get('refName');
|
|
34
|
-
warnings.push({
|
|
35
|
-
message: `feature at (X ${refName}:${start}-${end}) ${r} ${gt}`,
|
|
36
|
-
effect: 'clipped the feature',
|
|
37
|
-
});
|
|
38
|
-
return max;
|
|
39
|
-
}
|
|
40
|
-
return num;
|
|
41
|
-
}
|
|
42
|
-
function clampWithWarnY(num, min, max, feature, warnings) {
|
|
43
|
-
if (num < min - fudgeFactor) {
|
|
44
|
-
const mate = feature.get('mate');
|
|
45
|
-
const { refName, start, end } = mate;
|
|
46
|
-
warnings.push({
|
|
47
|
-
message: `feature at (Y ${refName}:${start}-${end}) ${r} ${lt}`,
|
|
48
|
-
effect: 'clipped the feature',
|
|
49
|
-
});
|
|
50
|
-
return min;
|
|
51
|
-
}
|
|
52
|
-
if (num > max + fudgeFactor) {
|
|
53
|
-
const mate = feature.get('mate');
|
|
54
|
-
const { refName, start, end } = mate;
|
|
55
|
-
warnings.push({
|
|
56
|
-
message: `feature at (Y ${refName}:${start}-${end}) ${r} ${gt}`,
|
|
57
|
-
effect: 'clipped the feature',
|
|
58
|
-
});
|
|
59
|
-
return max;
|
|
60
|
-
}
|
|
61
|
-
return num;
|
|
62
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
-
const ui_1 = require("@jbrowse/core/ui");
|
|
5
|
-
const mobx_react_1 = require("mobx-react");
|
|
6
|
-
const DotplotRendering = (0, mobx_react_1.observer)(function (props) {
|
|
7
|
-
return (0, jsx_runtime_1.jsx)(ui_1.PrerenderedCanvas, { ...props });
|
|
8
|
-
});
|
|
9
|
-
exports.default = DotplotRendering;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
declare const _default: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
2
|
-
color: {
|
|
3
|
-
type: string;
|
|
4
|
-
description: string;
|
|
5
|
-
defaultValue: string;
|
|
6
|
-
contextVariable: string[];
|
|
7
|
-
};
|
|
8
|
-
posColor: {
|
|
9
|
-
type: string;
|
|
10
|
-
description: string;
|
|
11
|
-
defaultValue: string;
|
|
12
|
-
};
|
|
13
|
-
negColor: {
|
|
14
|
-
type: string;
|
|
15
|
-
description: string;
|
|
16
|
-
defaultValue: string;
|
|
17
|
-
};
|
|
18
|
-
lineWidth: {
|
|
19
|
-
type: string;
|
|
20
|
-
description: string;
|
|
21
|
-
defaultValue: number;
|
|
22
|
-
};
|
|
23
|
-
colorBy: {
|
|
24
|
-
type: string;
|
|
25
|
-
model: import("mobx-state-tree").ISimpleType<string>;
|
|
26
|
-
description: string;
|
|
27
|
-
defaultValue: string;
|
|
28
|
-
};
|
|
29
|
-
thresholdsPalette: {
|
|
30
|
-
type: string;
|
|
31
|
-
defaultValue: string[];
|
|
32
|
-
description: string;
|
|
33
|
-
};
|
|
34
|
-
thresholds: {
|
|
35
|
-
type: string;
|
|
36
|
-
defaultValue: string[];
|
|
37
|
-
description: string;
|
|
38
|
-
};
|
|
39
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
40
|
-
export default _default;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const configuration_1 = require("@jbrowse/core/configuration");
|
|
4
|
-
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
5
|
-
function x() { }
|
|
6
|
-
exports.default = (0, configuration_1.ConfigurationSchema)('DotplotRenderer', {
|
|
7
|
-
color: {
|
|
8
|
-
type: 'color',
|
|
9
|
-
description: 'the color of each feature in a synteny, used with colorBy:default',
|
|
10
|
-
defaultValue: '#f0f',
|
|
11
|
-
contextVariable: ['feature'],
|
|
12
|
-
},
|
|
13
|
-
posColor: {
|
|
14
|
-
type: 'color',
|
|
15
|
-
description: 'the color for forward alignments, used with colorBy:strand',
|
|
16
|
-
defaultValue: 'blue',
|
|
17
|
-
},
|
|
18
|
-
negColor: {
|
|
19
|
-
type: 'color',
|
|
20
|
-
description: 'the color for reverse alignments, used with colorBy:strand',
|
|
21
|
-
defaultValue: 'red',
|
|
22
|
-
},
|
|
23
|
-
lineWidth: {
|
|
24
|
-
type: 'number',
|
|
25
|
-
description: 'width of the lines to be drawn',
|
|
26
|
-
defaultValue: 2.5,
|
|
27
|
-
},
|
|
28
|
-
colorBy: {
|
|
29
|
-
type: 'stringEnum',
|
|
30
|
-
model: mobx_state_tree_1.types.enumeration('colorBy', [
|
|
31
|
-
'identity',
|
|
32
|
-
'meanQueryIdentity',
|
|
33
|
-
'mappingQuality',
|
|
34
|
-
'strand',
|
|
35
|
-
'default',
|
|
36
|
-
]),
|
|
37
|
-
description: `Color by options:<br/>
|
|
38
|
-
<ul>
|
|
39
|
-
<li>"identity" - the identity of the particular hit, similar to D-GENIES, use the other config slots 'thresholds' and 'thresholdsPalette' to define colors for this setting</li>
|
|
40
|
-
<li>"meanQueryIdentity" - calculates the weighted mean identity (weighted by alignment length) of all the hits that the query maps to (e.g. if the query is split aligned to many target, uses their weighted mean. can help show patterns of more related and distant synteny after WGD)</li>
|
|
41
|
-
<li>"mappingQuality" - uses mapping quality from PAF, some adapters don't have this setting</li>
|
|
42
|
-
<li>"strand" - colors negative alignments with negColor and positive alignments with posColor</li>
|
|
43
|
-
<li>"default" - uses the 'color' config slot</li>
|
|
44
|
-
</ul>`,
|
|
45
|
-
defaultValue: 'default',
|
|
46
|
-
},
|
|
47
|
-
thresholdsPalette: {
|
|
48
|
-
type: 'stringArray',
|
|
49
|
-
defaultValue: ['#094b09', '#2ebd40', '#d5670b', '#ffd84b'],
|
|
50
|
-
description: 'threshold colors, used with colorBy:identity',
|
|
51
|
-
},
|
|
52
|
-
thresholds: {
|
|
53
|
-
type: 'stringArray',
|
|
54
|
-
defaultValue: ['0.75', '0.5', '0.25', '0'],
|
|
55
|
-
description: 'threshold breakpoints, used with colorBy:identity',
|
|
56
|
-
},
|
|
57
|
-
}, { explicitlyTyped: true });
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { type Warning } from './clamp';
|
|
2
|
-
import type { Dotplot1DViewModel } from '../DotplotView/model';
|
|
3
|
-
import type { AnyConfigurationModel } from '@jbrowse/core/configuration';
|
|
4
|
-
import type { RenderArgsDeserialized } from '@jbrowse/core/pluggableElementTypes/renderers/ComparativeServerSideRendererType';
|
|
5
|
-
export interface DotplotRenderArgsDeserialized extends RenderArgsDeserialized {
|
|
6
|
-
adapterConfig: AnyConfigurationModel;
|
|
7
|
-
height: number;
|
|
8
|
-
width: number;
|
|
9
|
-
highResolutionScaling: number;
|
|
10
|
-
alpha?: number;
|
|
11
|
-
minAlignmentLength?: number;
|
|
12
|
-
colorBy?: string;
|
|
13
|
-
view: {
|
|
14
|
-
hview: Dotplot1DViewModel;
|
|
15
|
-
vview: Dotplot1DViewModel;
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
export declare function drawDotplot(ctx: CanvasRenderingContext2D, props: DotplotRenderArgsDeserialized & {
|
|
19
|
-
views: Dotplot1DViewModel[];
|
|
20
|
-
}): Promise<{
|
|
21
|
-
warnings: Warning[];
|
|
22
|
-
}>;
|