@jbrowse/product-core 2.11.2 → 2.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/RootModel/BaseRootModel.d.ts +14 -144
- package/dist/RootModel/BaseRootModel.js +2 -3
- package/dist/RootModel/FormatAbout.js +1 -2
- package/dist/RootModel/FormatDetails.js +1 -2
- package/dist/RootModel/HierarchicalConfig.js +1 -2
- package/dist/RootModel/InternetAccounts.js +1 -2
- package/dist/Session/BaseSession.d.ts +10 -8
- package/dist/Session/BaseSession.js +3 -4
- package/dist/Session/Connections.d.ts +29 -71
- package/dist/Session/Connections.js +2 -3
- package/dist/Session/DialogQueue.js +2 -3
- package/dist/Session/DrawerWidgets.js +2 -3
- package/dist/Session/MultipleViews.d.ts +84 -461
- package/dist/Session/MultipleViews.js +2 -3
- package/dist/Session/ReferenceManagement.js +2 -3
- package/dist/Session/SessionTracks.d.ts +69 -525
- package/dist/Session/SessionTracks.js +2 -3
- package/dist/Session/Themes.js +2 -3
- package/dist/Session/Tracks.d.ts +62 -535
- package/dist/Session/Tracks.js +2 -3
- package/dist/rpcWorker.js +1 -2
- package/dist/ui/AboutDialog.js +1 -2
- package/dist/ui/AboutDialogContents.d.ts +3 -2
- package/dist/ui/AboutDialogContents.js +19 -10
- package/dist/ui/FileInfoPanel.js +1 -1
- package/dist/ui/RefNameInfoDialog.d.ts +7 -0
- package/dist/ui/RefNameInfoDialog.js +110 -0
- package/esm/RootModel/BaseRootModel.d.ts +14 -144
- package/esm/Session/BaseSession.d.ts +10 -8
- package/esm/Session/Connections.d.ts +29 -71
- package/esm/Session/MultipleViews.d.ts +84 -461
- package/esm/Session/SessionTracks.d.ts +69 -525
- package/esm/Session/Tracks.d.ts +62 -535
- package/esm/ui/AboutDialogContents.d.ts +3 -2
- package/esm/ui/AboutDialogContents.js +19 -9
- package/esm/ui/RefNameInfoDialog.d.ts +7 -0
- package/esm/ui/RefNameInfoDialog.js +82 -0
- package/package.json +3 -3
package/dist/Session/Tracks.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.TracksManagerSessionMixin = TracksManagerSessionMixin;
|
|
4
|
+
exports.isSessionWithTracks = isSessionWithTracks;
|
|
4
5
|
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
5
6
|
const BaseSession_1 = require("./BaseSession");
|
|
6
7
|
const ReferenceManagement_1 = require("./ReferenceManagement");
|
|
@@ -43,9 +44,7 @@ function TracksManagerSessionMixin(pluginManager) {
|
|
|
43
44
|
},
|
|
44
45
|
}));
|
|
45
46
|
}
|
|
46
|
-
exports.TracksManagerSessionMixin = TracksManagerSessionMixin;
|
|
47
47
|
/** Type guard for SessionWithTracks */
|
|
48
48
|
function isSessionWithTracks(thing) {
|
|
49
49
|
return (0, BaseSession_1.isBaseSession)(thing) && 'tracks' in thing;
|
|
50
50
|
}
|
|
51
|
-
exports.isSessionWithTracks = isSessionWithTracks;
|
package/dist/rpcWorker.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.initializeWorker =
|
|
6
|
+
exports.initializeWorker = initializeWorker;
|
|
7
7
|
const librpc_web_mod_1 = __importDefault(require("librpc-web-mod"));
|
|
8
8
|
const PluginManager_1 = __importDefault(require("@jbrowse/core/PluginManager"));
|
|
9
9
|
const remoteAbortSignals_1 = require("@jbrowse/core/rpc/remoteAbortSignals");
|
|
@@ -69,4 +69,3 @@ async function initializeWorker(corePlugins, opts) {
|
|
|
69
69
|
}
|
|
70
70
|
/* do nothing */
|
|
71
71
|
}
|
|
72
|
-
exports.initializeWorker = initializeWorker;
|
package/dist/ui/AboutDialog.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.AboutDialog =
|
|
6
|
+
exports.AboutDialog = AboutDialog;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const Dialog_1 = __importDefault(require("@jbrowse/core/ui/Dialog"));
|
|
9
9
|
const util_1 = require("@jbrowse/core/util");
|
|
@@ -17,4 +17,3 @@ function AboutDialog({ config, handleClose, }) {
|
|
|
17
17
|
return (react_1.default.createElement(Dialog_1.default, { open: true, onClose: handleClose, title: trackName, maxWidth: "xl" },
|
|
18
18
|
react_1.default.createElement(AboutComponent, { config: config })));
|
|
19
19
|
}
|
|
20
|
-
exports.AboutDialog = AboutDialog;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { AnyConfigurationModel } from '@jbrowse/core/configuration';
|
|
3
|
-
|
|
3
|
+
declare const AboutDialogContents: ({ config, }: {
|
|
4
4
|
config: AnyConfigurationModel;
|
|
5
|
-
})
|
|
5
|
+
}) => React.JSX.Element;
|
|
6
|
+
export default AboutDialogContents;
|
|
@@ -27,6 +27,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
const react_1 = __importStar(require("react"));
|
|
30
|
+
const mobx_react_1 = require("mobx-react");
|
|
30
31
|
const clone_1 = __importDefault(require("clone"));
|
|
31
32
|
const copy_to_clipboard_1 = __importDefault(require("copy-to-clipboard"));
|
|
32
33
|
const material_1 = require("@mui/material");
|
|
@@ -35,10 +36,14 @@ const configuration_1 = require("@jbrowse/core/configuration");
|
|
|
35
36
|
const util_1 = require("@jbrowse/core/util");
|
|
36
37
|
const BaseFeatureDetail_1 = require("@jbrowse/core/BaseFeatureWidget/BaseFeatureDetail");
|
|
37
38
|
const FileInfoPanel_1 = __importDefault(require("./FileInfoPanel"));
|
|
39
|
+
const RefNameInfoDialog_1 = __importDefault(require("./RefNameInfoDialog"));
|
|
38
40
|
const useStyles = (0, mui_1.makeStyles)()({
|
|
39
41
|
content: {
|
|
40
42
|
minWidth: 800,
|
|
41
43
|
},
|
|
44
|
+
button: {
|
|
45
|
+
float: 'right',
|
|
46
|
+
},
|
|
42
47
|
});
|
|
43
48
|
function removeAttr(obj, attr) {
|
|
44
49
|
for (const prop in obj) {
|
|
@@ -51,11 +56,12 @@ function removeAttr(obj, attr) {
|
|
|
51
56
|
}
|
|
52
57
|
return obj;
|
|
53
58
|
}
|
|
54
|
-
function
|
|
59
|
+
const AboutDialogContents = (0, mobx_react_1.observer)(function ({ config, }) {
|
|
55
60
|
const [copied, setCopied] = (0, react_1.useState)(false);
|
|
56
61
|
const conf = (0, configuration_1.readConfObject)(config);
|
|
57
62
|
const session = (0, util_1.getSession)(config);
|
|
58
63
|
const { classes } = useStyles();
|
|
64
|
+
const [showRefNames, setShowRefNames] = (0, react_1.useState)(false);
|
|
59
65
|
const hideUris = (0, configuration_1.getConf)(session, ['formatAbout', 'hideUris']) ||
|
|
60
66
|
(0, configuration_1.readConfObject)(config, ['formatAbout', 'hideUris']);
|
|
61
67
|
const { pluginManager } = (0, util_1.getEnv)(session);
|
|
@@ -69,15 +75,18 @@ function AboutContents({ config, }) {
|
|
|
69
75
|
const ExtraPanel = pluginManager.evaluateExtensionPoint('Core-extraAboutPanel', null, { session, config });
|
|
70
76
|
return (react_1.default.createElement("div", { className: classes.content },
|
|
71
77
|
react_1.default.createElement(BaseFeatureDetail_1.BaseCard, { title: "Configuration" },
|
|
72
|
-
!hideUris ? (react_1.default.createElement(
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
+
!hideUris ? (react_1.default.createElement("span", { className: classes.button },
|
|
79
|
+
react_1.default.createElement(material_1.Button, { variant: "contained", color: "secondary", onClick: () => setShowRefNames(true) }, "Show ref names"),
|
|
80
|
+
react_1.default.createElement(material_1.Button, { variant: "contained", onClick: () => {
|
|
81
|
+
const snap = removeAttr((0, clone_1.default)(conf), 'baseUri');
|
|
82
|
+
(0, copy_to_clipboard_1.default)(JSON.stringify(snap, null, 2));
|
|
83
|
+
setCopied(true);
|
|
84
|
+
setTimeout(() => setCopied(false), 1000);
|
|
85
|
+
} }, copied ? 'Copied to clipboard!' : 'Copy config'))) : null,
|
|
78
86
|
react_1.default.createElement(BaseFeatureDetail_1.Attributes, { attributes: confPostExt, omit: ['displays', 'baseUri', 'refNames', 'formatAbout'], hideUris: hideUris })),
|
|
79
87
|
ExtraPanel ? (react_1.default.createElement(BaseFeatureDetail_1.BaseCard, { title: ExtraPanel.name },
|
|
80
88
|
react_1.default.createElement(ExtraPanel.Component, { config: config }))) : null,
|
|
81
|
-
react_1.default.createElement(FileInfoPanel_1.default, { config: config })
|
|
82
|
-
}
|
|
83
|
-
|
|
89
|
+
react_1.default.createElement(FileInfoPanel_1.default, { config: config }),
|
|
90
|
+
showRefNames ? (react_1.default.createElement(RefNameInfoDialog_1.default, { config: config, onClose: () => setShowRefNames(false) })) : null));
|
|
91
|
+
});
|
|
92
|
+
exports.default = AboutDialogContents;
|
package/dist/ui/FileInfoPanel.js
CHANGED
|
@@ -23,6 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.default = FileInfoPanel;
|
|
26
27
|
const react_1 = __importStar(require("react"));
|
|
27
28
|
const configuration_1 = require("@jbrowse/core/configuration");
|
|
28
29
|
const util_1 = require("@jbrowse/core/util");
|
|
@@ -59,4 +60,3 @@ function FileInfoPanel({ config, }) {
|
|
|
59
60
|
: info || {};
|
|
60
61
|
return info !== null ? (react_1.default.createElement(BaseFeatureDetail_1.BaseCard, { title: "File info" }, error ? (react_1.default.createElement(ui_1.ErrorMessage, { error: error })) : info === undefined ? (react_1.default.createElement(ui_1.LoadingEllipses, { message: "Loading file data" })) : (react_1.default.createElement(BaseFeatureDetail_1.Attributes, { attributes: details })))) : null;
|
|
61
62
|
}
|
|
62
|
-
exports.default = FileInfoPanel;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AnyConfigurationModel } from '@jbrowse/core/configuration';
|
|
3
|
+
declare const RefNameInfoDialog: ({ config, onClose, }: {
|
|
4
|
+
config: AnyConfigurationModel;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
}) => React.JSX.Element;
|
|
7
|
+
export default RefNameInfoDialog;
|
|
@@ -0,0 +1,110 @@
|
|
|
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
|
+
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
const react_1 = __importStar(require("react"));
|
|
30
|
+
const material_1 = require("@mui/material");
|
|
31
|
+
const configuration_1 = require("@jbrowse/core/configuration");
|
|
32
|
+
const ui_1 = require("@jbrowse/core/ui");
|
|
33
|
+
const util_1 = require("@jbrowse/core/util");
|
|
34
|
+
const tracks_1 = require("@jbrowse/core/util/tracks");
|
|
35
|
+
const mobx_react_1 = require("mobx-react");
|
|
36
|
+
const mui_1 = require("tss-react/mui");
|
|
37
|
+
const copy_to_clipboard_1 = __importDefault(require("copy-to-clipboard"));
|
|
38
|
+
const MAX_REF_NAMES = 10000;
|
|
39
|
+
const useStyles = (0, mui_1.makeStyles)()(theme => ({
|
|
40
|
+
container: {
|
|
41
|
+
minWidth: 800,
|
|
42
|
+
},
|
|
43
|
+
refNames: {
|
|
44
|
+
maxHeight: 300,
|
|
45
|
+
width: '100%',
|
|
46
|
+
overflow: 'auto',
|
|
47
|
+
flexGrow: 1,
|
|
48
|
+
background: theme.palette.background.default,
|
|
49
|
+
},
|
|
50
|
+
}));
|
|
51
|
+
const RefNameInfoDialog = (0, mobx_react_1.observer)(function ({ config, onClose, }) {
|
|
52
|
+
const [error, setError] = (0, react_1.useState)();
|
|
53
|
+
const [refNames, setRefNames] = (0, react_1.useState)();
|
|
54
|
+
const [copied, setCopied] = (0, react_1.useState)(false);
|
|
55
|
+
const { classes } = useStyles();
|
|
56
|
+
const session = (0, util_1.getSession)(config);
|
|
57
|
+
const { rpcManager } = session;
|
|
58
|
+
(0, react_1.useEffect)(() => {
|
|
59
|
+
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
60
|
+
;
|
|
61
|
+
(async () => {
|
|
62
|
+
try {
|
|
63
|
+
const map = await Promise.all([...new Set((0, tracks_1.getConfAssemblyNames)(config))].map(async (assemblyName) => {
|
|
64
|
+
const adapterConfig = (0, configuration_1.readConfObject)(config, 'adapter');
|
|
65
|
+
return [
|
|
66
|
+
assemblyName,
|
|
67
|
+
(await rpcManager.call(config.trackId, 'CoreGetRefNames', {
|
|
68
|
+
adapterConfig,
|
|
69
|
+
// hack for synteny adapters
|
|
70
|
+
regions: [{ assemblyName }],
|
|
71
|
+
})),
|
|
72
|
+
];
|
|
73
|
+
}));
|
|
74
|
+
setRefNames(Object.fromEntries(map));
|
|
75
|
+
}
|
|
76
|
+
catch (e) {
|
|
77
|
+
console.error(e);
|
|
78
|
+
setError(e);
|
|
79
|
+
}
|
|
80
|
+
})();
|
|
81
|
+
}, [config, rpcManager]);
|
|
82
|
+
const names = refNames ? Object.entries(refNames) : [];
|
|
83
|
+
const result = names
|
|
84
|
+
.flatMap(([assemblyName, refNames]) => {
|
|
85
|
+
return [
|
|
86
|
+
`--- ${assemblyName} ---`,
|
|
87
|
+
...refNames.slice(0, MAX_REF_NAMES),
|
|
88
|
+
`${refNames.length > MAX_REF_NAMES
|
|
89
|
+
? `\nToo many refNames to show in browser for ${assemblyName}, use "Copy ref names" button to copy to clipboard`
|
|
90
|
+
: ''}`,
|
|
91
|
+
];
|
|
92
|
+
})
|
|
93
|
+
.filter(f => !!f)
|
|
94
|
+
.join('\n');
|
|
95
|
+
return (react_1.default.createElement(ui_1.Dialog, { open: true, title: "Reference sequence names used in track", onClose: onClose },
|
|
96
|
+
react_1.default.createElement(material_1.DialogContent, { className: classes.container }, error ? (react_1.default.createElement(material_1.Typography, { color: "error" }, `${error}`)) : refNames === undefined ? (react_1.default.createElement(ui_1.LoadingEllipses, { message: "Loading refNames" })) : (react_1.default.createElement(react_1.default.Fragment, null,
|
|
97
|
+
react_1.default.createElement(material_1.Button, { variant: "contained", onClick: () => {
|
|
98
|
+
(0, copy_to_clipboard_1.default)(names
|
|
99
|
+
.flatMap(([assemblyName, refNames]) => [
|
|
100
|
+
`--- ${assemblyName} ---`,
|
|
101
|
+
...refNames,
|
|
102
|
+
])
|
|
103
|
+
.filter(f => !!f)
|
|
104
|
+
.join('\n'));
|
|
105
|
+
setCopied(true);
|
|
106
|
+
setTimeout(() => setCopied(false), 1000);
|
|
107
|
+
} }, copied ? 'Copied to clipboard!' : 'Copy ref names'),
|
|
108
|
+
react_1.default.createElement("pre", { className: classes.refNames }, result))))));
|
|
109
|
+
});
|
|
110
|
+
exports.default = RefNameInfoDialog;
|
|
@@ -72,14 +72,16 @@ export declare function BaseRootModelFactory({ pluginManager, jbrowseModelType,
|
|
|
72
72
|
} & {
|
|
73
73
|
setLoaded({ adapterRegionsWithAssembly, refNameAliases, lowerCaseRefNameAliases, cytobands, }: import("@jbrowse/core/assemblyManager/assembly").Loading): void;
|
|
74
74
|
setError(e: unknown): void;
|
|
75
|
-
setRegions(regions: import("@jbrowse/core/util"
|
|
75
|
+
setRegions(regions: import("@jbrowse/core/util" /**
|
|
76
|
+
* #action
|
|
77
|
+
*/).Region[]): void;
|
|
76
78
|
setRefNameAliases(aliases: {
|
|
77
79
|
[x: string]: string | undefined;
|
|
78
80
|
}, lcAliases: {
|
|
79
81
|
[x: string]: string | undefined;
|
|
80
82
|
}): void;
|
|
81
83
|
setCytobands(cytobands: import("@jbrowse/core/util").Feature[]): void;
|
|
82
|
-
setLoadingP(p?: Promise<void>
|
|
84
|
+
setLoadingP(p?: Promise<void>): void;
|
|
83
85
|
load(): Promise<void>;
|
|
84
86
|
loadPre(): Promise<void>;
|
|
85
87
|
} & {
|
|
@@ -143,7 +145,7 @@ export declare function BaseRootModelFactory({ pluginManager, jbrowseModelType,
|
|
|
143
145
|
[x: string]: string | undefined;
|
|
144
146
|
}): void;
|
|
145
147
|
setCytobands(cytobands: import("@jbrowse/core/util").Feature[]): void;
|
|
146
|
-
setLoadingP(p?: Promise<void>
|
|
148
|
+
setLoadingP(p?: Promise<void>): void;
|
|
147
149
|
load(): Promise<void>;
|
|
148
150
|
loadPre(): Promise<void>;
|
|
149
151
|
} & {
|
|
@@ -205,7 +207,7 @@ export declare function BaseRootModelFactory({ pluginManager, jbrowseModelType,
|
|
|
205
207
|
[x: string]: string | undefined;
|
|
206
208
|
}): void;
|
|
207
209
|
setCytobands(cytobands: import("@jbrowse/core/util").Feature[]): void;
|
|
208
|
-
setLoadingP(p?: Promise<void>
|
|
210
|
+
setLoadingP(p?: Promise<void>): void;
|
|
209
211
|
load(): Promise<void>;
|
|
210
212
|
loadPre(): Promise<void>;
|
|
211
213
|
} & {
|
|
@@ -269,7 +271,7 @@ export declare function BaseRootModelFactory({ pluginManager, jbrowseModelType,
|
|
|
269
271
|
[x: string]: string | undefined;
|
|
270
272
|
}): void;
|
|
271
273
|
setCytobands(cytobands: import("@jbrowse/core/util").Feature[]): void;
|
|
272
|
-
setLoadingP(p?: Promise<void>
|
|
274
|
+
setLoadingP(p?: Promise<void>): void;
|
|
273
275
|
load(): Promise<void>;
|
|
274
276
|
loadPre(): Promise<void>;
|
|
275
277
|
} & {
|
|
@@ -331,7 +333,7 @@ export declare function BaseRootModelFactory({ pluginManager, jbrowseModelType,
|
|
|
331
333
|
[x: string]: string | undefined;
|
|
332
334
|
}): void;
|
|
333
335
|
setCytobands(cytobands: import("@jbrowse/core/util").Feature[]): void;
|
|
334
|
-
setLoadingP(p?: Promise<void>
|
|
336
|
+
setLoadingP(p?: Promise<void>): void;
|
|
335
337
|
load(): Promise<void>;
|
|
336
338
|
loadPre(): Promise<void>;
|
|
337
339
|
} & {
|
|
@@ -350,11 +352,7 @@ export declare function BaseRootModelFactory({ pluginManager, jbrowseModelType,
|
|
|
350
352
|
}>;
|
|
351
353
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | undefined;
|
|
352
354
|
readonly assemblyNamesList: any[];
|
|
353
|
-
readonly assemblyList: (
|
|
354
|
-
[x: string]: any;
|
|
355
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
356
|
-
setSubschema(slotName: string, data: unknown): any;
|
|
357
|
-
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>)[];
|
|
355
|
+
readonly assemblyList: import("@jbrowse/core/configuration").AnyConfigurationModel[];
|
|
358
356
|
readonly rpcManager: RpcManager;
|
|
359
357
|
} & {
|
|
360
358
|
waitForAssembly(assemblyName: string): Promise<({
|
|
@@ -402,7 +400,7 @@ export declare function BaseRootModelFactory({ pluginManager, jbrowseModelType,
|
|
|
402
400
|
[x: string]: string | undefined;
|
|
403
401
|
}): void;
|
|
404
402
|
setCytobands(cytobands: import("@jbrowse/core/util").Feature[]): void;
|
|
405
|
-
setLoadingP(p?: Promise<void>
|
|
403
|
+
setLoadingP(p?: Promise<void>): void;
|
|
406
404
|
load(): Promise<void>;
|
|
407
405
|
loadPre(): Promise<void>;
|
|
408
406
|
} & {
|
|
@@ -464,7 +462,7 @@ export declare function BaseRootModelFactory({ pluginManager, jbrowseModelType,
|
|
|
464
462
|
[x: string]: string | undefined;
|
|
465
463
|
}): void;
|
|
466
464
|
setCytobands(cytobands: import("@jbrowse/core/util").Feature[]): void;
|
|
467
|
-
setLoadingP(p?: Promise<void>
|
|
465
|
+
setLoadingP(p?: Promise<void>): void;
|
|
468
466
|
load(): Promise<void>;
|
|
469
467
|
loadPre(): Promise<void>;
|
|
470
468
|
} & {
|
|
@@ -485,7 +483,7 @@ export declare function BaseRootModelFactory({ pluginManager, jbrowseModelType,
|
|
|
485
483
|
getRefNameMapForAdapter(adapterConf: {
|
|
486
484
|
[x: string]: unknown;
|
|
487
485
|
}, assemblyName: string | undefined, opts: {
|
|
488
|
-
signal?: AbortSignal
|
|
486
|
+
signal?: AbortSignal;
|
|
489
487
|
sessionId: string;
|
|
490
488
|
}): Promise<{
|
|
491
489
|
[x: string]: string | undefined;
|
|
@@ -493,7 +491,7 @@ export declare function BaseRootModelFactory({ pluginManager, jbrowseModelType,
|
|
|
493
491
|
getReverseRefNameMapForAdapter(adapterConf: {
|
|
494
492
|
[x: string]: unknown;
|
|
495
493
|
}, assemblyName: string | undefined, opts: {
|
|
496
|
-
signal?: AbortSignal
|
|
494
|
+
signal?: AbortSignal;
|
|
497
495
|
sessionId: string;
|
|
498
496
|
}): Promise<{
|
|
499
497
|
[x: string]: string | undefined;
|
|
@@ -501,135 +499,7 @@ export declare function BaseRootModelFactory({ pluginManager, jbrowseModelType,
|
|
|
501
499
|
isValidRefName(refName: string, assemblyName: string): boolean;
|
|
502
500
|
} & {
|
|
503
501
|
afterAttach(): void;
|
|
504
|
-
removeAssembly(asm:
|
|
505
|
-
configuration: any;
|
|
506
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
507
|
-
error: unknown;
|
|
508
|
-
loaded: boolean;
|
|
509
|
-
loadingP: Promise<void> | undefined;
|
|
510
|
-
volatileRegions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined;
|
|
511
|
-
refNameAliases: {
|
|
512
|
-
[x: string]: string | undefined;
|
|
513
|
-
} | undefined;
|
|
514
|
-
lowerCaseRefNameAliases: {
|
|
515
|
-
[x: string]: string | undefined;
|
|
516
|
-
} | undefined;
|
|
517
|
-
cytobands: import("@jbrowse/core/util").Feature[] | undefined;
|
|
518
|
-
} & {
|
|
519
|
-
getConf(arg: string): any;
|
|
520
|
-
} & {
|
|
521
|
-
readonly initialized: boolean;
|
|
522
|
-
readonly name: string;
|
|
523
|
-
readonly regions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined;
|
|
524
|
-
readonly aliases: string[];
|
|
525
|
-
readonly displayName: string | undefined;
|
|
526
|
-
hasName(name: string): boolean;
|
|
527
|
-
readonly allAliases: string[];
|
|
528
|
-
readonly allRefNames: string[] | undefined; /**
|
|
529
|
-
* #action
|
|
530
|
-
*/
|
|
531
|
-
readonly lowerCaseRefNames: string[] | undefined;
|
|
532
|
-
readonly allRefNamesWithLowerCase: string[] | undefined;
|
|
533
|
-
readonly rpcManager: RpcManager;
|
|
534
|
-
readonly refNameColors: string[];
|
|
535
|
-
} & {
|
|
536
|
-
readonly refNames: string[] | undefined;
|
|
537
|
-
} & {
|
|
538
|
-
getCanonicalRefName(refName: string): string | undefined;
|
|
539
|
-
getRefNameColor(refName: string): string | undefined;
|
|
540
|
-
isValidRefName(refName: string): boolean;
|
|
541
|
-
} & {
|
|
542
|
-
setLoaded({ adapterRegionsWithAssembly, refNameAliases, lowerCaseRefNameAliases, cytobands, }: import("@jbrowse/core/assemblyManager/assembly").Loading): void;
|
|
543
|
-
setError(e: unknown): void;
|
|
544
|
-
setRegions(regions: import("@jbrowse/core/util").Region[]): void;
|
|
545
|
-
setRefNameAliases(aliases: {
|
|
546
|
-
[x: string]: string | undefined;
|
|
547
|
-
}, lcAliases: {
|
|
548
|
-
[x: string]: string | undefined;
|
|
549
|
-
}): void;
|
|
550
|
-
setCytobands(cytobands: import("@jbrowse/core/util").Feature[]): void;
|
|
551
|
-
setLoadingP(p?: Promise<void> | undefined): void;
|
|
552
|
-
load(): Promise<void>;
|
|
553
|
-
loadPre(): Promise<void>;
|
|
554
|
-
} & {
|
|
555
|
-
getAdapterMapEntry(adapterConf: {
|
|
556
|
-
[x: string]: unknown;
|
|
557
|
-
}, options: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<import("@jbrowse/core/assemblyManager/assembly").RefNameMap>;
|
|
558
|
-
getRefNameMapForAdapter(adapterConf: {
|
|
559
|
-
[x: string]: unknown;
|
|
560
|
-
}, opts: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<{
|
|
561
|
-
[x: string]: string | undefined;
|
|
562
|
-
}>;
|
|
563
|
-
getReverseRefNameMapForAdapter(adapterConf: {
|
|
564
|
-
[x: string]: unknown;
|
|
565
|
-
}, opts: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<{
|
|
566
|
-
[x: string]: string | undefined;
|
|
567
|
-
}>;
|
|
568
|
-
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
569
|
-
configuration: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IReferenceType<IAnyType>>;
|
|
570
|
-
}, {
|
|
571
|
-
error: unknown;
|
|
572
|
-
loaded: boolean;
|
|
573
|
-
loadingP: Promise<void> | undefined;
|
|
574
|
-
volatileRegions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined;
|
|
575
|
-
refNameAliases: {
|
|
576
|
-
[x: string]: string | undefined;
|
|
577
|
-
} | undefined;
|
|
578
|
-
lowerCaseRefNameAliases: {
|
|
579
|
-
[x: string]: string | undefined;
|
|
580
|
-
} | undefined;
|
|
581
|
-
cytobands: import("@jbrowse/core/util").Feature[] | undefined;
|
|
582
|
-
} & {
|
|
583
|
-
getConf(arg: string): any;
|
|
584
|
-
} & {
|
|
585
|
-
readonly initialized: boolean;
|
|
586
|
-
readonly name: string;
|
|
587
|
-
readonly regions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined;
|
|
588
|
-
readonly aliases: string[];
|
|
589
|
-
readonly displayName: string | undefined;
|
|
590
|
-
hasName(name: string): boolean;
|
|
591
|
-
readonly allAliases: string[];
|
|
592
|
-
readonly allRefNames: string[] | undefined; /**
|
|
593
|
-
* #action
|
|
594
|
-
*/
|
|
595
|
-
readonly lowerCaseRefNames: string[] | undefined;
|
|
596
|
-
readonly allRefNamesWithLowerCase: string[] | undefined;
|
|
597
|
-
readonly rpcManager: RpcManager;
|
|
598
|
-
readonly refNameColors: string[];
|
|
599
|
-
} & {
|
|
600
|
-
readonly refNames: string[] | undefined;
|
|
601
|
-
} & {
|
|
602
|
-
getCanonicalRefName(refName: string): string | undefined;
|
|
603
|
-
getRefNameColor(refName: string): string | undefined;
|
|
604
|
-
isValidRefName(refName: string): boolean;
|
|
605
|
-
} & {
|
|
606
|
-
setLoaded({ adapterRegionsWithAssembly, refNameAliases, lowerCaseRefNameAliases, cytobands, }: import("@jbrowse/core/assemblyManager/assembly").Loading): void;
|
|
607
|
-
setError(e: unknown): void;
|
|
608
|
-
setRegions(regions: import("@jbrowse/core/util").Region[]): void;
|
|
609
|
-
setRefNameAliases(aliases: {
|
|
610
|
-
[x: string]: string | undefined;
|
|
611
|
-
}, lcAliases: {
|
|
612
|
-
[x: string]: string | undefined;
|
|
613
|
-
}): void;
|
|
614
|
-
setCytobands(cytobands: import("@jbrowse/core/util").Feature[]): void;
|
|
615
|
-
setLoadingP(p?: Promise<void> | undefined): void;
|
|
616
|
-
load(): Promise<void>;
|
|
617
|
-
loadPre(): Promise<void>;
|
|
618
|
-
} & {
|
|
619
|
-
getAdapterMapEntry(adapterConf: {
|
|
620
|
-
[x: string]: unknown;
|
|
621
|
-
}, options: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<import("@jbrowse/core/assemblyManager/assembly").RefNameMap>;
|
|
622
|
-
getRefNameMapForAdapter(adapterConf: {
|
|
623
|
-
[x: string]: unknown;
|
|
624
|
-
}, opts: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<{
|
|
625
|
-
[x: string]: string | undefined;
|
|
626
|
-
}>;
|
|
627
|
-
getReverseRefNameMapForAdapter(adapterConf: {
|
|
628
|
-
[x: string]: unknown;
|
|
629
|
-
}, opts: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<{
|
|
630
|
-
[x: string]: string | undefined;
|
|
631
|
-
}>;
|
|
632
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>): void;
|
|
502
|
+
removeAssembly(asm: import("@jbrowse/core/assemblyManager/assembly").Assembly): void;
|
|
633
503
|
addAssembly(configuration: any): void;
|
|
634
504
|
replaceAssembly(idx: number, configuration: any): void;
|
|
635
505
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
@@ -60,14 +60,20 @@ export declare function BaseSessionModel<ROOT_MODEL_TYPE extends BaseRootModelTy
|
|
|
60
60
|
readonly assemblies: ({
|
|
61
61
|
[x: string]: any;
|
|
62
62
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
63
|
-
setSubschema(slotName: string, data: unknown):
|
|
63
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
64
|
+
[x: string]: any;
|
|
65
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
66
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
67
|
+
[x: string]: any;
|
|
68
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & any & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>);
|
|
69
|
+
} & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>);
|
|
64
70
|
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
65
71
|
aliases: {
|
|
66
72
|
type: string;
|
|
67
73
|
defaultValue: never[];
|
|
68
74
|
description: string;
|
|
69
75
|
};
|
|
70
|
-
sequence: AnyConfigurationSchemaType;
|
|
76
|
+
sequence: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
|
|
71
77
|
refNameColors: {
|
|
72
78
|
type: string;
|
|
73
79
|
defaultValue: never[];
|
|
@@ -77,12 +83,8 @@ export declare function BaseSessionModel<ROOT_MODEL_TYPE extends BaseRootModelTy
|
|
|
77
83
|
adapter: import("mobx-state-tree").IAnyModelType;
|
|
78
84
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
79
85
|
cytobands: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
80
|
-
adapter: import("mobx-state-tree").IAnyModelType;
|
|
81
|
-
|
|
82
|
-
*/
|
|
83
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>; /**
|
|
84
|
-
* #getter
|
|
85
|
-
*/
|
|
86
|
+
adapter: import("mobx-state-tree").IAnyModelType;
|
|
87
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
86
88
|
displayName: {
|
|
87
89
|
type: string;
|
|
88
90
|
defaultValue: string;
|