@jbrowse/plugin-alignments 2.14.0 → 2.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/LinearPileupDisplay/SharedLinearPileupDisplayMixin.d.ts +6 -4
- package/dist/LinearPileupDisplay/SharedLinearPileupDisplayMixin.js +5 -1
- package/dist/LinearPileupDisplay/components/SetMaxHeightDialog.js +2 -2
- package/dist/MismatchParser/index.js +1 -1
- package/esm/LinearPileupDisplay/SharedLinearPileupDisplayMixin.d.ts +6 -4
- package/esm/LinearPileupDisplay/SharedLinearPileupDisplayMixin.js +6 -2
- package/esm/LinearPileupDisplay/components/SetMaxHeightDialog.js +2 -2
- package/esm/MismatchParser/index.js +1 -1
- package/package.json +4 -4
|
@@ -181,9 +181,7 @@ export declare function SharedLinearPileupDisplayMixin(configSchema: AnyConfigur
|
|
|
181
181
|
error: unknown;
|
|
182
182
|
message: string | undefined;
|
|
183
183
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
184
|
-
id: import("mobx-state-tree"
|
|
185
|
-
* #property
|
|
186
|
-
*/).IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
184
|
+
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
187
185
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
188
186
|
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
189
187
|
}, {
|
|
@@ -345,7 +343,11 @@ export declare function SharedLinearPileupDisplayMixin(configSchema: AnyConfigur
|
|
|
345
343
|
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
346
344
|
[x: string]: any;
|
|
347
345
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & any & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>);
|
|
348
|
-
} & import("mobx-state-tree"
|
|
346
|
+
} & import("mobx-state-tree" /**
|
|
347
|
+
* #stateModel SharedLinearPileupDisplayMixin
|
|
348
|
+
* #category display
|
|
349
|
+
* extends `BaseLinearDisplay`
|
|
350
|
+
*/).IStateTreeNode<AnyConfigurationSchemaType>);
|
|
349
351
|
} & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>;
|
|
350
352
|
} & {
|
|
351
353
|
/**
|
|
@@ -182,7 +182,11 @@ function SharedLinearPileupDisplayMixin(configSchema) {
|
|
|
182
182
|
selectFeature(feature) {
|
|
183
183
|
const session = (0, util_1.getSession)(self);
|
|
184
184
|
if ((0, util_1.isSessionModelWithWidgets)(session)) {
|
|
185
|
-
const featureWidget = session.addWidget('AlignmentsFeatureWidget', 'alignmentFeature', {
|
|
185
|
+
const featureWidget = session.addWidget('AlignmentsFeatureWidget', 'alignmentFeature', {
|
|
186
|
+
featureData: feature.toJSON(),
|
|
187
|
+
view: (0, util_1.getContainingView)(self),
|
|
188
|
+
track: (0, util_1.getContainingTrack)(self),
|
|
189
|
+
});
|
|
186
190
|
session.showWidget(featureWidget);
|
|
187
191
|
}
|
|
188
192
|
session.setSelection(feature);
|
|
@@ -38,10 +38,10 @@ const SetMaxHeightDialog = (0, mobx_react_1.observer)(function (props) {
|
|
|
38
38
|
const { classes } = useStyles();
|
|
39
39
|
const { maxHeight = '' } = model;
|
|
40
40
|
const [max, setMax] = (0, react_1.useState)(`${maxHeight}`);
|
|
41
|
-
return (react_1.default.createElement(ui_1.Dialog, { open: true, onClose: handleClose, title: "
|
|
41
|
+
return (react_1.default.createElement(ui_1.Dialog, { open: true, onClose: handleClose, title: "Set max height" },
|
|
42
42
|
react_1.default.createElement(material_1.DialogContent, { className: classes.root },
|
|
43
43
|
react_1.default.createElement(material_1.Typography, null, "Set max height for the track. For example, you can increase this if the layout says \"Max height reached\""),
|
|
44
|
-
react_1.default.createElement(material_1.TextField, { value: max, onChange: event => {
|
|
44
|
+
react_1.default.createElement(material_1.TextField, { value: max, autoFocus: true, onChange: event => {
|
|
45
45
|
setMax(event.target.value);
|
|
46
46
|
}, placeholder: "Enter max height for layout" }),
|
|
47
47
|
react_1.default.createElement(material_1.DialogActions, null,
|
|
@@ -80,7 +80,7 @@ function cigarToMismatches(ops, seq, ref, qual) {
|
|
|
80
80
|
}
|
|
81
81
|
else if (op === 'X') {
|
|
82
82
|
const r = (seq === null || seq === void 0 ? void 0 : seq.slice(soffset, soffset + len)) || [];
|
|
83
|
-
const q = (qual === null || qual === void 0 ? void 0 : qual.
|
|
83
|
+
const q = (qual === null || qual === void 0 ? void 0 : qual.subarray(soffset, soffset + len)) || [];
|
|
84
84
|
for (let j = 0; j < len; j++) {
|
|
85
85
|
mismatches.push({
|
|
86
86
|
start: roffset + j,
|
|
@@ -181,9 +181,7 @@ export declare function SharedLinearPileupDisplayMixin(configSchema: AnyConfigur
|
|
|
181
181
|
error: unknown;
|
|
182
182
|
message: string | undefined;
|
|
183
183
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
184
|
-
id: import("mobx-state-tree"
|
|
185
|
-
* #property
|
|
186
|
-
*/).IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
184
|
+
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
187
185
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
188
186
|
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
189
187
|
}, {
|
|
@@ -345,7 +343,11 @@ export declare function SharedLinearPileupDisplayMixin(configSchema: AnyConfigur
|
|
|
345
343
|
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
346
344
|
[x: string]: any;
|
|
347
345
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & any & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>);
|
|
348
|
-
} & import("mobx-state-tree"
|
|
346
|
+
} & import("mobx-state-tree" /**
|
|
347
|
+
* #stateModel SharedLinearPileupDisplayMixin
|
|
348
|
+
* #category display
|
|
349
|
+
* extends `BaseLinearDisplay`
|
|
350
|
+
*/).IStateTreeNode<AnyConfigurationSchemaType>);
|
|
349
351
|
} & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>;
|
|
350
352
|
} & {
|
|
351
353
|
/**
|
|
@@ -5,7 +5,7 @@ import copy from 'copy-to-clipboard';
|
|
|
5
5
|
import { ConfigurationReference, readConfObject, getConf, } from '@jbrowse/core/configuration';
|
|
6
6
|
import SerializableFilterChain from '@jbrowse/core/pluggableElementTypes/renderers/util/serializableFilterChain';
|
|
7
7
|
import { getRpcSessionId } from '@jbrowse/core/util/tracks';
|
|
8
|
-
import { getEnv, getSession, isSessionModelWithWidgets, getContainingView, SimpleFeature, } from '@jbrowse/core/util';
|
|
8
|
+
import { getEnv, getSession, isSessionModelWithWidgets, getContainingView, SimpleFeature, getContainingTrack, } from '@jbrowse/core/util';
|
|
9
9
|
import { BaseLinearDisplay, } from '@jbrowse/plugin-linear-genome-view';
|
|
10
10
|
// icons
|
|
11
11
|
import { ContentCopy as ContentCopyIcon } from '@jbrowse/core/ui/Icons';
|
|
@@ -153,7 +153,11 @@ export function SharedLinearPileupDisplayMixin(configSchema) {
|
|
|
153
153
|
selectFeature(feature) {
|
|
154
154
|
const session = getSession(self);
|
|
155
155
|
if (isSessionModelWithWidgets(session)) {
|
|
156
|
-
const featureWidget = session.addWidget('AlignmentsFeatureWidget', 'alignmentFeature', {
|
|
156
|
+
const featureWidget = session.addWidget('AlignmentsFeatureWidget', 'alignmentFeature', {
|
|
157
|
+
featureData: feature.toJSON(),
|
|
158
|
+
view: getContainingView(self),
|
|
159
|
+
track: getContainingTrack(self),
|
|
160
|
+
});
|
|
157
161
|
session.showWidget(featureWidget);
|
|
158
162
|
}
|
|
159
163
|
session.setSelection(feature);
|
|
@@ -13,10 +13,10 @@ const SetMaxHeightDialog = observer(function (props) {
|
|
|
13
13
|
const { classes } = useStyles();
|
|
14
14
|
const { maxHeight = '' } = model;
|
|
15
15
|
const [max, setMax] = useState(`${maxHeight}`);
|
|
16
|
-
return (React.createElement(Dialog, { open: true, onClose: handleClose, title: "
|
|
16
|
+
return (React.createElement(Dialog, { open: true, onClose: handleClose, title: "Set max height" },
|
|
17
17
|
React.createElement(DialogContent, { className: classes.root },
|
|
18
18
|
React.createElement(Typography, null, "Set max height for the track. For example, you can increase this if the layout says \"Max height reached\""),
|
|
19
|
-
React.createElement(TextField, { value: max, onChange: event => {
|
|
19
|
+
React.createElement(TextField, { value: max, autoFocus: true, onChange: event => {
|
|
20
20
|
setMax(event.target.value);
|
|
21
21
|
}, placeholder: "Enter max height for layout" }),
|
|
22
22
|
React.createElement(DialogActions, null,
|
|
@@ -61,7 +61,7 @@ export function cigarToMismatches(ops, seq, ref, qual) {
|
|
|
61
61
|
}
|
|
62
62
|
else if (op === 'X') {
|
|
63
63
|
const r = (seq === null || seq === void 0 ? void 0 : seq.slice(soffset, soffset + len)) || [];
|
|
64
|
-
const q = (qual === null || qual === void 0 ? void 0 : qual.
|
|
64
|
+
const q = (qual === null || qual === void 0 ? void 0 : qual.subarray(soffset, soffset + len)) || [];
|
|
65
65
|
for (let j = 0; j < len; j++) {
|
|
66
66
|
mismatches.push({
|
|
67
67
|
start: roffset + j,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/plugin-alignments",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.15.0",
|
|
4
4
|
"description": "JBrowse 2 alignments adapters, tracks, etc.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@gmod/bam": "^2.0.0",
|
|
40
40
|
"@gmod/cram": "^3.0.3",
|
|
41
|
-
"@mui/icons-material": "^
|
|
41
|
+
"@mui/icons-material": "^6.0.0",
|
|
42
42
|
"canvas2svg": "^1.0.16",
|
|
43
43
|
"clone": "^2.1.2",
|
|
44
44
|
"copy-to-clipboard": "^3.3.1",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@jbrowse/core": "^2.0.0",
|
|
50
50
|
"@jbrowse/plugin-linear-genome-view": "^2.0.0",
|
|
51
51
|
"@jbrowse/plugin-wiggle": "^2.0.0",
|
|
52
|
-
"@mui/material": "^
|
|
52
|
+
"@mui/material": "^6.0.0",
|
|
53
53
|
"mobx": "^6.0.0",
|
|
54
54
|
"mobx-react": "^9.0.0",
|
|
55
55
|
"mobx-state-tree": "^5.0.0",
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"distModule": "esm/index.js",
|
|
64
64
|
"srcModule": "src/index.ts",
|
|
65
65
|
"module": "esm/index.js",
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "87eeb1fbf8311dbf88d5e75b5a265f03beffdda8"
|
|
67
67
|
}
|