@jbrowse/plugin-dotplot-view 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/ComparativeRenderer/index.d.ts +3 -8
- package/dist/ComparativeRenderer/index.js +3 -8
- package/dist/DotplotDisplay/components/DotplotDisplay.d.ts +2 -3
- package/dist/DotplotDisplay/components/DotplotDisplay.js +7 -12
- package/dist/DotplotDisplay/index.d.ts +1 -7
- package/dist/DotplotDisplay/index.js +2 -12
- package/dist/DotplotDisplay/renderDotplotBlock.d.ts +1 -1
- package/dist/DotplotDisplay/renderDotplotBlock.js +3 -9
- package/dist/DotplotDisplay/stateModelFactory.d.ts +8 -45
- package/dist/DotplotDisplay/stateModelFactory.js +57 -100
- package/dist/DotplotReadVsRef/DotplotReadVsRef.d.ts +2 -2
- package/dist/DotplotReadVsRef/DotplotReadVsRef.js +13 -14
- package/dist/DotplotReadVsRef/index.d.ts +1 -1
- package/dist/DotplotReadVsRef/index.js +0 -2
- package/dist/DotplotRenderer/ComparativeRenderRpc.d.ts +3 -8
- package/dist/DotplotRenderer/ComparativeRenderRpc.js +3 -8
- package/dist/DotplotRenderer/DotplotRenderer.d.ts +8 -7
- package/dist/DotplotRenderer/DotplotRenderer.js +18 -9
- package/dist/DotplotRenderer/components/DotplotRendering.d.ts +2 -3
- package/dist/DotplotRenderer/components/DotplotRendering.js +2 -5
- package/dist/DotplotRenderer/configSchema.d.ts +0 -21
- package/dist/DotplotRenderer/configSchema.js +2 -27
- package/dist/DotplotRenderer/drawDotplot.d.ts +3 -3
- package/dist/DotplotRenderer/drawDotplot.js +3 -6
- package/dist/DotplotRenderer/index.d.ts +1 -1
- package/dist/DotplotRenderer/index.js +1 -1
- package/dist/DotplotView/1dview.d.ts +2 -77
- package/dist/DotplotView/1dview.js +4 -33
- package/dist/DotplotView/components/Axes.d.ts +5 -6
- package/dist/DotplotView/components/Axes.js +26 -40
- package/dist/DotplotView/components/CursorIcon.d.ts +3 -4
- package/dist/DotplotView/components/CursorIcon.js +3 -5
- package/dist/DotplotView/components/DotplotControls.d.ts +2 -3
- package/dist/DotplotView/components/DotplotControls.js +94 -97
- package/dist/DotplotView/components/DotplotTooltipClick.d.ts +2 -3
- package/dist/DotplotView/components/DotplotTooltipClick.js +3 -7
- package/dist/DotplotView/components/DotplotTooltipMouseover.d.ts +2 -3
- package/dist/DotplotView/components/DotplotTooltipMouseover.js +4 -8
- package/dist/DotplotView/components/DotplotView.d.ts +2 -3
- package/dist/DotplotView/components/DotplotView.js +80 -92
- package/dist/DotplotView/components/DotplotWarnings.d.ts +2 -3
- package/dist/DotplotView/components/DotplotWarnings.js +26 -21
- package/dist/DotplotView/components/ExportSvgDialog.d.ts +2 -3
- package/dist/DotplotView/components/ExportSvgDialog.js +32 -67
- package/dist/DotplotView/components/Grid.d.ts +3 -4
- package/dist/DotplotView/components/Grid.js +19 -32
- package/dist/DotplotView/components/Header.d.ts +2 -3
- package/dist/DotplotView/components/Header.js +4 -23
- package/dist/DotplotView/components/ImportForm/ImportSyntenyOpenCustomTrack.d.ts +7 -0
- package/dist/DotplotView/components/ImportForm/ImportSyntenyOpenCustomTrack.js +129 -0
- package/dist/DotplotView/components/ImportForm/ImportSyntenyTrackSelector.d.ts +4 -6
- package/dist/DotplotView/components/ImportForm/ImportSyntenyTrackSelector.js +17 -48
- package/dist/DotplotView/components/ImportForm/TrackSelector.d.ts +7 -0
- package/dist/DotplotView/components/ImportForm/TrackSelector.js +23 -0
- package/dist/DotplotView/components/ImportForm/getAdapter.d.ts +117 -0
- package/dist/DotplotView/components/ImportForm/getAdapter.js +68 -0
- package/dist/DotplotView/components/ImportForm/index.d.ts +3 -4
- package/dist/DotplotView/components/ImportForm/index.js +47 -97
- package/dist/DotplotView/components/ImportForm/util.js +1 -3
- package/dist/DotplotView/components/PanButtons.d.ts +2 -3
- package/dist/DotplotView/components/PanButtons.js +17 -36
- package/dist/DotplotView/components/WarningDialog.d.ts +7 -7
- package/dist/DotplotView/components/WarningDialog.js +12 -15
- package/dist/DotplotView/components/util.d.ts +2 -7
- package/dist/DotplotView/components/util.js +0 -5
- package/dist/DotplotView/index.d.ts +1 -1
- package/dist/DotplotView/index.js +17 -8
- package/dist/DotplotView/model.d.ts +11 -133
- package/dist/DotplotView/model.js +46 -222
- package/dist/DotplotView/svgcomponents/SVGBackground.d.ts +1 -2
- package/dist/DotplotView/svgcomponents/SVGBackground.js +3 -6
- package/dist/DotplotView/svgcomponents/SVGDotplotView.d.ts +1 -1
- package/dist/DotplotView/svgcomponents/SVGDotplotView.js +6 -24
- package/dist/DotplotView/types.d.ts +12 -0
- package/dist/DotplotView/types.js +2 -0
- package/dist/LaunchDotplotView.d.ts +1 -1
- package/dist/LaunchDotplotView.js +1 -4
- package/dist/ServerSideRenderedBlockContent.d.ts +2 -2
- package/dist/ServerSideRenderedBlockContent.js +11 -37
- package/dist/ServerSideSyntenyRendering.d.ts +1 -6
- package/dist/ServerSideSyntenyRendering.js +4 -26
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -6
- package/dist/util.d.ts +1 -1
- package/esm/ComparativeRenderer/index.d.ts +3 -8
- package/esm/ComparativeRenderer/index.js +3 -8
- package/esm/DotplotDisplay/components/DotplotDisplay.d.ts +2 -3
- package/esm/DotplotDisplay/components/DotplotDisplay.js +7 -9
- package/esm/DotplotDisplay/index.d.ts +1 -7
- package/esm/DotplotDisplay/index.js +2 -12
- package/esm/DotplotDisplay/renderDotplotBlock.d.ts +1 -1
- package/esm/DotplotDisplay/renderDotplotBlock.js +3 -6
- package/esm/DotplotDisplay/stateModelFactory.d.ts +8 -45
- package/esm/DotplotDisplay/stateModelFactory.js +58 -101
- package/esm/DotplotReadVsRef/DotplotReadVsRef.d.ts +2 -2
- package/esm/DotplotReadVsRef/DotplotReadVsRef.js +15 -16
- package/esm/DotplotReadVsRef/index.d.ts +1 -1
- package/esm/DotplotReadVsRef/index.js +0 -2
- package/esm/DotplotRenderer/ComparativeRenderRpc.d.ts +3 -8
- package/esm/DotplotRenderer/ComparativeRenderRpc.js +3 -8
- package/esm/DotplotRenderer/DotplotRenderer.d.ts +8 -7
- package/esm/DotplotRenderer/DotplotRenderer.js +1 -2
- package/esm/DotplotRenderer/components/DotplotRendering.d.ts +2 -3
- package/esm/DotplotRenderer/components/DotplotRendering.js +2 -2
- package/esm/DotplotRenderer/configSchema.d.ts +0 -21
- package/esm/DotplotRenderer/configSchema.js +2 -27
- package/esm/DotplotRenderer/drawDotplot.d.ts +3 -3
- package/esm/DotplotRenderer/drawDotplot.js +4 -7
- package/esm/DotplotRenderer/index.d.ts +1 -1
- package/esm/DotplotRenderer/index.js +1 -1
- package/esm/DotplotView/1dview.d.ts +2 -77
- package/esm/DotplotView/1dview.js +4 -33
- package/esm/DotplotView/components/Axes.d.ts +5 -6
- package/esm/DotplotView/components/Axes.js +26 -37
- package/esm/DotplotView/components/CursorIcon.d.ts +3 -4
- package/esm/DotplotView/components/CursorIcon.js +3 -5
- package/esm/DotplotView/components/DotplotControls.d.ts +2 -3
- package/esm/DotplotView/components/DotplotControls.js +94 -97
- package/esm/DotplotView/components/DotplotTooltipClick.d.ts +2 -3
- package/esm/DotplotView/components/DotplotTooltipClick.js +3 -7
- package/esm/DotplotView/components/DotplotTooltipMouseover.d.ts +2 -3
- package/esm/DotplotView/components/DotplotTooltipMouseover.js +4 -8
- package/esm/DotplotView/components/DotplotView.d.ts +2 -3
- package/esm/DotplotView/components/DotplotView.js +63 -85
- package/esm/DotplotView/components/DotplotWarnings.d.ts +2 -3
- package/esm/DotplotView/components/DotplotWarnings.js +9 -14
- package/esm/DotplotView/components/ExportSvgDialog.d.ts +2 -3
- package/esm/DotplotView/components/ExportSvgDialog.js +32 -44
- package/esm/DotplotView/components/Grid.d.ts +3 -4
- package/esm/DotplotView/components/Grid.js +19 -29
- package/esm/DotplotView/components/Header.d.ts +2 -3
- package/esm/DotplotView/components/Header.js +4 -23
- package/esm/DotplotView/components/ImportForm/ImportSyntenyOpenCustomTrack.d.ts +7 -0
- package/esm/DotplotView/components/ImportForm/ImportSyntenyOpenCustomTrack.js +124 -0
- package/esm/DotplotView/components/ImportForm/ImportSyntenyTrackSelector.d.ts +4 -6
- package/esm/DotplotView/components/ImportForm/ImportSyntenyTrackSelector.js +17 -25
- package/esm/DotplotView/components/ImportForm/TrackSelector.d.ts +7 -0
- package/esm/DotplotView/components/ImportForm/TrackSelector.js +18 -0
- package/esm/DotplotView/components/ImportForm/getAdapter.d.ts +117 -0
- package/esm/DotplotView/components/ImportForm/getAdapter.js +65 -0
- package/esm/DotplotView/components/ImportForm/index.d.ts +3 -4
- package/esm/DotplotView/components/ImportForm/index.js +48 -75
- package/esm/DotplotView/components/ImportForm/util.js +1 -3
- package/esm/DotplotView/components/PanButtons.d.ts +2 -3
- package/esm/DotplotView/components/PanButtons.js +17 -36
- package/esm/DotplotView/components/WarningDialog.d.ts +7 -7
- package/esm/DotplotView/components/WarningDialog.js +12 -12
- package/esm/DotplotView/components/util.d.ts +2 -7
- package/esm/DotplotView/components/util.js +0 -5
- package/esm/DotplotView/index.d.ts +1 -1
- package/esm/DotplotView/index.js +0 -1
- package/esm/DotplotView/model.d.ts +11 -133
- package/esm/DotplotView/model.js +30 -216
- package/esm/DotplotView/svgcomponents/SVGBackground.d.ts +1 -2
- package/esm/DotplotView/svgcomponents/SVGBackground.js +3 -3
- package/esm/DotplotView/svgcomponents/SVGDotplotView.d.ts +1 -1
- package/esm/DotplotView/svgcomponents/SVGDotplotView.js +6 -24
- package/esm/DotplotView/types.d.ts +12 -0
- package/esm/DotplotView/types.js +1 -0
- package/esm/LaunchDotplotView.d.ts +1 -1
- package/esm/LaunchDotplotView.js +1 -4
- package/esm/ServerSideRenderedBlockContent.d.ts +2 -2
- package/esm/ServerSideRenderedBlockContent.js +11 -14
- package/esm/ServerSideSyntenyRendering.d.ts +1 -6
- package/esm/ServerSideSyntenyRendering.js +4 -3
- package/esm/index.d.ts +1 -1
- package/esm/index.js +3 -6
- package/esm/util.d.ts +1 -1
- package/package.json +2 -4
- package/dist/DotplotView/components/ImportForm/ImportCustomTrack.d.ts +0 -11
- package/dist/DotplotView/components/ImportForm/ImportCustomTrack.js +0 -194
- package/esm/DotplotView/components/ImportForm/ImportCustomTrack.d.ts +0 -11
- package/esm/DotplotView/components/ImportForm/ImportCustomTrack.js +0 -169
|
@@ -0,0 +1,23 @@
|
|
|
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 jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
+
const react_1 = require("react");
|
|
8
|
+
const material_1 = require("@mui/material");
|
|
9
|
+
const mobx_react_1 = require("mobx-react");
|
|
10
|
+
const ImportSyntenyOpenCustomTrack_1 = __importDefault(require("./ImportSyntenyOpenCustomTrack"));
|
|
11
|
+
const ImportSyntenyTrackSelector_1 = __importDefault(require("./ImportSyntenyTrackSelector"));
|
|
12
|
+
const TrackSelector = (0, mobx_react_1.observer)(function ({ assembly1, assembly2, model, }) {
|
|
13
|
+
const [choice, setChoice] = (0, react_1.useState)('tracklist');
|
|
14
|
+
(0, react_1.useEffect)(() => {
|
|
15
|
+
if (choice === 'none') {
|
|
16
|
+
model.setImportFormSyntenyTrack(0, { type: 'none' });
|
|
17
|
+
}
|
|
18
|
+
}, [model, choice]);
|
|
19
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(material_1.FormControl, { children: [(0, jsx_runtime_1.jsx)(material_1.FormLabel, { id: "group-label", children: "(Optional) Select or add a synteny track" }), (0, jsx_runtime_1.jsxs)(material_1.RadioGroup, { row: true, value: choice, onChange: event => {
|
|
20
|
+
setChoice(event.target.value);
|
|
21
|
+
}, "aria-labelledby": "group-label", children: [(0, jsx_runtime_1.jsx)(material_1.FormControlLabel, { value: "none", control: (0, jsx_runtime_1.jsx)(material_1.Radio, {}), label: "None" }), (0, jsx_runtime_1.jsx)(material_1.FormControlLabel, { value: "tracklist", control: (0, jsx_runtime_1.jsx)(material_1.Radio, {}), label: "Existing track" }), (0, jsx_runtime_1.jsx)(material_1.FormControlLabel, { value: "custom", control: (0, jsx_runtime_1.jsx)(material_1.Radio, {}), label: "New track" })] })] }), choice === 'custom' ? ((0, jsx_runtime_1.jsx)(ImportSyntenyOpenCustomTrack_1.default, { model: model, assembly2: assembly2, assembly1: assembly1 })) : null, choice === 'tracklist' ? ((0, jsx_runtime_1.jsx)(ImportSyntenyTrackSelector_1.default, { model: model, assembly1: assembly1, assembly2: assembly2 })) : null] }));
|
|
22
|
+
});
|
|
23
|
+
exports.default = TrackSelector;
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import type { FileLocation } from '@jbrowse/core/util';
|
|
2
|
+
export declare function getAdapter({ radioOption, assembly1, assembly2, fileLocation, indexFileLocation, bed1Location, bed2Location, }: {
|
|
3
|
+
radioOption: string;
|
|
4
|
+
assembly1: string;
|
|
5
|
+
assembly2: string;
|
|
6
|
+
fileLocation?: FileLocation;
|
|
7
|
+
indexFileLocation?: FileLocation;
|
|
8
|
+
bed1Location?: FileLocation;
|
|
9
|
+
bed2Location?: FileLocation;
|
|
10
|
+
}): {
|
|
11
|
+
type: string;
|
|
12
|
+
pafLocation: FileLocation | undefined;
|
|
13
|
+
queryAssembly: string;
|
|
14
|
+
targetAssembly: string;
|
|
15
|
+
outLocation?: undefined;
|
|
16
|
+
deltaLocation?: undefined;
|
|
17
|
+
chainLocation?: undefined;
|
|
18
|
+
mcscanAnchorsLocation?: undefined;
|
|
19
|
+
bed1Location?: undefined;
|
|
20
|
+
bed2Location?: undefined;
|
|
21
|
+
assemblyNames?: undefined;
|
|
22
|
+
mcscanSimpleAnchorsLocation?: undefined;
|
|
23
|
+
pifGzLocation?: undefined;
|
|
24
|
+
index?: undefined;
|
|
25
|
+
} | {
|
|
26
|
+
type: string;
|
|
27
|
+
outLocation: FileLocation | undefined;
|
|
28
|
+
queryAssembly: string;
|
|
29
|
+
targetAssembly: string;
|
|
30
|
+
pafLocation?: undefined;
|
|
31
|
+
deltaLocation?: undefined;
|
|
32
|
+
chainLocation?: undefined;
|
|
33
|
+
mcscanAnchorsLocation?: undefined;
|
|
34
|
+
bed1Location?: undefined;
|
|
35
|
+
bed2Location?: undefined;
|
|
36
|
+
assemblyNames?: undefined;
|
|
37
|
+
mcscanSimpleAnchorsLocation?: undefined;
|
|
38
|
+
pifGzLocation?: undefined;
|
|
39
|
+
index?: undefined;
|
|
40
|
+
} | {
|
|
41
|
+
type: string;
|
|
42
|
+
deltaLocation: FileLocation | undefined;
|
|
43
|
+
queryAssembly: string;
|
|
44
|
+
targetAssembly: string;
|
|
45
|
+
pafLocation?: undefined;
|
|
46
|
+
outLocation?: undefined;
|
|
47
|
+
chainLocation?: undefined;
|
|
48
|
+
mcscanAnchorsLocation?: undefined;
|
|
49
|
+
bed1Location?: undefined;
|
|
50
|
+
bed2Location?: undefined;
|
|
51
|
+
assemblyNames?: undefined;
|
|
52
|
+
mcscanSimpleAnchorsLocation?: undefined;
|
|
53
|
+
pifGzLocation?: undefined;
|
|
54
|
+
index?: undefined;
|
|
55
|
+
} | {
|
|
56
|
+
type: string;
|
|
57
|
+
chainLocation: FileLocation | undefined;
|
|
58
|
+
queryAssembly: string;
|
|
59
|
+
targetAssembly: string;
|
|
60
|
+
pafLocation?: undefined;
|
|
61
|
+
outLocation?: undefined;
|
|
62
|
+
deltaLocation?: undefined;
|
|
63
|
+
mcscanAnchorsLocation?: undefined;
|
|
64
|
+
bed1Location?: undefined;
|
|
65
|
+
bed2Location?: undefined;
|
|
66
|
+
assemblyNames?: undefined;
|
|
67
|
+
mcscanSimpleAnchorsLocation?: undefined;
|
|
68
|
+
pifGzLocation?: undefined;
|
|
69
|
+
index?: undefined;
|
|
70
|
+
} | {
|
|
71
|
+
type: string;
|
|
72
|
+
mcscanAnchorsLocation: FileLocation | undefined;
|
|
73
|
+
bed1Location: FileLocation | undefined;
|
|
74
|
+
bed2Location: FileLocation | undefined;
|
|
75
|
+
assemblyNames: string[];
|
|
76
|
+
pafLocation?: undefined;
|
|
77
|
+
queryAssembly?: undefined;
|
|
78
|
+
targetAssembly?: undefined;
|
|
79
|
+
outLocation?: undefined;
|
|
80
|
+
deltaLocation?: undefined;
|
|
81
|
+
chainLocation?: undefined;
|
|
82
|
+
mcscanSimpleAnchorsLocation?: undefined;
|
|
83
|
+
pifGzLocation?: undefined;
|
|
84
|
+
index?: undefined;
|
|
85
|
+
} | {
|
|
86
|
+
type: string;
|
|
87
|
+
mcscanSimpleAnchorsLocation: FileLocation | undefined;
|
|
88
|
+
bed1Location: FileLocation | undefined;
|
|
89
|
+
bed2Location: FileLocation | undefined;
|
|
90
|
+
assemblyNames: string[];
|
|
91
|
+
pafLocation?: undefined;
|
|
92
|
+
queryAssembly?: undefined;
|
|
93
|
+
targetAssembly?: undefined;
|
|
94
|
+
outLocation?: undefined;
|
|
95
|
+
deltaLocation?: undefined;
|
|
96
|
+
chainLocation?: undefined;
|
|
97
|
+
mcscanAnchorsLocation?: undefined;
|
|
98
|
+
pifGzLocation?: undefined;
|
|
99
|
+
index?: undefined;
|
|
100
|
+
} | {
|
|
101
|
+
type: string;
|
|
102
|
+
pifGzLocation: FileLocation | undefined;
|
|
103
|
+
index: {
|
|
104
|
+
location: FileLocation | undefined;
|
|
105
|
+
};
|
|
106
|
+
assemblyNames: string[];
|
|
107
|
+
pafLocation?: undefined;
|
|
108
|
+
queryAssembly?: undefined;
|
|
109
|
+
targetAssembly?: undefined;
|
|
110
|
+
outLocation?: undefined;
|
|
111
|
+
deltaLocation?: undefined;
|
|
112
|
+
chainLocation?: undefined;
|
|
113
|
+
mcscanAnchorsLocation?: undefined;
|
|
114
|
+
bed1Location?: undefined;
|
|
115
|
+
bed2Location?: undefined;
|
|
116
|
+
mcscanSimpleAnchorsLocation?: undefined;
|
|
117
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getAdapter = getAdapter;
|
|
4
|
+
function getAdapter({ radioOption, assembly1, assembly2, fileLocation, indexFileLocation, bed1Location, bed2Location, }) {
|
|
5
|
+
if (radioOption === '.paf') {
|
|
6
|
+
return {
|
|
7
|
+
type: 'PAFAdapter',
|
|
8
|
+
pafLocation: fileLocation,
|
|
9
|
+
queryAssembly: assembly1,
|
|
10
|
+
targetAssembly: assembly2,
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
else if (radioOption === '.out') {
|
|
14
|
+
return {
|
|
15
|
+
type: 'MashMapAdapter',
|
|
16
|
+
outLocation: fileLocation,
|
|
17
|
+
queryAssembly: assembly1,
|
|
18
|
+
targetAssembly: assembly2,
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
else if (radioOption === '.delta') {
|
|
22
|
+
return {
|
|
23
|
+
type: 'DeltaAdapter',
|
|
24
|
+
deltaLocation: fileLocation,
|
|
25
|
+
queryAssembly: assembly1,
|
|
26
|
+
targetAssembly: assembly2,
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
else if (radioOption === '.chain') {
|
|
30
|
+
return {
|
|
31
|
+
type: 'ChainAdapter',
|
|
32
|
+
chainLocation: fileLocation,
|
|
33
|
+
queryAssembly: assembly1,
|
|
34
|
+
targetAssembly: assembly2,
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
else if (radioOption === '.anchors') {
|
|
38
|
+
return {
|
|
39
|
+
type: 'MCScanAnchorsAdapter',
|
|
40
|
+
mcscanAnchorsLocation: fileLocation,
|
|
41
|
+
bed1Location,
|
|
42
|
+
bed2Location,
|
|
43
|
+
assemblyNames: [assembly1, assembly2],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
else if (radioOption === '.anchors.simple') {
|
|
47
|
+
return {
|
|
48
|
+
type: 'MCScanSimpleAnchorsAdapter',
|
|
49
|
+
mcscanSimpleAnchorsLocation: fileLocation,
|
|
50
|
+
bed1Location,
|
|
51
|
+
bed2Location,
|
|
52
|
+
assemblyNames: [assembly1, assembly2],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
else if (radioOption === '.pif.gz') {
|
|
56
|
+
return {
|
|
57
|
+
type: 'PairwiseIndexedPAFAdapter',
|
|
58
|
+
pifGzLocation: fileLocation,
|
|
59
|
+
index: {
|
|
60
|
+
location: indexFileLocation,
|
|
61
|
+
},
|
|
62
|
+
assemblyNames: [assembly1, assembly2],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
throw new Error(`Unknown to detect type ${radioOption} from filename (select radio button to clarify)`);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
declare const DotplotImportForm: ({ model }: {
|
|
1
|
+
import type { DotplotViewModel } from '../../model';
|
|
2
|
+
declare const DotplotImportForm: ({ model, }: {
|
|
4
3
|
model: DotplotViewModel;
|
|
5
|
-
}) =>
|
|
4
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
6
5
|
export default DotplotImportForm;
|
|
@@ -1,40 +1,17 @@
|
|
|
1
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 (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
4
|
};
|
|
28
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
const
|
|
6
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
+
const react_1 = require("react");
|
|
8
|
+
const ui_1 = require("@jbrowse/core/ui");
|
|
9
|
+
const util_1 = require("@jbrowse/core/util");
|
|
30
10
|
const material_1 = require("@mui/material");
|
|
31
|
-
const mui_1 = require("tss-react/mui");
|
|
32
|
-
const mobx_react_1 = require("mobx-react");
|
|
33
11
|
const mobx_1 = require("mobx");
|
|
34
|
-
const
|
|
35
|
-
const
|
|
36
|
-
const
|
|
37
|
-
const ImportSyntenyTrackSelector_1 = __importDefault(require("./ImportSyntenyTrackSelector"));
|
|
12
|
+
const mobx_react_1 = require("mobx-react");
|
|
13
|
+
const mui_1 = require("tss-react/mui");
|
|
14
|
+
const TrackSelector_1 = __importDefault(require("./TrackSelector"));
|
|
38
15
|
const useStyles = (0, mui_1.makeStyles)()(theme => ({
|
|
39
16
|
importFormContainer: {
|
|
40
17
|
padding: theme.spacing(4),
|
|
@@ -45,82 +22,55 @@ const useStyles = (0, mui_1.makeStyles)()(theme => ({
|
|
|
45
22
|
margin: '0 auto',
|
|
46
23
|
},
|
|
47
24
|
}));
|
|
48
|
-
function
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
25
|
+
function doSubmit({ model, assembly1, assembly2, }) {
|
|
26
|
+
const session = (0, util_1.getSession)(model);
|
|
27
|
+
const { importFormSyntenyTrackSelections } = model;
|
|
28
|
+
model.setError(undefined);
|
|
29
|
+
(0, mobx_1.transaction)(() => {
|
|
30
|
+
if ((0, util_1.isSessionWithAddTracks)(session)) {
|
|
31
|
+
(0, mobx_1.toJS)(importFormSyntenyTrackSelections).map((f, idx) => {
|
|
32
|
+
var _a;
|
|
33
|
+
if (f.type === 'userOpened') {
|
|
34
|
+
session.addTrackConf(f.value);
|
|
35
|
+
model.toggleTrack((_a = f.value) === null || _a === void 0 ? void 0 : _a.trackId);
|
|
36
|
+
}
|
|
37
|
+
else if (f.type === 'preConfigured') {
|
|
38
|
+
model.showTrack(f.value, idx);
|
|
39
|
+
}
|
|
40
|
+
});
|
|
54
41
|
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
react_1.default.createElement(material_1.FormLabel, { id: "group-label" }, "(Optional) Select or add a synteny track"),
|
|
59
|
-
react_1.default.createElement(material_1.RadioGroup, { row: true, value: choice, onChange: event => {
|
|
60
|
-
setChoice(event.target.value);
|
|
61
|
-
}, "aria-labelledby": "group-label" },
|
|
62
|
-
react_1.default.createElement(material_1.FormControlLabel, { value: "none", control: react_1.default.createElement(material_1.Radio, null), label: "None" }),
|
|
63
|
-
react_1.default.createElement(material_1.FormControlLabel, { value: "tracklist", control: react_1.default.createElement(material_1.Radio, null), label: "Existing track" }),
|
|
64
|
-
react_1.default.createElement(material_1.FormControlLabel, { value: "custom", control: react_1.default.createElement(material_1.Radio, null), label: "New track" }))),
|
|
65
|
-
choice === 'custom' ? (react_1.default.createElement(ImportCustomTrack_1.default, { setSessionTrackData: setSessionTrackData, sessionTrackData: sessionTrackData, assembly2: assembly2, assembly1: assembly1 })) : null,
|
|
66
|
-
choice === 'tracklist' ? (react_1.default.createElement(ImportSyntenyTrackSelector_1.default, { model: model, assembly1: assembly1, assembly2: assembly2, setShowTrackId: setShowTrackId })) : null));
|
|
42
|
+
model.showAllRegions();
|
|
43
|
+
model.setAssemblyNames(assembly2, assembly1);
|
|
44
|
+
});
|
|
67
45
|
}
|
|
68
|
-
const DotplotImportForm = (0, mobx_react_1.observer)(({ model })
|
|
46
|
+
const DotplotImportForm = (0, mobx_react_1.observer)(function ({ model, }) {
|
|
69
47
|
const { classes } = useStyles();
|
|
70
48
|
const session = (0, util_1.getSession)(model);
|
|
71
49
|
const { assemblyNames } = session;
|
|
72
50
|
const [assembly2, setAssembly2] = (0, react_1.useState)(assemblyNames[0] || '');
|
|
73
51
|
const [assembly1, setAssembly1] = (0, react_1.useState)(assemblyNames[0] || '');
|
|
74
52
|
const [error, setError] = (0, react_1.useState)();
|
|
75
|
-
const [sessionTrackData, setSessionTrackData] = (0, react_1.useState)();
|
|
76
|
-
const [showTrackId, setShowTrackId] = (0, react_1.useState)();
|
|
77
|
-
function onOpenClick() {
|
|
78
|
-
try {
|
|
79
|
-
if (!(0, util_1.isSessionWithAddTracks)(session)) {
|
|
80
|
-
return;
|
|
81
|
-
}
|
|
82
|
-
setError(undefined);
|
|
83
|
-
model.setError(undefined);
|
|
84
|
-
(0, mobx_1.transaction)(() => {
|
|
85
|
-
if (sessionTrackData) {
|
|
86
|
-
session.addTrackConf(sessionTrackData);
|
|
87
|
-
model.toggleTrack(sessionTrackData.trackId);
|
|
88
|
-
}
|
|
89
|
-
else if (showTrackId) {
|
|
90
|
-
model.showTrack(showTrackId);
|
|
91
|
-
}
|
|
92
|
-
model.setViews([
|
|
93
|
-
{ bpPerPx: 0.1, offsetPx: 0 },
|
|
94
|
-
{ bpPerPx: 0.1, offsetPx: 0 },
|
|
95
|
-
]);
|
|
96
|
-
model.setAssemblyNames(assembly2, assembly1);
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
catch (e) {
|
|
100
|
-
console.error(e);
|
|
101
|
-
setError(e);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
// this is a combination of any displayed error message we have
|
|
105
53
|
const displayError = error || model.error;
|
|
106
|
-
return (
|
|
107
|
-
displayError ? react_1.default.createElement(ui_1.ErrorMessage, { error: displayError }) : null,
|
|
108
|
-
react_1.default.createElement(material_1.Grid, { container: true, spacing: 1, justifyContent: "center", alignItems: "center", className: classes.assemblySelector },
|
|
109
|
-
react_1.default.createElement(material_1.Grid, { item: true },
|
|
110
|
-
react_1.default.createElement(material_1.Paper, { style: { padding: 12 } },
|
|
111
|
-
react_1.default.createElement(material_1.Typography, { style: { textAlign: 'center' } }, "Select assemblies for dotplot view"),
|
|
112
|
-
react_1.default.createElement(material_1.Grid, { container: true, spacing: 1, justifyContent: "center", alignItems: "center" },
|
|
113
|
-
react_1.default.createElement(material_1.Grid, { item: true },
|
|
114
|
-
react_1.default.createElement(ui_1.AssemblySelector, { selected: assembly1, onChange: val => {
|
|
115
|
-
setAssembly1(val);
|
|
116
|
-
}, session: session })),
|
|
117
|
-
react_1.default.createElement(material_1.Grid, { item: true },
|
|
118
|
-
react_1.default.createElement(ui_1.AssemblySelector, { selected: assembly2, onChange: val => {
|
|
54
|
+
return ((0, jsx_runtime_1.jsxs)(material_1.Container, { className: classes.importFormContainer, children: [displayError ? (0, jsx_runtime_1.jsx)(ui_1.ErrorMessage, { error: displayError }) : null, (0, jsx_runtime_1.jsxs)(material_1.Paper, { style: { padding: 12 }, children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { style: { textAlign: 'center' }, children: "Select assemblies for dotplot view" }), (0, jsx_runtime_1.jsxs)(material_1.Grid2, { container: true, spacing: 1, justifyContent: "center", alignItems: "center", children: [(0, jsx_runtime_1.jsx)(ui_1.AssemblySelector, { helperText: "x-axis assembly", selected: assembly2, session: session, onChange: val => {
|
|
119
55
|
setAssembly2(val);
|
|
120
|
-
}, session: session
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
56
|
+
} }), (0, jsx_runtime_1.jsx)(ui_1.AssemblySelector, { helperText: "y-axis assembly", selected: assembly1, session: session, onChange: val => {
|
|
57
|
+
setAssembly1(val);
|
|
58
|
+
} }), (0, jsx_runtime_1.jsx)(material_1.FormControl, { children: (0, jsx_runtime_1.jsx)(material_1.Button, { onClick: () => {
|
|
59
|
+
;
|
|
60
|
+
(async () => {
|
|
61
|
+
try {
|
|
62
|
+
setError(undefined);
|
|
63
|
+
doSubmit({
|
|
64
|
+
assembly1,
|
|
65
|
+
assembly2,
|
|
66
|
+
model,
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
catch (e) {
|
|
70
|
+
console.error(e);
|
|
71
|
+
setError(e);
|
|
72
|
+
}
|
|
73
|
+
})();
|
|
74
|
+
}, variant: "contained", color: "primary", children: "Launch" }) })] }), (0, jsx_runtime_1.jsx)(TrackSelector_1.default, { assembly2: assembly2, assembly1: assembly1, model: model })] })] }));
|
|
125
75
|
});
|
|
126
76
|
exports.default = DotplotImportForm;
|
|
@@ -6,11 +6,9 @@ exports.basename = basename;
|
|
|
6
6
|
exports.extName = extName;
|
|
7
7
|
function getName(sessionTrackData) {
|
|
8
8
|
return sessionTrackData
|
|
9
|
-
?
|
|
9
|
+
?
|
|
10
10
|
sessionTrackData.uri ||
|
|
11
|
-
// @ts-expect-error
|
|
12
11
|
sessionTrackData.localPath ||
|
|
13
|
-
// @ts-expect-error
|
|
14
12
|
sessionTrackData.name
|
|
15
13
|
: undefined;
|
|
16
14
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { DotplotViewModel } from '../model';
|
|
1
|
+
import type { DotplotViewModel } from '../model';
|
|
3
2
|
declare const PanButtons: ({ model, }: {
|
|
4
3
|
model: DotplotViewModel;
|
|
5
|
-
}) =>
|
|
4
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
6
5
|
export default PanButtons;
|
|
@@ -3,17 +3,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const
|
|
7
|
-
const material_1 = require("@mui/material");
|
|
8
|
-
const mui_1 = require("tss-react/mui");
|
|
9
|
-
const mobx_react_1 = require("mobx-react");
|
|
10
|
-
// icons
|
|
6
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
11
7
|
const ArrowDropDown_1 = __importDefault(require("@mui/icons-material/ArrowDropDown"));
|
|
12
8
|
const ArrowDropUp_1 = __importDefault(require("@mui/icons-material/ArrowDropUp"));
|
|
13
9
|
const ArrowLeft_1 = __importDefault(require("@mui/icons-material/ArrowLeft"));
|
|
14
10
|
const ArrowRight_1 = __importDefault(require("@mui/icons-material/ArrowRight"));
|
|
15
11
|
const ZoomIn_1 = __importDefault(require("@mui/icons-material/ZoomIn"));
|
|
16
12
|
const ZoomOut_1 = __importDefault(require("@mui/icons-material/ZoomOut"));
|
|
13
|
+
const material_1 = require("@mui/material");
|
|
14
|
+
const mobx_react_1 = require("mobx-react");
|
|
15
|
+
const mui_1 = require("tss-react/mui");
|
|
17
16
|
const useStyles = (0, mui_1.makeStyles)()({
|
|
18
17
|
dpad: {
|
|
19
18
|
display: 'grid',
|
|
@@ -31,36 +30,18 @@ const useStyles = (0, mui_1.makeStyles)()({
|
|
|
31
30
|
});
|
|
32
31
|
const PanButtons = (0, mobx_react_1.observer)(function PanButtons({ model, }) {
|
|
33
32
|
const { classes } = useStyles();
|
|
34
|
-
return (
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
model.hview.scroll(100);
|
|
48
|
-
} },
|
|
49
|
-
react_1.default.createElement(ArrowRight_1.default, null)),
|
|
50
|
-
react_1.default.createElement("div", null),
|
|
51
|
-
react_1.default.createElement(material_1.IconButton, { className: classes.icon, onClick: () => {
|
|
52
|
-
model.vview.scroll(-100);
|
|
53
|
-
} },
|
|
54
|
-
react_1.default.createElement(ArrowDropDown_1.default, null)),
|
|
55
|
-
react_1.default.createElement("div", null),
|
|
56
|
-
react_1.default.createElement(material_1.IconButton, { className: classes.icon, onClick: () => {
|
|
57
|
-
model.zoomIn();
|
|
58
|
-
} },
|
|
59
|
-
react_1.default.createElement(ZoomIn_1.default, null)),
|
|
60
|
-
react_1.default.createElement("div", null),
|
|
61
|
-
react_1.default.createElement(material_1.IconButton, { className: classes.icon, onClick: () => {
|
|
62
|
-
model.zoomOut();
|
|
63
|
-
} },
|
|
64
|
-
react_1.default.createElement(ZoomOut_1.default, null))));
|
|
33
|
+
return ((0, jsx_runtime_1.jsxs)(material_1.Paper, { className: classes.dpad, elevation: 6, children: [(0, jsx_runtime_1.jsx)("div", {}), (0, jsx_runtime_1.jsx)(material_1.IconButton, { className: classes.icon, onClick: () => {
|
|
34
|
+
model.vview.scroll(100);
|
|
35
|
+
}, children: (0, jsx_runtime_1.jsx)(ArrowDropUp_1.default, {}) }), (0, jsx_runtime_1.jsx)("div", {}), (0, jsx_runtime_1.jsx)(material_1.IconButton, { className: classes.icon, onClick: () => {
|
|
36
|
+
model.hview.scroll(-100);
|
|
37
|
+
}, children: (0, jsx_runtime_1.jsx)(ArrowLeft_1.default, {}) }), (0, jsx_runtime_1.jsx)("div", {}), (0, jsx_runtime_1.jsx)(material_1.IconButton, { className: classes.icon, onClick: () => {
|
|
38
|
+
model.hview.scroll(100);
|
|
39
|
+
}, children: (0, jsx_runtime_1.jsx)(ArrowRight_1.default, {}) }), (0, jsx_runtime_1.jsx)("div", {}), (0, jsx_runtime_1.jsx)(material_1.IconButton, { className: classes.icon, onClick: () => {
|
|
40
|
+
model.vview.scroll(-100);
|
|
41
|
+
}, children: (0, jsx_runtime_1.jsx)(ArrowDropDown_1.default, {}) }), (0, jsx_runtime_1.jsx)("div", {}), (0, jsx_runtime_1.jsx)(material_1.IconButton, { className: classes.icon, onClick: () => {
|
|
42
|
+
model.zoomIn();
|
|
43
|
+
}, children: (0, jsx_runtime_1.jsx)(ZoomIn_1.default, {}) }), (0, jsx_runtime_1.jsx)("div", {}), (0, jsx_runtime_1.jsx)(material_1.IconButton, { className: classes.icon, onClick: () => {
|
|
44
|
+
model.zoomOut();
|
|
45
|
+
}, children: (0, jsx_runtime_1.jsx)(ZoomOut_1.default, {}) })] }));
|
|
65
46
|
});
|
|
66
47
|
exports.default = PanButtons;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import type { AnyConfigurationModel } from '@jbrowse/core/configuration';
|
|
2
|
+
interface Warning {
|
|
3
|
+
message: string;
|
|
4
|
+
effect: string;
|
|
5
|
+
}
|
|
3
6
|
interface TrackWarning {
|
|
4
7
|
configuration: AnyConfigurationModel;
|
|
5
8
|
displays: {
|
|
6
|
-
warnings:
|
|
7
|
-
message: string;
|
|
8
|
-
effect: string;
|
|
9
|
-
}[];
|
|
9
|
+
warnings: Warning[];
|
|
10
10
|
}[];
|
|
11
11
|
}
|
|
12
12
|
declare const WarningDialog: ({ trackWarnings, handleClose, }: {
|
|
13
13
|
handleClose: () => void;
|
|
14
14
|
trackWarnings: TrackWarning[];
|
|
15
|
-
}) =>
|
|
15
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
export default WarningDialog;
|
|
@@ -1,23 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const
|
|
7
|
-
const
|
|
3
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
const configuration_1 = require("@jbrowse/core/configuration");
|
|
8
5
|
const ui_1 = require("@jbrowse/core/ui");
|
|
6
|
+
const util_1 = require("@jbrowse/core/util");
|
|
7
|
+
const material_1 = require("@mui/material");
|
|
8
|
+
const x_data_grid_1 = require("@mui/x-data-grid");
|
|
9
9
|
const mobx_react_1 = require("mobx-react");
|
|
10
10
|
const mui_1 = require("tss-react/mui");
|
|
11
|
-
const x_data_grid_1 = require("@mui/x-data-grid");
|
|
12
|
-
const configuration_1 = require("@jbrowse/core/configuration");
|
|
13
|
-
const util_1 = require("@jbrowse/core/util");
|
|
14
11
|
const useStyles = (0, mui_1.makeStyles)()({
|
|
15
12
|
content: {
|
|
16
13
|
minWidth: 600,
|
|
17
14
|
},
|
|
18
15
|
});
|
|
19
|
-
|
|
20
|
-
const { classes } = useStyles();
|
|
16
|
+
function getTrackWarnings({ trackWarnings, }) {
|
|
21
17
|
const rows = [];
|
|
22
18
|
for (let i = 0; i < trackWarnings.length; i++) {
|
|
23
19
|
const track = trackWarnings[i];
|
|
@@ -28,15 +24,16 @@ const WarningDialog = (0, mobx_react_1.observer)(function WarningDialog({ trackW
|
|
|
28
24
|
rows.push({ name, ...warning, id: `${i}_${j}` });
|
|
29
25
|
}
|
|
30
26
|
}
|
|
27
|
+
return rows;
|
|
28
|
+
}
|
|
29
|
+
const WarningDialog = (0, mobx_react_1.observer)(function WarningDialog({ trackWarnings, handleClose, }) {
|
|
30
|
+
const { classes } = useStyles();
|
|
31
|
+
const rows = getTrackWarnings({ trackWarnings });
|
|
31
32
|
const columns = [
|
|
32
33
|
{ field: 'name' },
|
|
33
34
|
{ field: 'message', width: (0, util_1.measureGridWidth)(rows.map(r => r.message)) },
|
|
34
35
|
{ field: 'effect', width: (0, util_1.measureGridWidth)(rows.map(r => r.effect)) },
|
|
35
36
|
];
|
|
36
|
-
return (
|
|
37
|
-
react_1.default.createElement(material_1.DialogContent, { className: classes.content },
|
|
38
|
-
react_1.default.createElement(material_1.DialogContentText, null, "Found warnings while rendering the dotplot. This is often due to out-of-bound features that may indicate the wrong assemblies are being used. Check that the query and target are configured correctly, and that the right assemblies are being compared."),
|
|
39
|
-
react_1.default.createElement("div", { style: { height: 600, width: '100%', overflow: 'auto' } },
|
|
40
|
-
react_1.default.createElement(x_data_grid_1.DataGrid, { rows: rows, columns: columns, disableRowSelectionOnClick: true, rowHeight: 25, disableColumnMenu: true })))));
|
|
37
|
+
return ((0, jsx_runtime_1.jsx)(ui_1.Dialog, { open: true, onClose: handleClose, maxWidth: "xl", title: "Dotplot rendered with warnings", children: (0, jsx_runtime_1.jsxs)(material_1.DialogContent, { className: classes.content, children: [(0, jsx_runtime_1.jsx)(material_1.DialogContentText, { children: "Found warnings while rendering the dotplot. This is often due to out-of-bound features that may indicate the wrong assemblies are being used. Check that the query and target are configured correctly, and that the right assemblies are being compared." }), (0, jsx_runtime_1.jsx)("div", { style: { height: 600, width: '100%', overflow: 'auto' }, children: (0, jsx_runtime_1.jsx)(x_data_grid_1.DataGrid, { rows: rows, columns: columns, disableRowSelectionOnClick: true, rowHeight: 25, disableColumnMenu: true }) })] }) }));
|
|
41
38
|
});
|
|
42
39
|
exports.default = WarningDialog;
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { Dotplot1DViewModel } from '../model';
|
|
2
|
+
import type { BaseBlock } from '@jbrowse/core/util/blockTypes';
|
|
3
3
|
export declare function locstr(px: number, view: Dotplot1DViewModel, includeAsm?: boolean): string;
|
|
4
4
|
export declare function getBlockLabelKeysToHide(blocks: BaseBlock[], length: number, viewOffsetPx: number): Set<string>;
|
|
5
|
-
/**
|
|
6
|
-
* Given a scale ( bp/px ) and minimum distances (px) between major and minor
|
|
7
|
-
* gridlines, return an object like `{ majorPitch: bp, minorPitch: bp }` giving
|
|
8
|
-
* the gridline pitches to use.
|
|
9
|
-
*/
|
|
10
5
|
export declare function chooseGridPitch(scale: number, minMajorPitchPx: number, minMinorPitchPx: number): {
|
|
11
6
|
majorPitch: number;
|
|
12
7
|
minorPitch: number;
|
|
@@ -31,11 +31,6 @@ function getBlockLabelKeysToHide(blocks, length, viewOffsetPx) {
|
|
|
31
31
|
}
|
|
32
32
|
return blockLabelKeysToHide;
|
|
33
33
|
}
|
|
34
|
-
/**
|
|
35
|
-
* Given a scale ( bp/px ) and minimum distances (px) between major and minor
|
|
36
|
-
* gridlines, return an object like `{ majorPitch: bp, minorPitch: bp }` giving
|
|
37
|
-
* the gridline pitches to use.
|
|
38
|
-
*/
|
|
39
34
|
function chooseGridPitch(scale, minMajorPitchPx, minMinorPitchPx) {
|
|
40
35
|
scale = Math.abs(scale);
|
|
41
36
|
const minMajorPitchBp = minMajorPitchPx * scale;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import PluginManager from '@jbrowse/core/PluginManager';
|
|
1
|
+
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
2
|
export default function DotplotViewF(pluginManager: PluginManager): void;
|
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
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
|
+
})();
|
|
25
35
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
37
|
};
|
|
@@ -29,7 +39,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
39
|
exports.default = DotplotViewF;
|
|
30
40
|
const react_1 = require("react");
|
|
31
41
|
const ViewType_1 = __importDefault(require("@jbrowse/core/pluggableElementTypes/ViewType"));
|
|
32
|
-
// locals
|
|
33
42
|
const model_1 = __importDefault(require("./model"));
|
|
34
43
|
function DotplotViewF(pluginManager) {
|
|
35
44
|
pluginManager.addViewType(() => {
|