@jbrowse/plugin-dotplot-view 2.6.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/LICENSE +201 -0
- package/dist/ComparativeRenderer/index.d.ts +27 -0
- package/dist/ComparativeRenderer/index.js +59 -0
- package/dist/ComparativeRenderer/index.js.map +1 -0
- package/dist/DotplotDisplay/components/DotplotDisplay.d.ts +8 -0
- package/dist/DotplotDisplay/components/DotplotDisplay.js +24 -0
- package/dist/DotplotDisplay/components/DotplotDisplay.js.map +1 -0
- package/dist/DotplotDisplay/index.d.ts +12 -0
- package/dist/DotplotDisplay/index.js +48 -0
- package/dist/DotplotDisplay/index.js.map +1 -0
- package/dist/DotplotDisplay/renderDotplotBlock.d.ts +11 -0
- package/dist/DotplotDisplay/renderDotplotBlock.js +57 -0
- package/dist/DotplotDisplay/renderDotplotBlock.js.map +1 -0
- package/dist/DotplotDisplay/stateModelFactory.d.ts +138 -0
- package/dist/DotplotDisplay/stateModelFactory.js +165 -0
- package/dist/DotplotDisplay/stateModelFactory.js.map +1 -0
- package/dist/DotplotReadVsRef/DotplotReadVsRef.d.ts +3 -0
- package/dist/DotplotReadVsRef/DotplotReadVsRef.js +102 -0
- package/dist/DotplotReadVsRef/DotplotReadVsRef.js.map +1 -0
- package/dist/DotplotReadVsRef/index.d.ts +2 -0
- package/dist/DotplotReadVsRef/index.js +42 -0
- package/dist/DotplotReadVsRef/index.js.map +1 -0
- package/dist/DotplotRenderer/ComparativeRenderRpc.d.ts +27 -0
- package/dist/DotplotRenderer/ComparativeRenderRpc.js +59 -0
- package/dist/DotplotRenderer/ComparativeRenderRpc.js.map +1 -0
- package/dist/DotplotRenderer/DotplotRenderer.d.ts +69 -0
- package/dist/DotplotRenderer/DotplotRenderer.js +274 -0
- package/dist/DotplotRenderer/DotplotRenderer.js.map +1 -0
- package/dist/DotplotRenderer/components/DotplotRendering.d.ts +5 -0
- package/dist/DotplotRenderer/components/DotplotRendering.js +13 -0
- package/dist/DotplotRenderer/components/DotplotRendering.js.map +1 -0
- package/dist/DotplotRenderer/configSchema.d.ts +61 -0
- package/dist/DotplotRenderer/configSchema.js +83 -0
- package/dist/DotplotRenderer/configSchema.js.map +1 -0
- package/dist/DotplotRenderer/index.d.ts +3 -0
- package/dist/DotplotRenderer/index.js +17 -0
- package/dist/DotplotRenderer/index.js.map +1 -0
- package/dist/DotplotView/1dview.d.ts +307 -0
- package/dist/DotplotView/1dview.js +95 -0
- package/dist/DotplotView/1dview.js.map +1 -0
- package/dist/DotplotView/blockTypes.d.ts +61 -0
- package/dist/DotplotView/blockTypes.js +117 -0
- package/dist/DotplotView/blockTypes.js.map +1 -0
- package/dist/DotplotView/components/Axes.d.ts +14 -0
- package/dist/DotplotView/components/Axes.js +127 -0
- package/dist/DotplotView/components/Axes.js.map +1 -0
- package/dist/DotplotView/components/CursorIcon.d.ts +4 -0
- package/dist/DotplotView/components/CursorIcon.js +19 -0
- package/dist/DotplotView/components/CursorIcon.js.map +1 -0
- package/dist/DotplotView/components/DotplotTooltip.d.ts +19 -0
- package/dist/DotplotView/components/DotplotTooltip.js +128 -0
- package/dist/DotplotView/components/DotplotTooltip.js.map +1 -0
- package/dist/DotplotView/components/DotplotView.d.ts +6 -0
- package/dist/DotplotView/components/DotplotView.js +272 -0
- package/dist/DotplotView/components/DotplotView.js.map +1 -0
- package/dist/DotplotView/components/DotplotWarnings.d.ts +6 -0
- package/dist/DotplotView/components/DotplotWarnings.js +40 -0
- package/dist/DotplotView/components/DotplotWarnings.js.map +1 -0
- package/dist/DotplotView/components/ExportSvgDialog.d.ts +8 -0
- package/dist/DotplotView/components/ExportSvgDialog.js +76 -0
- package/dist/DotplotView/components/ExportSvgDialog.js.map +1 -0
- package/dist/DotplotView/components/Grid.d.ts +10 -0
- package/dist/DotplotView/components/Grid.js +60 -0
- package/dist/DotplotView/components/Grid.js.map +1 -0
- package/dist/DotplotView/components/Header.d.ts +10 -0
- package/dist/DotplotView/components/Header.js +168 -0
- package/dist/DotplotView/components/Header.js.map +1 -0
- package/dist/DotplotView/components/ImportCustomTrack.d.ts +11 -0
- package/dist/DotplotView/components/ImportCustomTrack.js +180 -0
- package/dist/DotplotView/components/ImportCustomTrack.js.map +1 -0
- package/dist/DotplotView/components/ImportForm.d.ts +6 -0
- package/dist/DotplotView/components/ImportForm.js +121 -0
- package/dist/DotplotView/components/ImportForm.js.map +1 -0
- package/dist/DotplotView/components/ImportSyntenyTrackSelector.d.ts +9 -0
- package/dist/DotplotView/components/ImportSyntenyTrackSelector.js +69 -0
- package/dist/DotplotView/components/ImportSyntenyTrackSelector.js.map +1 -0
- package/dist/DotplotView/components/PanButtons.d.ts +6 -0
- package/dist/DotplotView/components/PanButtons.js +60 -0
- package/dist/DotplotView/components/PanButtons.js.map +1 -0
- package/dist/DotplotView/components/WarningDialog.d.ts +16 -0
- package/dist/DotplotView/components/WarningDialog.js +41 -0
- package/dist/DotplotView/components/WarningDialog.js.map +1 -0
- package/dist/DotplotView/components/util.d.ts +19 -0
- package/dist/DotplotView/components/util.js +90 -0
- package/dist/DotplotView/components/util.js.map +1 -0
- package/dist/DotplotView/index.d.ts +2 -0
- package/dist/DotplotView/index.js +44 -0
- package/dist/DotplotView/index.js.map +1 -0
- package/dist/DotplotView/model.d.ts +616 -0
- package/dist/DotplotView/model.js +647 -0
- package/dist/DotplotView/model.js.map +1 -0
- package/dist/DotplotView/svgcomponents/SVGBackground.d.ts +5 -0
- package/dist/DotplotView/svgcomponents/SVGBackground.js +13 -0
- package/dist/DotplotView/svgcomponents/SVGBackground.js.map +1 -0
- package/dist/DotplotView/svgcomponents/SVGDotplotView.d.ts +2 -0
- package/dist/DotplotView/svgcomponents/SVGDotplotView.js +47 -0
- package/dist/DotplotView/svgcomponents/SVGDotplotView.js.map +1 -0
- package/dist/LaunchDotplotView.d.ts +2 -0
- package/dist/LaunchDotplotView.js +45 -0
- package/dist/LaunchDotplotView.js.map +1 -0
- package/dist/ServerSideRenderedBlockContent.d.ts +12 -0
- package/dist/ServerSideRenderedBlockContent.js +87 -0
- package/dist/ServerSideRenderedBlockContent.js.map +1 -0
- package/dist/ServerSideSyntenyRendering.d.ts +23 -0
- package/dist/ServerSideSyntenyRendering.js +54 -0
- package/dist/ServerSideSyntenyRendering.js.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +44 -0
- package/dist/index.js.map +1 -0
- package/dist/util.d.ts +9 -0
- package/dist/util.js +9 -0
- package/dist/util.js.map +1 -0
- package/esm/ComparativeRenderer/index.d.ts +27 -0
- package/esm/ComparativeRenderer/index.js +53 -0
- package/esm/ComparativeRenderer/index.js.map +1 -0
- package/esm/DotplotDisplay/components/DotplotDisplay.d.ts +8 -0
- package/esm/DotplotDisplay/components/DotplotDisplay.js +19 -0
- package/esm/DotplotDisplay/components/DotplotDisplay.js.map +1 -0
- package/esm/DotplotDisplay/index.d.ts +12 -0
- package/esm/DotplotDisplay/index.js +41 -0
- package/esm/DotplotDisplay/index.js.map +1 -0
- package/esm/DotplotDisplay/renderDotplotBlock.d.ts +11 -0
- package/esm/DotplotDisplay/renderDotplotBlock.js +49 -0
- package/esm/DotplotDisplay/renderDotplotBlock.js.map +1 -0
- package/esm/DotplotDisplay/stateModelFactory.d.ts +138 -0
- package/esm/DotplotDisplay/stateModelFactory.js +158 -0
- package/esm/DotplotDisplay/stateModelFactory.js.map +1 -0
- package/esm/DotplotReadVsRef/DotplotReadVsRef.d.ts +3 -0
- package/esm/DotplotReadVsRef/DotplotReadVsRef.js +98 -0
- package/esm/DotplotReadVsRef/DotplotReadVsRef.js.map +1 -0
- package/esm/DotplotReadVsRef/index.d.ts +2 -0
- package/esm/DotplotReadVsRef/index.js +36 -0
- package/esm/DotplotReadVsRef/index.js.map +1 -0
- package/esm/DotplotRenderer/ComparativeRenderRpc.d.ts +27 -0
- package/esm/DotplotRenderer/ComparativeRenderRpc.js +53 -0
- package/esm/DotplotRenderer/ComparativeRenderRpc.js.map +1 -0
- package/esm/DotplotRenderer/DotplotRenderer.d.ts +69 -0
- package/esm/DotplotRenderer/DotplotRenderer.js +268 -0
- package/esm/DotplotRenderer/DotplotRenderer.js.map +1 -0
- package/esm/DotplotRenderer/components/DotplotRendering.d.ts +5 -0
- package/esm/DotplotRenderer/components/DotplotRendering.js +8 -0
- package/esm/DotplotRenderer/components/DotplotRendering.js.map +1 -0
- package/esm/DotplotRenderer/configSchema.d.ts +61 -0
- package/esm/DotplotRenderer/configSchema.js +81 -0
- package/esm/DotplotRenderer/configSchema.js.map +1 -0
- package/esm/DotplotRenderer/index.d.ts +3 -0
- package/esm/DotplotRenderer/index.js +12 -0
- package/esm/DotplotRenderer/index.js.map +1 -0
- package/esm/DotplotView/1dview.d.ts +307 -0
- package/esm/DotplotView/1dview.js +87 -0
- package/esm/DotplotView/1dview.js.map +1 -0
- package/esm/DotplotView/blockTypes.d.ts +61 -0
- package/esm/DotplotView/blockTypes.js +109 -0
- package/esm/DotplotView/blockTypes.js.map +1 -0
- package/esm/DotplotView/components/Axes.d.ts +14 -0
- package/esm/DotplotView/components/Axes.js +121 -0
- package/esm/DotplotView/components/Axes.js.map +1 -0
- package/esm/DotplotView/components/CursorIcon.d.ts +4 -0
- package/esm/DotplotView/components/CursorIcon.js +11 -0
- package/esm/DotplotView/components/CursorIcon.js.map +1 -0
- package/esm/DotplotView/components/DotplotTooltip.d.ts +19 -0
- package/esm/DotplotView/components/DotplotTooltip.js +101 -0
- package/esm/DotplotView/components/DotplotTooltip.js.map +1 -0
- package/esm/DotplotView/components/DotplotView.d.ts +6 -0
- package/esm/DotplotView/components/DotplotView.js +244 -0
- package/esm/DotplotView/components/DotplotView.js.map +1 -0
- package/esm/DotplotView/components/DotplotWarnings.d.ts +6 -0
- package/esm/DotplotView/components/DotplotWarnings.js +15 -0
- package/esm/DotplotView/components/DotplotWarnings.js.map +1 -0
- package/esm/DotplotView/components/ExportSvgDialog.d.ts +8 -0
- package/esm/DotplotView/components/ExportSvgDialog.js +50 -0
- package/esm/DotplotView/components/ExportSvgDialog.js.map +1 -0
- package/esm/DotplotView/components/Grid.d.ts +10 -0
- package/esm/DotplotView/components/Grid.js +53 -0
- package/esm/DotplotView/components/Grid.js.map +1 -0
- package/esm/DotplotView/components/Header.d.ts +10 -0
- package/esm/DotplotView/components/Header.js +140 -0
- package/esm/DotplotView/components/Header.js.map +1 -0
- package/esm/DotplotView/components/ImportCustomTrack.d.ts +11 -0
- package/esm/DotplotView/components/ImportCustomTrack.js +152 -0
- package/esm/DotplotView/components/ImportCustomTrack.js.map +1 -0
- package/esm/DotplotView/components/ImportForm.d.ts +6 -0
- package/esm/DotplotView/components/ImportForm.js +93 -0
- package/esm/DotplotView/components/ImportForm.js.map +1 -0
- package/esm/DotplotView/components/ImportSyntenyTrackSelector.d.ts +9 -0
- package/esm/DotplotView/components/ImportSyntenyTrackSelector.js +44 -0
- package/esm/DotplotView/components/ImportSyntenyTrackSelector.js.map +1 -0
- package/esm/DotplotView/components/PanButtons.d.ts +6 -0
- package/esm/DotplotView/components/PanButtons.js +55 -0
- package/esm/DotplotView/components/PanButtons.js.map +1 -0
- package/esm/DotplotView/components/WarningDialog.d.ts +16 -0
- package/esm/DotplotView/components/WarningDialog.js +36 -0
- package/esm/DotplotView/components/WarningDialog.js.map +1 -0
- package/esm/DotplotView/components/util.d.ts +19 -0
- package/esm/DotplotView/components/util.js +83 -0
- package/esm/DotplotView/components/util.js.map +1 -0
- package/esm/DotplotView/index.d.ts +2 -0
- package/esm/DotplotView/index.js +15 -0
- package/esm/DotplotView/index.js.map +1 -0
- package/esm/DotplotView/model.d.ts +616 -0
- package/esm/DotplotView/model.js +616 -0
- package/esm/DotplotView/model.js.map +1 -0
- package/esm/DotplotView/svgcomponents/SVGBackground.d.ts +5 -0
- package/esm/DotplotView/svgcomponents/SVGBackground.js +7 -0
- package/esm/DotplotView/svgcomponents/SVGBackground.js.map +1 -0
- package/esm/DotplotView/svgcomponents/SVGDotplotView.d.ts +2 -0
- package/esm/DotplotView/svgcomponents/SVGDotplotView.js +40 -0
- package/esm/DotplotView/svgcomponents/SVGDotplotView.js.map +1 -0
- package/esm/LaunchDotplotView.d.ts +2 -0
- package/esm/LaunchDotplotView.js +42 -0
- package/esm/LaunchDotplotView.js.map +1 -0
- package/esm/ServerSideRenderedBlockContent.d.ts +12 -0
- package/esm/ServerSideRenderedBlockContent.js +62 -0
- package/esm/ServerSideRenderedBlockContent.js.map +1 -0
- package/esm/ServerSideSyntenyRendering.d.ts +23 -0
- package/esm/ServerSideSyntenyRendering.js +29 -0
- package/esm/ServerSideSyntenyRendering.js.map +1 -0
- package/esm/index.d.ts +7 -0
- package/esm/index.js +38 -0
- package/esm/index.js.map +1 -0
- package/esm/util.d.ts +9 -0
- package/esm/util.js +5 -0
- package/esm/util.js.map +1 -0
- package/package.json +69 -0
- package/src/ComparativeRenderer/index.ts +87 -0
- package/src/DotplotDisplay/components/DotplotDisplay.tsx +34 -0
- package/src/DotplotDisplay/index.ts +48 -0
- package/src/DotplotDisplay/renderDotplotBlock.ts +60 -0
- package/src/DotplotDisplay/stateModelFactory.tsx +196 -0
- package/src/DotplotReadVsRef/DotplotReadVsRef.ts +115 -0
- package/src/DotplotReadVsRef/index.ts +50 -0
- package/src/DotplotRenderer/ComparativeRenderRpc.ts +87 -0
- package/src/DotplotRenderer/DotplotRenderer.ts +328 -0
- package/src/DotplotRenderer/__image_snapshots__/linear-synteny-renderer-test-ts-test-rendering-a-simple-synteny-from-fake-data-1-snap.png +0 -0
- package/src/DotplotRenderer/components/DotplotRendering.tsx +12 -0
- package/src/DotplotRenderer/configSchema.ts +92 -0
- package/src/DotplotRenderer/index.ts +16 -0
- package/src/DotplotView/1dview.ts +98 -0
- package/src/DotplotView/blockTypes.ts +140 -0
- package/src/DotplotView/components/Axes.tsx +246 -0
- package/src/DotplotView/components/CursorIcon.tsx +24 -0
- package/src/DotplotView/components/DotplotTooltip.tsx +163 -0
- package/src/DotplotView/components/DotplotView.tsx +348 -0
- package/src/DotplotView/components/DotplotWarnings.tsx +26 -0
- package/src/DotplotView/components/ExportSvgDialog.tsx +129 -0
- package/src/DotplotView/components/Grid.tsx +112 -0
- package/src/DotplotView/components/Header.tsx +182 -0
- package/src/DotplotView/components/ImportCustomTrack.tsx +262 -0
- package/src/DotplotView/components/ImportForm.tsx +209 -0
- package/src/DotplotView/components/ImportSyntenyTrackSelector.tsx +90 -0
- package/src/DotplotView/components/PanButtons.tsx +93 -0
- package/src/DotplotView/components/WarningDialog.tsx +74 -0
- package/src/DotplotView/components/util.ts +118 -0
- package/src/DotplotView/index.ts +16 -0
- package/src/DotplotView/model.test.ts +17 -0
- package/src/DotplotView/model.ts +719 -0
- package/src/DotplotView/svgcomponents/SVGBackground.tsx +21 -0
- package/src/DotplotView/svgcomponents/SVGDotplotView.tsx +68 -0
- package/src/LaunchDotplotView.ts +63 -0
- package/src/ServerSideRenderedBlockContent.tsx +86 -0
- package/src/ServerSideSyntenyRendering.tsx +54 -0
- package/src/index.ts +41 -0
- package/src/util.ts +14 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import clone from 'clone';
|
|
2
|
+
import { readConfObject } from '@jbrowse/core/configuration';
|
|
3
|
+
import { getRpcSessionId } from '@jbrowse/core/util/tracks';
|
|
4
|
+
import { getSnapshot } from 'mobx-state-tree';
|
|
5
|
+
import { getContainingView, getSession } from '@jbrowse/core/util';
|
|
6
|
+
export function renderBlockData(self) {
|
|
7
|
+
const { rpcManager } = getSession(self);
|
|
8
|
+
const { rendererType } = self;
|
|
9
|
+
const { adapterConfig } = self;
|
|
10
|
+
const parent = getContainingView(self);
|
|
11
|
+
// Alternative to readConfObject(config) is below used because renderProps is
|
|
12
|
+
// something under our control. Compare to serverSideRenderedBlock
|
|
13
|
+
readConfObject(self.configuration);
|
|
14
|
+
getSnapshot(parent);
|
|
15
|
+
if (parent.initialized) {
|
|
16
|
+
const { viewWidth, viewHeight, borderSize, borderX, borderY } = parent;
|
|
17
|
+
return {
|
|
18
|
+
rendererType,
|
|
19
|
+
rpcManager,
|
|
20
|
+
renderProps: {
|
|
21
|
+
...self.renderProps(),
|
|
22
|
+
view: clone(getSnapshot(parent)),
|
|
23
|
+
width: viewWidth,
|
|
24
|
+
height: viewHeight,
|
|
25
|
+
borderSize,
|
|
26
|
+
borderX,
|
|
27
|
+
borderY,
|
|
28
|
+
adapterConfig,
|
|
29
|
+
rendererType: rendererType.name,
|
|
30
|
+
sessionId: getRpcSessionId(self),
|
|
31
|
+
timeout: 1000000, // 10000,
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
return undefined;
|
|
36
|
+
}
|
|
37
|
+
export async function renderBlockEffect(props) {
|
|
38
|
+
if (!props) {
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
const { rendererType, rpcManager, renderProps } = props;
|
|
42
|
+
const { reactElement, ...data } = await rendererType.renderInClient(rpcManager, renderProps);
|
|
43
|
+
return {
|
|
44
|
+
reactElement,
|
|
45
|
+
data,
|
|
46
|
+
renderingComponent: rendererType.ReactComponent,
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=renderDotplotBlock.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderDotplotBlock.js","sourceRoot":"","sources":["../../src/DotplotDisplay/renderDotplotBlock.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAA;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAC3D,OAAO,EAAE,WAAW,EAAqB,MAAM,iBAAiB,CAAA;AAChE,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAIlE,MAAM,UAAU,eAAe,CAAC,IAAuB;IACrD,MAAM,EAAE,UAAU,EAAE,GAAG,UAAU,CAAC,IAAI,CAAC,CAAA;IACvC,MAAM,EAAE,YAAY,EAAE,GAAG,IAA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ThemeOptions } from '@mui/material';
|
|
3
|
+
import { Instance } from 'mobx-state-tree';
|
|
4
|
+
import { AnyConfigurationSchemaType } from '@jbrowse/core/configuration';
|
|
5
|
+
import { ExportSvgOptions } from '../DotplotView/model';
|
|
6
|
+
/**
|
|
7
|
+
* #stateModel DotplotDisplay
|
|
8
|
+
* #category display
|
|
9
|
+
*/
|
|
10
|
+
export declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): import("mobx-state-tree").IModelType<{
|
|
11
|
+
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
12
|
+
type: import("mobx-state-tree").ISimpleType<string>;
|
|
13
|
+
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
14
|
+
} & {
|
|
15
|
+
/**
|
|
16
|
+
* #property
|
|
17
|
+
*/
|
|
18
|
+
type: import("mobx-state-tree").ISimpleType<"DotplotDisplay">;
|
|
19
|
+
/**
|
|
20
|
+
* #property
|
|
21
|
+
*/
|
|
22
|
+
configuration: AnyConfigurationSchemaType;
|
|
23
|
+
}, {
|
|
24
|
+
rendererTypeName: string;
|
|
25
|
+
error: unknown;
|
|
26
|
+
message: string | undefined;
|
|
27
|
+
} & {
|
|
28
|
+
readonly RenderingComponent: React.FC<{
|
|
29
|
+
model: {
|
|
30
|
+
id: string;
|
|
31
|
+
type: string;
|
|
32
|
+
rpcDriverName: string | undefined;
|
|
33
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
34
|
+
rendererTypeName: string;
|
|
35
|
+
error: unknown;
|
|
36
|
+
message: string | undefined; /**
|
|
37
|
+
* #property
|
|
38
|
+
*/
|
|
39
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
40
|
+
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
41
|
+
type: import("mobx-state-tree").ISimpleType<string>;
|
|
42
|
+
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
43
|
+
}, {
|
|
44
|
+
rendererTypeName: string;
|
|
45
|
+
error: unknown;
|
|
46
|
+
message: string | undefined;
|
|
47
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
48
|
+
onHorizontalScroll?: Function | undefined;
|
|
49
|
+
blockState?: Record<string, any> | undefined;
|
|
50
|
+
}>;
|
|
51
|
+
readonly DisplayBlurb: React.FC<{
|
|
52
|
+
model: {
|
|
53
|
+
id: string;
|
|
54
|
+
type: string;
|
|
55
|
+
rpcDriverName: string | undefined;
|
|
56
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
57
|
+
rendererTypeName: string;
|
|
58
|
+
error: unknown;
|
|
59
|
+
message: string | undefined;
|
|
60
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
61
|
+
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
62
|
+
type: import("mobx-state-tree").ISimpleType<string>;
|
|
63
|
+
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
64
|
+
}, {
|
|
65
|
+
rendererTypeName: string;
|
|
66
|
+
error: unknown;
|
|
67
|
+
message: string | undefined;
|
|
68
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
69
|
+
}> | null;
|
|
70
|
+
readonly adapterConfig: any;
|
|
71
|
+
readonly parentTrack: any;
|
|
72
|
+
renderProps(): any;
|
|
73
|
+
readonly rendererType: import("@jbrowse/core/pluggableElementTypes").RendererType;
|
|
74
|
+
readonly DisplayMessageComponent: React.FC<any> | undefined;
|
|
75
|
+
trackMenuItems(): import("@jbrowse/core/ui").MenuItem[]; /**
|
|
76
|
+
* #action
|
|
77
|
+
*/
|
|
78
|
+
readonly viewMenuActions: import("@jbrowse/core/ui").MenuItem[];
|
|
79
|
+
regionCannotBeRendered(): null;
|
|
80
|
+
} & {
|
|
81
|
+
setMessage(arg?: string | undefined): void;
|
|
82
|
+
setError(error?: unknown): void;
|
|
83
|
+
setRpcDriverName(rpcDriverName: string): void;
|
|
84
|
+
reload(): void;
|
|
85
|
+
} & {
|
|
86
|
+
warnings: {
|
|
87
|
+
message: string;
|
|
88
|
+
effect: string;
|
|
89
|
+
}[];
|
|
90
|
+
renderInProgress: AbortController | undefined;
|
|
91
|
+
filled: boolean;
|
|
92
|
+
data: any;
|
|
93
|
+
reactElement: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
|
94
|
+
message: string | undefined;
|
|
95
|
+
renderingComponent: any;
|
|
96
|
+
ReactComponent2: React.FC<any>;
|
|
97
|
+
} & {
|
|
98
|
+
readonly shouldDisplay: boolean;
|
|
99
|
+
/**
|
|
100
|
+
* #getter
|
|
101
|
+
*/
|
|
102
|
+
readonly rendererTypeName: any;
|
|
103
|
+
/**
|
|
104
|
+
* #method
|
|
105
|
+
*/
|
|
106
|
+
renderProps(): any;
|
|
107
|
+
} & {
|
|
108
|
+
/**
|
|
109
|
+
* #method
|
|
110
|
+
*/
|
|
111
|
+
renderSvg(opts: ExportSvgOptions & {
|
|
112
|
+
theme: ThemeOptions;
|
|
113
|
+
}): Promise<React.JSX.Element | null>;
|
|
114
|
+
} & {
|
|
115
|
+
afterAttach(): void;
|
|
116
|
+
/**
|
|
117
|
+
* #action
|
|
118
|
+
*/
|
|
119
|
+
setLoading(abortController: AbortController): void;
|
|
120
|
+
/**
|
|
121
|
+
* #action
|
|
122
|
+
*/
|
|
123
|
+
setMessage(messageText: string): void;
|
|
124
|
+
/**
|
|
125
|
+
* #action
|
|
126
|
+
*/
|
|
127
|
+
setRendered(args?: {
|
|
128
|
+
data: any;
|
|
129
|
+
reactElement: React.ReactElement;
|
|
130
|
+
renderingComponent: React.Component;
|
|
131
|
+
}): void;
|
|
132
|
+
/**
|
|
133
|
+
* #action
|
|
134
|
+
*/
|
|
135
|
+
setError(error: unknown): void;
|
|
136
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
137
|
+
export type DotplotDisplayStateModel = ReturnType<typeof stateModelFactory>;
|
|
138
|
+
export type DotplotDisplayModel = Instance<DotplotDisplayStateModel>;
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { types } from 'mobx-state-tree';
|
|
4
|
+
import { getConf, ConfigurationReference, } from '@jbrowse/core/configuration';
|
|
5
|
+
import { getParentRenderProps } from '@jbrowse/core/util/tracks';
|
|
6
|
+
import { getContainingView, makeAbortableReaction, ReactRendering, } from '@jbrowse/core/util';
|
|
7
|
+
import { BaseDisplay } from '@jbrowse/core/pluggableElementTypes/models';
|
|
8
|
+
// locals
|
|
9
|
+
import ServerSideRenderedBlockContent from '../ServerSideRenderedBlockContent';
|
|
10
|
+
import { renderBlockData, renderBlockEffect } from './renderDotplotBlock';
|
|
11
|
+
/**
|
|
12
|
+
* #stateModel DotplotDisplay
|
|
13
|
+
* #category display
|
|
14
|
+
*/
|
|
15
|
+
export function stateModelFactory(configSchema) {
|
|
16
|
+
return types
|
|
17
|
+
.compose('DotplotDisplay', BaseDisplay, types
|
|
18
|
+
.model({
|
|
19
|
+
/**
|
|
20
|
+
* #property
|
|
21
|
+
*/
|
|
22
|
+
type: types.literal('DotplotDisplay'),
|
|
23
|
+
/**
|
|
24
|
+
* #property
|
|
25
|
+
*/
|
|
26
|
+
configuration: ConfigurationReference(configSchema),
|
|
27
|
+
})
|
|
28
|
+
.volatile(() => ({
|
|
29
|
+
warnings: [],
|
|
30
|
+
renderInProgress: undefined,
|
|
31
|
+
filled: false,
|
|
32
|
+
data: undefined,
|
|
33
|
+
reactElement: undefined,
|
|
34
|
+
message: undefined,
|
|
35
|
+
renderingComponent: undefined,
|
|
36
|
+
ReactComponent2: ServerSideRenderedBlockContent,
|
|
37
|
+
})))
|
|
38
|
+
.views(self => ({
|
|
39
|
+
get shouldDisplay() {
|
|
40
|
+
const view = getContainingView(self);
|
|
41
|
+
return (view.vview.bpPerPx === self.data.bpPerPxY &&
|
|
42
|
+
view.hview.bpPerPx === self.data.bpPerPxX);
|
|
43
|
+
},
|
|
44
|
+
/**
|
|
45
|
+
* #getter
|
|
46
|
+
*/
|
|
47
|
+
get rendererTypeName() {
|
|
48
|
+
return getConf(self, ['renderer', 'type']);
|
|
49
|
+
},
|
|
50
|
+
/**
|
|
51
|
+
* #method
|
|
52
|
+
*/
|
|
53
|
+
renderProps() {
|
|
54
|
+
return {
|
|
55
|
+
...getParentRenderProps(self),
|
|
56
|
+
rpcDriverName: self.rpcDriverName,
|
|
57
|
+
displayModel: self,
|
|
58
|
+
config: self.configuration.renderer,
|
|
59
|
+
};
|
|
60
|
+
},
|
|
61
|
+
}))
|
|
62
|
+
.views(self => ({
|
|
63
|
+
/**
|
|
64
|
+
* #method
|
|
65
|
+
*/
|
|
66
|
+
async renderSvg(opts) {
|
|
67
|
+
const props = renderBlockData(self);
|
|
68
|
+
if (!props) {
|
|
69
|
+
return null;
|
|
70
|
+
}
|
|
71
|
+
const { rendererType, rpcManager, renderProps } = props;
|
|
72
|
+
const rendering = await rendererType.renderInClient(rpcManager, {
|
|
73
|
+
...renderProps,
|
|
74
|
+
exportSVG: opts,
|
|
75
|
+
theme: opts.theme || renderProps.theme,
|
|
76
|
+
});
|
|
77
|
+
const { hview, vview } = getContainingView(self);
|
|
78
|
+
const offX = -hview.offsetPx + rendering.offsetX;
|
|
79
|
+
const offY = -vview.offsetPx + rendering.offsetY;
|
|
80
|
+
return (React.createElement("g", { transform: `translate(${offX} ${-offY})` },
|
|
81
|
+
React.createElement(ReactRendering, { rendering: rendering })));
|
|
82
|
+
},
|
|
83
|
+
}))
|
|
84
|
+
.actions(self => {
|
|
85
|
+
let renderInProgress;
|
|
86
|
+
return {
|
|
87
|
+
afterAttach() {
|
|
88
|
+
makeAbortableReaction(self, () => renderBlockData(self), blockData => renderBlockEffect(blockData), {
|
|
89
|
+
name: `${self.type} ${self.id} rendering`,
|
|
90
|
+
delay: 500,
|
|
91
|
+
fireImmediately: true,
|
|
92
|
+
}, this.setLoading, this.setRendered, this.setError);
|
|
93
|
+
},
|
|
94
|
+
/**
|
|
95
|
+
* #action
|
|
96
|
+
*/
|
|
97
|
+
setLoading(abortController) {
|
|
98
|
+
self.filled = false;
|
|
99
|
+
self.message = undefined;
|
|
100
|
+
self.reactElement = undefined;
|
|
101
|
+
self.data = undefined;
|
|
102
|
+
self.error = undefined;
|
|
103
|
+
self.renderingComponent = undefined;
|
|
104
|
+
renderInProgress = abortController;
|
|
105
|
+
},
|
|
106
|
+
/**
|
|
107
|
+
* #action
|
|
108
|
+
*/
|
|
109
|
+
setMessage(messageText) {
|
|
110
|
+
if (renderInProgress && !renderInProgress.signal.aborted) {
|
|
111
|
+
renderInProgress.abort();
|
|
112
|
+
}
|
|
113
|
+
self.filled = false;
|
|
114
|
+
self.message = messageText;
|
|
115
|
+
self.reactElement = undefined;
|
|
116
|
+
self.data = undefined;
|
|
117
|
+
self.error = undefined;
|
|
118
|
+
self.renderingComponent = undefined;
|
|
119
|
+
renderInProgress = undefined;
|
|
120
|
+
},
|
|
121
|
+
/**
|
|
122
|
+
* #action
|
|
123
|
+
*/
|
|
124
|
+
setRendered(args) {
|
|
125
|
+
if (args === undefined) {
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
const { data, reactElement, renderingComponent } = args;
|
|
129
|
+
self.warnings = data.warnings;
|
|
130
|
+
self.filled = true;
|
|
131
|
+
self.message = undefined;
|
|
132
|
+
self.reactElement = reactElement;
|
|
133
|
+
self.data = data;
|
|
134
|
+
self.error = undefined;
|
|
135
|
+
self.renderingComponent = renderingComponent;
|
|
136
|
+
renderInProgress = undefined;
|
|
137
|
+
},
|
|
138
|
+
/**
|
|
139
|
+
* #action
|
|
140
|
+
*/
|
|
141
|
+
setError(error) {
|
|
142
|
+
console.error(error);
|
|
143
|
+
if (renderInProgress && !renderInProgress.signal.aborted) {
|
|
144
|
+
renderInProgress.abort();
|
|
145
|
+
}
|
|
146
|
+
// the rendering failed for some reason
|
|
147
|
+
self.filled = false;
|
|
148
|
+
self.message = undefined;
|
|
149
|
+
self.reactElement = undefined;
|
|
150
|
+
self.data = undefined;
|
|
151
|
+
self.error = error;
|
|
152
|
+
self.renderingComponent = undefined;
|
|
153
|
+
renderInProgress = undefined;
|
|
154
|
+
},
|
|
155
|
+
};
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
//# sourceMappingURL=stateModelFactory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stateModelFactory.js","sourceRoot":"","sources":["../../src/DotplotDisplay/stateModelFactory.tsx"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,KAAK,EAAY,MAAM,iBAAiB,CAAA;AACjD,OAAO,EACL,OAAO,EACP,sBAAsB,GAEvB,MAAM,6BAA6B,CAAA;AACpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAChE,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,cAAc,GACf,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAA;AAExE,SAAS;AACT,OAAO,8BAA8B,MAAM,mCAAmC,CAAA;AAC9E,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AAGzE;;;GAGG;AACH,MAAM,UAAU,iBAAiB,CAAC,YAAwC;IACxE,OAAO,KAAK;SACT,OAAO,CACN,gBAAgB,EAChB,WAAW,EACX,KAAK;SACF,KAAK,CAAC;QACL;;WAEG;QACH,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,gBAAgB,CAAC;QACrC;;WAEG;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,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;gBACpB,IAAI,gBAAgB,IAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC,OAAO,EAAE;oBACxD,gBAAgB,CAAC,KAAK,EAAE,CAAA;iBACzB;gBACD,uCAAuC;gBACvC,IAAI,CAAC,MAAM,GAAG,KAAK,CAAA;gBACnB,IAAI,CAAC,OAAO,GAAG,SAAS,CAAA;gBACxB,IAAI,CAAC,YAAY,GAAG,SAAS,CAAA;gBAC7B,IAAI,CAAC,IAAI,GAAG,SAAS,CAAA;gBACrB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;gBAClB,IAAI,CAAC,kBAAkB,GAAG,SAAS,CAAA;gBACnC,gBAAgB,GAAG,SAAS,CAAA;YAC9B,CAAC;SACF,CAAA;IACH,CAAC,CAAC,CAAA;AACN,CAAC"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { getConf } from '@jbrowse/core/configuration';
|
|
2
|
+
import { getSession, gatherOverlaps } from '@jbrowse/core/util';
|
|
3
|
+
import { MismatchParser, } from '@jbrowse/plugin-alignments';
|
|
4
|
+
const { featurizeSA, getClip, getTag, getLength, getLengthSansClipping } = MismatchParser;
|
|
5
|
+
export function onClick(feature, self) {
|
|
6
|
+
const session = getSession(self);
|
|
7
|
+
try {
|
|
8
|
+
const cigar = feature.get('CIGAR');
|
|
9
|
+
const clipPos = getClip(cigar, 1);
|
|
10
|
+
const flags = feature.get('flags');
|
|
11
|
+
const strand = feature.get('strand');
|
|
12
|
+
const readName = feature.get('name');
|
|
13
|
+
const readAssembly = `${readName}_assembly_${Date.now()}`;
|
|
14
|
+
const { parentTrack } = self;
|
|
15
|
+
const [trackAssembly] = getConf(parentTrack, 'assemblyNames');
|
|
16
|
+
const assemblyNames = [trackAssembly, readAssembly];
|
|
17
|
+
const trackId = `track-${Date.now()}`;
|
|
18
|
+
const trackName = `${readName}_vs_${trackAssembly}`;
|
|
19
|
+
const SA = getTag(feature, 'SA') || '';
|
|
20
|
+
const SA2 = featurizeSA(SA, feature.id(), strand, readName, true);
|
|
21
|
+
const feat = feature.toJSON();
|
|
22
|
+
feat.strand = 1;
|
|
23
|
+
feat.mate = {
|
|
24
|
+
refName: readName,
|
|
25
|
+
start: clipPos,
|
|
26
|
+
end: clipPos + getLengthSansClipping(cigar),
|
|
27
|
+
};
|
|
28
|
+
// if secondary alignment or supplementary, calculate length from SA[0]'s
|
|
29
|
+
// CIGAR which is the primary alignments. otherwise it is the primary
|
|
30
|
+
// alignment just use seq.length if primary alignment
|
|
31
|
+
const totalLength = getLength(flags & 2048 ? SA2[0].CIGAR : cigar);
|
|
32
|
+
const features = [feat, ...SA2];
|
|
33
|
+
features.sort((a, b) => a.clipPos - b.clipPos);
|
|
34
|
+
const refLength = features.reduce((a, f) => a + f.end - f.start, 0);
|
|
35
|
+
session.addView('DotplotView', {
|
|
36
|
+
type: 'DotplotView',
|
|
37
|
+
hview: {
|
|
38
|
+
offsetPx: 0,
|
|
39
|
+
bpPerPx: refLength / 800,
|
|
40
|
+
displayedRegions: gatherOverlaps(features.map((f, index) => {
|
|
41
|
+
const { start, end, refName } = f;
|
|
42
|
+
return {
|
|
43
|
+
start,
|
|
44
|
+
end,
|
|
45
|
+
refName,
|
|
46
|
+
index,
|
|
47
|
+
assemblyName: trackAssembly,
|
|
48
|
+
};
|
|
49
|
+
})),
|
|
50
|
+
},
|
|
51
|
+
vview: {
|
|
52
|
+
offsetPx: 0,
|
|
53
|
+
bpPerPx: totalLength / 400,
|
|
54
|
+
minimumBlockWidth: 0,
|
|
55
|
+
interRegionPaddingWidth: 0,
|
|
56
|
+
displayedRegions: [
|
|
57
|
+
{
|
|
58
|
+
assemblyName: readAssembly,
|
|
59
|
+
start: 0,
|
|
60
|
+
end: totalLength,
|
|
61
|
+
refName: readName,
|
|
62
|
+
},
|
|
63
|
+
],
|
|
64
|
+
},
|
|
65
|
+
viewTrackConfigs: [
|
|
66
|
+
{
|
|
67
|
+
type: 'SyntenyTrack',
|
|
68
|
+
assemblyNames,
|
|
69
|
+
adapter: {
|
|
70
|
+
type: 'FromConfigAdapter',
|
|
71
|
+
features,
|
|
72
|
+
},
|
|
73
|
+
trackId,
|
|
74
|
+
name: trackName,
|
|
75
|
+
},
|
|
76
|
+
],
|
|
77
|
+
assemblyNames,
|
|
78
|
+
tracks: [
|
|
79
|
+
{
|
|
80
|
+
configuration: trackId,
|
|
81
|
+
type: 'SyntenyTrack',
|
|
82
|
+
displays: [
|
|
83
|
+
{
|
|
84
|
+
type: 'DotplotDisplay',
|
|
85
|
+
configuration: `${trackId}-DotplotDisplay`,
|
|
86
|
+
},
|
|
87
|
+
],
|
|
88
|
+
},
|
|
89
|
+
],
|
|
90
|
+
displayName: `${readName} vs ${trackAssembly}`,
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
catch (e) {
|
|
94
|
+
console.error(e);
|
|
95
|
+
session.notify(`${e}`, 'error');
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
//# sourceMappingURL=DotplotReadVsRef.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DotplotReadVsRef.js","sourceRoot":"","sources":["../../src/DotplotReadVsRef/DotplotReadVsRef.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAA;AACrD,OAAO,EAAE,UAAU,EAAW,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACxE,OAAO,EAEL,cAAc,GACf,MAAM,4BAA4B,CAAA;AAKnC,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,qBAAqB,EAAE,GACtE,cAAc,CAAA;AAEhB,MAAM,UAAU,OAAO,CAAC,OAAgB,EAAE,IAA8B;IACtE,MAAM,OAAO,GAAG,UAAU,CAAC,IAAI,CAAC,CAAA;IAChC,IAAI;QACF,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAA;QAClC,MAA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BACP,IAAI,EAAE,mBAAmB;wBACzB,QAAQ;qBACT;oBACD,OAAO;oBACP,IAAI,EAAE,SAAS;iBAChB;aACF;YACD,aAAa;YACb,MAAM,EAAE;gBACN;oBACE,aAAa,EAAE,OAAO;oBACtB,IAAI,EAAE,cAAc;oBACpB,QAAQ,EAAE;wBACR;4BACE,IAAI,EAAE,gBAAgB;4BACtB,aAAa,EAAE,GAAG,OAAO,iBAAiB;yBAC3C;qBACF;iBACF;aACF;YAED,WAAW,EAAE,GAAG,QAAQ,OAAO,aAAa,EAAE;SAC/C,CAAC,CAAA;KACH;IAAC,OAAO,CAAC,EAAE;QACV,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;QAChB,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,EAAE,OAAO,CAAC,CAAA;KAChC;AACH,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// icons
|
|
2
|
+
import AddIcon from '@mui/icons-material/Add';
|
|
3
|
+
// local
|
|
4
|
+
import { onClick } from './DotplotReadVsRef';
|
|
5
|
+
export default function DotplotReadVsRefMenuItem(pluginManager) {
|
|
6
|
+
pluginManager.addToExtensionPoint('Core-extendPluggableElement', (pluggableElement) => {
|
|
7
|
+
if (pluggableElement.name === 'LinearPileupDisplay') {
|
|
8
|
+
const { stateModel } = pluggableElement;
|
|
9
|
+
const newStateModel = stateModel.extend((self) => {
|
|
10
|
+
const superContextMenuItems = self.contextMenuItems;
|
|
11
|
+
return {
|
|
12
|
+
views: {
|
|
13
|
+
contextMenuItems() {
|
|
14
|
+
const feature = self.contextMenuFeature;
|
|
15
|
+
return [
|
|
16
|
+
...superContextMenuItems(),
|
|
17
|
+
...(feature
|
|
18
|
+
? [
|
|
19
|
+
{
|
|
20
|
+
label: 'Dotplot of read vs ref',
|
|
21
|
+
icon: AddIcon,
|
|
22
|
+
onClick: () => onClick(feature, self),
|
|
23
|
+
},
|
|
24
|
+
]
|
|
25
|
+
: []),
|
|
26
|
+
];
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
});
|
|
31
|
+
pluggableElement.stateModel = newStateModel;
|
|
32
|
+
}
|
|
33
|
+
return pluggableElement;
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/DotplotReadVsRef/index.ts"],"names":[],"mappings":"AAOA,QAAQ;AACR,OAAO,OAAO,MAAM,yBAAyB,CAAA;AAE7C,QAAQ;AACR,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA;AAE5C,MAAM,CAAC,OAAO,UAAU,wBAAwB,CAAC,aAA4B;IAC3E,aAAa,CAAC,mBAAmB,CAC/B,6BAA6B,EAC7B,CAAC,gBAAsC,EAAE,EAAE;QACzC,IAAI,gBAAgB,CAAC,IAAI,KAAK,qBAAqB,EAAE;YACnD,MAAM,EAAE,UAAU,EAAE,GAAG,gBAA4B,CAAA;YACnD,MAAM,aAAa,GAAG,UAAU,CAAC,MAAM,CACrC,CAAC,IAA8B,EAAE,EAAE;gBACjC,MAAM,qBAAqB,GAAG,IAAI,CAAC,gBAAgB,CAAA;gBACnD,OAAO;oBACL,KAAK,EAAE;wBACL,gBAAgB;4BACd,MAAM,OAAO,GAAG,IAAI,CAAC,kBAAkB,CAAA;4BACvC,OAAO;gCACL,GAAG,qBAAqB,EAAE;gCAC1B,GAAG,CAAC,OAAO;oCACT,CAAC,CAAC;wCACE;4CACE,KAAK,EAAE,wBAAwB;4CAC/B,IAAI,EAAE,OAAO;4CACb,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC;yCACtC;qCACF;oCACH,CAAC,CAAC,EAAE,CAAC;6BACR,CAAA;wBACH,CAAC;qBACF;iBACF,CAAA;YACH,CAAC,CACF,CAEA;YAAC,gBAA6B,CAAC,UAAU,GAAG,aAAa,CAAA;SAC3D;QACD,OAAO,gBAAgB,CAAA;IACzB,CAAC,CACF,CAAA;AACH,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import RpcMethodType from '@jbrowse/core/pluggableElementTypes/RpcMethodType';
|
|
2
|
+
import ComparativeRenderer, { RenderArgs as ComparativeRenderArgs, RenderArgsSerialized as ComparativeRenderArgsSerialized, RenderResults, ResultsSerialized } from '@jbrowse/core/pluggableElementTypes/renderers/ComparativeServerSideRendererType';
|
|
3
|
+
import { RemoteAbortSignal } from '@jbrowse/core/rpc/remoteAbortSignals';
|
|
4
|
+
interface RenderArgs extends ComparativeRenderArgs {
|
|
5
|
+
adapterConfig: {};
|
|
6
|
+
rendererType: string;
|
|
7
|
+
}
|
|
8
|
+
interface RenderArgsSerialized extends ComparativeRenderArgsSerialized {
|
|
9
|
+
adapterConfig: {};
|
|
10
|
+
rendererType: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* call a synteny renderer with the given args
|
|
14
|
+
* param views: a set of views that each contain a set of regions
|
|
15
|
+
* used instead of passing regions directly as in render()
|
|
16
|
+
*/
|
|
17
|
+
export default class ComparativeRender extends RpcMethodType {
|
|
18
|
+
name: string;
|
|
19
|
+
renameRegionsIfNeeded(args: RenderArgs, rend: ComparativeRenderer): Promise<ComparativeRenderArgs>;
|
|
20
|
+
getRenderer(rendererType: string): ComparativeRenderer;
|
|
21
|
+
serializeArguments(args: RenderArgs, rpcDriver: string): Promise<ComparativeRenderArgs | import("@jbrowse/core/pluggableElementTypes/renderers/ServerSideRendererType").RenderArgsSerialized>;
|
|
22
|
+
execute(args: RenderArgsSerialized & {
|
|
23
|
+
signal?: RemoteAbortSignal;
|
|
24
|
+
}, rpcDriver: string): Promise<RenderResults | import("@jbrowse/core/pluggableElementTypes/renderers/ServerSideRendererType").ResultsSerialized>;
|
|
25
|
+
deserializeReturn(val: RenderResults | ResultsSerialized, args: RenderArgs, rpcDriver: string): Promise<unknown>;
|
|
26
|
+
}
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { checkAbortSignal } from '@jbrowse/core/util';
|
|
2
|
+
import RpcMethodType from '@jbrowse/core/pluggableElementTypes/RpcMethodType';
|
|
3
|
+
/**
|
|
4
|
+
* call a synteny renderer with the given args
|
|
5
|
+
* param views: a set of views that each contain a set of regions
|
|
6
|
+
* used instead of passing regions directly as in render()
|
|
7
|
+
*/
|
|
8
|
+
export default class ComparativeRender extends RpcMethodType {
|
|
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, signal } = deserializedArgs;
|
|
35
|
+
if (!sessionId) {
|
|
36
|
+
throw new Error('must pass a unique session id');
|
|
37
|
+
}
|
|
38
|
+
checkAbortSignal(signal);
|
|
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
|
+
//# sourceMappingURL=ComparativeRenderRpc.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComparativeRenderRpc.js","sourceRoot":"","sources":["../../src/DotplotRenderer/ComparativeRenderRpc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,aAAa,MAAM,mDAAmD,CAAA;AAmB7E;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,aAAa;IAA5D;;QACE,SAAI,GAAG,mBAAmB,CAAA;IA4D5B,CAAC;IA1DC,KAAK,CAAC,qBAAqB,CAAC,IAAgB,EAAE,IAAyB;QACrE,OAAO,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAA;IACzC,CAAC;IAED,WAAW,CAAC,YAAoB;QAC9B,MAAM,EAAE,GAAG,IAAI,CAAC,aAAa,CAAA;QAC7B,OAAO,EAAE,CAAC,eAAe,CAAC,YAAY,CAAwB,CAAA;IAChE,CAAC;IAED,KAAK,CAAC,kBAAkB,CAAC,IAAgB,EAAE,SAAiB;QAC1D,MAAM,EAAE,YAAY,EAAE,GAAG,IAAI,CAAA;QAC7B,MAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,CAAA;QAC/C,MAAM,CAAC,GAAG,CAAC,MAAM,KAAK,C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