@jbrowse/plugin-linear-comparative-view 3.7.0 → 4.0.1
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/LGVSyntenyDisplay/components/LaunchSyntenyViewDialog.js +3 -3
- package/esm/LGVSyntenyDisplay/configSchemaF.d.ts +9 -9
- package/esm/LGVSyntenyDisplay/configSchemaF.js +1 -1
- package/esm/LGVSyntenyDisplay/index.js +2 -2
- package/esm/LGVSyntenyDisplay/model.d.ts +1179 -133
- package/esm/LGVSyntenyDisplay/model.js +2 -2
- package/esm/LaunchLinearSyntenyView.js +13 -86
- package/esm/LinearComparativeDisplay/configSchemaF.d.ts +1 -1
- package/esm/LinearComparativeDisplay/index.js +2 -2
- package/esm/LinearComparativeDisplay/stateModelFactory.d.ts +95 -135
- package/esm/LinearComparativeDisplay/stateModelFactory.js +18 -17
- package/esm/LinearComparativeView/components/ColorBySelector.d.ts +1 -1
- package/esm/LinearComparativeView/components/ColorBySelector.js +3 -4
- package/esm/LinearComparativeView/components/Header.d.ts +1 -1
- package/esm/LinearComparativeView/components/Header.js +8 -9
- package/esm/LinearComparativeView/components/HeaderSearchBoxes.js +2 -2
- package/esm/LinearComparativeView/components/LinearComparativeRenderArea.d.ts +1 -1
- package/esm/LinearComparativeView/components/LinearComparativeRenderArea.js +9 -8
- package/esm/LinearComparativeView/components/LinearComparativeView.d.ts +1 -1
- package/esm/LinearComparativeView/components/LinearComparativeView.js +5 -5
- package/esm/LinearComparativeView/components/MinLengthSlider.d.ts +1 -1
- package/esm/LinearComparativeView/components/MinLengthSlider.js +7 -7
- package/esm/LinearComparativeView/components/OpacitySlider.d.ts +1 -1
- package/esm/LinearComparativeView/components/OpacitySlider.js +5 -6
- package/esm/LinearComparativeView/components/Rubberband.d.ts +1 -1
- package/esm/LinearComparativeView/components/Rubberband.js +5 -5
- package/esm/LinearComparativeView/components/RubberbandSpan.js +3 -5
- package/esm/LinearComparativeView/components/VerticalGuide.d.ts +1 -1
- package/esm/LinearComparativeView/components/VerticalGuide.js +2 -2
- package/esm/LinearComparativeView/components/useRangeSelect.d.ts +1 -1
- package/esm/LinearComparativeView/components/useRangeSelect.js +1 -1
- package/esm/LinearComparativeView/components/util.js +1 -1
- package/esm/LinearComparativeView/index.js +2 -2
- package/esm/LinearComparativeView/model.d.ts +474 -222
- package/esm/LinearComparativeView/model.js +50 -29
- package/esm/LinearReadVsRef/LinearReadVsRef.js +8 -9
- package/esm/LinearReadVsRef/index.js +1 -1
- package/esm/LinearSyntenyDisplay/afterAttach.d.ts +1 -1
- package/esm/LinearSyntenyDisplay/afterAttach.js +10 -11
- package/esm/LinearSyntenyDisplay/components/BlockError.js +1 -1
- package/esm/LinearSyntenyDisplay/components/BlockMessage.js +6 -15
- package/esm/LinearSyntenyDisplay/components/Component.d.ts +1 -1
- package/esm/LinearSyntenyDisplay/components/Component.js +5 -5
- package/esm/LinearSyntenyDisplay/components/LinearSyntenyRendering.d.ts +1 -1
- package/esm/LinearSyntenyDisplay/components/LinearSyntenyRendering.js +10 -14
- package/esm/LinearSyntenyDisplay/components/LoadingMessage.js +1 -1
- package/esm/LinearSyntenyDisplay/components/SyntenyContextMenu.d.ts +1 -1
- package/esm/LinearSyntenyDisplay/components/SyntenyContextMenu.js +8 -33
- package/esm/LinearSyntenyDisplay/components/SyntenyTooltip.d.ts +1 -1
- package/esm/LinearSyntenyDisplay/components/SyntenyTooltip.js +1 -1
- package/esm/LinearSyntenyDisplay/components/util.d.ts +2 -2
- package/esm/LinearSyntenyDisplay/components/util.js +3 -3
- package/esm/LinearSyntenyDisplay/configSchemaF.d.ts +2 -2
- package/esm/LinearSyntenyDisplay/configSchemaF.js +1 -1
- package/esm/LinearSyntenyDisplay/drawMouseoverClickMap.d.ts +2 -0
- package/esm/LinearSyntenyDisplay/drawMouseoverClickMap.js +53 -0
- package/esm/LinearSyntenyDisplay/drawSynteny.d.ts +1 -1
- package/esm/LinearSyntenyDisplay/drawSynteny.js +3 -5
- package/esm/LinearSyntenyDisplay/index.js +3 -3
- package/esm/LinearSyntenyDisplay/model.d.ts +97 -137
- package/esm/LinearSyntenyDisplay/model.js +3 -3
- package/esm/LinearSyntenyView/components/DiagonalizationProgressDialog.d.ts +1 -1
- package/esm/LinearSyntenyView/components/DiagonalizationProgressDialog.js +2 -2
- package/esm/LinearSyntenyView/components/ExportSvgDialog.d.ts +1 -1
- package/esm/LinearSyntenyView/components/ExportSvgDialog.js +6 -2
- package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyOpenCustomTrack.d.ts +1 -1
- package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyOpenCustomTrack.js +4 -4
- package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyPreConfigured.d.ts +1 -1
- package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyPreConfigured.js +4 -5
- package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyTrackSelectorArea.d.ts +11 -1
- package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyTrackSelectorArea.js +8 -4
- package/esm/LinearSyntenyView/components/ImportForm/LeftPanel.d.ts +1 -1
- package/esm/LinearSyntenyView/components/ImportForm/LeftPanel.js +26 -9
- package/esm/LinearSyntenyView/components/ImportForm/LinearSyntenyImportForm.d.ts +1 -1
- package/esm/LinearSyntenyView/components/ImportForm/LinearSyntenyImportForm.js +5 -5
- package/esm/LinearSyntenyView/components/ImportForm/doSubmit.d.ts +1 -1
- package/esm/LinearSyntenyView/components/ImportForm/doSubmit.js +1 -2
- package/esm/LinearSyntenyView/components/ImportForm/selectors/AnchorsSelector.d.ts +1 -1
- package/esm/LinearSyntenyView/components/ImportForm/selectors/AnchorsSelector.js +2 -2
- package/esm/LinearSyntenyView/components/ImportForm/selectors/PifGzSelector.d.ts +1 -1
- package/esm/LinearSyntenyView/components/ImportForm/selectors/PifGzSelector.js +2 -2
- package/esm/LinearSyntenyView/components/ImportForm/selectors/StandardFormatSelector.d.ts +1 -1
- package/esm/LinearSyntenyView/components/ImportForm/selectors/StandardFormatSelector.js +3 -3
- package/esm/LinearSyntenyView/components/ImportForm/selectors/SwapAssemblies.js +3 -3
- package/esm/LinearSyntenyView/components/ImportForm/selectors/index.d.ts +4 -4
- package/esm/LinearSyntenyView/components/ImportForm/selectors/index.js +4 -4
- package/esm/LinearSyntenyView/components/LinearSyntenyView.d.ts +1 -1
- package/esm/LinearSyntenyView/components/LinearSyntenyView.js +14 -4
- package/esm/LinearSyntenyView/index.js +2 -2
- package/esm/LinearSyntenyView/model.d.ts +522 -254
- package/esm/LinearSyntenyView/model.js +99 -15
- package/esm/LinearSyntenyView/svgcomponents/SVGLinearGenomeView.d.ts +3 -1
- package/esm/LinearSyntenyView/svgcomponents/SVGLinearGenomeView.js +3 -3
- package/esm/LinearSyntenyView/svgcomponents/SVGLinearSyntenyView.d.ts +2 -2
- package/esm/LinearSyntenyView/svgcomponents/SVGLinearSyntenyView.js +34 -31
- package/esm/LinearSyntenyView/types.d.ts +10 -1
- package/esm/LinearSyntenyViewHelper/index.js +1 -1
- package/esm/LinearSyntenyViewHelper/stateModelFactory.d.ts +11 -11
- package/esm/LinearSyntenyViewHelper/stateModelFactory.js +5 -43
- package/esm/SyntenyFeatureDetail/Formatter.js +2 -2
- package/esm/SyntenyFeatureDetail/LinkToSyntenyView.d.ts +1 -1
- package/esm/SyntenyFeatureDetail/LinkToSyntenyView.js +6 -7
- package/esm/SyntenyFeatureDetail/SyntenyFeatureDetail.d.ts +1 -1
- package/esm/SyntenyFeatureDetail/SyntenyFeatureDetail.js +3 -3
- package/esm/SyntenyFeatureDetail/index.js +2 -2
- package/esm/SyntenyTrack/configSchema.d.ts +16 -11
- package/esm/SyntenyTrack/index.js +1 -1
- package/esm/index.d.ts +2 -0
- package/esm/index.js +11 -14
- package/esm/util.d.ts +1 -1
- package/esm/util.js +4 -8
- package/package.json +29 -35
- package/dist/LGVSyntenyDisplay/components/LaunchSyntenyViewDialog.d.ts +0 -9
- package/dist/LGVSyntenyDisplay/components/LaunchSyntenyViewDialog.js +0 -53
- package/dist/LGVSyntenyDisplay/components/util.d.ts +0 -14
- package/dist/LGVSyntenyDisplay/components/util.js +0 -100
- package/dist/LGVSyntenyDisplay/configSchemaF.d.ts +0 -66
- package/dist/LGVSyntenyDisplay/configSchemaF.js +0 -38
- package/dist/LGVSyntenyDisplay/index.d.ts +0 -2
- package/dist/LGVSyntenyDisplay/index.js +0 -24
- package/dist/LGVSyntenyDisplay/model.d.ts +0 -418
- package/dist/LGVSyntenyDisplay/model.js +0 -118
- package/dist/LaunchLinearSyntenyView.d.ts +0 -2
- package/dist/LaunchLinearSyntenyView.js +0 -93
- package/dist/LinearComparativeDisplay/configSchemaF.d.ts +0 -2
- package/dist/LinearComparativeDisplay/configSchemaF.js +0 -10
- package/dist/LinearComparativeDisplay/index.d.ts +0 -2
- package/dist/LinearComparativeDisplay/index.js +0 -24
- package/dist/LinearComparativeDisplay/stateModelFactory.d.ts +0 -243
- package/dist/LinearComparativeDisplay/stateModelFactory.js +0 -146
- package/dist/LinearComparativeView/components/ColorBySelector.d.ts +0 -5
- package/dist/LinearComparativeView/components/ColorBySelector.js +0 -54
- package/dist/LinearComparativeView/components/Header.d.ts +0 -5
- package/dist/LinearComparativeView/components/Header.js +0 -87
- package/dist/LinearComparativeView/components/HeaderSearchBoxes.d.ts +0 -5
- package/dist/LinearComparativeView/components/HeaderSearchBoxes.js +0 -24
- package/dist/LinearComparativeView/components/LinearComparativeRenderArea.d.ts +0 -5
- package/dist/LinearComparativeView/components/LinearComparativeRenderArea.js +0 -46
- package/dist/LinearComparativeView/components/LinearComparativeView.d.ts +0 -5
- package/dist/LinearComparativeView/components/LinearComparativeView.js +0 -30
- package/dist/LinearComparativeView/components/MinLengthSlider.d.ts +0 -5
- package/dist/LinearComparativeView/components/MinLengthSlider.js +0 -47
- package/dist/LinearComparativeView/components/OpacitySlider.d.ts +0 -5
- package/dist/LinearComparativeView/components/OpacitySlider.js +0 -46
- package/dist/LinearComparativeView/components/Rubberband.d.ts +0 -7
- package/dist/LinearComparativeView/components/Rubberband.js +0 -32
- package/dist/LinearComparativeView/components/RubberbandSpan.d.ts +0 -15
- package/dist/LinearComparativeView/components/RubberbandSpan.js +0 -38
- package/dist/LinearComparativeView/components/RubberbandTooltip.d.ts +0 -5
- package/dist/LinearComparativeView/components/RubberbandTooltip.js +0 -20
- package/dist/LinearComparativeView/components/SliderTooltip.d.ts +0 -2
- package/dist/LinearComparativeView/components/SliderTooltip.js +0 -9
- package/dist/LinearComparativeView/components/VerticalGuide.d.ts +0 -7
- package/dist/LinearComparativeView/components/VerticalGuide.js +0 -26
- package/dist/LinearComparativeView/components/useRangeSelect.d.ts +0 -59
- package/dist/LinearComparativeView/components/useRangeSelect.js +0 -124
- package/dist/LinearComparativeView/components/util.d.ts +0 -4
- package/dist/LinearComparativeView/components/util.js +0 -6
- package/dist/LinearComparativeView/index.d.ts +0 -2
- package/dist/LinearComparativeView/index.js +0 -55
- package/dist/LinearComparativeView/model.d.ts +0 -606
- package/dist/LinearComparativeView/model.js +0 -238
- package/dist/LinearReadVsRef/LinearReadVsRef.d.ts +0 -6
- package/dist/LinearReadVsRef/LinearReadVsRef.js +0 -241
- package/dist/LinearReadVsRef/index.d.ts +0 -2
- package/dist/LinearReadVsRef/index.js +0 -86
- package/dist/LinearSyntenyDisplay/afterAttach.d.ts +0 -2
- package/dist/LinearSyntenyDisplay/afterAttach.js +0 -104
- package/dist/LinearSyntenyDisplay/components/BlockError.d.ts +0 -3
- package/dist/LinearSyntenyDisplay/components/BlockError.js +0 -16
- package/dist/LinearSyntenyDisplay/components/BlockMessage.d.ts +0 -3
- package/dist/LinearSyntenyDisplay/components/BlockMessage.js +0 -24
- package/dist/LinearSyntenyDisplay/components/Component.d.ts +0 -5
- package/dist/LinearSyntenyDisplay/components/Component.js +0 -26
- package/dist/LinearSyntenyDisplay/components/LinearSyntenyRendering.d.ts +0 -5
- package/dist/LinearSyntenyDisplay/components/LinearSyntenyRendering.js +0 -223
- package/dist/LinearSyntenyDisplay/components/LoadingMessage.d.ts +0 -3
- package/dist/LinearSyntenyDisplay/components/LoadingMessage.js +0 -21
- package/dist/LinearSyntenyDisplay/components/SyntenyContextMenu.d.ts +0 -15
- package/dist/LinearSyntenyDisplay/components/SyntenyContextMenu.js +0 -56
- package/dist/LinearSyntenyDisplay/components/SyntenyTooltip.d.ts +0 -4
- package/dist/LinearSyntenyDisplay/components/SyntenyTooltip.js +0 -13
- package/dist/LinearSyntenyDisplay/components/util.d.ts +0 -45
- package/dist/LinearSyntenyDisplay/components/util.js +0 -199
- package/dist/LinearSyntenyDisplay/configSchemaF.d.ts +0 -12
- package/dist/LinearSyntenyDisplay/configSchemaF.js +0 -23
- package/dist/LinearSyntenyDisplay/drawSynteny.d.ts +0 -6
- package/dist/LinearSyntenyDisplay/drawSynteny.js +0 -470
- package/dist/LinearSyntenyDisplay/index.d.ts +0 -2
- package/dist/LinearSyntenyDisplay/index.js +0 -56
- package/dist/LinearSyntenyDisplay/model.d.ts +0 -291
- package/dist/LinearSyntenyDisplay/model.js +0 -133
- package/dist/LinearSyntenyView/components/DiagonalizationProgressDialog.d.ts +0 -6
- package/dist/LinearSyntenyView/components/DiagonalizationProgressDialog.js +0 -87
- package/dist/LinearSyntenyView/components/ExportSvgDialog.d.ts +0 -7
- package/dist/LinearSyntenyView/components/ExportSvgDialog.js +0 -58
- package/dist/LinearSyntenyView/components/Icons.d.ts +0 -3
- package/dist/LinearSyntenyView/components/Icons.js +0 -12
- package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyOpenCustomTrack.d.ts +0 -8
- package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyOpenCustomTrack.js +0 -81
- package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyPreConfigured.d.ts +0 -8
- package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyPreConfigured.js +0 -39
- package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyTrackSelectorArea.d.ts +0 -7
- package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyTrackSelectorArea.js +0 -22
- package/dist/LinearSyntenyView/components/ImportForm/LeftPanel.d.ts +0 -11
- package/dist/LinearSyntenyView/components/ImportForm/LeftPanel.js +0 -58
- package/dist/LinearSyntenyView/components/ImportForm/LinearSyntenyImportForm.d.ts +0 -5
- package/dist/LinearSyntenyView/components/ImportForm/LinearSyntenyImportForm.js +0 -60
- package/dist/LinearSyntenyView/components/ImportForm/doSubmit.d.ts +0 -5
- package/dist/LinearSyntenyView/components/ImportForm/doSubmit.js +0 -43
- package/dist/LinearSyntenyView/components/ImportForm/getAdapter.d.ts +0 -117
- package/dist/LinearSyntenyView/components/ImportForm/getAdapter.js +0 -68
- package/dist/LinearSyntenyView/components/ImportForm/selectors/AnchorsSelector.d.ts +0 -3
- package/dist/LinearSyntenyView/components/ImportForm/selectors/AnchorsSelector.js +0 -13
- package/dist/LinearSyntenyView/components/ImportForm/selectors/PifGzSelector.d.ts +0 -3
- package/dist/LinearSyntenyView/components/ImportForm/selectors/PifGzSelector.js +0 -13
- package/dist/LinearSyntenyView/components/ImportForm/selectors/SelectorTypes.d.ts +0 -19
- package/dist/LinearSyntenyView/components/ImportForm/selectors/SelectorTypes.js +0 -10
- package/dist/LinearSyntenyView/components/ImportForm/selectors/StandardFormatSelector.d.ts +0 -3
- package/dist/LinearSyntenyView/components/ImportForm/selectors/StandardFormatSelector.js +0 -20
- package/dist/LinearSyntenyView/components/ImportForm/selectors/SwapAssemblies.d.ts +0 -13
- package/dist/LinearSyntenyView/components/ImportForm/selectors/SwapAssemblies.js +0 -32
- package/dist/LinearSyntenyView/components/ImportForm/selectors/index.d.ts +0 -4
- package/dist/LinearSyntenyView/components/ImportForm/selectors/index.js +0 -27
- package/dist/LinearSyntenyView/components/ImportForm/util.d.ts +0 -10
- package/dist/LinearSyntenyView/components/ImportForm/util.js +0 -24
- package/dist/LinearSyntenyView/components/LinearSyntenyView.d.ts +0 -5
- package/dist/LinearSyntenyView/components/LinearSyntenyView.js +0 -47
- package/dist/LinearSyntenyView/components/TextField2.d.ts +0 -2
- package/dist/LinearSyntenyView/components/TextField2.js +0 -8
- package/dist/LinearSyntenyView/index.d.ts +0 -2
- package/dist/LinearSyntenyView/index.js +0 -52
- package/dist/LinearSyntenyView/model.d.ts +0 -702
- package/dist/LinearSyntenyView/model.js +0 -240
- package/dist/LinearSyntenyView/svgcomponents/SVGBackground.d.ts +0 -5
- package/dist/LinearSyntenyView/svgcomponents/SVGBackground.js +0 -10
- package/dist/LinearSyntenyView/svgcomponents/SVGLinearGenomeView.d.ts +0 -11
- package/dist/LinearSyntenyView/svgcomponents/SVGLinearGenomeView.js +0 -11
- package/dist/LinearSyntenyView/svgcomponents/SVGLinearSyntenyView.d.ts +0 -3
- package/dist/LinearSyntenyView/svgcomponents/SVGLinearSyntenyView.js +0 -80
- package/dist/LinearSyntenyView/types.d.ts +0 -29
- package/dist/LinearSyntenyView/types.js +0 -2
- package/dist/LinearSyntenyView/util/diagonalize.d.ts +0 -27
- package/dist/LinearSyntenyView/util/diagonalize.js +0 -91
- package/dist/LinearSyntenyViewHelper/index.d.ts +0 -2
- package/dist/LinearSyntenyViewHelper/index.js +0 -25
- package/dist/LinearSyntenyViewHelper/stateModelFactory.d.ts +0 -18
- package/dist/LinearSyntenyViewHelper/stateModelFactory.js +0 -78
- package/dist/SyntenyFeatureDetail/Formatter.d.ts +0 -3
- package/dist/SyntenyFeatureDetail/Formatter.js +0 -23
- package/dist/SyntenyFeatureDetail/LinkToSyntenyView.d.ts +0 -7
- package/dist/SyntenyFeatureDetail/LinkToSyntenyView.js +0 -87
- package/dist/SyntenyFeatureDetail/SyntenyFeatureDetail.d.ts +0 -5
- package/dist/SyntenyFeatureDetail/SyntenyFeatureDetail.js +0 -19
- package/dist/SyntenyFeatureDetail/index.d.ts +0 -2
- package/dist/SyntenyFeatureDetail/index.js +0 -60
- package/dist/SyntenyFeatureDetail/types.d.ts +0 -9
- package/dist/SyntenyFeatureDetail/types.js +0 -2
- package/dist/SyntenyTrack/configSchema.d.ts +0 -80
- package/dist/SyntenyTrack/configSchema.js +0 -9
- package/dist/SyntenyTrack/index.d.ts +0 -2
- package/dist/SyntenyTrack/index.js +0 -19
- package/dist/index.d.ts +0 -7
- package/dist/index.js +0 -48
- package/dist/util.d.ts +0 -25
- package/dist/util.js +0 -67
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { lazy } from 'react';
|
|
2
2
|
import { ConfigurationReference, getConf } from '@jbrowse/core/configuration';
|
|
3
3
|
import { getContainingTrack, getContainingView, getSession, isSessionModelWithWidgets, } from '@jbrowse/core/util';
|
|
4
|
+
import { types } from '@jbrowse/mobx-state-tree';
|
|
4
5
|
import { SharedLinearPileupDisplayMixin } from '@jbrowse/plugin-alignments';
|
|
5
|
-
|
|
6
|
-
const LaunchSyntenyViewDialog = lazy(() => import('./components/LaunchSyntenyViewDialog'));
|
|
6
|
+
const LaunchSyntenyViewDialog = lazy(() => import("./components/LaunchSyntenyViewDialog.js"));
|
|
7
7
|
function stateModelFactory(schema) {
|
|
8
8
|
return types
|
|
9
9
|
.compose('LGVSyntenyDisplay', SharedLinearPileupDisplayMixin(schema), types.model({
|
|
@@ -1,90 +1,17 @@
|
|
|
1
|
-
import { notEmpty } from '@jbrowse/core/util';
|
|
2
|
-
import { when } from 'mobx';
|
|
3
|
-
function makeMultiDimArray(str) {
|
|
4
|
-
return Array.isArray(str[0]) ? str : [str];
|
|
5
|
-
}
|
|
6
1
|
export default function LaunchLinearSyntenyView(pluginManager) {
|
|
7
2
|
pluginManager.addToExtensionPoint('LaunchView-LinearSyntenyView', async ({ session, views, tracks = [], }) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
hideHeader: true,
|
|
22
|
-
displayedRegions: asm.regions,
|
|
23
|
-
};
|
|
24
|
-
})));
|
|
25
|
-
await Promise.all(model.views.map(view => when(() => view.initialized)));
|
|
26
|
-
let idsNotFound = [];
|
|
27
|
-
await Promise.all(views.map(async (data, idx) => {
|
|
28
|
-
const view = model.views[idx];
|
|
29
|
-
const { assembly, loc, tracks = [] } = data;
|
|
30
|
-
const asm = await assemblyManager.waitForAssembly(assembly);
|
|
31
|
-
if (!asm) {
|
|
32
|
-
throw new Error(`Assembly ${data.assembly} failed to load`);
|
|
33
|
-
}
|
|
34
|
-
await view.navToSearchString({ input: loc, assembly: asm });
|
|
35
|
-
idsNotFound = [
|
|
36
|
-
...idsNotFound,
|
|
37
|
-
...tracks.map(trackId => tryTrackLGV({
|
|
38
|
-
model: view,
|
|
39
|
-
trackId,
|
|
40
|
-
})),
|
|
41
|
-
];
|
|
42
|
-
}));
|
|
43
|
-
idsNotFound = [
|
|
44
|
-
...idsNotFound,
|
|
45
|
-
...makeMultiDimArray(tracks).flatMap((trackSet, level) => trackSet.map(trackId => tryTrackSynteny({
|
|
46
|
-
model,
|
|
47
|
-
trackId,
|
|
48
|
-
level,
|
|
49
|
-
}))),
|
|
50
|
-
];
|
|
51
|
-
if (idsNotFound.filter(notEmpty).length) {
|
|
52
|
-
throw new Error(`Could not resolve identifiers: ${idsNotFound.join(',')}`);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
catch (e) {
|
|
56
|
-
session.notifyError(`${e}`, e);
|
|
57
|
-
throw e;
|
|
58
|
-
}
|
|
3
|
+
const flatTracks = Array.isArray(tracks[0])
|
|
4
|
+
? tracks.flat()
|
|
5
|
+
: tracks;
|
|
6
|
+
session.addView('LinearSyntenyView', {
|
|
7
|
+
init: {
|
|
8
|
+
views: views.map(v => ({
|
|
9
|
+
loc: v.loc,
|
|
10
|
+
assembly: v.assembly,
|
|
11
|
+
tracks: v.tracks,
|
|
12
|
+
})),
|
|
13
|
+
tracks: flatTracks,
|
|
14
|
+
},
|
|
15
|
+
});
|
|
59
16
|
});
|
|
60
17
|
}
|
|
61
|
-
function tryTrackLGV({ model, trackId, }) {
|
|
62
|
-
try {
|
|
63
|
-
model.showTrack(trackId);
|
|
64
|
-
}
|
|
65
|
-
catch (e) {
|
|
66
|
-
if (/Could not resolve identifier/.exec(`${e}`) ||
|
|
67
|
-
/track not found/.exec(`${e}`)) {
|
|
68
|
-
return trackId;
|
|
69
|
-
}
|
|
70
|
-
else {
|
|
71
|
-
throw e;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
return undefined;
|
|
75
|
-
}
|
|
76
|
-
function tryTrackSynteny({ model, trackId, level, }) {
|
|
77
|
-
try {
|
|
78
|
-
model.showTrack(trackId, level);
|
|
79
|
-
}
|
|
80
|
-
catch (e) {
|
|
81
|
-
if (/Could not resolve identifier/.exec(`${e}`) ||
|
|
82
|
-
/track not found/.exec(`${e}`)) {
|
|
83
|
-
return trackId;
|
|
84
|
-
}
|
|
85
|
-
else {
|
|
86
|
-
throw e;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
return undefined;
|
|
90
|
-
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare function configSchemaFactory(_pluginManager: any): import("
|
|
1
|
+
declare function configSchemaFactory(_pluginManager: any): import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaType<{}, import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
2
2
|
export default configSchemaFactory;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import DisplayType from '@jbrowse/core/pluggableElementTypes/DisplayType';
|
|
2
|
-
import configSchemaFactory from
|
|
3
|
-
import stateModelFactory from
|
|
2
|
+
import configSchemaFactory from "./configSchemaF.js";
|
|
3
|
+
import stateModelFactory from "./stateModelFactory.js";
|
|
4
4
|
export default function LinearComparativeDisplayF(pluginManager) {
|
|
5
5
|
pluginManager.addDisplayType(() => {
|
|
6
6
|
const configSchema = configSchemaFactory(pluginManager);
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import type { AnyConfigurationSchemaType } from '@jbrowse/core/configuration';
|
|
2
2
|
import type { Feature } from '@jbrowse/core/util';
|
|
3
|
-
import type { Instance } from 'mobx-state-tree';
|
|
4
|
-
declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): import("mobx-state-tree").IModelType<{
|
|
5
|
-
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
6
|
-
type: import("mobx-state-tree").ISimpleType<string>;
|
|
7
|
-
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
3
|
+
import type { Instance } from '@jbrowse/mobx-state-tree';
|
|
4
|
+
declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): import("@jbrowse/mobx-state-tree").IModelType<{
|
|
5
|
+
id: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
6
|
+
type: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
|
|
7
|
+
rpcDriverName: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<string>>;
|
|
8
8
|
} & {
|
|
9
|
-
type: import("mobx-state-tree").ISimpleType<"LinearComparativeDisplay">;
|
|
9
|
+
type: import("@jbrowse/mobx-state-tree").ISimpleType<"LinearComparativeDisplay">;
|
|
10
10
|
configuration: AnyConfigurationSchemaType;
|
|
11
11
|
}, {
|
|
12
12
|
rendererTypeName: string;
|
|
13
13
|
error: unknown;
|
|
14
|
-
|
|
14
|
+
statusMessage: string | undefined;
|
|
15
15
|
} & {
|
|
16
16
|
readonly RenderingComponent: React.FC<{
|
|
17
17
|
model: {
|
|
18
18
|
id: string;
|
|
19
19
|
type: string;
|
|
20
20
|
rpcDriverName: string | undefined;
|
|
21
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
21
|
+
} & import("@jbrowse/mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
22
22
|
rendererTypeName: string;
|
|
23
23
|
error: unknown;
|
|
24
|
-
|
|
25
|
-
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
26
|
-
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
27
|
-
type: import("mobx-state-tree").ISimpleType<string>;
|
|
28
|
-
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
24
|
+
statusMessage: string | undefined;
|
|
25
|
+
} & import("@jbrowse/mobx-state-tree").IStateTreeNode<import("@jbrowse/mobx-state-tree").IModelType<{
|
|
26
|
+
id: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
27
|
+
type: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
|
|
28
|
+
rpcDriverName: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<string>>;
|
|
29
29
|
}, {
|
|
30
30
|
rendererTypeName: string;
|
|
31
31
|
error: unknown;
|
|
32
|
-
|
|
33
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
32
|
+
statusMessage: string | undefined;
|
|
33
|
+
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>>;
|
|
34
34
|
onHorizontalScroll?: () => void;
|
|
35
35
|
blockState?: Record<string, any>;
|
|
36
36
|
}>;
|
|
@@ -39,81 +39,54 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
39
39
|
id: string;
|
|
40
40
|
type: string;
|
|
41
41
|
rpcDriverName: string | undefined;
|
|
42
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
42
|
+
} & import("@jbrowse/mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
43
43
|
rendererTypeName: string;
|
|
44
44
|
error: unknown;
|
|
45
|
-
|
|
46
|
-
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
47
|
-
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
48
|
-
type: import("mobx-state-tree").ISimpleType<string>;
|
|
49
|
-
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
45
|
+
statusMessage: string | undefined;
|
|
46
|
+
} & import("@jbrowse/mobx-state-tree").IStateTreeNode<import("@jbrowse/mobx-state-tree").IModelType<{
|
|
47
|
+
id: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
48
|
+
type: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
|
|
49
|
+
rpcDriverName: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<string>>;
|
|
50
50
|
}, {
|
|
51
51
|
rendererTypeName: string;
|
|
52
52
|
error: unknown;
|
|
53
|
-
|
|
54
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
53
|
+
statusMessage: string | undefined;
|
|
54
|
+
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>>;
|
|
55
55
|
}> | null;
|
|
56
56
|
readonly adapterConfig: any;
|
|
57
|
-
readonly parentTrack:
|
|
58
|
-
|
|
59
|
-
readonly
|
|
60
|
-
readonly DisplayMessageComponent: undefined | React.FC<any>;
|
|
61
|
-
trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
62
|
-
readonly viewMenuActions: import("@jbrowse/core/ui").MenuItem[];
|
|
63
|
-
regionCannotBeRendered(): null;
|
|
64
|
-
} & {
|
|
65
|
-
setMessage(arg?: string): void;
|
|
66
|
-
setError(error?: unknown): void;
|
|
67
|
-
setRpcDriverName(rpcDriverName: string): void;
|
|
68
|
-
reload(): void;
|
|
57
|
+
readonly parentTrack: import("@jbrowse/core/util").AbstractTrackModel;
|
|
58
|
+
readonly parentDisplay: any;
|
|
59
|
+
readonly effectiveRpcDriverName: any;
|
|
69
60
|
} & {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
message: string | undefined;
|
|
73
|
-
loadingStatus: string | undefined;
|
|
74
|
-
} & {
|
|
75
|
-
readonly level: number;
|
|
76
|
-
readonly height: number;
|
|
77
|
-
renderProps(): {
|
|
78
|
-
rpcDriverName: string | undefined;
|
|
61
|
+
renderProps(): any;
|
|
62
|
+
renderingProps(): {
|
|
79
63
|
displayModel: {
|
|
80
64
|
id: string;
|
|
81
|
-
type:
|
|
65
|
+
type: string;
|
|
82
66
|
rpcDriverName: string | undefined;
|
|
83
|
-
|
|
84
|
-
[x: string]: any;
|
|
85
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
86
|
-
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
87
|
-
[x: string]: any;
|
|
88
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
89
|
-
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
90
|
-
[x: string]: any;
|
|
91
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & any & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>);
|
|
92
|
-
} & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>);
|
|
93
|
-
} & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>;
|
|
94
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
67
|
+
} & import("@jbrowse/mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
95
68
|
rendererTypeName: string;
|
|
96
69
|
error: unknown;
|
|
97
|
-
|
|
70
|
+
statusMessage: string | undefined;
|
|
98
71
|
} & {
|
|
99
72
|
readonly RenderingComponent: React.FC<{
|
|
100
73
|
model: {
|
|
101
74
|
id: string;
|
|
102
75
|
type: string;
|
|
103
76
|
rpcDriverName: string | undefined;
|
|
104
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
77
|
+
} & import("@jbrowse/mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
105
78
|
rendererTypeName: string;
|
|
106
79
|
error: unknown;
|
|
107
|
-
|
|
108
|
-
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
109
|
-
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
110
|
-
type: import("mobx-state-tree").ISimpleType<string>;
|
|
111
|
-
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
80
|
+
statusMessage: string | undefined;
|
|
81
|
+
} & import("@jbrowse/mobx-state-tree").IStateTreeNode<import("@jbrowse/mobx-state-tree").IModelType<{
|
|
82
|
+
id: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
83
|
+
type: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
|
|
84
|
+
rpcDriverName: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<string>>;
|
|
112
85
|
}, {
|
|
113
86
|
rendererTypeName: string;
|
|
114
87
|
error: unknown;
|
|
115
|
-
|
|
116
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
88
|
+
statusMessage: string | undefined;
|
|
89
|
+
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>>;
|
|
117
90
|
onHorizontalScroll?: () => void;
|
|
118
91
|
blockState?: Record<string, any>;
|
|
119
92
|
}>;
|
|
@@ -122,68 +95,51 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
122
95
|
id: string;
|
|
123
96
|
type: string;
|
|
124
97
|
rpcDriverName: string | undefined;
|
|
125
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
98
|
+
} & import("@jbrowse/mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
126
99
|
rendererTypeName: string;
|
|
127
100
|
error: unknown;
|
|
128
|
-
|
|
129
|
-
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
130
|
-
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
131
|
-
type: import("mobx-state-tree").ISimpleType<string>;
|
|
132
|
-
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
101
|
+
statusMessage: string | undefined;
|
|
102
|
+
} & import("@jbrowse/mobx-state-tree").IStateTreeNode<import("@jbrowse/mobx-state-tree").IModelType<{
|
|
103
|
+
id: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
104
|
+
type: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
|
|
105
|
+
rpcDriverName: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<string>>;
|
|
133
106
|
}, {
|
|
134
107
|
rendererTypeName: string;
|
|
135
108
|
error: unknown;
|
|
136
|
-
|
|
137
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
109
|
+
statusMessage: string | undefined;
|
|
110
|
+
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>>;
|
|
138
111
|
}> | null;
|
|
139
112
|
readonly adapterConfig: any;
|
|
140
|
-
readonly parentTrack:
|
|
141
|
-
|
|
142
|
-
readonly
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
} & {
|
|
148
|
-
setMessage(arg?: string): void;
|
|
149
|
-
setError(error?: unknown): void;
|
|
150
|
-
setRpcDriverName(rpcDriverName: string): void;
|
|
151
|
-
reload(): void;
|
|
152
|
-
} & {
|
|
153
|
-
renderInProgress: string | undefined;
|
|
154
|
-
features: Feature[] | undefined;
|
|
155
|
-
message: string | undefined;
|
|
156
|
-
loadingStatus: string | undefined;
|
|
157
|
-
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
158
|
-
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
159
|
-
type: import("mobx-state-tree").ISimpleType<string>;
|
|
160
|
-
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
161
|
-
} & {
|
|
162
|
-
type: import("mobx-state-tree").ISimpleType<"LinearComparativeDisplay">;
|
|
163
|
-
configuration: AnyConfigurationSchemaType;
|
|
113
|
+
readonly parentTrack: import("@jbrowse/core/util").AbstractTrackModel;
|
|
114
|
+
readonly parentDisplay: any;
|
|
115
|
+
readonly effectiveRpcDriverName: any;
|
|
116
|
+
} & import("@jbrowse/mobx-state-tree").IStateTreeNode<import("@jbrowse/mobx-state-tree").IModelType<{
|
|
117
|
+
id: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
118
|
+
type: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
|
|
119
|
+
rpcDriverName: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<string>>;
|
|
164
120
|
}, {
|
|
165
121
|
rendererTypeName: string;
|
|
166
122
|
error: unknown;
|
|
167
|
-
|
|
123
|
+
statusMessage: string | undefined;
|
|
168
124
|
} & {
|
|
169
125
|
readonly RenderingComponent: React.FC<{
|
|
170
126
|
model: {
|
|
171
127
|
id: string;
|
|
172
128
|
type: string;
|
|
173
129
|
rpcDriverName: string | undefined;
|
|
174
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
130
|
+
} & import("@jbrowse/mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
175
131
|
rendererTypeName: string;
|
|
176
132
|
error: unknown;
|
|
177
|
-
|
|
178
|
-
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
179
|
-
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
180
|
-
type: import("mobx-state-tree").ISimpleType<string>;
|
|
181
|
-
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
133
|
+
statusMessage: string | undefined;
|
|
134
|
+
} & import("@jbrowse/mobx-state-tree").IStateTreeNode<import("@jbrowse/mobx-state-tree").IModelType<{
|
|
135
|
+
id: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
136
|
+
type: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
|
|
137
|
+
rpcDriverName: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<string>>;
|
|
182
138
|
}, {
|
|
183
139
|
rendererTypeName: string;
|
|
184
140
|
error: unknown;
|
|
185
|
-
|
|
186
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
141
|
+
statusMessage: string | undefined;
|
|
142
|
+
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>>;
|
|
187
143
|
onHorizontalScroll?: () => void;
|
|
188
144
|
blockState?: Record<string, any>;
|
|
189
145
|
}>;
|
|
@@ -192,41 +148,45 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
192
148
|
id: string;
|
|
193
149
|
type: string;
|
|
194
150
|
rpcDriverName: string | undefined;
|
|
195
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
151
|
+
} & import("@jbrowse/mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
196
152
|
rendererTypeName: string;
|
|
197
153
|
error: unknown;
|
|
198
|
-
|
|
199
|
-
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
200
|
-
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
201
|
-
type: import("mobx-state-tree").ISimpleType<string>;
|
|
202
|
-
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
154
|
+
statusMessage: string | undefined;
|
|
155
|
+
} & import("@jbrowse/mobx-state-tree").IStateTreeNode<import("@jbrowse/mobx-state-tree").IModelType<{
|
|
156
|
+
id: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
157
|
+
type: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
|
|
158
|
+
rpcDriverName: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<string>>;
|
|
203
159
|
}, {
|
|
204
160
|
rendererTypeName: string;
|
|
205
161
|
error: unknown;
|
|
206
|
-
|
|
207
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
162
|
+
statusMessage: string | undefined;
|
|
163
|
+
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>>;
|
|
208
164
|
}> | null;
|
|
209
165
|
readonly adapterConfig: any;
|
|
210
|
-
readonly parentTrack:
|
|
211
|
-
|
|
212
|
-
readonly
|
|
213
|
-
|
|
214
|
-
trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
215
|
-
readonly viewMenuActions: import("@jbrowse/core/ui").MenuItem[];
|
|
216
|
-
regionCannotBeRendered(): null;
|
|
217
|
-
} & {
|
|
218
|
-
setMessage(arg?: string): void;
|
|
219
|
-
setError(error?: unknown): void;
|
|
220
|
-
setRpcDriverName(rpcDriverName: string): void;
|
|
221
|
-
reload(): void;
|
|
222
|
-
} & {
|
|
223
|
-
renderInProgress: string | undefined;
|
|
224
|
-
features: Feature[] | undefined;
|
|
225
|
-
message: string | undefined;
|
|
226
|
-
loadingStatus: string | undefined;
|
|
227
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
228
|
-
highResolutionScaling: number;
|
|
166
|
+
readonly parentTrack: import("@jbrowse/core/util").AbstractTrackModel;
|
|
167
|
+
readonly parentDisplay: any;
|
|
168
|
+
readonly effectiveRpcDriverName: any;
|
|
169
|
+
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>>;
|
|
229
170
|
};
|
|
171
|
+
readonly rendererType: import("@jbrowse/core/pluggableElementTypes").RendererType;
|
|
172
|
+
readonly DisplayMessageComponent: undefined | React.FC<any>;
|
|
173
|
+
trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
174
|
+
readonly viewMenuActions: import("@jbrowse/core/ui").MenuItem[];
|
|
175
|
+
regionCannotBeRendered(): null;
|
|
176
|
+
} & {
|
|
177
|
+
setStatusMessage(arg?: string): void;
|
|
178
|
+
setError(error?: unknown): void;
|
|
179
|
+
setRpcDriverName(rpcDriverName: string): void;
|
|
180
|
+
reload(): void;
|
|
181
|
+
} & {
|
|
182
|
+
renderInProgress: string | undefined;
|
|
183
|
+
features: Feature[] | undefined;
|
|
184
|
+
message: string | undefined;
|
|
185
|
+
loadingStatus: string | undefined;
|
|
186
|
+
} & {
|
|
187
|
+
readonly level: number;
|
|
188
|
+
readonly height: number;
|
|
189
|
+
renderProps(): any;
|
|
230
190
|
} & {
|
|
231
191
|
setLoading(newStopToken: string): void;
|
|
232
192
|
setMessage(messageText: string): void;
|
|
@@ -237,7 +197,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
237
197
|
setError(error: unknown): void;
|
|
238
198
|
} & {
|
|
239
199
|
afterAttach(): void;
|
|
240
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
200
|
+
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>;
|
|
241
201
|
export default stateModelFactory;
|
|
242
202
|
export type LinearComparativeDisplayModel = ReturnType<typeof stateModelFactory>;
|
|
243
203
|
export type LinearComparativeDisplay = Instance<LinearComparativeDisplayModel>;
|
|
@@ -3,7 +3,7 @@ import { BaseDisplay } from '@jbrowse/core/pluggableElementTypes/models';
|
|
|
3
3
|
import { dedupe, getContainingView, getSession, makeAbortableReaction, } from '@jbrowse/core/util';
|
|
4
4
|
import { stopStopToken } from '@jbrowse/core/util/stopToken';
|
|
5
5
|
import { getRpcSessionId } from '@jbrowse/core/util/tracks';
|
|
6
|
-
import { getParent, getSnapshot, types } from 'mobx-state-tree';
|
|
6
|
+
import { getParent, getSnapshot, types } from '@jbrowse/mobx-state-tree';
|
|
7
7
|
function stateModelFactory(configSchema) {
|
|
8
8
|
return types
|
|
9
9
|
.compose('LinearComparativeDisplay', BaseDisplay, types.model({
|
|
@@ -16,21 +16,22 @@ function stateModelFactory(configSchema) {
|
|
|
16
16
|
message: undefined,
|
|
17
17
|
loadingStatus: undefined,
|
|
18
18
|
}))
|
|
19
|
-
.views(self =>
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
19
|
+
.views(self => {
|
|
20
|
+
const { renderProps: superRenderProps } = self;
|
|
21
|
+
return {
|
|
22
|
+
get level() {
|
|
23
|
+
return getParent(self, 4).level;
|
|
24
|
+
},
|
|
25
|
+
get height() {
|
|
26
|
+
return getParent(self, 4).height;
|
|
27
|
+
},
|
|
28
|
+
renderProps() {
|
|
29
|
+
return {
|
|
30
|
+
...superRenderProps(),
|
|
31
|
+
};
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
})
|
|
34
35
|
.actions(self => {
|
|
35
36
|
let stopToken;
|
|
36
37
|
return {
|
|
@@ -131,7 +132,7 @@ async function renderBlockEffect(props) {
|
|
|
131
132
|
const { model, sessionId, adapterConfig, level } = renderProps;
|
|
132
133
|
const view = renderProps.view.views[level];
|
|
133
134
|
return {
|
|
134
|
-
features: dedupe((await rpcManager.call(
|
|
135
|
+
features: dedupe((await rpcManager.call(sessionId, 'CoreGetFeatures', {
|
|
135
136
|
regions: view.staticBlocks.contentBlocks,
|
|
136
137
|
sessionId,
|
|
137
138
|
adapterConfig,
|
|
@@ -2,10 +2,9 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import CascadingMenuButton from '@jbrowse/core/ui/CascadingMenuButton';
|
|
3
3
|
import PaletteIcon from '@mui/icons-material/Palette';
|
|
4
4
|
import { observer } from 'mobx-react';
|
|
5
|
-
const ColorBySelector = observer(function ({ model, }) {
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
const colorBy = (_c = firstDisplay === null || firstDisplay === void 0 ? void 0 : firstDisplay.colorBy) !== null && _c !== void 0 ? _c : 'default';
|
|
5
|
+
const ColorBySelector = observer(function ColorBySelector({ model, }) {
|
|
6
|
+
const firstDisplay = model.levels[0]?.tracks[0]?.displays[0];
|
|
7
|
+
const colorBy = firstDisplay?.colorBy ?? 'default';
|
|
9
8
|
const setColorBy = (value) => {
|
|
10
9
|
for (const level of model.levels) {
|
|
11
10
|
for (const track of level.tracks) {
|
|
@@ -2,27 +2,26 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
|
|
|
2
2
|
import { useState } from 'react';
|
|
3
3
|
import CascadingMenuButton from '@jbrowse/core/ui/CascadingMenuButton';
|
|
4
4
|
import { TrackSelector as TrackSelectorIcon } from '@jbrowse/core/ui/Icons';
|
|
5
|
+
import { makeStyles } from '@jbrowse/core/util/tss-react';
|
|
5
6
|
import MoreVertIcon from '@mui/icons-material/MoreVert';
|
|
6
7
|
import SearchIcon from '@mui/icons-material/Search';
|
|
7
8
|
import { FormGroup } from '@mui/material';
|
|
8
9
|
import { observer } from 'mobx-react';
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import OpacitySlider from './OpacitySlider';
|
|
10
|
+
import ColorBySelector from "./ColorBySelector.js";
|
|
11
|
+
import HeaderSearchBoxes from "./HeaderSearchBoxes.js";
|
|
12
|
+
import MinLengthSlider from "./MinLengthSlider.js";
|
|
13
|
+
import OpacitySlider from "./OpacitySlider.js";
|
|
14
14
|
const useStyles = makeStyles()({
|
|
15
15
|
inline: {
|
|
16
16
|
display: 'inline-flex',
|
|
17
17
|
},
|
|
18
18
|
});
|
|
19
|
-
const Header = observer(function ({ model, }) {
|
|
20
|
-
var _a, _b;
|
|
19
|
+
const Header = observer(function Header({ model, }) {
|
|
21
20
|
const { classes } = useStyles();
|
|
22
21
|
const { views, levels, showDynamicControls } = model;
|
|
23
22
|
const [showSearchBoxes, setShowSearchBoxes] = useState(views.length <= 3);
|
|
24
23
|
const [sideBySide, setSideBySide] = useState(views.length <= 3);
|
|
25
|
-
const hasDisplays =
|
|
24
|
+
const hasDisplays = levels[0]?.tracks[0]?.displays[0];
|
|
26
25
|
return (_jsxs(FormGroup, { row: true, children: [_jsx(CascadingMenuButton, { menuItems: [
|
|
27
26
|
{
|
|
28
27
|
label: 'Synteny track selectors',
|
|
@@ -42,7 +41,7 @@ const Header = observer(function ({ model, }) {
|
|
|
42
41
|
onClick: () => view.activateTrackSelector(),
|
|
43
42
|
})),
|
|
44
43
|
},
|
|
45
|
-
], children: _jsx(TrackSelectorIcon, {}) }), _jsx(CascadingMenuButton, { menuItems: [
|
|
44
|
+
], children: _jsx(TrackSelectorIcon, {}) }), _jsx(CascadingMenuButton, { menuItems: () => [
|
|
46
45
|
{
|
|
47
46
|
label: 'Row view menus',
|
|
48
47
|
type: 'subMenu',
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { getBpDisplayStr } from '@jbrowse/core/util';
|
|
3
|
+
import { makeStyles } from '@jbrowse/core/util/tss-react';
|
|
3
4
|
import { SearchBox } from '@jbrowse/plugin-linear-genome-view';
|
|
4
5
|
import { Typography } from '@mui/material';
|
|
5
6
|
import { observer } from 'mobx-react';
|
|
6
|
-
import { makeStyles } from 'tss-react/mui';
|
|
7
7
|
const useStyles = makeStyles()(() => ({
|
|
8
8
|
bp: {
|
|
9
9
|
display: 'flex',
|
|
@@ -14,7 +14,7 @@ const useStyles = makeStyles()(() => ({
|
|
|
14
14
|
display: 'flex',
|
|
15
15
|
},
|
|
16
16
|
}));
|
|
17
|
-
const HeaderSearchBoxes = observer(function ({ view, }) {
|
|
17
|
+
const HeaderSearchBoxes = observer(function HeaderSearchBoxes({ view, }) {
|
|
18
18
|
const { classes } = useStyles();
|
|
19
19
|
const { assemblyDisplayNames, coarseTotalBp } = view;
|
|
20
20
|
return (_jsxs("span", { className: classes.searchBox, children: [_jsx(SearchBox, { model: view, showHelp: false }), _jsxs(Typography, { variant: "body2", color: "textSecondary", className: classes.bp, children: [assemblyDisplayNames.join(','), " ", getBpDisplayStr(coarseTotalBp)] })] }));
|