@jbrowse/plugin-linear-comparative-view 2.8.0 → 2.10.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/LGVSyntenyDisplay/configSchemaF.d.ts +2 -0
- package/dist/LGVSyntenyDisplay/configSchemaF.js +2 -0
- package/dist/LGVSyntenyDisplay/model.d.ts +18 -7
- package/dist/LGVSyntenyDisplay/model.js +13 -3
- package/dist/LaunchLinearSyntenyView.js +6 -2
- package/dist/LinearComparativeDisplay/stateModelFactory.d.ts +35 -27
- package/dist/LinearComparativeDisplay/stateModelFactory.js +2 -0
- package/dist/LinearComparativeView/model.d.ts +141 -6
- package/dist/LinearComparativeView/model.js +4 -2
- package/dist/LinearReadVsRef/LinearReadVsRef.js +1 -1
- package/dist/LinearReadVsRef/index.js +26 -2
- package/dist/LinearSyntenyDisplay/components/LinearSyntenyRendering.js +185 -96
- package/dist/LinearSyntenyDisplay/components/SyntenyContextMenu.d.ts +13 -0
- package/dist/LinearSyntenyDisplay/components/SyntenyContextMenu.js +57 -0
- package/dist/LinearSyntenyDisplay/components/SyntenyTooltip.d.ts +1 -3
- package/dist/LinearSyntenyDisplay/components/SyntenyTooltip.js +19 -51
- package/dist/LinearSyntenyDisplay/model.d.ts +27 -17
- package/dist/LinearSyntenyDisplay/model.js +2 -1
- package/dist/LinearSyntenyView/components/ImportForm/index.js +1 -1
- package/dist/LinearSyntenyView/model.d.ts +441 -16
- package/dist/LinearSyntenyView/model.js +8 -1
- package/dist/LinearSyntenyView/svgcomponents/SVGLinearSyntenyView.js +6 -6
- package/dist/SyntenyTrack/configSchema.d.ts +5 -0
- package/dist/SyntenyTrack/configSchema.js +2 -0
- package/esm/LGVSyntenyDisplay/configSchemaF.d.ts +2 -0
- package/esm/LGVSyntenyDisplay/configSchemaF.js +2 -0
- package/esm/LGVSyntenyDisplay/model.d.ts +18 -7
- package/esm/LGVSyntenyDisplay/model.js +13 -3
- package/esm/LaunchLinearSyntenyView.js +6 -2
- package/esm/LinearComparativeDisplay/stateModelFactory.d.ts +35 -27
- package/esm/LinearComparativeDisplay/stateModelFactory.js +2 -0
- package/esm/LinearComparativeView/model.d.ts +141 -6
- package/esm/LinearComparativeView/model.js +4 -2
- package/esm/LinearReadVsRef/LinearReadVsRef.js +1 -1
- package/esm/LinearReadVsRef/index.js +2 -1
- package/esm/LinearSyntenyDisplay/components/LinearSyntenyRendering.js +186 -97
- package/esm/LinearSyntenyDisplay/components/SyntenyContextMenu.d.ts +13 -0
- package/esm/LinearSyntenyDisplay/components/SyntenyContextMenu.js +51 -0
- package/esm/LinearSyntenyDisplay/components/SyntenyTooltip.d.ts +1 -3
- package/esm/LinearSyntenyDisplay/components/SyntenyTooltip.js +18 -30
- package/esm/LinearSyntenyDisplay/model.d.ts +27 -17
- package/esm/LinearSyntenyDisplay/model.js +2 -1
- package/esm/LinearSyntenyView/components/ImportForm/index.js +1 -1
- package/esm/LinearSyntenyView/model.d.ts +441 -16
- package/esm/LinearSyntenyView/model.js +8 -1
- package/esm/LinearSyntenyView/svgcomponents/SVGLinearSyntenyView.js +6 -6
- package/esm/SyntenyTrack/configSchema.d.ts +5 -0
- package/esm/SyntenyTrack/configSchema.js +2 -0
- package/package.json +4 -5
|
@@ -4,6 +4,8 @@ const configuration_1 = require("@jbrowse/core/configuration");
|
|
|
4
4
|
const models_1 = require("@jbrowse/core/pluggableElementTypes/models");
|
|
5
5
|
/**
|
|
6
6
|
* #config SyntenyTrack
|
|
7
|
+
* extends
|
|
8
|
+
* - [BaseTrack](../basetrack)
|
|
7
9
|
*/
|
|
8
10
|
function x() { } // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
9
11
|
const configSchema = (pluginManager) => (0, configuration_1.ConfigurationSchema)('SyntenyTrack', {}, {
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import PluginManager from '@jbrowse/core/PluginManager';
|
|
2
2
|
/**
|
|
3
3
|
* #config LGVSyntenyDisplay
|
|
4
|
+
* extends config
|
|
5
|
+
* - [LinearPileupDisplay](../linearpileupdisplay)
|
|
4
6
|
*/
|
|
5
7
|
declare function configSchemaF(pluginManager: PluginManager): import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
6
8
|
defaultRendering: {
|
|
@@ -2,6 +2,8 @@ import { ConfigurationSchema } from '@jbrowse/core/configuration';
|
|
|
2
2
|
import { linearPileupDisplayConfigSchemaFactory } from '@jbrowse/plugin-alignments';
|
|
3
3
|
/**
|
|
4
4
|
* #config LGVSyntenyDisplay
|
|
5
|
+
* extends config
|
|
6
|
+
* - [LinearPileupDisplay](../linearpileupdisplay)
|
|
5
7
|
*/
|
|
6
8
|
function configSchemaF(pluginManager) {
|
|
7
9
|
return ConfigurationSchema('LGVSyntenyDisplay', {}, {
|
|
@@ -2,8 +2,11 @@
|
|
|
2
2
|
import { AnyConfigurationSchemaType } from '@jbrowse/core/configuration';
|
|
3
3
|
/**
|
|
4
4
|
* #stateModel LGVSyntenyDisplay
|
|
5
|
-
*
|
|
6
|
-
*
|
|
5
|
+
* displays location of "synteny" feature in a plain LGV, allowing linking out
|
|
6
|
+
* to external synteny views
|
|
7
|
+
*
|
|
8
|
+
* extends
|
|
9
|
+
* - [SharedLinearPileupDisplayMixin](../sharedlinearpileupdisplaymixin)
|
|
7
10
|
*/
|
|
8
11
|
declare function stateModelFactory(schema: AnyConfigurationSchemaType): import("mobx-state-tree").IModelType<{
|
|
9
12
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
@@ -69,15 +72,15 @@ declare function stateModelFactory(schema: AnyConfigurationSchemaType): import("
|
|
|
69
72
|
};
|
|
70
73
|
fetchSizeLimit: {
|
|
71
74
|
type: string;
|
|
72
|
-
defaultValue: number;
|
|
73
|
-
* #property
|
|
74
|
-
*/
|
|
75
|
+
defaultValue: number;
|
|
75
76
|
description: string;
|
|
76
77
|
};
|
|
77
78
|
height: {
|
|
78
79
|
type: string;
|
|
79
80
|
defaultValue: number;
|
|
80
|
-
description: string;
|
|
81
|
+
description: string; /**
|
|
82
|
+
* #method
|
|
83
|
+
*/
|
|
81
84
|
};
|
|
82
85
|
mouseover: {
|
|
83
86
|
type: string;
|
|
@@ -146,7 +149,9 @@ declare function stateModelFactory(schema: AnyConfigurationSchemaType): import("
|
|
|
146
149
|
model: {
|
|
147
150
|
id: string;
|
|
148
151
|
type: string;
|
|
149
|
-
rpcDriverName: string | undefined;
|
|
152
|
+
rpcDriverName: string | undefined; /**
|
|
153
|
+
* #method
|
|
154
|
+
*/
|
|
150
155
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
151
156
|
rendererTypeName: string;
|
|
152
157
|
error: unknown;
|
|
@@ -319,8 +324,14 @@ declare function stateModelFactory(schema: AnyConfigurationSchemaType): import("
|
|
|
319
324
|
} & {
|
|
320
325
|
afterAttach(): void;
|
|
321
326
|
} & {
|
|
327
|
+
/**
|
|
328
|
+
* #method
|
|
329
|
+
*/
|
|
322
330
|
contextMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
323
331
|
} & {
|
|
332
|
+
/**
|
|
333
|
+
* #method
|
|
334
|
+
*/
|
|
324
335
|
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 | {
|
|
325
336
|
label: string;
|
|
326
337
|
subMenu: {
|
|
@@ -6,8 +6,11 @@ import { types } from 'mobx-state-tree';
|
|
|
6
6
|
const LaunchSyntenyViewDialog = lazy(() => import('./components/LaunchSyntenyViewDialog'));
|
|
7
7
|
/**
|
|
8
8
|
* #stateModel LGVSyntenyDisplay
|
|
9
|
-
*
|
|
10
|
-
*
|
|
9
|
+
* displays location of "synteny" feature in a plain LGV, allowing linking out
|
|
10
|
+
* to external synteny views
|
|
11
|
+
*
|
|
12
|
+
* extends
|
|
13
|
+
* - [SharedLinearPileupDisplayMixin](../sharedlinearpileupdisplaymixin)
|
|
11
14
|
*/
|
|
12
15
|
function stateModelFactory(schema) {
|
|
13
16
|
return types
|
|
@@ -24,6 +27,9 @@ function stateModelFactory(schema) {
|
|
|
24
27
|
.views(self => {
|
|
25
28
|
const superContextMenuItems = self.contextMenuItems;
|
|
26
29
|
return {
|
|
30
|
+
/**
|
|
31
|
+
* #method
|
|
32
|
+
*/
|
|
27
33
|
contextMenuItems() {
|
|
28
34
|
const feature = self.contextMenuFeature;
|
|
29
35
|
return [
|
|
@@ -52,6 +58,9 @@ function stateModelFactory(schema) {
|
|
|
52
58
|
.views(self => {
|
|
53
59
|
const { trackMenuItems: superTrackMenuItems, colorSchemeSubMenuItems: superColorSchemeSubMenuItems, } = self;
|
|
54
60
|
return {
|
|
61
|
+
/**
|
|
62
|
+
* #method
|
|
63
|
+
*/
|
|
55
64
|
trackMenuItems() {
|
|
56
65
|
return [
|
|
57
66
|
...superTrackMenuItems(),
|
|
@@ -65,7 +74,8 @@ function stateModelFactory(schema) {
|
|
|
65
74
|
})
|
|
66
75
|
.actions(self => ({
|
|
67
76
|
afterCreate() {
|
|
68
|
-
// use color by stand to help indicate inversions better on first load,
|
|
77
|
+
// use color by stand to help indicate inversions better on first load,
|
|
78
|
+
// otherwise use selected orientation
|
|
69
79
|
if (self.colorBy) {
|
|
70
80
|
self.setColorScheme({ ...self.colorBy });
|
|
71
81
|
}
|
|
@@ -24,8 +24,12 @@ export default function LaunchLinearSyntenyView(pluginManager) {
|
|
|
24
24
|
const idsNotFound = [];
|
|
25
25
|
await Promise.all(views.map(async (data, idx) => {
|
|
26
26
|
const view = model.views[idx];
|
|
27
|
-
const { loc, tracks = [] } = data;
|
|
28
|
-
await
|
|
27
|
+
const { assembly, loc, tracks = [] } = data;
|
|
28
|
+
const asm = await assemblyManager.waitForAssembly(assembly);
|
|
29
|
+
if (!asm) {
|
|
30
|
+
throw new Error(`Assembly ${data.assembly} failed to load`);
|
|
31
|
+
}
|
|
32
|
+
await view.navToSearchString({ input: loc, assembly: asm });
|
|
29
33
|
tracks.forEach(track => tryTrack(view, track, idsNotFound));
|
|
30
34
|
}));
|
|
31
35
|
tracks.forEach(track => tryTrack(model, track, idsNotFound));
|
|
@@ -4,6 +4,8 @@ import { Instance } from 'mobx-state-tree';
|
|
|
4
4
|
import { Feature } from '@jbrowse/core/util';
|
|
5
5
|
/**
|
|
6
6
|
* #stateModel LinearComparativeDisplay
|
|
7
|
+
* extends
|
|
8
|
+
* - [BaseDisplay](../basedisplay)
|
|
7
9
|
*/
|
|
8
10
|
declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): import("mobx-state-tree").IModelType<{
|
|
9
11
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
@@ -21,7 +23,9 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
21
23
|
readonly RenderingComponent: import("react").FC<{
|
|
22
24
|
model: {
|
|
23
25
|
id: string;
|
|
24
|
-
type: string;
|
|
26
|
+
type: string; /**
|
|
27
|
+
* #property
|
|
28
|
+
*/
|
|
25
29
|
rpcDriverName: string | undefined;
|
|
26
30
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
27
31
|
rendererTypeName: string;
|
|
@@ -30,12 +34,12 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
30
34
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
31
35
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
32
36
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
33
|
-
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
37
|
+
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
38
|
+
}, {
|
|
39
|
+
rendererTypeName: string; /**
|
|
34
40
|
* #action
|
|
35
41
|
* controlled by a reaction
|
|
36
42
|
*/
|
|
37
|
-
}, {
|
|
38
|
-
rendererTypeName: string;
|
|
39
43
|
error: unknown;
|
|
40
44
|
message: string | undefined;
|
|
41
45
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
@@ -48,10 +52,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
48
52
|
type: string;
|
|
49
53
|
rpcDriverName: string | undefined;
|
|
50
54
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
51
|
-
rendererTypeName: string;
|
|
52
|
-
* #action
|
|
53
|
-
* controlled by a reaction
|
|
54
|
-
*/
|
|
55
|
+
rendererTypeName: string;
|
|
55
56
|
error: unknown;
|
|
56
57
|
message: string | undefined;
|
|
57
58
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
@@ -67,7 +68,10 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
67
68
|
readonly adapterConfig: any;
|
|
68
69
|
readonly parentTrack: any;
|
|
69
70
|
renderProps(): any;
|
|
70
|
-
readonly rendererType: import("@jbrowse/core/pluggableElementTypes").RendererType;
|
|
71
|
+
readonly rendererType: import("@jbrowse/core/pluggableElementTypes").RendererType; /**
|
|
72
|
+
* #action
|
|
73
|
+
* controlled by a reaction
|
|
74
|
+
*/
|
|
71
75
|
readonly DisplayMessageComponent: import("react").FC<any> | undefined;
|
|
72
76
|
trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
73
77
|
readonly viewMenuActions: import("@jbrowse/core/ui").MenuItem[];
|
|
@@ -105,7 +109,9 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
105
109
|
readonly RenderingComponent: import("react").FC<{
|
|
106
110
|
model: {
|
|
107
111
|
id: string;
|
|
108
|
-
type: string;
|
|
112
|
+
type: string; /**
|
|
113
|
+
* #property
|
|
114
|
+
*/
|
|
109
115
|
rpcDriverName: string | undefined;
|
|
110
116
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
111
117
|
rendererTypeName: string;
|
|
@@ -114,12 +120,12 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
114
120
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
115
121
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
116
122
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
117
|
-
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
123
|
+
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
124
|
+
}, {
|
|
125
|
+
rendererTypeName: string; /**
|
|
118
126
|
* #action
|
|
119
127
|
* controlled by a reaction
|
|
120
128
|
*/
|
|
121
|
-
}, {
|
|
122
|
-
rendererTypeName: string;
|
|
123
129
|
error: unknown;
|
|
124
130
|
message: string | undefined;
|
|
125
131
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
@@ -132,10 +138,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
132
138
|
type: string;
|
|
133
139
|
rpcDriverName: string | undefined;
|
|
134
140
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
135
|
-
rendererTypeName: string;
|
|
136
|
-
* #action
|
|
137
|
-
* controlled by a reaction
|
|
138
|
-
*/
|
|
141
|
+
rendererTypeName: string;
|
|
139
142
|
error: unknown;
|
|
140
143
|
message: string | undefined;
|
|
141
144
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
@@ -151,7 +154,10 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
151
154
|
readonly adapterConfig: any;
|
|
152
155
|
readonly parentTrack: any;
|
|
153
156
|
renderProps(): any;
|
|
154
|
-
readonly rendererType: import("@jbrowse/core/pluggableElementTypes").RendererType;
|
|
157
|
+
readonly rendererType: import("@jbrowse/core/pluggableElementTypes").RendererType; /**
|
|
158
|
+
* #action
|
|
159
|
+
* controlled by a reaction
|
|
160
|
+
*/
|
|
155
161
|
readonly DisplayMessageComponent: import("react").FC<any> | undefined;
|
|
156
162
|
trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
157
163
|
readonly viewMenuActions: import("@jbrowse/core/ui").MenuItem[];
|
|
@@ -181,7 +187,9 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
181
187
|
readonly RenderingComponent: import("react").FC<{
|
|
182
188
|
model: {
|
|
183
189
|
id: string;
|
|
184
|
-
type: string;
|
|
190
|
+
type: string; /**
|
|
191
|
+
* #property
|
|
192
|
+
*/
|
|
185
193
|
rpcDriverName: string | undefined;
|
|
186
194
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
187
195
|
rendererTypeName: string;
|
|
@@ -190,12 +198,12 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
190
198
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
191
199
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
192
200
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
193
|
-
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
201
|
+
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
202
|
+
}, {
|
|
203
|
+
rendererTypeName: string; /**
|
|
194
204
|
* #action
|
|
195
205
|
* controlled by a reaction
|
|
196
206
|
*/
|
|
197
|
-
}, {
|
|
198
|
-
rendererTypeName: string;
|
|
199
207
|
error: unknown;
|
|
200
208
|
message: string | undefined;
|
|
201
209
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
@@ -208,10 +216,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
208
216
|
type: string;
|
|
209
217
|
rpcDriverName: string | undefined;
|
|
210
218
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
211
|
-
rendererTypeName: string;
|
|
212
|
-
* #action
|
|
213
|
-
* controlled by a reaction
|
|
214
|
-
*/
|
|
219
|
+
rendererTypeName: string;
|
|
215
220
|
error: unknown;
|
|
216
221
|
message: string | undefined;
|
|
217
222
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
@@ -227,7 +232,10 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
227
232
|
readonly adapterConfig: any;
|
|
228
233
|
readonly parentTrack: any;
|
|
229
234
|
renderProps(): any;
|
|
230
|
-
readonly rendererType: import("@jbrowse/core/pluggableElementTypes").RendererType;
|
|
235
|
+
readonly rendererType: import("@jbrowse/core/pluggableElementTypes").RendererType; /**
|
|
236
|
+
* #action
|
|
237
|
+
* controlled by a reaction
|
|
238
|
+
*/
|
|
231
239
|
readonly DisplayMessageComponent: import("react").FC<any> | undefined;
|
|
232
240
|
trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
233
241
|
readonly viewMenuActions: import("@jbrowse/core/ui").MenuItem[];
|
|
@@ -5,6 +5,8 @@ import { getRpcSessionId } from '@jbrowse/core/util/tracks';
|
|
|
5
5
|
import { BaseDisplay } from '@jbrowse/core/pluggableElementTypes/models';
|
|
6
6
|
/**
|
|
7
7
|
* #stateModel LinearComparativeDisplay
|
|
8
|
+
* extends
|
|
9
|
+
* - [BaseDisplay](../basedisplay)
|
|
8
10
|
*/
|
|
9
11
|
function stateModelFactory(configSchema) {
|
|
10
12
|
return types
|
|
@@ -5,6 +5,8 @@ import PluginManager from '@jbrowse/core/PluginManager';
|
|
|
5
5
|
import { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view';
|
|
6
6
|
/**
|
|
7
7
|
* #stateModel LinearComparativeView
|
|
8
|
+
* extends
|
|
9
|
+
* - [BaseViewModel](../baseviewmodel)
|
|
8
10
|
*/
|
|
9
11
|
declare function stateModelFactory(pluginManager: PluginManager): import("mobx-state-tree").IModelType<{
|
|
10
12
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
@@ -34,9 +36,6 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
|
|
|
34
36
|
end: import("mobx-state-tree").ISimpleType<number>;
|
|
35
37
|
reversed: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
36
38
|
} & {
|
|
37
|
-
/**
|
|
38
|
-
* #property
|
|
39
|
-
*/
|
|
40
39
|
assemblyName: import("mobx-state-tree").ISimpleType<string>;
|
|
41
40
|
}, {
|
|
42
41
|
setRefName(newRefName: string): void;
|
|
@@ -64,7 +63,9 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
|
|
|
64
63
|
draggingTrackId: string | undefined;
|
|
65
64
|
volatileError: unknown;
|
|
66
65
|
afterDisplayedRegionsSetCallbacks: Function[];
|
|
67
|
-
scaleFactor: number;
|
|
66
|
+
scaleFactor: number; /**
|
|
67
|
+
* #action
|
|
68
|
+
*/
|
|
68
69
|
trackRefs: Record<string, HTMLDivElement>;
|
|
69
70
|
coarseDynamicBlocks: import("@jbrowse/core/util/blockTypes").BaseBlock[];
|
|
70
71
|
coarseTotalBp: number;
|
|
@@ -123,7 +124,7 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
|
|
|
123
124
|
} & {
|
|
124
125
|
moveTrack(movingId: string, targetId: string): void;
|
|
125
126
|
closeView(): void;
|
|
126
|
-
toggleTrack(trackId: string):
|
|
127
|
+
toggleTrack(trackId: string): boolean;
|
|
127
128
|
setTrackLabels(setting: "offset" | "hidden" | "overlapping"): void;
|
|
128
129
|
toggleCenterLine(): void;
|
|
129
130
|
setDisplayedRegions(regions: import("@jbrowse/core/util").Region[]): void;
|
|
@@ -173,6 +174,140 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
|
|
|
173
174
|
} & {
|
|
174
175
|
moveTo(start?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset | undefined, end?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset | undefined): void;
|
|
175
176
|
navToLocString(input: string, optAssemblyName?: string | undefined): Promise<void>;
|
|
177
|
+
navToSearchString({ input, assembly, }: {
|
|
178
|
+
input: string;
|
|
179
|
+
assembly: {
|
|
180
|
+
configuration: any;
|
|
181
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
182
|
+
error: unknown;
|
|
183
|
+
loaded: boolean;
|
|
184
|
+
loadingP: Promise<void> | undefined;
|
|
185
|
+
volatileRegions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined;
|
|
186
|
+
refNameAliases: {
|
|
187
|
+
[x: string]: string | undefined;
|
|
188
|
+
} | undefined;
|
|
189
|
+
lowerCaseRefNameAliases: {
|
|
190
|
+
[x: string]: string | undefined;
|
|
191
|
+
} | undefined;
|
|
192
|
+
cytobands: import("@jbrowse/core/util").Feature[] | undefined;
|
|
193
|
+
} & {
|
|
194
|
+
getConf(arg: string): any;
|
|
195
|
+
} & {
|
|
196
|
+
readonly initialized: boolean;
|
|
197
|
+
/**
|
|
198
|
+
* #property
|
|
199
|
+
*/
|
|
200
|
+
readonly name: string;
|
|
201
|
+
readonly regions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined;
|
|
202
|
+
readonly aliases: string[];
|
|
203
|
+
readonly displayName: string | undefined;
|
|
204
|
+
hasName(name: string): boolean;
|
|
205
|
+
readonly allAliases: string[];
|
|
206
|
+
readonly allRefNames: string[] | undefined;
|
|
207
|
+
readonly lowerCaseRefNames: string[] | undefined;
|
|
208
|
+
readonly allRefNamesWithLowerCase: string[] | undefined;
|
|
209
|
+
readonly rpcManager: import("@jbrowse/core/rpc/RpcManager").default;
|
|
210
|
+
readonly refNameColors: string[];
|
|
211
|
+
} & {
|
|
212
|
+
readonly refNames: string[] | undefined;
|
|
213
|
+
} & {
|
|
214
|
+
getCanonicalRefName(refName: string): string | undefined;
|
|
215
|
+
getRefNameColor(refName: string): string | undefined;
|
|
216
|
+
isValidRefName(refName: string): boolean;
|
|
217
|
+
} & {
|
|
218
|
+
setLoaded({ adapterRegionsWithAssembly, refNameAliases, lowerCaseRefNameAliases, cytobands, }: import("@jbrowse/core/assemblyManager/assembly").Loading): void;
|
|
219
|
+
setError(e: unknown): void;
|
|
220
|
+
setRegions(regions: import("@jbrowse/core/util").Region[]): void;
|
|
221
|
+
setRefNameAliases(aliases: {
|
|
222
|
+
[x: string]: string | undefined;
|
|
223
|
+
}, lcAliases: {
|
|
224
|
+
[x: string]: string | undefined;
|
|
225
|
+
}): void;
|
|
226
|
+
setCytobands(cytobands: import("@jbrowse/core/util").Feature[]): void;
|
|
227
|
+
setLoadingP(p?: Promise<void> | undefined): void;
|
|
228
|
+
load(): Promise<void>;
|
|
229
|
+
loadPre(): Promise<void>;
|
|
230
|
+
} & {
|
|
231
|
+
getAdapterMapEntry(adapterConf: {
|
|
232
|
+
[x: string]: unknown;
|
|
233
|
+
}, options: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<import("@jbrowse/core/assemblyManager/assembly").RefNameMap>;
|
|
234
|
+
getRefNameMapForAdapter(adapterConf: {
|
|
235
|
+
[x: string]: unknown;
|
|
236
|
+
}, opts: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<{
|
|
237
|
+
[x: string]: string | undefined;
|
|
238
|
+
}>;
|
|
239
|
+
getReverseRefNameMapForAdapter(adapterConf: {
|
|
240
|
+
[x: string]: unknown;
|
|
241
|
+
}, opts: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<{
|
|
242
|
+
[x: string]: string | undefined;
|
|
243
|
+
}>;
|
|
244
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
245
|
+
configuration: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IReferenceType<import("mobx-state-tree").IAnyType>>;
|
|
246
|
+
}, {
|
|
247
|
+
error: unknown;
|
|
248
|
+
loaded: boolean;
|
|
249
|
+
loadingP: Promise<void> | undefined;
|
|
250
|
+
volatileRegions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined;
|
|
251
|
+
refNameAliases: {
|
|
252
|
+
[x: string]: string | undefined;
|
|
253
|
+
} | undefined;
|
|
254
|
+
lowerCaseRefNameAliases: {
|
|
255
|
+
[x: string]: string | undefined;
|
|
256
|
+
} | undefined;
|
|
257
|
+
cytobands: import("@jbrowse/core/util").Feature[] | undefined;
|
|
258
|
+
} & {
|
|
259
|
+
getConf(arg: string): any;
|
|
260
|
+
} & {
|
|
261
|
+
readonly initialized: boolean;
|
|
262
|
+
/**
|
|
263
|
+
* #property
|
|
264
|
+
*/
|
|
265
|
+
readonly name: string;
|
|
266
|
+
readonly regions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined;
|
|
267
|
+
readonly aliases: string[];
|
|
268
|
+
readonly displayName: string | undefined;
|
|
269
|
+
hasName(name: string): boolean;
|
|
270
|
+
readonly allAliases: string[];
|
|
271
|
+
readonly allRefNames: string[] | undefined;
|
|
272
|
+
readonly lowerCaseRefNames: string[] | undefined;
|
|
273
|
+
readonly allRefNamesWithLowerCase: string[] | undefined;
|
|
274
|
+
readonly rpcManager: import("@jbrowse/core/rpc/RpcManager").default;
|
|
275
|
+
readonly refNameColors: string[];
|
|
276
|
+
} & {
|
|
277
|
+
readonly refNames: string[] | undefined;
|
|
278
|
+
} & {
|
|
279
|
+
getCanonicalRefName(refName: string): string | undefined;
|
|
280
|
+
getRefNameColor(refName: string): string | undefined;
|
|
281
|
+
isValidRefName(refName: string): boolean;
|
|
282
|
+
} & {
|
|
283
|
+
setLoaded({ adapterRegionsWithAssembly, refNameAliases, lowerCaseRefNameAliases, cytobands, }: import("@jbrowse/core/assemblyManager/assembly").Loading): void;
|
|
284
|
+
setError(e: unknown): void;
|
|
285
|
+
setRegions(regions: import("@jbrowse/core/util").Region[]): void;
|
|
286
|
+
setRefNameAliases(aliases: {
|
|
287
|
+
[x: string]: string | undefined;
|
|
288
|
+
}, lcAliases: {
|
|
289
|
+
[x: string]: string | undefined;
|
|
290
|
+
}): void;
|
|
291
|
+
setCytobands(cytobands: import("@jbrowse/core/util").Feature[]): void;
|
|
292
|
+
setLoadingP(p?: Promise<void> | undefined): void;
|
|
293
|
+
load(): Promise<void>;
|
|
294
|
+
loadPre(): Promise<void>;
|
|
295
|
+
} & {
|
|
296
|
+
getAdapterMapEntry(adapterConf: {
|
|
297
|
+
[x: string]: unknown;
|
|
298
|
+
}, options: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<import("@jbrowse/core/assemblyManager/assembly").RefNameMap>;
|
|
299
|
+
getRefNameMapForAdapter(adapterConf: {
|
|
300
|
+
[x: string]: unknown;
|
|
301
|
+
}, opts: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<{
|
|
302
|
+
[x: string]: string | undefined;
|
|
303
|
+
}>;
|
|
304
|
+
getReverseRefNameMapForAdapter(adapterConf: {
|
|
305
|
+
[x: string]: unknown;
|
|
306
|
+
}, opts: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<{
|
|
307
|
+
[x: string]: string | undefined;
|
|
308
|
+
}>;
|
|
309
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
310
|
+
}): Promise<void>;
|
|
176
311
|
navToLocations(parsedLocStrings: import("@jbrowse/core/util").ParsedLocString[], assemblyName?: string | undefined): Promise<void>;
|
|
177
312
|
navTo(query: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").NavLocation): void;
|
|
178
313
|
navToMultiple(locations: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").NavLocation[]): void;
|
|
@@ -277,7 +412,7 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
|
|
|
277
412
|
/**
|
|
278
413
|
* #action
|
|
279
414
|
*/
|
|
280
|
-
toggleTrack(trackId: string):
|
|
415
|
+
toggleTrack(trackId: string): boolean;
|
|
281
416
|
/**
|
|
282
417
|
* #action
|
|
283
418
|
*/
|
|
@@ -12,6 +12,8 @@ import FolderOpenIcon from '@mui/icons-material/FolderOpen';
|
|
|
12
12
|
const ReturnToImportFormDialog = lazy(() => import('@jbrowse/core/ui/ReturnToImportFormDialog'));
|
|
13
13
|
/**
|
|
14
14
|
* #stateModel LinearComparativeView
|
|
15
|
+
* extends
|
|
16
|
+
* - [BaseViewModel](../baseviewmodel)
|
|
15
17
|
*/
|
|
16
18
|
function stateModelFactory(pluginManager) {
|
|
17
19
|
return types
|
|
@@ -186,12 +188,12 @@ function stateModelFactory(pluginManager) {
|
|
|
186
188
|
* #action
|
|
187
189
|
*/
|
|
188
190
|
toggleTrack(trackId) {
|
|
189
|
-
// if we have any tracks with that configuration, turn them off
|
|
190
191
|
const hiddenCount = this.hideTrack(trackId);
|
|
191
|
-
// if none had that configuration, turn one on
|
|
192
192
|
if (!hiddenCount) {
|
|
193
193
|
this.showTrack(trackId);
|
|
194
|
+
return true;
|
|
194
195
|
}
|
|
196
|
+
return false;
|
|
195
197
|
},
|
|
196
198
|
/**
|
|
197
199
|
* #action
|
|
@@ -144,7 +144,7 @@ export default function ReadVsRefDialog({ track, feature: preFeature, handleClos
|
|
|
144
144
|
{
|
|
145
145
|
start: 0,
|
|
146
146
|
end: totalLength,
|
|
147
|
-
seq: featSeq || '',
|
|
147
|
+
seq: featSeq || '', // can be empty if user clicks secondary read
|
|
148
148
|
refName: readName,
|
|
149
149
|
uniqueId: `${Math.random()}`,
|
|
150
150
|
},
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { lazy } from 'react';
|
|
1
2
|
import { getSession, getContainingTrack } from '@jbrowse/core/util';
|
|
2
3
|
// icons
|
|
3
4
|
import AddIcon from '@mui/icons-material/Add';
|
|
4
5
|
// locals
|
|
5
|
-
|
|
6
|
+
const ReadVsRefDialog = lazy(() => import('./LinearReadVsRef'));
|
|
6
7
|
function isDisplay(elt) {
|
|
7
8
|
return elt.name === 'LinearPileupDisplay';
|
|
8
9
|
}
|