@jbrowse/plugin-gccontent 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/GCContentAdapter/GCContentAdapter.d.ts +5 -9
- package/dist/GCContentAdapter/GCContentAdapter.js +55 -49
- package/dist/GCContentAdapter/configSchema.d.ts +1 -10
- package/dist/GCContentAdapter/configSchema.js +1 -14
- package/dist/GCContentAdapter/index.d.ts +1 -1
- package/dist/GCContentAdapter/index.js +17 -7
- package/dist/GCContentTrack/configSchema.d.ts +1 -1
- package/dist/GCContentTrack/configSchema.js +1 -8
- package/dist/GCContentTrack/index.d.ts +1 -1
- package/dist/LinearGCContentDisplay/components/EditGCContentParams.d.ts +1 -2
- package/dist/LinearGCContentDisplay/components/EditGCContentParams.js +17 -47
- package/dist/LinearGCContentDisplay/config1.d.ts +1 -6
- package/dist/LinearGCContentDisplay/config1.js +0 -8
- package/dist/LinearGCContentDisplay/config2.d.ts +1 -6
- package/dist/LinearGCContentDisplay/config2.js +0 -8
- package/dist/LinearGCContentDisplay/index.d.ts +1 -1
- package/dist/LinearGCContentDisplay/shared.d.ts +41 -51
- package/dist/LinearGCContentDisplay/shared.js +21 -28
- package/dist/LinearGCContentDisplay/stateModel1.d.ts +41 -37
- package/dist/LinearGCContentDisplay/stateModel1.js +0 -6
- package/dist/LinearGCContentDisplay/stateModel2.d.ts +41 -42
- package/dist/LinearGCContentDisplay/stateModel2.js +0 -11
- package/dist/index.d.ts +1 -1
- package/dist/index.js +0 -1
- package/esm/GCContentAdapter/GCContentAdapter.d.ts +5 -9
- package/esm/GCContentAdapter/GCContentAdapter.js +55 -49
- package/esm/GCContentAdapter/configSchema.d.ts +1 -10
- package/esm/GCContentAdapter/configSchema.js +1 -14
- package/esm/GCContentAdapter/index.d.ts +1 -1
- package/esm/GCContentTrack/configSchema.d.ts +1 -1
- package/esm/GCContentTrack/configSchema.js +1 -8
- package/esm/GCContentTrack/index.d.ts +1 -1
- package/esm/LinearGCContentDisplay/components/EditGCContentParams.d.ts +1 -2
- package/esm/LinearGCContentDisplay/components/EditGCContentParams.js +17 -24
- package/esm/LinearGCContentDisplay/config1.d.ts +1 -6
- package/esm/LinearGCContentDisplay/config1.js +0 -8
- package/esm/LinearGCContentDisplay/config2.d.ts +1 -6
- package/esm/LinearGCContentDisplay/config2.js +0 -8
- package/esm/LinearGCContentDisplay/index.d.ts +1 -1
- package/esm/LinearGCContentDisplay/shared.d.ts +41 -51
- package/esm/LinearGCContentDisplay/shared.js +5 -22
- package/esm/LinearGCContentDisplay/stateModel1.d.ts +41 -37
- package/esm/LinearGCContentDisplay/stateModel1.js +0 -6
- package/esm/LinearGCContentDisplay/stateModel2.d.ts +41 -42
- package/esm/LinearGCContentDisplay/stateModel2.js +0 -11
- package/esm/index.d.ts +1 -1
- package/esm/index.js +0 -1
- package/package.json +2 -2
|
@@ -1,22 +1,13 @@
|
|
|
1
|
-
import PluginManager from '@jbrowse/core/PluginManager';
|
|
1
|
+
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
2
|
declare const GCContentAdapterF: (_pluginManager: PluginManager) => import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
3
|
-
/**
|
|
4
|
-
* #slot
|
|
5
|
-
*/
|
|
6
3
|
sequenceAdapter: {
|
|
7
4
|
type: string;
|
|
8
5
|
defaultValue: null;
|
|
9
6
|
};
|
|
10
|
-
/**
|
|
11
|
-
* #slot
|
|
12
|
-
*/
|
|
13
7
|
windowSize: {
|
|
14
8
|
type: string;
|
|
15
9
|
defaultValue: number;
|
|
16
10
|
};
|
|
17
|
-
/**
|
|
18
|
-
* #slot
|
|
19
|
-
*/
|
|
20
11
|
windowDelta: {
|
|
21
12
|
type: string;
|
|
22
13
|
defaultValue: number;
|
|
@@ -1,28 +1,15 @@
|
|
|
1
1
|
import { ConfigurationSchema } from '@jbrowse/core/configuration';
|
|
2
|
-
|
|
3
|
-
* #config GCContentAdapter
|
|
4
|
-
* #category adapter
|
|
5
|
-
*/
|
|
6
|
-
function x() { } // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
2
|
+
function x() { }
|
|
7
3
|
const GCContentAdapterF = (_pluginManager) => {
|
|
8
4
|
return ConfigurationSchema('GCContentAdapter', {
|
|
9
|
-
/**
|
|
10
|
-
* #slot
|
|
11
|
-
*/
|
|
12
5
|
sequenceAdapter: {
|
|
13
6
|
type: 'frozen',
|
|
14
7
|
defaultValue: null,
|
|
15
8
|
},
|
|
16
|
-
/**
|
|
17
|
-
* #slot
|
|
18
|
-
*/
|
|
19
9
|
windowSize: {
|
|
20
10
|
type: 'number',
|
|
21
11
|
defaultValue: 100,
|
|
22
12
|
},
|
|
23
|
-
/**
|
|
24
|
-
* #slot
|
|
25
|
-
*/
|
|
26
13
|
windowDelta: {
|
|
27
14
|
type: 'number',
|
|
28
15
|
defaultValue: 100,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import PluginManager from '@jbrowse/core/PluginManager';
|
|
1
|
+
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
2
|
export default function GCContentAdapterF(pluginManager: PluginManager): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import PluginManager from '@jbrowse/core/PluginManager';
|
|
1
|
+
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
2
|
declare const configSchema: (pluginManager: PluginManager) => import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
3
3
|
name: {
|
|
4
4
|
description: string;
|
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
import { ConfigurationSchema } from '@jbrowse/core/configuration';
|
|
2
2
|
import { createBaseTrackConfig } from '@jbrowse/core/pluggableElementTypes';
|
|
3
|
-
|
|
4
|
-
* #config GCContentTrack
|
|
5
|
-
* used for having a gc content track outside of the "reference sequence display"
|
|
6
|
-
*/
|
|
7
|
-
function x() { } // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
3
|
+
function x() { }
|
|
8
4
|
const configSchema = (pluginManager) => ConfigurationSchema('GCContentTrack', {}, {
|
|
9
|
-
/**
|
|
10
|
-
* #baseConfiguration
|
|
11
|
-
*/
|
|
12
5
|
baseConfiguration: createBaseTrackConfig(pluginManager),
|
|
13
6
|
});
|
|
14
7
|
export default configSchema;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import PluginManager from '@jbrowse/core/PluginManager';
|
|
1
|
+
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
2
|
export default function GCContentTrackF(pm: PluginManager): void;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
declare const EditGCContentParamsDialog: ({ model, handleClose, }: {
|
|
3
2
|
model: {
|
|
4
3
|
windowSizeSetting: number;
|
|
@@ -9,5 +8,5 @@ declare const EditGCContentParamsDialog: ({ model, handleClose, }: {
|
|
|
9
8
|
}) => void;
|
|
10
9
|
};
|
|
11
10
|
handleClose: () => void;
|
|
12
|
-
}) =>
|
|
11
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
13
12
|
export default EditGCContentParamsDialog;
|
|
@@ -1,30 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import { Button, DialogActions, DialogContent, TextField, Typography, } from '@mui/material';
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from 'react';
|
|
4
3
|
import { Dialog, ErrorMessage } from '@jbrowse/core/ui';
|
|
4
|
+
import { Button, DialogActions, DialogContent, TextField, Typography, } from '@mui/material';
|
|
5
|
+
import { observer } from 'mobx-react';
|
|
5
6
|
const EditGCContentParamsDialog = observer(function ({ model, handleClose, }) {
|
|
6
7
|
const [windowSize, setWindowSize] = useState(`${model.windowSizeSetting}`);
|
|
7
8
|
const [windowDelta, setWindowDelta] = useState(`${model.windowDeltaSetting}`);
|
|
8
|
-
return (
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
windowSize: +windowSize,
|
|
22
|
-
windowDelta: +windowDelta,
|
|
23
|
-
});
|
|
24
|
-
handleClose();
|
|
25
|
-
} }, "Submit"),
|
|
26
|
-
React.createElement(Button, { variant: "contained", color: "secondary", onClick: () => {
|
|
27
|
-
handleClose();
|
|
28
|
-
} }, "Cancel")))));
|
|
9
|
+
return (_jsx(Dialog, { open: true, onClose: handleClose, title: "Edit GC content params", children: _jsxs(DialogContent, { children: [_jsx(Typography, { children: "GC content is calculated in a particular sliding window of size N, and then the sliding window moves (steps) some number of bases M forward. Note that small step sizes can result in high CPU over large areas, and it is not recommended to make the step size larger than the window size as then the sliding window will miss contents." }), +windowDelta > +windowSize ? (_jsx(ErrorMessage, { error: "It is not recommended to make the step size larger than the window size" })) : null, _jsx(TextField, { label: "Size of sliding window (bp)", value: windowSize, onChange: event => {
|
|
10
|
+
setWindowSize(event.target.value);
|
|
11
|
+
} }), _jsx(TextField, { label: "Step size of sliding window (bp)", value: windowDelta, onChange: event => {
|
|
12
|
+
setWindowDelta(event.target.value);
|
|
13
|
+
} }), _jsxs(DialogActions, { children: [_jsx(Button, { variant: "contained", onClick: () => {
|
|
14
|
+
model.setGCContentParams({
|
|
15
|
+
windowSize: +windowSize,
|
|
16
|
+
windowDelta: +windowDelta,
|
|
17
|
+
});
|
|
18
|
+
handleClose();
|
|
19
|
+
}, children: "Submit" }), _jsx(Button, { variant: "contained", color: "secondary", onClick: () => {
|
|
20
|
+
handleClose();
|
|
21
|
+
}, children: "Cancel" })] })] }) }));
|
|
29
22
|
});
|
|
30
23
|
export default EditGCContentParamsDialog;
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
import PluginManager from '@jbrowse/core/PluginManager';
|
|
2
|
-
/**
|
|
3
|
-
* #config LinearGCContentDisplay
|
|
4
|
-
* #category display
|
|
5
|
-
* extends LinearWiggleDisplay
|
|
6
|
-
*/
|
|
1
|
+
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
7
2
|
export default function LinearGCContentDisplay(pluginManager: PluginManager): import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
8
3
|
windowSize: {
|
|
9
4
|
type: string;
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
import { ConfigurationSchema } from '@jbrowse/core/configuration';
|
|
2
|
-
/**
|
|
3
|
-
* #config LinearGCContentDisplay
|
|
4
|
-
* #category display
|
|
5
|
-
* extends LinearWiggleDisplay
|
|
6
|
-
*/
|
|
7
2
|
export default function LinearGCContentDisplay(pluginManager) {
|
|
8
3
|
return ConfigurationSchema('LinearGCContentDisplay', {
|
|
9
4
|
windowSize: {
|
|
@@ -15,9 +10,6 @@ export default function LinearGCContentDisplay(pluginManager) {
|
|
|
15
10
|
defaultValue: 100,
|
|
16
11
|
},
|
|
17
12
|
}, {
|
|
18
|
-
/**
|
|
19
|
-
* #baseConfiguration
|
|
20
|
-
*/
|
|
21
13
|
baseConfiguration: pluginManager.getDisplayType('LinearWiggleDisplay')
|
|
22
14
|
.configSchema,
|
|
23
15
|
explicitlyTyped: true,
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
import PluginManager from '@jbrowse/core/PluginManager';
|
|
2
|
-
/**
|
|
3
|
-
* #config LinearGCContentTrackDisplay
|
|
4
|
-
* #category display
|
|
5
|
-
* extends LinearWiggleDisplay, used specifically for GCContentTrack
|
|
6
|
-
*/
|
|
1
|
+
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
7
2
|
export default function LinearGCContentTrackDisplayF(pluginManager: PluginManager): import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
8
3
|
windowSize: {
|
|
9
4
|
type: string;
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
import { ConfigurationSchema } from '@jbrowse/core/configuration';
|
|
2
|
-
/**
|
|
3
|
-
* #config LinearGCContentTrackDisplay
|
|
4
|
-
* #category display
|
|
5
|
-
* extends LinearWiggleDisplay, used specifically for GCContentTrack
|
|
6
|
-
*/
|
|
7
2
|
export default function LinearGCContentTrackDisplayF(pluginManager) {
|
|
8
3
|
return ConfigurationSchema('LinearGCContentTrackDisplay', {
|
|
9
4
|
windowSize: {
|
|
@@ -15,9 +10,6 @@ export default function LinearGCContentTrackDisplayF(pluginManager) {
|
|
|
15
10
|
defaultValue: 100,
|
|
16
11
|
},
|
|
17
12
|
}, {
|
|
18
|
-
/**
|
|
19
|
-
* #baseConfiguration
|
|
20
|
-
*/
|
|
21
13
|
baseConfiguration: pluginManager.getDisplayType('LinearWiggleDisplay')
|
|
22
14
|
.configSchema,
|
|
23
15
|
explicitlyTyped: true,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import PluginManager from '@jbrowse/core/PluginManager';
|
|
1
|
+
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
2
|
export default function LinearGCContentDisplayF(pluginManager: PluginManager): void;
|
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
/**
|
|
4
|
-
* #stateModel SharedGCContentModel
|
|
5
|
-
* #category display
|
|
6
|
-
* extends
|
|
7
|
-
* - [LinearWiggleDisplay](../linearwiggledisplay)
|
|
8
|
-
*/
|
|
1
|
+
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
|
+
import type { AnyConfigurationSchemaType } from '@jbrowse/core/configuration';
|
|
9
3
|
export default function SharedModelF(pluginManager: PluginManager, configSchema: AnyConfigurationSchemaType): import("mobx-state-tree").IModelType<{
|
|
10
4
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
11
5
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -18,23 +12,12 @@ export default function SharedModelF(pluginManager: PluginManager, configSchema:
|
|
|
18
12
|
} & {
|
|
19
13
|
blockState: import("mobx-state-tree").IMapType<import("mobx-state-tree").IModelType<{
|
|
20
14
|
key: import("mobx-state-tree").ISimpleType<string>;
|
|
21
|
-
region: import("mobx-state-tree").
|
|
22
|
-
refName: import("mobx-state-tree").ISimpleType<string>;
|
|
23
|
-
start: import("mobx-state-tree").ISimpleType<number>;
|
|
24
|
-
end: import("mobx-state-tree").ISimpleType<number>;
|
|
25
|
-
reversed: import("mobx-state-tree" /**
|
|
26
|
-
* #property
|
|
27
|
-
*/).IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
28
|
-
} & {
|
|
29
|
-
assemblyName: import("mobx-state-tree").ISimpleType<string>;
|
|
30
|
-
}, {
|
|
31
|
-
setRefName(newRefName: string): void;
|
|
32
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
15
|
+
region: import("mobx-state-tree").IType<import("@jbrowse/core/util").Region, import("@jbrowse/core/util").Region, import("@jbrowse/core/util").Region>;
|
|
33
16
|
reloadFlag: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
34
17
|
isLeftEndOfDisplayedRegion: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
35
18
|
isRightEndOfDisplayedRegion: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
36
19
|
}, {
|
|
37
|
-
|
|
20
|
+
stopToken: string | undefined;
|
|
38
21
|
filled: boolean;
|
|
39
22
|
reactElement: React.ReactElement | undefined;
|
|
40
23
|
features: Map<string, import("@jbrowse/core/util").Feature> | undefined;
|
|
@@ -52,21 +35,15 @@ export default function SharedModelF(pluginManager: PluginManager, configSchema:
|
|
|
52
35
|
status?: string;
|
|
53
36
|
reactElement?: React.ReactElement;
|
|
54
37
|
};
|
|
55
|
-
}) => import("react").JSX.Element | undefined;
|
|
38
|
+
}) => import("react/jsx-runtime").JSX.Element | undefined;
|
|
56
39
|
renderProps: any;
|
|
57
40
|
} & {
|
|
58
41
|
doReload(): void;
|
|
59
42
|
afterAttach(): void;
|
|
60
43
|
setStatus(message: string): void;
|
|
61
|
-
setLoading(
|
|
44
|
+
setLoading(newStopToken: string): void;
|
|
62
45
|
setMessage(messageText: string): void;
|
|
63
|
-
setRendered(props:
|
|
64
|
-
reactElement: React.ReactElement;
|
|
65
|
-
features: Map<string, import("@jbrowse/core/util").Feature>;
|
|
66
|
-
layout: any;
|
|
67
|
-
maxHeightReached: boolean;
|
|
68
|
-
renderProps: any;
|
|
69
|
-
} | undefined): void;
|
|
46
|
+
setRendered(props: import("@jbrowse/plugin-linear-genome-view/src/BaseLinearDisplay/models/serverSideRenderedBlock").RenderedProps | undefined): void;
|
|
70
47
|
setError(error: unknown): void;
|
|
71
48
|
reload(): void;
|
|
72
49
|
beforeDestroy(): void;
|
|
@@ -120,13 +97,7 @@ export default function SharedModelF(pluginManager: PluginManager, configSchema:
|
|
|
120
97
|
} & {
|
|
121
98
|
type: import("mobx-state-tree").ISimpleType<"LinearWiggleDisplay">;
|
|
122
99
|
} & {
|
|
123
|
-
/**
|
|
124
|
-
* #property
|
|
125
|
-
*/
|
|
126
100
|
windowSize: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
127
|
-
/**
|
|
128
|
-
* #property
|
|
129
|
-
*/
|
|
130
101
|
windowDelta: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
131
102
|
}, {
|
|
132
103
|
rendererTypeName: string;
|
|
@@ -217,14 +188,15 @@ export default function SharedModelF(pluginManager: PluginManager, configSchema:
|
|
|
217
188
|
readonly regionTooLarge: boolean;
|
|
218
189
|
readonly regionTooLargeReason: string;
|
|
219
190
|
} & {
|
|
191
|
+
readonly statsReadyAndRegionNotTooLarge: boolean;
|
|
220
192
|
regionCannotBeRenderedText(_region: import("@jbrowse/core/util").Region): "" | "Force load to see features";
|
|
221
|
-
regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): import("react").JSX.Element | null;
|
|
193
|
+
regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): import("react/jsx-runtime").JSX.Element | null;
|
|
222
194
|
} & {
|
|
223
195
|
featureIdUnderMouse: undefined | string;
|
|
224
196
|
contextMenuFeature: undefined | import("@jbrowse/core/util").Feature;
|
|
225
197
|
} & {
|
|
226
|
-
readonly DisplayMessageComponent:
|
|
227
|
-
readonly blockType: "
|
|
198
|
+
readonly DisplayMessageComponent: undefined | React.FC<any>;
|
|
199
|
+
readonly blockType: "staticBlocks" | "dynamicBlocks";
|
|
228
200
|
readonly blockDefinitions: import("@jbrowse/core/util/blockTypes").BlockSet;
|
|
229
201
|
} & {
|
|
230
202
|
readonly renderDelay: number;
|
|
@@ -251,7 +223,7 @@ export default function SharedModelF(pluginManager: PluginManager, configSchema:
|
|
|
251
223
|
contextMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
252
224
|
renderProps(): any;
|
|
253
225
|
} & {
|
|
254
|
-
renderSvg(opts: import("@jbrowse/plugin-linear-genome-view").ExportSvgDisplayOptions): Promise<import("react").JSX.Element>;
|
|
226
|
+
renderSvg(opts: import("@jbrowse/plugin-linear-genome-view").ExportSvgDisplayOptions): Promise<import("react/jsx-runtime").JSX.Element>;
|
|
255
227
|
afterAttach(): void;
|
|
256
228
|
} & {
|
|
257
229
|
message: undefined | string;
|
|
@@ -260,7 +232,7 @@ export default function SharedModelF(pluginManager: PluginManager, configSchema:
|
|
|
260
232
|
scoreMin: number;
|
|
261
233
|
scoreMax: number;
|
|
262
234
|
} | undefined;
|
|
263
|
-
statsFetchInProgress: undefined |
|
|
235
|
+
statsFetchInProgress: undefined | string;
|
|
264
236
|
} & {
|
|
265
237
|
updateQuantitativeStats(stats: {
|
|
266
238
|
currStatsBpPerPx: number;
|
|
@@ -270,7 +242,7 @@ export default function SharedModelF(pluginManager: PluginManager, configSchema:
|
|
|
270
242
|
setColor(color?: string): void;
|
|
271
243
|
setPosColor(color?: string): void;
|
|
272
244
|
setNegColor(color?: string): void;
|
|
273
|
-
setStatsLoading(
|
|
245
|
+
setStatsLoading(arg?: string): void;
|
|
274
246
|
selectFeature(feature: import("@jbrowse/core/util").Feature): void;
|
|
275
247
|
setResolution(res: number): void;
|
|
276
248
|
setFill(fill: number): void;
|
|
@@ -367,7 +339,17 @@ export default function SharedModelF(pluginManager: PluginManager, configSchema:
|
|
|
367
339
|
readonly quantitativeStatsReady: boolean;
|
|
368
340
|
} & {
|
|
369
341
|
trackMenuItems(): (import("@jbrowse/core/ui").MenuDivider | import("@jbrowse/core/ui").MenuSubHeader | import("@jbrowse/core/ui").NormalMenuItem | import("@jbrowse/core/ui").CheckboxMenuItem | import("@jbrowse/core/ui").RadioMenuItem | import("@jbrowse/core/ui").SubMenuItem | {
|
|
342
|
+
type: string;
|
|
343
|
+
label?: undefined;
|
|
344
|
+
icon?: undefined;
|
|
345
|
+
subMenu?: undefined;
|
|
346
|
+
onClick?: undefined;
|
|
347
|
+
checked?: undefined;
|
|
348
|
+
} | {
|
|
370
349
|
label: string;
|
|
350
|
+
icon: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
351
|
+
muiName: string;
|
|
352
|
+
};
|
|
371
353
|
subMenu: ({
|
|
372
354
|
label: string;
|
|
373
355
|
subMenu: {
|
|
@@ -390,8 +372,8 @@ export default function SharedModelF(pluginManager: PluginManager, configSchema:
|
|
|
390
372
|
subMenu?: undefined;
|
|
391
373
|
})[];
|
|
392
374
|
type?: undefined;
|
|
393
|
-
checked?: undefined;
|
|
394
375
|
onClick?: undefined;
|
|
376
|
+
checked?: undefined;
|
|
395
377
|
} | {
|
|
396
378
|
label: string;
|
|
397
379
|
subMenu: {
|
|
@@ -401,10 +383,23 @@ export default function SharedModelF(pluginManager: PluginManager, configSchema:
|
|
|
401
383
|
onClick: () => void;
|
|
402
384
|
}[];
|
|
403
385
|
type?: undefined;
|
|
404
|
-
|
|
386
|
+
icon?: undefined;
|
|
405
387
|
onClick?: undefined;
|
|
388
|
+
checked?: undefined;
|
|
389
|
+
} | {
|
|
390
|
+
label: string;
|
|
391
|
+
icon: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
392
|
+
muiName: string;
|
|
393
|
+
};
|
|
394
|
+
onClick: () => void;
|
|
395
|
+
type?: undefined;
|
|
396
|
+
subMenu?: undefined;
|
|
397
|
+
checked?: undefined;
|
|
406
398
|
} | {
|
|
407
399
|
type: string;
|
|
400
|
+
icon: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
401
|
+
muiName: string;
|
|
402
|
+
};
|
|
408
403
|
label: string;
|
|
409
404
|
checked: boolean;
|
|
410
405
|
onClick: () => void;
|
|
@@ -412,7 +407,7 @@ export default function SharedModelF(pluginManager: PluginManager, configSchema:
|
|
|
412
407
|
})[];
|
|
413
408
|
} & {
|
|
414
409
|
afterAttach(): void;
|
|
415
|
-
renderSvg(opts: import("@jbrowse/plugin-linear-genome-view").ExportSvgDisplayOptions): Promise<import("react").JSX.Element>;
|
|
410
|
+
renderSvg(opts: import("@jbrowse/plugin-linear-genome-view").ExportSvgDisplayOptions): Promise<import("react/jsx-runtime").JSX.Element>;
|
|
416
411
|
} & {
|
|
417
412
|
setGCContentParams({ windowSize, windowDelta, }: {
|
|
418
413
|
windowSize: number;
|
|
@@ -423,10 +418,5 @@ export default function SharedModelF(pluginManager: PluginManager, configSchema:
|
|
|
423
418
|
readonly windowDeltaSetting: any;
|
|
424
419
|
} & {
|
|
425
420
|
trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
426
|
-
|
|
427
|
-
* #method
|
|
428
|
-
* retrieves the sequence adapter from parent track, and puts it as a
|
|
429
|
-
* subadapter on a GCContentAdapter
|
|
430
|
-
*/
|
|
431
|
-
renderProps(): any;
|
|
421
|
+
adapterProps(): any;
|
|
432
422
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
@@ -1,25 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { lazy } from 'react';
|
|
2
|
+
import { getConf } from '@jbrowse/core/configuration';
|
|
2
3
|
import { getSession } from '@jbrowse/core/util';
|
|
3
4
|
import { linearWiggleDisplayModelFactory } from '@jbrowse/plugin-wiggle';
|
|
4
5
|
import { types } from 'mobx-state-tree';
|
|
5
|
-
import { lazy } from 'react';
|
|
6
6
|
const EditGCContentParamsDialog = lazy(() => import('./components/EditGCContentParams'));
|
|
7
|
-
/**
|
|
8
|
-
* #stateModel SharedGCContentModel
|
|
9
|
-
* #category display
|
|
10
|
-
* extends
|
|
11
|
-
* - [LinearWiggleDisplay](../linearwiggledisplay)
|
|
12
|
-
*/
|
|
13
7
|
export default function SharedModelF(pluginManager, configSchema) {
|
|
14
8
|
return types
|
|
15
9
|
.compose('SharedGCContentModel', linearWiggleDisplayModelFactory(pluginManager, configSchema), types.model({
|
|
16
|
-
/**
|
|
17
|
-
* #property
|
|
18
|
-
*/
|
|
19
10
|
windowSize: types.maybe(types.number),
|
|
20
|
-
/**
|
|
21
|
-
* #property
|
|
22
|
-
*/
|
|
23
11
|
windowDelta: types.maybe(types.number),
|
|
24
12
|
}))
|
|
25
13
|
.actions(self => ({
|
|
@@ -39,7 +27,7 @@ export default function SharedModelF(pluginManager, configSchema) {
|
|
|
39
27
|
},
|
|
40
28
|
}))
|
|
41
29
|
.views(self => {
|
|
42
|
-
const { trackMenuItems: superTrackMenuItems,
|
|
30
|
+
const { trackMenuItems: superTrackMenuItems, adapterProps: superAdapterProps, } = self;
|
|
43
31
|
return {
|
|
44
32
|
trackMenuItems() {
|
|
45
33
|
return [
|
|
@@ -55,15 +43,10 @@ export default function SharedModelF(pluginManager, configSchema) {
|
|
|
55
43
|
},
|
|
56
44
|
];
|
|
57
45
|
},
|
|
58
|
-
|
|
59
|
-
* #method
|
|
60
|
-
* retrieves the sequence adapter from parent track, and puts it as a
|
|
61
|
-
* subadapter on a GCContentAdapter
|
|
62
|
-
*/
|
|
63
|
-
renderProps() {
|
|
46
|
+
adapterProps() {
|
|
64
47
|
const sequenceAdapter = getConf(self.parentTrack, 'adapter');
|
|
65
48
|
return {
|
|
66
|
-
...
|
|
49
|
+
...superAdapterProps(),
|
|
67
50
|
adapterConfig: {
|
|
68
51
|
type: 'GCContentAdapter',
|
|
69
52
|
sequenceAdapter,
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
/**
|
|
4
|
-
* #stateModel LinearGCContentDisplay
|
|
5
|
-
* #category display
|
|
6
|
-
* base model `SharedGCContentModel`
|
|
7
|
-
*/
|
|
1
|
+
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
|
+
import type { AnyConfigurationSchemaType } from '@jbrowse/core/configuration';
|
|
8
3
|
export default function stateModelF(pluginManager: PluginManager, configSchema: AnyConfigurationSchemaType): import("mobx-state-tree").IModelType<{
|
|
9
4
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
10
5
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -17,21 +12,12 @@ export default function stateModelF(pluginManager: PluginManager, configSchema:
|
|
|
17
12
|
} & {
|
|
18
13
|
blockState: import("mobx-state-tree").IMapType<import("mobx-state-tree").IModelType<{
|
|
19
14
|
key: import("mobx-state-tree").ISimpleType<string>;
|
|
20
|
-
region: import("mobx-state-tree").
|
|
21
|
-
refName: import("mobx-state-tree").ISimpleType<string>;
|
|
22
|
-
start: import("mobx-state-tree").ISimpleType<number>;
|
|
23
|
-
end: import("mobx-state-tree").ISimpleType<number>;
|
|
24
|
-
reversed: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
25
|
-
} & {
|
|
26
|
-
assemblyName: import("mobx-state-tree").ISimpleType<string>;
|
|
27
|
-
}, {
|
|
28
|
-
setRefName(newRefName: string): void;
|
|
29
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
15
|
+
region: import("mobx-state-tree").IType<import("@jbrowse/core/util").Region, import("@jbrowse/core/util").Region, import("@jbrowse/core/util").Region>;
|
|
30
16
|
reloadFlag: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
31
17
|
isLeftEndOfDisplayedRegion: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
32
18
|
isRightEndOfDisplayedRegion: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
33
19
|
}, {
|
|
34
|
-
|
|
20
|
+
stopToken: string | undefined;
|
|
35
21
|
filled: boolean;
|
|
36
22
|
reactElement: React.ReactElement | undefined;
|
|
37
23
|
features: Map<string, import("@jbrowse/core/util").Feature> | undefined;
|
|
@@ -49,21 +35,15 @@ export default function stateModelF(pluginManager: PluginManager, configSchema:
|
|
|
49
35
|
status?: string;
|
|
50
36
|
reactElement?: React.ReactElement;
|
|
51
37
|
};
|
|
52
|
-
}) => import("react").JSX.Element | undefined;
|
|
38
|
+
}) => import("react/jsx-runtime").JSX.Element | undefined;
|
|
53
39
|
renderProps: any;
|
|
54
40
|
} & {
|
|
55
41
|
doReload(): void;
|
|
56
42
|
afterAttach(): void;
|
|
57
43
|
setStatus(message: string): void;
|
|
58
|
-
setLoading(
|
|
44
|
+
setLoading(newStopToken: string): void;
|
|
59
45
|
setMessage(messageText: string): void;
|
|
60
|
-
setRendered(props:
|
|
61
|
-
reactElement: React.ReactElement;
|
|
62
|
-
features: Map<string, import("@jbrowse/core/util").Feature>;
|
|
63
|
-
layout: any;
|
|
64
|
-
maxHeightReached: boolean;
|
|
65
|
-
renderProps: any;
|
|
66
|
-
} | undefined): void;
|
|
46
|
+
setRendered(props: import("@jbrowse/plugin-linear-genome-view/src/BaseLinearDisplay/models/serverSideRenderedBlock").RenderedProps | undefined): void;
|
|
67
47
|
setError(error: unknown): void;
|
|
68
48
|
reload(): void;
|
|
69
49
|
beforeDestroy(): void;
|
|
@@ -210,14 +190,15 @@ export default function stateModelF(pluginManager: PluginManager, configSchema:
|
|
|
210
190
|
readonly regionTooLarge: boolean;
|
|
211
191
|
readonly regionTooLargeReason: string;
|
|
212
192
|
} & {
|
|
193
|
+
readonly statsReadyAndRegionNotTooLarge: boolean;
|
|
213
194
|
regionCannotBeRenderedText(_region: import("@jbrowse/core/util").Region): "" | "Force load to see features";
|
|
214
|
-
regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): import("react").JSX.Element | null;
|
|
195
|
+
regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): import("react/jsx-runtime").JSX.Element | null;
|
|
215
196
|
} & {
|
|
216
197
|
featureIdUnderMouse: undefined | string;
|
|
217
198
|
contextMenuFeature: undefined | import("@jbrowse/core/util").Feature;
|
|
218
199
|
} & {
|
|
219
|
-
readonly DisplayMessageComponent:
|
|
220
|
-
readonly blockType: "
|
|
200
|
+
readonly DisplayMessageComponent: undefined | React.FC<any>;
|
|
201
|
+
readonly blockType: "staticBlocks" | "dynamicBlocks";
|
|
221
202
|
readonly blockDefinitions: import("@jbrowse/core/util/blockTypes").BlockSet;
|
|
222
203
|
} & {
|
|
223
204
|
readonly renderDelay: number;
|
|
@@ -244,7 +225,7 @@ export default function stateModelF(pluginManager: PluginManager, configSchema:
|
|
|
244
225
|
contextMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
245
226
|
renderProps(): any;
|
|
246
227
|
} & {
|
|
247
|
-
renderSvg(opts: import("@jbrowse/plugin-linear-genome-view").ExportSvgDisplayOptions): Promise<import("react").JSX.Element>;
|
|
228
|
+
renderSvg(opts: import("@jbrowse/plugin-linear-genome-view").ExportSvgDisplayOptions): Promise<import("react/jsx-runtime").JSX.Element>;
|
|
248
229
|
afterAttach(): void;
|
|
249
230
|
} & {
|
|
250
231
|
message: undefined | string;
|
|
@@ -253,7 +234,7 @@ export default function stateModelF(pluginManager: PluginManager, configSchema:
|
|
|
253
234
|
scoreMin: number;
|
|
254
235
|
scoreMax: number;
|
|
255
236
|
} | undefined;
|
|
256
|
-
statsFetchInProgress: undefined |
|
|
237
|
+
statsFetchInProgress: undefined | string;
|
|
257
238
|
} & {
|
|
258
239
|
updateQuantitativeStats(stats: {
|
|
259
240
|
currStatsBpPerPx: number;
|
|
@@ -263,7 +244,7 @@ export default function stateModelF(pluginManager: PluginManager, configSchema:
|
|
|
263
244
|
setColor(color?: string): void;
|
|
264
245
|
setPosColor(color?: string): void;
|
|
265
246
|
setNegColor(color?: string): void;
|
|
266
|
-
setStatsLoading(
|
|
247
|
+
setStatsLoading(arg?: string): void;
|
|
267
248
|
selectFeature(feature: import("@jbrowse/core/util").Feature): void;
|
|
268
249
|
setResolution(res: number): void;
|
|
269
250
|
setFill(fill: number): void;
|
|
@@ -360,7 +341,17 @@ export default function stateModelF(pluginManager: PluginManager, configSchema:
|
|
|
360
341
|
readonly quantitativeStatsReady: boolean;
|
|
361
342
|
} & {
|
|
362
343
|
trackMenuItems(): (import("@jbrowse/core/ui").MenuDivider | import("@jbrowse/core/ui").MenuSubHeader | import("@jbrowse/core/ui").NormalMenuItem | import("@jbrowse/core/ui").CheckboxMenuItem | import("@jbrowse/core/ui").RadioMenuItem | import("@jbrowse/core/ui").SubMenuItem | {
|
|
344
|
+
type: string;
|
|
345
|
+
label?: undefined;
|
|
346
|
+
icon?: undefined;
|
|
347
|
+
subMenu?: undefined;
|
|
348
|
+
onClick?: undefined;
|
|
349
|
+
checked?: undefined;
|
|
350
|
+
} | {
|
|
363
351
|
label: string;
|
|
352
|
+
icon: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
353
|
+
muiName: string;
|
|
354
|
+
};
|
|
364
355
|
subMenu: ({
|
|
365
356
|
label: string;
|
|
366
357
|
subMenu: {
|
|
@@ -383,8 +374,8 @@ export default function stateModelF(pluginManager: PluginManager, configSchema:
|
|
|
383
374
|
subMenu?: undefined;
|
|
384
375
|
})[];
|
|
385
376
|
type?: undefined;
|
|
386
|
-
checked?: undefined;
|
|
387
377
|
onClick?: undefined;
|
|
378
|
+
checked?: undefined;
|
|
388
379
|
} | {
|
|
389
380
|
label: string;
|
|
390
381
|
subMenu: {
|
|
@@ -394,10 +385,23 @@ export default function stateModelF(pluginManager: PluginManager, configSchema:
|
|
|
394
385
|
onClick: () => void;
|
|
395
386
|
}[];
|
|
396
387
|
type?: undefined;
|
|
397
|
-
|
|
388
|
+
icon?: undefined;
|
|
398
389
|
onClick?: undefined;
|
|
390
|
+
checked?: undefined;
|
|
391
|
+
} | {
|
|
392
|
+
label: string;
|
|
393
|
+
icon: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
394
|
+
muiName: string;
|
|
395
|
+
};
|
|
396
|
+
onClick: () => void;
|
|
397
|
+
type?: undefined;
|
|
398
|
+
subMenu?: undefined;
|
|
399
|
+
checked?: undefined;
|
|
399
400
|
} | {
|
|
400
401
|
type: string;
|
|
402
|
+
icon: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
403
|
+
muiName: string;
|
|
404
|
+
};
|
|
401
405
|
label: string;
|
|
402
406
|
checked: boolean;
|
|
403
407
|
onClick: () => void;
|
|
@@ -405,7 +409,7 @@ export default function stateModelF(pluginManager: PluginManager, configSchema:
|
|
|
405
409
|
})[];
|
|
406
410
|
} & {
|
|
407
411
|
afterAttach(): void;
|
|
408
|
-
renderSvg(opts: import("@jbrowse/plugin-linear-genome-view").ExportSvgDisplayOptions): Promise<import("react").JSX.Element>;
|
|
412
|
+
renderSvg(opts: import("@jbrowse/plugin-linear-genome-view").ExportSvgDisplayOptions): Promise<import("react/jsx-runtime").JSX.Element>;
|
|
409
413
|
} & {
|
|
410
414
|
setGCContentParams({ windowSize, windowDelta, }: {
|
|
411
415
|
windowSize: number;
|
|
@@ -416,5 +420,5 @@ export default function stateModelF(pluginManager: PluginManager, configSchema:
|
|
|
416
420
|
readonly windowDeltaSetting: any;
|
|
417
421
|
} & {
|
|
418
422
|
trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
419
|
-
|
|
423
|
+
adapterProps(): any;
|
|
420
424
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|