@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
|
@@ -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: {
|
|
@@ -4,6 +4,8 @@ const configuration_1 = require("@jbrowse/core/configuration");
|
|
|
4
4
|
const plugin_alignments_1 = require("@jbrowse/plugin-alignments");
|
|
5
5
|
/**
|
|
6
6
|
* #config LGVSyntenyDisplay
|
|
7
|
+
* extends config
|
|
8
|
+
* - [LinearPileupDisplay](../linearpileupdisplay)
|
|
7
9
|
*/
|
|
8
10
|
function configSchemaF(pluginManager) {
|
|
9
11
|
return (0, configuration_1.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: {
|
|
@@ -31,8 +31,11 @@ const mobx_state_tree_1 = require("mobx-state-tree");
|
|
|
31
31
|
const LaunchSyntenyViewDialog = (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('./components/LaunchSyntenyViewDialog'))));
|
|
32
32
|
/**
|
|
33
33
|
* #stateModel LGVSyntenyDisplay
|
|
34
|
-
*
|
|
35
|
-
*
|
|
34
|
+
* displays location of "synteny" feature in a plain LGV, allowing linking out
|
|
35
|
+
* to external synteny views
|
|
36
|
+
*
|
|
37
|
+
* extends
|
|
38
|
+
* - [SharedLinearPileupDisplayMixin](../sharedlinearpileupdisplaymixin)
|
|
36
39
|
*/
|
|
37
40
|
function stateModelFactory(schema) {
|
|
38
41
|
return mobx_state_tree_1.types
|
|
@@ -49,6 +52,9 @@ function stateModelFactory(schema) {
|
|
|
49
52
|
.views(self => {
|
|
50
53
|
const superContextMenuItems = self.contextMenuItems;
|
|
51
54
|
return {
|
|
55
|
+
/**
|
|
56
|
+
* #method
|
|
57
|
+
*/
|
|
52
58
|
contextMenuItems() {
|
|
53
59
|
const feature = self.contextMenuFeature;
|
|
54
60
|
return [
|
|
@@ -77,6 +83,9 @@ function stateModelFactory(schema) {
|
|
|
77
83
|
.views(self => {
|
|
78
84
|
const { trackMenuItems: superTrackMenuItems, colorSchemeSubMenuItems: superColorSchemeSubMenuItems, } = self;
|
|
79
85
|
return {
|
|
86
|
+
/**
|
|
87
|
+
* #method
|
|
88
|
+
*/
|
|
80
89
|
trackMenuItems() {
|
|
81
90
|
return [
|
|
82
91
|
...superTrackMenuItems(),
|
|
@@ -90,7 +99,8 @@ function stateModelFactory(schema) {
|
|
|
90
99
|
})
|
|
91
100
|
.actions(self => ({
|
|
92
101
|
afterCreate() {
|
|
93
|
-
// use color by stand to help indicate inversions better on first load,
|
|
102
|
+
// use color by stand to help indicate inversions better on first load,
|
|
103
|
+
// otherwise use selected orientation
|
|
94
104
|
if (self.colorBy) {
|
|
95
105
|
self.setColorScheme({ ...self.colorBy });
|
|
96
106
|
}
|
|
@@ -26,8 +26,12 @@ function LaunchLinearSyntenyView(pluginManager) {
|
|
|
26
26
|
const idsNotFound = [];
|
|
27
27
|
await Promise.all(views.map(async (data, idx) => {
|
|
28
28
|
const view = model.views[idx];
|
|
29
|
-
const { loc, tracks = [] } = data;
|
|
30
|
-
await
|
|
29
|
+
const { assembly, loc, tracks = [] } = data;
|
|
30
|
+
const asm = await assemblyManager.waitForAssembly(assembly);
|
|
31
|
+
if (!asm) {
|
|
32
|
+
throw new Error(`Assembly ${data.assembly} failed to load`);
|
|
33
|
+
}
|
|
34
|
+
await view.navToSearchString({ input: loc, assembly: asm });
|
|
31
35
|
tracks.forEach(track => tryTrack(view, track, idsNotFound));
|
|
32
36
|
}));
|
|
33
37
|
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[];
|
|
@@ -7,6 +7,8 @@ const tracks_1 = require("@jbrowse/core/util/tracks");
|
|
|
7
7
|
const models_1 = require("@jbrowse/core/pluggableElementTypes/models");
|
|
8
8
|
/**
|
|
9
9
|
* #stateModel LinearComparativeDisplay
|
|
10
|
+
* extends
|
|
11
|
+
* - [BaseDisplay](../basedisplay)
|
|
10
12
|
*/
|
|
11
13
|
function stateModelFactory(configSchema) {
|
|
12
14
|
return mobx_state_tree_1.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
|
*/
|
|
@@ -40,6 +40,8 @@ const FolderOpen_1 = __importDefault(require("@mui/icons-material/FolderOpen"));
|
|
|
40
40
|
const ReturnToImportFormDialog = (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('@jbrowse/core/ui/ReturnToImportFormDialog'))));
|
|
41
41
|
/**
|
|
42
42
|
* #stateModel LinearComparativeView
|
|
43
|
+
* extends
|
|
44
|
+
* - [BaseViewModel](../baseviewmodel)
|
|
43
45
|
*/
|
|
44
46
|
function stateModelFactory(pluginManager) {
|
|
45
47
|
return mobx_state_tree_1.types
|
|
@@ -214,12 +216,12 @@ function stateModelFactory(pluginManager) {
|
|
|
214
216
|
* #action
|
|
215
217
|
*/
|
|
216
218
|
toggleTrack(trackId) {
|
|
217
|
-
// if we have any tracks with that configuration, turn them off
|
|
218
219
|
const hiddenCount = this.hideTrack(trackId);
|
|
219
|
-
// if none had that configuration, turn one on
|
|
220
220
|
if (!hiddenCount) {
|
|
221
221
|
this.showTrack(trackId);
|
|
222
|
+
return true;
|
|
222
223
|
}
|
|
224
|
+
return false;
|
|
223
225
|
},
|
|
224
226
|
/**
|
|
225
227
|
* #action
|
|
@@ -169,7 +169,7 @@ function ReadVsRefDialog({ track, feature: preFeature, handleClose, }) {
|
|
|
169
169
|
{
|
|
170
170
|
start: 0,
|
|
171
171
|
end: totalLength,
|
|
172
|
-
seq: featSeq || '',
|
|
172
|
+
seq: featSeq || '', // can be empty if user clicks secondary read
|
|
173
173
|
refName: readName,
|
|
174
174
|
uniqueId: `${Math.random()}`,
|
|
175
175
|
},
|
|
@@ -1,13 +1,37 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
27
|
};
|
|
5
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
const react_1 = require("react");
|
|
6
30
|
const util_1 = require("@jbrowse/core/util");
|
|
7
31
|
// icons
|
|
8
32
|
const Add_1 = __importDefault(require("@mui/icons-material/Add"));
|
|
9
33
|
// locals
|
|
10
|
-
const
|
|
34
|
+
const ReadVsRefDialog = (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('./LinearReadVsRef'))));
|
|
11
35
|
function isDisplay(elt) {
|
|
12
36
|
return elt.name === 'LinearPileupDisplay';
|
|
13
37
|
}
|
|
@@ -32,7 +56,7 @@ function default_1(pm) {
|
|
|
32
56
|
icon: Add_1.default,
|
|
33
57
|
onClick: () => {
|
|
34
58
|
(0, util_1.getSession)(self).queueDialog(handleClose => [
|
|
35
|
-
|
|
59
|
+
ReadVsRefDialog,
|
|
36
60
|
{
|
|
37
61
|
track,
|
|
38
62
|
feature,
|