@jbrowse/core 1.5.0 → 1.5.4
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/BaseFeatureWidget/BaseFeatureDetail.d.ts +4 -2
- package/BaseFeatureWidget/BaseFeatureDetail.js +43 -16
- package/BaseFeatureWidget/SequenceFeatureDetails.js +5 -4
- package/BaseFeatureWidget/index.js +1 -1
- package/BaseFeatureWidget/util.js +5 -5
- package/CorePlugin.d.ts +0 -1
- package/CorePlugin.js +13 -1
- package/PluginLoader.d.ts +25 -2
- package/PluginLoader.js +334 -47
- package/PluginManager.d.ts +9 -7
- package/PluginManager.js +1 -5
- package/ReExports/list.js +1 -1
- package/ReExports/material-ui-colors.js +38 -38
- package/ReExports/modules.d.ts +11 -13
- package/ReExports/modules.js +8 -2
- package/TextSearch/BaseResults.js +1 -1
- package/TextSearch/TextSearchManager.d.ts +2 -2
- package/TextSearch/TextSearchManager.js +0 -2
- package/assemblyManager/assembly.d.ts +21 -8
- package/assemblyManager/assembly.js +165 -122
- package/assemblyManager/assemblyConfigSchema.d.ts +3 -0
- package/assemblyManager/{assemblyConfigSchemas.js → assemblyConfigSchema.js} +35 -27
- package/assemblyManager/assemblyManager.d.ts +126 -45
- package/assemblyManager/index.d.ts +1 -1
- package/assemblyManager/index.js +5 -5
- package/configuration/configurationSchema.js +7 -7
- package/configuration/configurationSlot.js +3 -1
- package/configuration/index.js +4 -4
- package/configuration/util.js +2 -2
- package/data_adapters/BaseAdapter.d.ts +5 -5
- package/data_adapters/BaseAdapter.js +9 -18
- package/data_adapters/CytobandAdapter.d.ts +8 -0
- package/data_adapters/CytobandAdapter.js +128 -0
- package/data_adapters/dataAdapterCache.js +2 -2
- package/package.json +9 -8
- package/pluggableElementTypes/AdapterType.d.ts +9 -1
- package/pluggableElementTypes/AdapterType.js +23 -1
- package/pluggableElementTypes/ConnectionType.js +3 -1
- package/pluggableElementTypes/DisplayType.js +3 -1
- package/pluggableElementTypes/InternetAccountType.js +3 -1
- package/pluggableElementTypes/PluggableElementBase.js +4 -3
- package/pluggableElementTypes/RpcMethodType.js +2 -4
- package/pluggableElementTypes/TextSearchAdapterType.js +3 -1
- package/pluggableElementTypes/WidgetType.js +3 -1
- package/pluggableElementTypes/index.d.ts +6 -3
- package/pluggableElementTypes/index.js +127 -1
- package/pluggableElementTypes/models/BaseDisplayModel.js +2 -2
- package/pluggableElementTypes/models/BaseTrackModel.js +4 -3
- package/pluggableElementTypes/models/BaseViewModel.js +6 -2
- package/pluggableElementTypes/models/InternetAccountModel.d.ts +2 -2
- package/pluggableElementTypes/models/baseTrackConfig.js +2 -2
- package/pluggableElementTypes/models/index.js +14 -14
- package/pluggableElementTypes/renderers/BoxRendererType.js +3 -3
- package/pluggableElementTypes/renderers/CircularChordRendererType.js +3 -1
- package/pluggableElementTypes/renderers/ComparativeServerSideRendererType.js +2 -2
- package/pluggableElementTypes/renderers/FeatureRendererType.d.ts +1 -1
- package/pluggableElementTypes/renderers/FeatureRendererType.js +4 -4
- package/pluggableElementTypes/renderers/RendererType.js +3 -1
- package/pluggableElementTypes/renderers/ServerSideRendererType.js +2 -2
- package/pluggableElementTypes/renderers/index.d.ts +9 -0
- package/pluggableElementTypes/renderers/index.js +63 -0
- package/rpc/BaseRpcDriver.d.ts +1 -1
- package/rpc/BaseRpcDriver.js +3 -5
- package/rpc/BaseRpcDriver.test.js +1 -1
- package/rpc/RpcManager.d.ts +3 -3
- package/rpc/RpcManager.js +44 -22
- package/rpc/WebWorkerRpcDriver.d.ts +2 -2
- package/rpc/WebWorkerRpcDriver.js +5 -7
- package/rpc/coreRpcMethods.js +3 -3
- package/rpc/remoteAbortSignals.js +2 -2
- package/ui/App.js +13 -12
- package/ui/DrawerWidget.js +10 -3
- package/ui/EditableTypography.js +2 -2
- package/ui/ErrorMessage.d.ts +5 -0
- package/ui/ErrorMessage.js +54 -0
- package/ui/FileSelector/FileSelector.js +75 -100
- package/ui/Icons.js +4 -4
- package/ui/Logo.js +1 -1
- package/ui/Menu.js +2 -2
- package/ui/NewSessionCards.js +2 -2
- package/ui/PrerenderedCanvas.d.ts +1 -0
- package/ui/PrerenderedCanvas.js +6 -3
- package/ui/SanitizedHTML.js +1 -1
- package/ui/SnackbarModel.d.ts +16 -0
- package/ui/SnackbarModel.js +56 -0
- package/ui/ViewContainer.js +4 -3
- package/ui/index.js +24 -24
- package/ui/theme.js +7 -5
- package/util/Base1DViewModel.js +2 -2
- package/util/aborting.js +7 -4
- package/util/blockTypes.js +8 -11
- package/util/calculateDynamicBlocks.test.js +2 -2
- package/util/color/cssColorsLevel4.js +1 -1
- package/util/color/index.js +5 -5
- package/util/compositeMap.js +3 -11
- package/util/index.d.ts +3 -1
- package/util/index.js +75 -32
- package/util/index.test.js +2 -2
- package/util/io/RemoteFileWithRangeCache.js +3 -3
- package/util/io/index.js +1 -1
- package/util/jexl.js +4 -1
- package/util/layouts/BaseLayout.d.ts +3 -0
- package/util/layouts/GranularRectLayout.d.ts +19 -10
- package/util/layouts/GranularRectLayout.js +459 -100
- package/util/layouts/GranularRectLayout.test.js +57 -10
- package/util/layouts/MultiLayout.d.ts +1 -1
- package/util/layouts/MultiLayout.js +0 -2
- package/util/layouts/PrecomputedLayout.js +2 -1
- package/util/layouts/PrecomputedMultiLayout.js +5 -3
- package/util/layouts/SceneGraph.d.ts +3 -3
- package/util/layouts/SceneGraph.js +0 -14
- package/util/layouts/index.d.ts +7 -0
- package/util/layouts/index.js +68 -0
- package/util/mst-reflection.d.ts +3 -3
- package/util/mst-reflection.js +3 -3
- package/util/offscreenCanvasPonyfill.js +1 -1
- package/util/range.js +1 -1
- package/util/simpleFeature.js +3 -3
- package/util/stats.js +4 -4
- package/util/tracks.d.ts +30 -433
- package/util/tracks.js +72 -192
- package/util/types/index.d.ts +14 -2
- package/util/types/index.js +21 -18
- package/util/types/mst.js +6 -6
- package/assemblyManager/assemblyConfigSchemas.d.ts +0 -7
- package/value.d.ts +0 -1
- package/value.js +0 -10
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Instance, IAnyType } from 'mobx-state-tree';
|
|
2
2
|
import PluginManager from '../PluginManager';
|
|
3
3
|
export default function assemblyManagerFactory(assemblyConfigType: IAnyType, pluginManager: PluginManager): import("mobx-state-tree").IModelType<{
|
|
4
4
|
assemblies: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
|
|
@@ -9,6 +9,7 @@ export default function assemblyManagerFactory(assemblyConfigType: IAnyType, plu
|
|
|
9
9
|
refNameAliases: {
|
|
10
10
|
[key: string]: string;
|
|
11
11
|
} | undefined;
|
|
12
|
+
cytobands: import("../util/simpleFeature").Feature[] | undefined;
|
|
12
13
|
} & {
|
|
13
14
|
readonly initialized: boolean;
|
|
14
15
|
readonly name: string;
|
|
@@ -25,25 +26,35 @@ export default function assemblyManagerFactory(assemblyConfigType: IAnyType, plu
|
|
|
25
26
|
isValidRefName(refName: string): boolean;
|
|
26
27
|
} & {
|
|
27
28
|
setLoading(): void;
|
|
28
|
-
setLoaded({ adapterRegionsWithAssembly, refNameAliases, }: {
|
|
29
|
+
setLoaded({ adapterRegionsWithAssembly, refNameAliases, cytobands, }: {
|
|
29
30
|
adapterRegionsWithAssembly: import("../util").Region[];
|
|
30
31
|
refNameAliases: {
|
|
31
32
|
[x: string]: string;
|
|
32
33
|
};
|
|
34
|
+
cytobands: import("../util/simpleFeature").Feature[];
|
|
33
35
|
}): void;
|
|
34
|
-
setError(
|
|
36
|
+
setError(e: Error): void;
|
|
35
37
|
setRegions(regions: import("../util").Region[]): void;
|
|
36
38
|
setRefNameAliases(refNameAliases: {
|
|
37
39
|
[x: string]: string;
|
|
38
40
|
}): void;
|
|
41
|
+
setCytobands(cytobands: import("../util/simpleFeature").Feature[]): void;
|
|
39
42
|
afterAttach(): void;
|
|
40
43
|
} & {
|
|
41
44
|
getAdapterMapEntry(adapterConf: unknown, options: import("./assembly").BaseOptions): Promise<{
|
|
42
|
-
forwardMap:
|
|
43
|
-
|
|
45
|
+
forwardMap: {
|
|
46
|
+
[k: string]: string;
|
|
47
|
+
};
|
|
48
|
+
reverseMap: {
|
|
49
|
+
[k: string]: string;
|
|
50
|
+
};
|
|
51
|
+
}>;
|
|
52
|
+
getRefNameMapForAdapter(adapterConf: unknown, opts: import("./assembly").BaseOptions): Promise<{
|
|
53
|
+
[k: string]: string;
|
|
54
|
+
}>;
|
|
55
|
+
getReverseRefNameMapForAdapter(adapterConf: unknown, opts: import("./assembly").BaseOptions): Promise<{
|
|
56
|
+
[k: string]: string;
|
|
44
57
|
}>;
|
|
45
|
-
getRefNameMapForAdapter(adapterConf: unknown, opts: import("./assembly").BaseOptions): Promise<Record<string, string>>;
|
|
46
|
-
getReverseRefNameMapForAdapter(adapterConf: unknown, opts: import("./assembly").BaseOptions): Promise<Record<string, string>>;
|
|
47
58
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
48
59
|
}, {
|
|
49
60
|
get(assemblyName: string): (import("mobx-state-tree").ModelInstanceTypeProps<{
|
|
@@ -54,6 +65,7 @@ export default function assemblyManagerFactory(assemblyConfigType: IAnyType, plu
|
|
|
54
65
|
refNameAliases: {
|
|
55
66
|
[key: string]: string;
|
|
56
67
|
} | undefined;
|
|
68
|
+
cytobands: import("../util/simpleFeature").Feature[] | undefined;
|
|
57
69
|
} & {
|
|
58
70
|
readonly initialized: boolean;
|
|
59
71
|
readonly name: string;
|
|
@@ -70,25 +82,35 @@ export default function assemblyManagerFactory(assemblyConfigType: IAnyType, plu
|
|
|
70
82
|
isValidRefName(refName: string): boolean;
|
|
71
83
|
} & {
|
|
72
84
|
setLoading(): void;
|
|
73
|
-
setLoaded({ adapterRegionsWithAssembly, refNameAliases, }: {
|
|
85
|
+
setLoaded({ adapterRegionsWithAssembly, refNameAliases, cytobands, }: {
|
|
74
86
|
adapterRegionsWithAssembly: import("../util").Region[];
|
|
75
87
|
refNameAliases: {
|
|
76
88
|
[x: string]: string;
|
|
77
89
|
};
|
|
90
|
+
cytobands: import("../util/simpleFeature").Feature[];
|
|
78
91
|
}): void;
|
|
79
|
-
setError(
|
|
92
|
+
setError(e: Error): void;
|
|
80
93
|
setRegions(regions: import("../util").Region[]): void;
|
|
81
94
|
setRefNameAliases(refNameAliases: {
|
|
82
95
|
[x: string]: string;
|
|
83
96
|
}): void;
|
|
97
|
+
setCytobands(cytobands: import("../util/simpleFeature").Feature[]): void;
|
|
84
98
|
afterAttach(): void;
|
|
85
99
|
} & {
|
|
86
100
|
getAdapterMapEntry(adapterConf: unknown, options: import("./assembly").BaseOptions): Promise<{
|
|
87
|
-
forwardMap:
|
|
88
|
-
|
|
101
|
+
forwardMap: {
|
|
102
|
+
[k: string]: string;
|
|
103
|
+
};
|
|
104
|
+
reverseMap: {
|
|
105
|
+
[k: string]: string;
|
|
106
|
+
};
|
|
107
|
+
}>;
|
|
108
|
+
getRefNameMapForAdapter(adapterConf: unknown, opts: import("./assembly").BaseOptions): Promise<{
|
|
109
|
+
[k: string]: string;
|
|
110
|
+
}>;
|
|
111
|
+
getReverseRefNameMapForAdapter(adapterConf: unknown, opts: import("./assembly").BaseOptions): Promise<{
|
|
112
|
+
[k: string]: string;
|
|
89
113
|
}>;
|
|
90
|
-
getRefNameMapForAdapter(adapterConf: unknown, opts: import("./assembly").BaseOptions): Promise<Record<string, string>>;
|
|
91
|
-
getReverseRefNameMapForAdapter(adapterConf: unknown, opts: import("./assembly").BaseOptions): Promise<Record<string, string>>;
|
|
92
114
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
93
115
|
configuration: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IReferenceType<IAnyType>>;
|
|
94
116
|
}, {
|
|
@@ -97,6 +119,7 @@ export default function assemblyManagerFactory(assemblyConfigType: IAnyType, plu
|
|
|
97
119
|
refNameAliases: {
|
|
98
120
|
[key: string]: string;
|
|
99
121
|
} | undefined;
|
|
122
|
+
cytobands: import("../util/simpleFeature").Feature[] | undefined;
|
|
100
123
|
} & {
|
|
101
124
|
readonly initialized: boolean;
|
|
102
125
|
readonly name: string;
|
|
@@ -113,25 +136,35 @@ export default function assemblyManagerFactory(assemblyConfigType: IAnyType, plu
|
|
|
113
136
|
isValidRefName(refName: string): boolean;
|
|
114
137
|
} & {
|
|
115
138
|
setLoading(): void;
|
|
116
|
-
setLoaded({ adapterRegionsWithAssembly, refNameAliases, }: {
|
|
139
|
+
setLoaded({ adapterRegionsWithAssembly, refNameAliases, cytobands, }: {
|
|
117
140
|
adapterRegionsWithAssembly: import("../util").Region[];
|
|
118
141
|
refNameAliases: {
|
|
119
142
|
[x: string]: string;
|
|
120
143
|
};
|
|
144
|
+
cytobands: import("../util/simpleFeature").Feature[];
|
|
121
145
|
}): void;
|
|
122
|
-
setError(
|
|
146
|
+
setError(e: Error): void;
|
|
123
147
|
setRegions(regions: import("../util").Region[]): void;
|
|
124
148
|
setRefNameAliases(refNameAliases: {
|
|
125
149
|
[x: string]: string;
|
|
126
150
|
}): void;
|
|
151
|
+
setCytobands(cytobands: import("../util/simpleFeature").Feature[]): void;
|
|
127
152
|
afterAttach(): void;
|
|
128
153
|
} & {
|
|
129
154
|
getAdapterMapEntry(adapterConf: unknown, options: import("./assembly").BaseOptions): Promise<{
|
|
130
|
-
forwardMap:
|
|
131
|
-
|
|
155
|
+
forwardMap: {
|
|
156
|
+
[k: string]: string;
|
|
157
|
+
};
|
|
158
|
+
reverseMap: {
|
|
159
|
+
[k: string]: string;
|
|
160
|
+
};
|
|
161
|
+
}>;
|
|
162
|
+
getRefNameMapForAdapter(adapterConf: unknown, opts: import("./assembly").BaseOptions): Promise<{
|
|
163
|
+
[k: string]: string;
|
|
164
|
+
}>;
|
|
165
|
+
getReverseRefNameMapForAdapter(adapterConf: unknown, opts: import("./assembly").BaseOptions): Promise<{
|
|
166
|
+
[k: string]: string;
|
|
132
167
|
}>;
|
|
133
|
-
getRefNameMapForAdapter(adapterConf: unknown, opts: import("./assembly").BaseOptions): Promise<Record<string, string>>;
|
|
134
|
-
getReverseRefNameMapForAdapter(adapterConf: unknown, opts: import("./assembly").BaseOptions): Promise<Record<string, string>>;
|
|
135
168
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | undefined;
|
|
136
169
|
readonly assemblyNamesList: string[];
|
|
137
170
|
readonly assemblyList: (import("mobx-state-tree").ModelInstanceTypeProps<Record<string, any>> & {
|
|
@@ -151,6 +184,7 @@ export default function assemblyManagerFactory(assemblyConfigType: IAnyType, plu
|
|
|
151
184
|
refNameAliases: {
|
|
152
185
|
[key: string]: string;
|
|
153
186
|
} | undefined;
|
|
187
|
+
cytobands: import("../util/simpleFeature").Feature[] | undefined;
|
|
154
188
|
} & {
|
|
155
189
|
readonly initialized: boolean;
|
|
156
190
|
readonly name: string;
|
|
@@ -167,25 +201,35 @@ export default function assemblyManagerFactory(assemblyConfigType: IAnyType, plu
|
|
|
167
201
|
isValidRefName(refName: string): boolean;
|
|
168
202
|
} & {
|
|
169
203
|
setLoading(): void;
|
|
170
|
-
setLoaded({ adapterRegionsWithAssembly, refNameAliases, }: {
|
|
204
|
+
setLoaded({ adapterRegionsWithAssembly, refNameAliases, cytobands, }: {
|
|
171
205
|
adapterRegionsWithAssembly: import("../util").Region[];
|
|
172
206
|
refNameAliases: {
|
|
173
207
|
[x: string]: string;
|
|
174
208
|
};
|
|
209
|
+
cytobands: import("../util/simpleFeature").Feature[];
|
|
175
210
|
}): void;
|
|
176
|
-
setError(
|
|
211
|
+
setError(e: Error): void;
|
|
177
212
|
setRegions(regions: import("../util").Region[]): void;
|
|
178
213
|
setRefNameAliases(refNameAliases: {
|
|
179
214
|
[x: string]: string;
|
|
180
215
|
}): void;
|
|
216
|
+
setCytobands(cytobands: import("../util/simpleFeature").Feature[]): void;
|
|
181
217
|
afterAttach(): void;
|
|
182
218
|
} & {
|
|
183
219
|
getAdapterMapEntry(adapterConf: unknown, options: import("./assembly").BaseOptions): Promise<{
|
|
184
|
-
forwardMap:
|
|
185
|
-
|
|
220
|
+
forwardMap: {
|
|
221
|
+
[k: string]: string;
|
|
222
|
+
};
|
|
223
|
+
reverseMap: {
|
|
224
|
+
[k: string]: string;
|
|
225
|
+
};
|
|
226
|
+
}>;
|
|
227
|
+
getRefNameMapForAdapter(adapterConf: unknown, opts: import("./assembly").BaseOptions): Promise<{
|
|
228
|
+
[k: string]: string;
|
|
229
|
+
}>;
|
|
230
|
+
getReverseRefNameMapForAdapter(adapterConf: unknown, opts: import("./assembly").BaseOptions): Promise<{
|
|
231
|
+
[k: string]: string;
|
|
186
232
|
}>;
|
|
187
|
-
getRefNameMapForAdapter(adapterConf: unknown, opts: import("./assembly").BaseOptions): Promise<Record<string, string>>;
|
|
188
|
-
getReverseRefNameMapForAdapter(adapterConf: unknown, opts: import("./assembly").BaseOptions): Promise<Record<string, string>>;
|
|
189
233
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
190
234
|
configuration: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IReferenceType<IAnyType>>;
|
|
191
235
|
}, {
|
|
@@ -194,6 +238,7 @@ export default function assemblyManagerFactory(assemblyConfigType: IAnyType, plu
|
|
|
194
238
|
refNameAliases: {
|
|
195
239
|
[key: string]: string;
|
|
196
240
|
} | undefined;
|
|
241
|
+
cytobands: import("../util/simpleFeature").Feature[] | undefined;
|
|
197
242
|
} & {
|
|
198
243
|
readonly initialized: boolean;
|
|
199
244
|
readonly name: string;
|
|
@@ -210,34 +255,48 @@ export default function assemblyManagerFactory(assemblyConfigType: IAnyType, plu
|
|
|
210
255
|
isValidRefName(refName: string): boolean;
|
|
211
256
|
} & {
|
|
212
257
|
setLoading(): void;
|
|
213
|
-
setLoaded({ adapterRegionsWithAssembly, refNameAliases, }: {
|
|
258
|
+
setLoaded({ adapterRegionsWithAssembly, refNameAliases, cytobands, }: {
|
|
214
259
|
adapterRegionsWithAssembly: import("../util").Region[];
|
|
215
260
|
refNameAliases: {
|
|
216
261
|
[x: string]: string;
|
|
217
262
|
};
|
|
263
|
+
cytobands: import("../util/simpleFeature").Feature[];
|
|
218
264
|
}): void;
|
|
219
|
-
setError(
|
|
265
|
+
setError(e: Error): void;
|
|
220
266
|
setRegions(regions: import("../util").Region[]): void;
|
|
221
267
|
setRefNameAliases(refNameAliases: {
|
|
222
268
|
[x: string]: string;
|
|
223
269
|
}): void;
|
|
270
|
+
setCytobands(cytobands: import("../util/simpleFeature").Feature[]): void;
|
|
224
271
|
afterAttach(): void;
|
|
225
272
|
} & {
|
|
226
273
|
getAdapterMapEntry(adapterConf: unknown, options: import("./assembly").BaseOptions): Promise<{
|
|
227
|
-
forwardMap:
|
|
228
|
-
|
|
274
|
+
forwardMap: {
|
|
275
|
+
[k: string]: string;
|
|
276
|
+
};
|
|
277
|
+
reverseMap: {
|
|
278
|
+
[k: string]: string;
|
|
279
|
+
};
|
|
280
|
+
}>;
|
|
281
|
+
getRefNameMapForAdapter(adapterConf: unknown, opts: import("./assembly").BaseOptions): Promise<{
|
|
282
|
+
[k: string]: string;
|
|
283
|
+
}>;
|
|
284
|
+
getReverseRefNameMapForAdapter(adapterConf: unknown, opts: import("./assembly").BaseOptions): Promise<{
|
|
285
|
+
[k: string]: string;
|
|
229
286
|
}>;
|
|
230
|
-
getRefNameMapForAdapter(adapterConf: unknown, opts: import("./assembly").BaseOptions): Promise<Record<string, string>>;
|
|
231
|
-
getReverseRefNameMapForAdapter(adapterConf: unknown, opts: import("./assembly").BaseOptions): Promise<Record<string, string>>;
|
|
232
287
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | undefined>;
|
|
233
288
|
getRefNameMapForAdapter(adapterConf: unknown, assemblyName: string, opts: {
|
|
234
289
|
signal?: AbortSignal;
|
|
235
290
|
sessionId: string;
|
|
236
|
-
}): Promise<
|
|
291
|
+
}): Promise<{
|
|
292
|
+
[k: string]: string;
|
|
293
|
+
} | undefined>;
|
|
237
294
|
getReverseRefNameMapForAdapter(adapterConf: unknown, assemblyName: string, opts: {
|
|
238
295
|
signal?: AbortSignal;
|
|
239
296
|
sessionId: string;
|
|
240
|
-
}): Promise<
|
|
297
|
+
}): Promise<{
|
|
298
|
+
[k: string]: string;
|
|
299
|
+
} | undefined>;
|
|
241
300
|
isValidRefName(refName: string, assemblyName?: string | undefined): boolean;
|
|
242
301
|
} & {
|
|
243
302
|
removeAssembly(asm: import("mobx-state-tree").ModelInstanceTypeProps<{
|
|
@@ -248,6 +307,7 @@ export default function assemblyManagerFactory(assemblyConfigType: IAnyType, plu
|
|
|
248
307
|
refNameAliases: {
|
|
249
308
|
[key: string]: string;
|
|
250
309
|
} | undefined;
|
|
310
|
+
cytobands: import("../util/simpleFeature").Feature[] | undefined;
|
|
251
311
|
} & {
|
|
252
312
|
readonly initialized: boolean;
|
|
253
313
|
readonly name: string;
|
|
@@ -264,25 +324,35 @@ export default function assemblyManagerFactory(assemblyConfigType: IAnyType, plu
|
|
|
264
324
|
isValidRefName(refName: string): boolean;
|
|
265
325
|
} & {
|
|
266
326
|
setLoading(): void;
|
|
267
|
-
setLoaded({ adapterRegionsWithAssembly, refNameAliases, }: {
|
|
327
|
+
setLoaded({ adapterRegionsWithAssembly, refNameAliases, cytobands, }: {
|
|
268
328
|
adapterRegionsWithAssembly: import("../util").Region[];
|
|
269
329
|
refNameAliases: {
|
|
270
330
|
[x: string]: string;
|
|
271
331
|
};
|
|
332
|
+
cytobands: import("../util/simpleFeature").Feature[];
|
|
272
333
|
}): void;
|
|
273
|
-
setError(
|
|
334
|
+
setError(e: Error): void;
|
|
274
335
|
setRegions(regions: import("../util").Region[]): void;
|
|
275
336
|
setRefNameAliases(refNameAliases: {
|
|
276
337
|
[x: string]: string;
|
|
277
338
|
}): void;
|
|
339
|
+
setCytobands(cytobands: import("../util/simpleFeature").Feature[]): void;
|
|
278
340
|
afterAttach(): void;
|
|
279
341
|
} & {
|
|
280
342
|
getAdapterMapEntry(adapterConf: unknown, options: import("./assembly").BaseOptions): Promise<{
|
|
281
|
-
forwardMap:
|
|
282
|
-
|
|
343
|
+
forwardMap: {
|
|
344
|
+
[k: string]: string;
|
|
345
|
+
};
|
|
346
|
+
reverseMap: {
|
|
347
|
+
[k: string]: string;
|
|
348
|
+
};
|
|
349
|
+
}>;
|
|
350
|
+
getRefNameMapForAdapter(adapterConf: unknown, opts: import("./assembly").BaseOptions): Promise<{
|
|
351
|
+
[k: string]: string;
|
|
352
|
+
}>;
|
|
353
|
+
getReverseRefNameMapForAdapter(adapterConf: unknown, opts: import("./assembly").BaseOptions): Promise<{
|
|
354
|
+
[k: string]: string;
|
|
283
355
|
}>;
|
|
284
|
-
getRefNameMapForAdapter(adapterConf: unknown, opts: import("./assembly").BaseOptions): Promise<Record<string, string>>;
|
|
285
|
-
getReverseRefNameMapForAdapter(adapterConf: unknown, opts: import("./assembly").BaseOptions): Promise<Record<string, string>>;
|
|
286
356
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
287
357
|
configuration: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IReferenceType<IAnyType>>;
|
|
288
358
|
}, {
|
|
@@ -291,6 +361,7 @@ export default function assemblyManagerFactory(assemblyConfigType: IAnyType, plu
|
|
|
291
361
|
refNameAliases: {
|
|
292
362
|
[key: string]: string;
|
|
293
363
|
} | undefined;
|
|
364
|
+
cytobands: import("../util/simpleFeature").Feature[] | undefined;
|
|
294
365
|
} & {
|
|
295
366
|
readonly initialized: boolean;
|
|
296
367
|
readonly name: string;
|
|
@@ -307,25 +378,35 @@ export default function assemblyManagerFactory(assemblyConfigType: IAnyType, plu
|
|
|
307
378
|
isValidRefName(refName: string): boolean;
|
|
308
379
|
} & {
|
|
309
380
|
setLoading(): void;
|
|
310
|
-
setLoaded({ adapterRegionsWithAssembly, refNameAliases, }: {
|
|
381
|
+
setLoaded({ adapterRegionsWithAssembly, refNameAliases, cytobands, }: {
|
|
311
382
|
adapterRegionsWithAssembly: import("../util").Region[];
|
|
312
383
|
refNameAliases: {
|
|
313
384
|
[x: string]: string;
|
|
314
385
|
};
|
|
386
|
+
cytobands: import("../util/simpleFeature").Feature[];
|
|
315
387
|
}): void;
|
|
316
|
-
setError(
|
|
388
|
+
setError(e: Error): void;
|
|
317
389
|
setRegions(regions: import("../util").Region[]): void;
|
|
318
390
|
setRefNameAliases(refNameAliases: {
|
|
319
391
|
[x: string]: string;
|
|
320
392
|
}): void;
|
|
393
|
+
setCytobands(cytobands: import("../util/simpleFeature").Feature[]): void;
|
|
321
394
|
afterAttach(): void;
|
|
322
395
|
} & {
|
|
323
396
|
getAdapterMapEntry(adapterConf: unknown, options: import("./assembly").BaseOptions): Promise<{
|
|
324
|
-
forwardMap:
|
|
325
|
-
|
|
397
|
+
forwardMap: {
|
|
398
|
+
[k: string]: string;
|
|
399
|
+
};
|
|
400
|
+
reverseMap: {
|
|
401
|
+
[k: string]: string;
|
|
402
|
+
};
|
|
403
|
+
}>;
|
|
404
|
+
getRefNameMapForAdapter(adapterConf: unknown, opts: import("./assembly").BaseOptions): Promise<{
|
|
405
|
+
[k: string]: string;
|
|
406
|
+
}>;
|
|
407
|
+
getReverseRefNameMapForAdapter(adapterConf: unknown, opts: import("./assembly").BaseOptions): Promise<{
|
|
408
|
+
[k: string]: string;
|
|
326
409
|
}>;
|
|
327
|
-
getRefNameMapForAdapter(adapterConf: unknown, opts: import("./assembly").BaseOptions): Promise<Record<string, string>>;
|
|
328
|
-
getReverseRefNameMapForAdapter(adapterConf: unknown, opts: import("./assembly").BaseOptions): Promise<Record<string, string>>;
|
|
329
410
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>): void;
|
|
330
411
|
afterAttach(): void;
|
|
331
412
|
addAssembly(assemblyConfig: Instance<typeof assemblyConfigType> | string): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default } from './assemblyManager';
|
|
2
|
-
export { default as
|
|
2
|
+
export { default as assemblyConfigSchemaFactory } from './assemblyConfigSchema';
|
package/assemblyManager/index.js
CHANGED
|
@@ -5,19 +5,19 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
Object.defineProperty(exports, "
|
|
8
|
+
Object.defineProperty(exports, "assemblyConfigSchemaFactory", {
|
|
9
9
|
enumerable: true,
|
|
10
10
|
get: function get() {
|
|
11
|
-
return
|
|
11
|
+
return _assemblyConfigSchema.default;
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
|
-
Object.defineProperty(exports, "
|
|
14
|
+
Object.defineProperty(exports, "default", {
|
|
15
15
|
enumerable: true,
|
|
16
16
|
get: function get() {
|
|
17
|
-
return
|
|
17
|
+
return _assemblyManager.default;
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
20
|
|
|
21
21
|
var _assemblyManager = _interopRequireDefault(require("./assemblyManager"));
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _assemblyConfigSchema = _interopRequireDefault(require("./assemblyConfigSchema"));
|
|
@@ -5,8 +5,8 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.ConfigurationSchema = ConfigurationSchema;
|
|
9
8
|
exports.ConfigurationReference = ConfigurationReference;
|
|
9
|
+
exports.ConfigurationSchema = ConfigurationSchema;
|
|
10
10
|
|
|
11
11
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
12
12
|
|
|
@@ -22,9 +22,9 @@ var _configurationSlot = _interopRequireDefault(require("./configurationSlot"));
|
|
|
22
22
|
|
|
23
23
|
var _util = require("./util");
|
|
24
24
|
|
|
25
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
25
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
26
26
|
|
|
27
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
27
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
28
28
|
|
|
29
29
|
function isEmptyObject(thing) {
|
|
30
30
|
return (0, _typeof2.default)(thing) === 'object' && !Array.isArray(thing) && thing !== null && Object.keys(thing).length === 0;
|
|
@@ -141,7 +141,9 @@ function makeConfigurationSchemaModel(modelName, schemaDefinition, options) {
|
|
|
141
141
|
});
|
|
142
142
|
|
|
143
143
|
if (Object.keys(volatileConstants).length) {
|
|
144
|
-
completeModel = completeModel.volatile(function
|
|
144
|
+
completeModel = completeModel.volatile(function
|
|
145
|
+
/* self */
|
|
146
|
+
() {
|
|
145
147
|
return volatileConstants;
|
|
146
148
|
});
|
|
147
149
|
}
|
|
@@ -199,9 +201,7 @@ function makeConfigurationSchemaModel(modelName, schemaDefinition, options) {
|
|
|
199
201
|
completeModel = completeModel.preProcessSnapshot(options.preProcessSnapshot);
|
|
200
202
|
}
|
|
201
203
|
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
return schemaType;
|
|
204
|
+
return _mobxStateTree.types.optional(completeModel, modelDefault);
|
|
205
205
|
}
|
|
206
206
|
|
|
207
207
|
function ConfigurationSchema(modelName, inputSchemaDefinition, inputOptions) {
|
|
@@ -16,7 +16,9 @@ var _jexlStrings = require("../util/jexlStrings");
|
|
|
16
16
|
var _mst = require("../util/types/mst");
|
|
17
17
|
|
|
18
18
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
19
|
-
function
|
|
19
|
+
function
|
|
20
|
+
/* str */
|
|
21
|
+
isValidColorString() {
|
|
20
22
|
// TODO: check all the crazy cases for whether it's a valid HTML/CSS color string
|
|
21
23
|
return true;
|
|
22
24
|
}
|
package/configuration/index.js
CHANGED
|
@@ -7,16 +7,16 @@ var _exportNames = {
|
|
|
7
7
|
ConfigurationSchema: true,
|
|
8
8
|
ConfigurationReference: true
|
|
9
9
|
};
|
|
10
|
-
Object.defineProperty(exports, "
|
|
10
|
+
Object.defineProperty(exports, "ConfigurationReference", {
|
|
11
11
|
enumerable: true,
|
|
12
12
|
get: function get() {
|
|
13
|
-
return _configurationSchema.
|
|
13
|
+
return _configurationSchema.ConfigurationReference;
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
Object.defineProperty(exports, "
|
|
16
|
+
Object.defineProperty(exports, "ConfigurationSchema", {
|
|
17
17
|
enumerable: true,
|
|
18
18
|
get: function get() {
|
|
19
|
-
return _configurationSchema.
|
|
19
|
+
return _configurationSchema.ConfigurationSchema;
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
22
|
|
package/configuration/util.js
CHANGED
|
@@ -5,13 +5,13 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.readConfObject = readConfObject;
|
|
9
8
|
exports.getConf = getConf;
|
|
10
9
|
exports.getTypeNamesFromExplicitlyTypedUnion = getTypeNamesFromExplicitlyTypedUnion;
|
|
11
10
|
exports.isBareConfigurationSchemaType = isBareConfigurationSchemaType;
|
|
12
|
-
exports.isConfigurationSchemaType = isConfigurationSchemaType;
|
|
13
11
|
exports.isConfigurationModel = isConfigurationModel;
|
|
12
|
+
exports.isConfigurationSchemaType = isConfigurationSchemaType;
|
|
14
13
|
exports.isConfigurationSlotType = isConfigurationSlotType;
|
|
14
|
+
exports.readConfObject = readConfObject;
|
|
15
15
|
|
|
16
16
|
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
17
17
|
|
|
@@ -2,7 +2,7 @@ import { Observable } from 'rxjs';
|
|
|
2
2
|
import { Feature } from '../util/simpleFeature';
|
|
3
3
|
import { AnyConfigurationModel } from '../configuration/configurationSchema';
|
|
4
4
|
import { getSubAdapterType } from './dataAdapterCache';
|
|
5
|
-
import { Region, NoAssemblyRegion } from '../util/types';
|
|
5
|
+
import { AugmentedRegion as Region, NoAssemblyRegion } from '../util/types';
|
|
6
6
|
import BaseResult from '../TextSearch/BaseResults';
|
|
7
7
|
import PluginManager from '../PluginManager';
|
|
8
8
|
export interface BaseOptions {
|
|
@@ -26,12 +26,12 @@ export interface AnyAdapter {
|
|
|
26
26
|
}
|
|
27
27
|
export declare type AnyDataAdapter = BaseAdapter | BaseFeatureDataAdapter | BaseRefNameAliasAdapter | BaseTextSearchAdapter | RegionsAdapter | SequenceAdapter;
|
|
28
28
|
export declare abstract class BaseAdapter {
|
|
29
|
+
config: AnyConfigurationModel;
|
|
30
|
+
getSubAdapter?: getSubAdapterType | undefined;
|
|
31
|
+
pluginManager?: PluginManager | undefined;
|
|
29
32
|
id: string;
|
|
30
33
|
static capabilities: string[];
|
|
31
|
-
config
|
|
32
|
-
getSubAdapter?: getSubAdapterType;
|
|
33
|
-
pluginManager: PluginManager | undefined;
|
|
34
|
-
constructor(config?: AnyConfigurationModel, getSubAdapter?: getSubAdapterType, pluginManager?: PluginManager);
|
|
34
|
+
constructor(config?: AnyConfigurationModel, getSubAdapter?: getSubAdapterType | undefined, pluginManager?: PluginManager | undefined);
|
|
35
35
|
/**
|
|
36
36
|
* Called to provide a hint that data tied to a certain region will not be
|
|
37
37
|
* needed for the forseeable future and can be purged from caches, etc
|
|
@@ -5,12 +5,12 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
9
|
-
exports.isRegionsAdapter = isRegionsAdapter;
|
|
8
|
+
exports.BaseFeatureDataAdapter = exports.BaseAdapter = void 0;
|
|
10
9
|
exports.isFeatureAdapter = isFeatureAdapter;
|
|
11
10
|
exports.isRefNameAliasAdapter = isRefNameAliasAdapter;
|
|
11
|
+
exports.isRegionsAdapter = isRegionsAdapter;
|
|
12
|
+
exports.isSequenceAdapter = isSequenceAdapter;
|
|
12
13
|
exports.isTextSearchAdapter = isTextSearchAdapter;
|
|
13
|
-
exports.BaseFeatureDataAdapter = exports.BaseAdapter = void 0;
|
|
14
14
|
|
|
15
15
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
16
16
|
|
|
@@ -18,14 +18,14 @@ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers
|
|
|
18
18
|
|
|
19
19
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
20
20
|
|
|
21
|
-
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
22
|
-
|
|
23
21
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
24
22
|
|
|
25
23
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
26
24
|
|
|
27
25
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
28
26
|
|
|
27
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
28
|
+
|
|
29
29
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
30
30
|
|
|
31
31
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
@@ -50,20 +50,12 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
50
50
|
|
|
51
51
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
52
52
|
|
|
53
|
-
var BaseAdapter = function BaseAdapter() {
|
|
54
|
-
var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (0, _configurationSchema.ConfigurationSchema)('empty', {}).create();
|
|
55
|
-
var getSubAdapter = arguments.length > 1 ? arguments[1] : undefined;
|
|
56
|
-
var pluginManager = arguments.length > 2 ? arguments[2] : undefined;
|
|
53
|
+
var BaseAdapter = /*#__PURE__*/(0, _createClass2.default)(function BaseAdapter(config = (0, _configurationSchema.ConfigurationSchema)('empty', {}).create(), getSubAdapter, pluginManager) {
|
|
57
54
|
(0, _classCallCheck2.default)(this, BaseAdapter);
|
|
58
55
|
(0, _defineProperty2.default)(this, "id", void 0);
|
|
59
|
-
(0, _defineProperty2.default)(this, "config", void 0);
|
|
60
|
-
(0, _defineProperty2.default)(this, "getSubAdapter", void 0);
|
|
61
|
-
(0, _defineProperty2.default)(this, "pluginManager", void 0);
|
|
62
|
-
this.config = config;
|
|
63
|
-
this.getSubAdapter = getSubAdapter;
|
|
64
|
-
this.pluginManager = pluginManager; // note: we use switch on jest here for more simple feature IDs
|
|
65
|
-
// in test environment
|
|
66
56
|
|
|
57
|
+
// note: we use switch on jest here for more simple feature IDs
|
|
58
|
+
// in test environment
|
|
67
59
|
if (typeof jest === 'undefined') {
|
|
68
60
|
var data = (0, _mobxStateTree.isStateTreeNode)(config) ? (0, _mobxStateTree.getSnapshot)(config) : config;
|
|
69
61
|
this.id = "".concat((0, _idMaker.default)(data));
|
|
@@ -76,13 +68,12 @@ var BaseAdapter = function BaseAdapter() {
|
|
|
76
68
|
* needed for the forseeable future and can be purged from caches, etc
|
|
77
69
|
* @param region - Region
|
|
78
70
|
*/
|
|
79
|
-
;
|
|
71
|
+
);
|
|
80
72
|
/**
|
|
81
73
|
* Base class for feature adapters to extend. Defines some methods that
|
|
82
74
|
* subclasses must implement.
|
|
83
75
|
*/
|
|
84
76
|
|
|
85
|
-
|
|
86
77
|
exports.BaseAdapter = BaseAdapter;
|
|
87
78
|
(0, _defineProperty2.default)(BaseAdapter, "capabilities", []);
|
|
88
79
|
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import SimpleFeature from '@jbrowse/core/util/simpleFeature';
|
|
2
|
+
import { BaseAdapter } from './BaseAdapter';
|
|
3
|
+
declare const configSchema: import("../configuration/configurationSchema").AnyConfigurationSchemaType;
|
|
4
|
+
declare class CytobandAdapter extends BaseAdapter {
|
|
5
|
+
getData(): Promise<SimpleFeature[]>;
|
|
6
|
+
freeResources(): void;
|
|
7
|
+
}
|
|
8
|
+
export { configSchema, CytobandAdapter as DataAdapter };
|