@jbrowse/core 2.18.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/BaseFeatureWidget/BaseFeatureDetail/ArrayValue.d.ts +1 -2
- package/BaseFeatureWidget/BaseFeatureDetail/ArrayValue.js +6 -11
- package/BaseFeatureWidget/BaseFeatureDetail/Attributes.d.ts +1 -2
- package/BaseFeatureWidget/BaseFeatureDetail/Attributes.js +16 -17
- package/BaseFeatureWidget/BaseFeatureDetail/BaseCard.d.ts +1 -2
- package/BaseFeatureWidget/BaseFeatureDetail/BaseCard.js +2 -5
- package/BaseFeatureWidget/BaseFeatureDetail/BasicValue.d.ts +1 -2
- package/BaseFeatureWidget/BaseFeatureDetail/BasicValue.js +4 -6
- package/BaseFeatureWidget/BaseFeatureDetail/CoreDetails.d.ts +1 -2
- package/BaseFeatureWidget/BaseFeatureDetail/CoreDetails.js +5 -7
- package/BaseFeatureWidget/BaseFeatureDetail/DataGridDetails.d.ts +1 -2
- package/BaseFeatureWidget/BaseFeatureDetail/DataGridDetails.js +19 -46
- package/BaseFeatureWidget/BaseFeatureDetail/FeatureDetails.d.ts +1 -2
- package/BaseFeatureWidget/BaseFeatureDetail/FeatureDetails.js +11 -27
- package/BaseFeatureWidget/BaseFeatureDetail/FieldName.d.ts +1 -2
- package/BaseFeatureWidget/BaseFeatureDetail/FieldName.js +2 -6
- package/BaseFeatureWidget/BaseFeatureDetail/Position.d.ts +1 -2
- package/BaseFeatureWidget/BaseFeatureDetail/Position.js +2 -5
- package/BaseFeatureWidget/BaseFeatureDetail/SimpleField.d.ts +1 -2
- package/BaseFeatureWidget/BaseFeatureDetail/SimpleField.js +2 -4
- package/BaseFeatureWidget/BaseFeatureDetail/UriField.d.ts +1 -2
- package/BaseFeatureWidget/BaseFeatureDetail/UriField.js +2 -4
- package/BaseFeatureWidget/BaseFeatureDetail/index.d.ts +3 -4
- package/BaseFeatureWidget/BaseFeatureDetail/index.js +5 -7
- package/BaseFeatureWidget/BaseFeatureDetail/util.js +4 -8
- package/BaseFeatureWidget/SequenceFeatureDetails/SequenceContents.d.ts +10 -0
- package/BaseFeatureWidget/SequenceFeatureDetails/SequenceContents.js +48 -0
- package/BaseFeatureWidget/SequenceFeatureDetails/SequenceFeatureDetails.d.ts +1 -2
- package/BaseFeatureWidget/SequenceFeatureDetails/SequenceFeatureDetails.js +33 -34
- package/BaseFeatureWidget/SequenceFeatureDetails/SequenceFeaturePanel.d.ts +1 -2
- package/BaseFeatureWidget/SequenceFeatureDetails/SequenceFeaturePanel.js +29 -22
- package/BaseFeatureWidget/SequenceFeatureDetails/SequenceName.d.ts +8 -0
- package/BaseFeatureWidget/SequenceFeatureDetails/SequenceName.js +28 -0
- package/BaseFeatureWidget/SequenceFeatureDetails/SequencePanel.d.ts +2 -10
- package/BaseFeatureWidget/SequenceFeatureDetails/SequencePanel.js +10 -75
- package/BaseFeatureWidget/SequenceFeatureDetails/dialogs/HelpDialog.d.ts +1 -2
- package/BaseFeatureWidget/SequenceFeatureDetails/dialogs/HelpDialog.js +5 -23
- package/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SequenceDialog.d.ts +1 -2
- package/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SequenceDialog.js +8 -42
- package/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SequenceFeatureMenu.d.ts +1 -2
- package/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SequenceFeatureMenu.js +98 -90
- package/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SequenceTypeSelector.d.ts +1 -2
- package/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SequenceTypeSelector.js +49 -53
- package/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SettingsDialog.d.ts +1 -2
- package/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SettingsDialog.js +18 -53
- package/BaseFeatureWidget/SequenceFeatureDetails/model.js +3 -10
- package/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/CDNASequence.d.ts +1 -2
- package/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/CDNASequence.js +6 -9
- package/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/CDSSequence.d.ts +1 -2
- package/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/CDSSequence.js +2 -2
- package/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/GenomicSequence.d.ts +1 -2
- package/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/GenomicSequence.js +5 -8
- package/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/ProteinSequence.d.ts +1 -2
- package/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/ProteinSequence.js +2 -2
- package/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/SequenceDisplay.d.ts +1 -2
- package/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/SequenceDisplay.js +3 -8
- package/BaseFeatureWidget/SequenceFeatureDetails/types.d.ts +8 -0
- package/BaseFeatureWidget/SequenceFeatureDetails/types.js +2 -0
- package/CorePlugin.js +17 -7
- package/PluginManager.d.ts +2 -1
- package/PluginManager.js +4 -2
- package/ReExports/list.js +3 -0
- package/ReExports/modules.d.ts +4 -2
- package/ReExports/modules.js +29 -19
- package/TextSearch/BaseResults.d.ts +1 -1
- package/assemblyManager/assembly.js +4 -4
- package/configuration/configurationSlot.d.ts +1 -1
- package/data_adapters/CytobandAdapter/CytobandAdapter.js +1 -4
- package/data_adapters/CytobandAdapter/index.js +20 -7
- package/data_adapters/dataAdapterCache.d.ts +0 -1
- package/data_adapters/dataAdapterCache.js +2 -9
- package/data_adapters/util.d.ts +1 -0
- package/data_adapters/util.js +10 -0
- package/package.json +7 -9
- package/pluggableElementTypes/models/BaseTrackModel.js +9 -5
- package/pluggableElementTypes/renderers/CircularChordRendererType.d.ts +1 -2
- package/pluggableElementTypes/renderers/CircularChordRendererType.js +2 -2
- package/pluggableElementTypes/renderers/RendererType.d.ts +2 -2
- package/pluggableElementTypes/renderers/RendererType.js +2 -2
- package/pluggableElementTypes/renderers/RpcRenderedSvgGroup.d.ts +1 -2
- package/pluggableElementTypes/renderers/RpcRenderedSvgGroup.js +9 -65
- package/pluggableElementTypes/renderers/ServerSideRenderedContent.d.ts +1 -2
- package/pluggableElementTypes/renderers/ServerSideRenderedContent.js +9 -65
- package/pluggableElementTypes/renderers/ServerSideRendererType.js +3 -3
- package/stories/examples/WithSequencePanel.d.ts +5 -6
- package/stories/examples/WithSequencePanel.js +6 -6
- package/tsconfig.build.tsbuildinfo +1 -1
- package/ui/AppLogo.d.ts +1 -2
- package/ui/AppLogo.js +2 -5
- package/ui/AssemblySelector.d.ts +3 -3
- package/ui/AssemblySelector.js +11 -33
- package/ui/BaseTooltip.d.ts +1 -2
- package/ui/BaseTooltip.js +9 -12
- package/ui/CascadingMenu.d.ts +1 -2
- package/ui/CascadingMenu.js +15 -53
- package/ui/CascadingMenuButton.d.ts +1 -2
- package/ui/CascadingMenuButton.js +17 -41
- package/ui/ColorPicker.d.ts +3 -4
- package/ui/ColorPicker.js +33 -31
- package/ui/Dialog.d.ts +1 -2
- package/ui/Dialog.js +13 -21
- package/ui/DraggableDialog.d.ts +5 -0
- package/ui/DraggableDialog.js +32 -0
- package/ui/DropDownMenu.d.ts +1 -2
- package/ui/DropDownMenu.js +8 -34
- package/ui/EditableTypography.d.ts +1 -2
- package/ui/EditableTypography.js +29 -54
- package/ui/ErrorBoundary.d.ts +2 -2
- package/ui/ErrorBoundary.js +3 -25
- package/ui/ErrorMessage.d.ts +1 -2
- package/ui/ErrorMessage.js +25 -25
- package/ui/ErrorMessageStackTraceDialog.d.ts +1 -2
- package/ui/ErrorMessageStackTraceDialog.js +11 -44
- package/ui/FactoryResetDialog.d.ts +1 -2
- package/ui/FactoryResetDialog.js +7 -12
- package/ui/FatalErrorDialog.d.ts +1 -2
- package/ui/FatalErrorDialog.js +10 -41
- package/ui/FileSelector/FileSelector.d.ts +1 -2
- package/ui/FileSelector/FileSelector.js +37 -76
- package/ui/FileSelector/LocalFileChooser.d.ts +1 -2
- package/ui/FileSelector/LocalFileChooser.js +17 -28
- package/ui/FileSelector/UrlChooser.d.ts +1 -2
- package/ui/FileSelector/UrlChooser.js +2 -5
- package/ui/Icons.d.ts +9 -10
- package/ui/Icons.js +10 -19
- package/ui/LoadingEllipses.d.ts +1 -2
- package/ui/LoadingEllipses.js +2 -5
- package/ui/Logo.d.ts +2 -3
- package/ui/Logo.js +5 -23
- package/ui/Menu.d.ts +2 -3
- package/ui/Menu.js +83 -113
- package/ui/MenuButton.d.ts +1 -2
- package/ui/MenuButton.js +11 -35
- package/ui/PrerenderedCanvas.d.ts +1 -2
- package/ui/PrerenderedCanvas.js +3 -25
- package/ui/RedErrorMessageBox.d.ts +1 -2
- package/ui/RedErrorMessageBox.js +2 -5
- package/ui/ResizeHandle.d.ts +1 -2
- package/ui/ResizeHandle.js +3 -25
- package/ui/ReturnToImportFormDialog.d.ts +1 -2
- package/ui/ReturnToImportFormDialog.js +7 -12
- package/ui/SanitizedHTML.d.ts +2 -3
- package/ui/SanitizedHTML.js +3 -3
- package/ui/Snackbar.d.ts +1 -2
- package/ui/Snackbar.js +41 -20
- package/ui/SnackbarContents.d.ts +5 -0
- package/ui/SnackbarContents.js +16 -0
- package/ui/SnackbarModel.js +20 -9
- package/ui/colors.js +1 -1
- package/ui/index.d.ts +0 -2
- package/ui/index.js +1 -5
- package/ui/react-colorful.js +17 -7
- package/ui/theme.js +7 -0
- package/util/index.d.ts +13 -11
- package/util/index.js +31 -11
- package/util/io/RemoteFileWithRangeCache.d.ts +3 -5
- package/util/io/RemoteFileWithRangeCache.js +8 -6
- package/util/io/index.d.ts +1 -1
- package/util/io/index.js +3 -3
- package/util/nanoid.d.ts +1 -1
- package/util/offscreenCanvasUtils.d.ts +2 -3
- package/util/offscreenCanvasUtils.js +21 -13
- package/util/tracks.d.ts +1 -1
- package/util/tracks.js +8 -3
- package/util/useMeasure.d.ts +1 -1
|
@@ -15,18 +15,29 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
37
|
};
|
|
28
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
const
|
|
39
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
40
|
+
const react_1 = require("react");
|
|
30
41
|
const MoreVert_1 = __importDefault(require("@mui/icons-material/MoreVert"));
|
|
31
42
|
const Settings_1 = __importDefault(require("@mui/icons-material/Settings"));
|
|
32
43
|
const copy_to_clipboard_1 = __importDefault(require("copy-to-clipboard"));
|
|
@@ -34,100 +45,97 @@ const file_saver_1 = require("file-saver");
|
|
|
34
45
|
const mobx_react_1 = require("mobx-react");
|
|
35
46
|
const CascadingMenuButton_1 = __importDefault(require("../../../ui/CascadingMenuButton"));
|
|
36
47
|
const SequenceFeatureSettingsDialog = (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('./SettingsDialog'))));
|
|
37
|
-
const SequenceFeatureMenu = (0, mobx_react_1.observer)(react_1.
|
|
48
|
+
const SequenceFeatureMenu = (0, mobx_react_1.observer)((0, react_1.forwardRef)(function SequenceFeatureMenu2({ model, extraItems = [] }, ref) {
|
|
38
49
|
if (typeof ref === 'function') {
|
|
39
50
|
throw new Error('needs a non function ref');
|
|
40
51
|
}
|
|
41
52
|
const [showSettings, setShowSettings] = (0, react_1.useState)(false);
|
|
42
53
|
const { showCoordinatesSetting, showGenomicCoordsOption } = model;
|
|
43
|
-
return (
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
}
|
|
54
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(CascadingMenuButton_1.default, { menuItems: [
|
|
55
|
+
{
|
|
56
|
+
label: 'Copy plaintext',
|
|
57
|
+
onClick: () => {
|
|
58
|
+
const r = ref === null || ref === void 0 ? void 0 : ref.current;
|
|
59
|
+
if (r) {
|
|
60
|
+
(0, copy_to_clipboard_1.default)(r.textContent || '', { format: 'text/plain' });
|
|
61
|
+
}
|
|
62
|
+
},
|
|
52
63
|
},
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}
|
|
64
|
+
{
|
|
65
|
+
label: 'Copy HTML',
|
|
66
|
+
onClick: () => {
|
|
67
|
+
const r = ref === null || ref === void 0 ? void 0 : ref.current;
|
|
68
|
+
if (r) {
|
|
69
|
+
(0, copy_to_clipboard_1.default)(r.outerHTML, { format: 'text/html' });
|
|
70
|
+
}
|
|
71
|
+
},
|
|
61
72
|
},
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
}
|
|
71
|
-
}
|
|
73
|
+
{
|
|
74
|
+
label: 'Download plaintext',
|
|
75
|
+
onClick: () => {
|
|
76
|
+
const r = ref === null || ref === void 0 ? void 0 : ref.current;
|
|
77
|
+
if (r) {
|
|
78
|
+
(0, file_saver_1.saveAs)(new Blob([r.textContent || ''], {
|
|
79
|
+
type: 'text/plain;charset=utf-8',
|
|
80
|
+
}), 'sequence.txt');
|
|
81
|
+
}
|
|
82
|
+
},
|
|
72
83
|
},
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
}
|
|
82
|
-
}
|
|
84
|
+
{
|
|
85
|
+
label: 'Download HTML',
|
|
86
|
+
onClick: () => {
|
|
87
|
+
const r = ref === null || ref === void 0 ? void 0 : ref.current;
|
|
88
|
+
if (r) {
|
|
89
|
+
(0, file_saver_1.saveAs)(new Blob([r.outerHTML || ''], {
|
|
90
|
+
type: 'text/html;charset=utf-8',
|
|
91
|
+
}), 'sequence.html');
|
|
92
|
+
}
|
|
93
|
+
},
|
|
83
94
|
},
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
95
|
+
...extraItems,
|
|
96
|
+
{
|
|
97
|
+
label: 'Show coordinates?',
|
|
98
|
+
type: 'subMenu',
|
|
99
|
+
subMenu: [
|
|
100
|
+
{
|
|
101
|
+
label: 'No coordinates',
|
|
102
|
+
type: 'radio',
|
|
103
|
+
checked: showCoordinatesSetting === 'none',
|
|
104
|
+
onClick: () => {
|
|
105
|
+
model.setShowCoordinates('none');
|
|
106
|
+
},
|
|
96
107
|
},
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
108
|
+
{
|
|
109
|
+
label: 'Coordinates relative to feature start',
|
|
110
|
+
type: 'radio',
|
|
111
|
+
checked: showCoordinatesSetting === 'relative',
|
|
112
|
+
onClick: () => {
|
|
113
|
+
model.setShowCoordinates('relative');
|
|
114
|
+
},
|
|
104
115
|
},
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
116
|
+
...(showGenomicCoordsOption
|
|
117
|
+
? [
|
|
118
|
+
{
|
|
119
|
+
label: 'Coordinates relative to genome (only available for continuous genome based sequence types)',
|
|
120
|
+
type: 'radio',
|
|
121
|
+
checked: showCoordinatesSetting === 'genomic',
|
|
122
|
+
onClick: () => {
|
|
123
|
+
model.setShowCoordinates('genomic');
|
|
124
|
+
},
|
|
114
125
|
},
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
126
|
+
]
|
|
127
|
+
: []),
|
|
128
|
+
],
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
label: 'Settings',
|
|
132
|
+
icon: Settings_1.default,
|
|
133
|
+
onClick: () => {
|
|
134
|
+
setShowSettings(true);
|
|
135
|
+
},
|
|
125
136
|
},
|
|
126
|
-
},
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
showSettings ? (react_1.default.createElement(SequenceFeatureSettingsDialog, { model: model, handleClose: () => {
|
|
130
|
-
setShowSettings(false);
|
|
131
|
-
} })) : null));
|
|
137
|
+
], children: (0, jsx_runtime_1.jsx)(MoreVert_1.default, {}) }), showSettings ? ((0, jsx_runtime_1.jsx)(SequenceFeatureSettingsDialog, { model: model, handleClose: () => {
|
|
138
|
+
setShowSettings(false);
|
|
139
|
+
} })) : null] }));
|
|
132
140
|
}));
|
|
133
141
|
exports.default = SequenceFeatureMenu;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import type { SequenceFeatureDetailsModel } from '../model';
|
|
3
2
|
declare const SequenceTypeSelector: ({ model, }: {
|
|
4
3
|
model: SequenceFeatureDetailsModel;
|
|
5
|
-
}) =>
|
|
4
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
6
5
|
export default SequenceTypeSelector;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const
|
|
3
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
4
|
const material_1 = require("@mui/material");
|
|
8
5
|
const mobx_react_1 = require("mobx-react");
|
|
9
6
|
const mui_1 = require("tss-react/mui");
|
|
@@ -16,55 +13,54 @@ const useStyles = (0, mui_1.makeStyles)()({
|
|
|
16
13
|
const SequenceTypeSelector = (0, mobx_react_1.observer)(function ({ model, }) {
|
|
17
14
|
const { classes } = useStyles();
|
|
18
15
|
const { intronBp, upDownBp, mode, hasCDS, hasExonOrCDS } = model;
|
|
19
|
-
return (
|
|
20
|
-
react_1.default.createElement(material_1.Select, { size: "small", value: mode, onChange: event => {
|
|
16
|
+
return ((0, jsx_runtime_1.jsx)(material_1.FormControl, { className: classes.formControl, children: (0, jsx_runtime_1.jsx)(material_1.Select, { size: "small", value: mode, onChange: event => {
|
|
21
17
|
model.setMode(event.target.value);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
18
|
+
}, children: Object.entries({
|
|
19
|
+
...(hasCDS
|
|
20
|
+
? {
|
|
21
|
+
cds: 'CDS',
|
|
22
|
+
}
|
|
23
|
+
: {}),
|
|
24
|
+
...(hasCDS
|
|
25
|
+
? {
|
|
26
|
+
protein: 'Protein',
|
|
27
|
+
}
|
|
28
|
+
: {}),
|
|
29
|
+
...(hasExonOrCDS
|
|
30
|
+
? {
|
|
31
|
+
cdna: 'cDNA',
|
|
32
|
+
}
|
|
33
|
+
: {}),
|
|
34
|
+
...(hasExonOrCDS
|
|
35
|
+
? {
|
|
36
|
+
gene: 'Genomic w/ full introns',
|
|
37
|
+
}
|
|
38
|
+
: {}),
|
|
39
|
+
...(hasExonOrCDS
|
|
40
|
+
? {
|
|
41
|
+
gene_updownstream: `Genomic w/ full introns +/- ${upDownBp}bp up+down stream`,
|
|
42
|
+
}
|
|
43
|
+
: {}),
|
|
44
|
+
...(hasExonOrCDS
|
|
45
|
+
? {
|
|
46
|
+
gene_collapsed_intron: `Genomic w/ ${intronBp}bp intron`,
|
|
47
|
+
}
|
|
48
|
+
: {}),
|
|
49
|
+
...(hasExonOrCDS
|
|
50
|
+
? {
|
|
51
|
+
gene_updownstream_collapsed_intron: `Genomic w/ ${intronBp}bp intron +/- ${upDownBp}bp up+down stream `,
|
|
52
|
+
}
|
|
53
|
+
: {}),
|
|
54
|
+
...(!hasExonOrCDS
|
|
55
|
+
? {
|
|
56
|
+
genomic: 'Genomic',
|
|
57
|
+
}
|
|
58
|
+
: {}),
|
|
59
|
+
...(!hasExonOrCDS
|
|
60
|
+
? {
|
|
61
|
+
genomic_sequence_updownstream: `Genomic +/- ${upDownBp}bp up+down stream`,
|
|
62
|
+
}
|
|
63
|
+
: {}),
|
|
64
|
+
}).map(([key, val]) => ((0, jsx_runtime_1.jsx)(material_1.MenuItem, { value: key, children: val }, key))) }) }));
|
|
69
65
|
});
|
|
70
66
|
exports.default = SequenceTypeSelector;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import type { SequenceFeatureDetailsModel } from '../model';
|
|
3
2
|
declare const SequenceFeatureSettingsDialog: ({ handleClose, model, }: {
|
|
4
3
|
handleClose: () => void;
|
|
5
4
|
model: SequenceFeatureDetailsModel;
|
|
6
|
-
}) =>
|
|
5
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
6
|
export default SequenceFeatureSettingsDialog;
|
|
@@ -1,29 +1,7 @@
|
|
|
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
|
-
};
|
|
25
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
const
|
|
3
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
const react_1 = require("react");
|
|
27
5
|
const ui_1 = require("@jbrowse/core/ui");
|
|
28
6
|
const material_1 = require("@mui/material");
|
|
29
7
|
const mobx_react_1 = require("mobx-react");
|
|
@@ -41,12 +19,10 @@ const useStyles = (0, mui_1.makeStyles)()(theme => ({
|
|
|
41
19
|
},
|
|
42
20
|
}));
|
|
43
21
|
function TextField2(props) {
|
|
44
|
-
return (
|
|
45
|
-
react_1.default.createElement(material_1.TextField, { ...props })));
|
|
22
|
+
return ((0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(material_1.TextField, { ...props }) }));
|
|
46
23
|
}
|
|
47
24
|
function FormControl2({ children }) {
|
|
48
|
-
return (
|
|
49
|
-
react_1.default.createElement(material_1.FormControl, null, children)));
|
|
25
|
+
return ((0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(material_1.FormControl, { children: children }) }));
|
|
50
26
|
}
|
|
51
27
|
const SequenceFeatureSettingsDialog = (0, mobx_react_1.observer)(function ({ handleClose, model, }) {
|
|
52
28
|
const { classes } = useStyles();
|
|
@@ -55,31 +31,20 @@ const SequenceFeatureSettingsDialog = (0, mobx_react_1.observer)(function ({ han
|
|
|
55
31
|
const [upDownBp, setUpDownBp] = (0, react_1.useState)(`${model.upDownBp}`);
|
|
56
32
|
const intronBpValid = !Number.isNaN(+intronBp);
|
|
57
33
|
const upDownBpValid = !Number.isNaN(+upDownBp);
|
|
58
|
-
return (
|
|
34
|
+
return ((0, jsx_runtime_1.jsxs)(ui_1.Dialog, { maxWidth: "xl", open: true, onClose: () => {
|
|
59
35
|
handleClose();
|
|
60
|
-
}, title: "Feature sequence settings"
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
react_1.default.createElement(material_1.FormControlLabel, { value: "cds", control: react_1.default.createElement(material_1.Radio, { className: classes.root, size: "small" }), label: "Capitalize CDS and lower case everything else" }),
|
|
74
|
-
react_1.default.createElement(material_1.FormControlLabel, { value: "unchanged", control: react_1.default.createElement(material_1.Radio, { className: classes.root, size: "small" }), label: "Capitalization from reference genome sequence" })))),
|
|
75
|
-
react_1.default.createElement(material_1.DialogActions, null,
|
|
76
|
-
react_1.default.createElement(material_1.Button, { onClick: () => {
|
|
77
|
-
model.setIntronBp(+intronBp);
|
|
78
|
-
model.setUpDownBp(+upDownBp);
|
|
79
|
-
handleClose();
|
|
80
|
-
}, disabled: !intronBpValid || !upDownBpValid, color: "primary", variant: "contained" }, "Submit"),
|
|
81
|
-
react_1.default.createElement(material_1.Button, { onClick: () => {
|
|
82
|
-
handleClose();
|
|
83
|
-
}, color: "secondary", autoFocus: true, variant: "contained" }, "Cancel"))));
|
|
36
|
+
}, title: "Feature sequence settings", children: [(0, jsx_runtime_1.jsxs)(material_1.DialogContent, { className: classes.dialogContent, children: [(0, jsx_runtime_1.jsx)(TextField2, { label: "Number of intronic bases around splice site to display", className: classes.formElt, value: intronBp, helperText: !intronBpValid ? 'Not a number' : '', error: !intronBpValid, onChange: event => {
|
|
37
|
+
setIntronBp(event.target.value);
|
|
38
|
+
} }), (0, jsx_runtime_1.jsx)(TextField2, { label: "Number of bases up/down stream of feature to display", className: classes.formElt, value: upDownBp, helperText: !upDownBpValid ? 'Not a number' : '', error: !upDownBpValid, onChange: event => {
|
|
39
|
+
setUpDownBp(event.target.value);
|
|
40
|
+
} }), (0, jsx_runtime_1.jsxs)(FormControl2, { children: [(0, jsx_runtime_1.jsx)(material_1.FormLabel, { children: "Sequence capitalization" }), (0, jsx_runtime_1.jsxs)(material_1.RadioGroup, { value: upperCaseCDS ? 'cds' : 'unchanged', onChange: e => {
|
|
41
|
+
model.setUpperCaseCDS(e.target.value === 'cds');
|
|
42
|
+
}, children: [(0, jsx_runtime_1.jsx)(material_1.FormControlLabel, { value: "cds", control: (0, jsx_runtime_1.jsx)(material_1.Radio, { className: classes.root, size: "small" }), label: "Capitalize CDS and lower case everything else" }), (0, jsx_runtime_1.jsx)(material_1.FormControlLabel, { value: "unchanged", control: (0, jsx_runtime_1.jsx)(material_1.Radio, { className: classes.root, size: "small" }), label: "Capitalization from reference genome sequence" })] })] })] }), (0, jsx_runtime_1.jsxs)(material_1.DialogActions, { children: [(0, jsx_runtime_1.jsx)(material_1.Button, { onClick: () => {
|
|
43
|
+
model.setIntronBp(+intronBp);
|
|
44
|
+
model.setUpDownBp(+upDownBp);
|
|
45
|
+
handleClose();
|
|
46
|
+
}, disabled: !intronBpValid || !upDownBpValid, color: "primary", variant: "contained", children: "Submit" }), (0, jsx_runtime_1.jsx)(material_1.Button, { onClick: () => {
|
|
47
|
+
handleClose();
|
|
48
|
+
}, color: "secondary", autoFocus: true, variant: "contained", children: "Cancel" })] })] }));
|
|
84
49
|
});
|
|
85
50
|
exports.default = SequenceFeatureSettingsDialog;
|
|
@@ -4,13 +4,6 @@ exports.SequenceFeatureDetailsF = SequenceFeatureDetailsF;
|
|
|
4
4
|
const mobx_1 = require("mobx");
|
|
5
5
|
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
6
6
|
const util_1 = require("../../util");
|
|
7
|
-
function localStorageGetNumber(key, defaultVal) {
|
|
8
|
-
var _a;
|
|
9
|
-
return +((_a = (0, util_1.localStorageGetItem)(key)) !== null && _a !== void 0 ? _a : defaultVal);
|
|
10
|
-
}
|
|
11
|
-
function localStorageGetBoolean(key, defaultVal) {
|
|
12
|
-
return Boolean(JSON.parse((0, util_1.localStorageGetItem)(key) || JSON.stringify(defaultVal)));
|
|
13
|
-
}
|
|
14
7
|
function localStorageSetNumber(key, value) {
|
|
15
8
|
(0, util_1.localStorageSetItem)(key, JSON.stringify(value));
|
|
16
9
|
}
|
|
@@ -23,9 +16,9 @@ function SequenceFeatureDetailsF() {
|
|
|
23
16
|
.model('SequenceFeatureDetails')
|
|
24
17
|
.volatile(() => ({
|
|
25
18
|
showCoordinatesSetting: (0, util_1.localStorageGetItem)(`${p}-showCoordinatesSetting`) || 'none',
|
|
26
|
-
intronBp: localStorageGetNumber(`${p}-intronBp`, 10),
|
|
27
|
-
upDownBp: localStorageGetNumber(`${p}-upDownBp`, 100),
|
|
28
|
-
upperCaseCDS: localStorageGetBoolean(`${p}-upperCaseCDS`, true),
|
|
19
|
+
intronBp: (0, util_1.localStorageGetNumber)(`${p}-intronBp`, 10),
|
|
20
|
+
upDownBp: (0, util_1.localStorageGetNumber)(`${p}-upDownBp`, 100),
|
|
21
|
+
upperCaseCDS: (0, util_1.localStorageGetBoolean)(`${p}-upperCaseCDS`, true),
|
|
29
22
|
charactersPerRow: 100,
|
|
30
23
|
feature: undefined,
|
|
31
24
|
mode: '',
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import type { SimpleFeatureSerialized } from '../../../util';
|
|
3
2
|
import type { Feat } from '../../util';
|
|
4
3
|
import type { SequenceFeatureDetailsModel } from '../model';
|
|
@@ -13,5 +12,5 @@ declare const CDNASequence: ({ utr, cds, exons, sequence, upstream, downstream,
|
|
|
13
12
|
includeIntrons?: boolean;
|
|
14
13
|
collapseIntron?: boolean;
|
|
15
14
|
model: SequenceFeatureDetailsModel;
|
|
16
|
-
}) =>
|
|
15
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
17
16
|
export default CDNASequence;
|
|
@@ -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
|
-
const
|
|
6
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
7
|
const mobx_react_1 = require("mobx-react");
|
|
8
8
|
const util_1 = require("../util");
|
|
9
9
|
const SequenceDisplay_1 = __importDefault(require("./SequenceDisplay"));
|
|
@@ -31,7 +31,7 @@ const CDNASequence = (0, mobx_react_1.observer)(function ({ utr, cds, exons, seq
|
|
|
31
31
|
charactersPerRow,
|
|
32
32
|
showCoordinates,
|
|
33
33
|
});
|
|
34
|
-
upstreamChunk = (
|
|
34
|
+
upstreamChunk = ((0, jsx_runtime_1.jsx)(SequenceDisplay_1.default, { model: model, color: util_1.updownstreamColor, strand: mult, start: currStart, coordStart: coordStart, chunks: segments }));
|
|
35
35
|
currRemainder = remainder;
|
|
36
36
|
currStart = currStart + upstream.length * mult;
|
|
37
37
|
coordStart = coordStart + upstream.length * mult;
|
|
@@ -51,7 +51,7 @@ const CDNASequence = (0, mobx_react_1.observer)(function ({ utr, cds, exons, seq
|
|
|
51
51
|
currRemainder,
|
|
52
52
|
showCoordinates,
|
|
53
53
|
});
|
|
54
|
-
middleChunks.push(
|
|
54
|
+
middleChunks.push((0, jsx_runtime_1.jsx)(SequenceDisplay_1.default, { model: model, color: chunk.type === 'CDS' ? util_1.cdsColor : util_1.utrColor, strand: mult, start: currStart, coordStart: coordStart, chunks: segments }, `${JSON.stringify(chunk)}-mid`));
|
|
55
55
|
currRemainder = remainder;
|
|
56
56
|
currStart = currStart + s.length * mult;
|
|
57
57
|
coordStart = coordStart + s.length * mult;
|
|
@@ -66,7 +66,7 @@ const CDNASequence = (0, mobx_react_1.observer)(function ({ utr, cds, exons, seq
|
|
|
66
66
|
showCoordinates,
|
|
67
67
|
});
|
|
68
68
|
if (segments.length) {
|
|
69
|
-
middleChunks.push(
|
|
69
|
+
middleChunks.push((0, jsx_runtime_1.jsx)(SequenceDisplay_1.default, { model: model, strand: mult, coordStart: coordStart, start: currStart, chunks: segments }, `${JSON.stringify(chunk)}-intron`));
|
|
70
70
|
currRemainder = remainder;
|
|
71
71
|
currStart = currStart + str.length * mult;
|
|
72
72
|
coordStart = coordStart + str.length * mult;
|
|
@@ -81,11 +81,8 @@ const CDNASequence = (0, mobx_react_1.observer)(function ({ utr, cds, exons, seq
|
|
|
81
81
|
currRemainder,
|
|
82
82
|
showCoordinates,
|
|
83
83
|
});
|
|
84
|
-
downstreamChunk = (
|
|
84
|
+
downstreamChunk = ((0, jsx_runtime_1.jsx)(SequenceDisplay_1.default, { start: currStart, model: model, strand: mult, chunks: segments, coordStart: coordStart, color: util_1.updownstreamColor }));
|
|
85
85
|
}
|
|
86
|
-
return (
|
|
87
|
-
upstreamChunk,
|
|
88
|
-
middleChunks,
|
|
89
|
-
downstreamChunk));
|
|
86
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [upstreamChunk, middleChunks, downstreamChunk] }));
|
|
90
87
|
});
|
|
91
88
|
exports.default = CDNASequence;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import type { Feat } from '../../util';
|
|
3
2
|
import type { SequenceFeatureDetailsModel } from '../model';
|
|
4
3
|
declare const CDSSequence: ({ cds, sequence, model, }: {
|
|
5
4
|
cds: Feat[];
|
|
6
5
|
sequence: string;
|
|
7
6
|
model: SequenceFeatureDetailsModel;
|
|
8
|
-
}) =>
|
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
8
|
export default CDSSequence;
|
|
@@ -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
|
-
const
|
|
6
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
7
|
const mobx_react_1 = require("mobx-react");
|
|
8
8
|
const util_1 = require("../../util");
|
|
9
9
|
const util_2 = require("../util");
|
|
@@ -15,6 +15,6 @@ const CDSSequence = (0, mobx_react_1.observer)(function ({ cds, sequence, model,
|
|
|
15
15
|
charactersPerRow,
|
|
16
16
|
showCoordinates,
|
|
17
17
|
});
|
|
18
|
-
return (
|
|
18
|
+
return ((0, jsx_runtime_1.jsx)(SequenceDisplay_1.default, { model: model, color: util_2.cdsColor, chunks: segments, start: 0 }));
|
|
19
19
|
});
|
|
20
20
|
exports.default = CDSSequence;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import type { SimpleFeatureSerialized } from '../../../util';
|
|
3
2
|
import type { SequenceFeatureDetailsModel } from '../model';
|
|
4
3
|
declare const GenomicSequence: ({ sequence, upstream, feature, downstream, model, }: {
|
|
@@ -7,5 +6,5 @@ declare const GenomicSequence: ({ sequence, upstream, feature, downstream, model
|
|
|
7
6
|
upstream?: string;
|
|
8
7
|
downstream?: string;
|
|
9
8
|
model: SequenceFeatureDetailsModel;
|
|
10
|
-
}) =>
|
|
9
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
11
10
|
export default GenomicSequence;
|
|
@@ -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
|
-
const
|
|
6
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
7
|
const mobx_react_1 = require("mobx-react");
|
|
8
8
|
const util_1 = require("../util");
|
|
9
9
|
const SequenceDisplay_1 = __importDefault(require("./SequenceDisplay"));
|
|
@@ -26,7 +26,7 @@ const GenomicSequence = (0, mobx_react_1.observer)(function ({ sequence, upstrea
|
|
|
26
26
|
charactersPerRow,
|
|
27
27
|
showCoordinates,
|
|
28
28
|
});
|
|
29
|
-
upstreamChunk = (
|
|
29
|
+
upstreamChunk = ((0, jsx_runtime_1.jsx)(SequenceDisplay_1.default, { model: model, color: util_1.updownstreamColor, start: currStart, coordStart: coordStart, chunks: segments }));
|
|
30
30
|
currRemainder = remainder;
|
|
31
31
|
currStart = currStart + upstream.length * mult;
|
|
32
32
|
coordStart = coordStart + upstream.length * mult;
|
|
@@ -37,7 +37,7 @@ const GenomicSequence = (0, mobx_react_1.observer)(function ({ sequence, upstrea
|
|
|
37
37
|
showCoordinates,
|
|
38
38
|
currRemainder,
|
|
39
39
|
});
|
|
40
|
-
const middleChunk = (
|
|
40
|
+
const middleChunk = ((0, jsx_runtime_1.jsx)(SequenceDisplay_1.default, { model: model, color: util_1.genomeColor, start: currStart, coordStart: coordStart, chunks: segments }));
|
|
41
41
|
currRemainder = remainder;
|
|
42
42
|
currStart += sequence.length * mult;
|
|
43
43
|
coordStart = coordStart + sequence.length * mult;
|
|
@@ -49,11 +49,8 @@ const GenomicSequence = (0, mobx_react_1.observer)(function ({ sequence, upstrea
|
|
|
49
49
|
currRemainder,
|
|
50
50
|
showCoordinates,
|
|
51
51
|
});
|
|
52
|
-
downstreamChunk = (
|
|
52
|
+
downstreamChunk = ((0, jsx_runtime_1.jsx)(SequenceDisplay_1.default, { start: currStart, model: model, chunks: segments, coordStart: coordStart, color: util_1.updownstreamColor }));
|
|
53
53
|
}
|
|
54
|
-
return (
|
|
55
|
-
upstreamChunk,
|
|
56
|
-
middleChunk,
|
|
57
|
-
downstreamChunk));
|
|
54
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [upstreamChunk, middleChunk, downstreamChunk] }));
|
|
58
55
|
});
|
|
59
56
|
exports.default = GenomicSequence;
|