@jbrowse/plugin-alignments 2.18.0 → 3.0.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/AlignmentsFeatureDetail/AlignmentsFeatureDetail.d.ts +1 -2
- package/dist/AlignmentsFeatureDetail/AlignmentsFeatureDetail.js +20 -13
- package/dist/AlignmentsFeatureDetail/Flags.d.ts +1 -2
- package/dist/AlignmentsFeatureDetail/Flags.js +6 -8
- package/dist/AlignmentsFeatureDetail/Formatter.d.ts +1 -2
- package/dist/AlignmentsFeatureDetail/Formatter.js +11 -36
- package/dist/AlignmentsFeatureDetail/LaunchPairedEndBreakpointSplitViewPanel.d.ts +1 -2
- package/dist/AlignmentsFeatureDetail/LaunchPairedEndBreakpointSplitViewPanel.js +44 -47
- package/dist/AlignmentsFeatureDetail/LaunchSupplementaryAlignmentBreakpointSplitViewPanel.d.ts +1 -2
- package/dist/AlignmentsFeatureDetail/LaunchSupplementaryAlignmentBreakpointSplitViewPanel.js +27 -31
- package/dist/AlignmentsFeatureDetail/LinkedPairedAlignments.d.ts +1 -2
- package/dist/AlignmentsFeatureDetail/LinkedPairedAlignments.js +2 -2
- package/dist/AlignmentsFeatureDetail/PairLink.d.ts +1 -2
- package/dist/AlignmentsFeatureDetail/PairLink.js +3 -6
- package/dist/AlignmentsFeatureDetail/SupplementaryAlignments.d.ts +1 -2
- package/dist/AlignmentsFeatureDetail/SupplementaryAlignments.js +2 -4
- package/dist/AlignmentsFeatureDetail/SupplementaryAlignmentsLocStrings.d.ts +1 -2
- package/dist/AlignmentsFeatureDetail/SupplementaryAlignmentsLocStrings.js +21 -27
- package/dist/AlignmentsFeatureDetail/index.js +17 -7
- package/dist/BamAdapter/index.js +17 -7
- package/dist/CramAdapter/CramAdapter.js +7 -2
- package/dist/CramAdapter/CramTestAdapters.d.ts +1 -1
- package/dist/CramAdapter/CramTestAdapters.js +2 -1
- package/dist/CramAdapter/index.js +17 -7
- package/dist/GuessAlignmentsTypes/index.js +19 -34
- package/dist/HtsgetBamAdapter/index.js +17 -7
- package/dist/LinearAlignmentsDisplay/components/AlignmentsDisplay.d.ts +1 -2
- package/dist/LinearAlignmentsDisplay/components/AlignmentsDisplay.js +8 -16
- package/dist/LinearAlignmentsDisplay/model.d.ts +1 -2
- package/dist/LinearAlignmentsDisplay/model.js +5 -7
- package/dist/LinearPileupDisplay/SharedLinearPileupDisplayMixin.d.ts +21 -7
- package/dist/LinearPileupDisplay/SharedLinearPileupDisplayMixin.js +40 -15
- package/dist/LinearPileupDisplay/components/ColorByTagDialog.d.ts +1 -2
- package/dist/LinearPileupDisplay/components/ColorByTagDialog.js +10 -39
- package/dist/LinearPileupDisplay/components/GroupByDialog.d.ts +1 -2
- package/dist/LinearPileupDisplay/components/GroupByDialog.js +82 -121
- package/dist/LinearPileupDisplay/components/LinearPileupDisplayBlurb.d.ts +1 -2
- package/dist/LinearPileupDisplay/components/LinearPileupDisplayBlurb.js +2 -6
- package/dist/LinearPileupDisplay/components/SetFeatureHeightDialog.d.ts +1 -2
- package/dist/LinearPileupDisplay/components/SetFeatureHeightDialog.js +13 -42
- package/dist/LinearPileupDisplay/components/SetMaxHeightDialog.d.ts +1 -2
- package/dist/LinearPileupDisplay/components/SetMaxHeightDialog.js +10 -38
- package/dist/LinearPileupDisplay/components/SortByTagDialog.d.ts +1 -2
- package/dist/LinearPileupDisplay/components/SortByTagDialog.js +15 -44
- package/dist/LinearPileupDisplay/model.d.ts +21 -7
- package/dist/LinearPileupDisplay/model.js +19 -8
- package/dist/LinearReadArcsDisplay/components/ReactComponent.d.ts +1 -2
- package/dist/LinearReadArcsDisplay/components/ReactComponent.js +4 -27
- package/dist/LinearReadArcsDisplay/index.js +17 -7
- package/dist/LinearReadArcsDisplay/model.d.ts +1 -1
- package/dist/LinearReadArcsDisplay/model.js +17 -7
- package/dist/LinearReadCloudDisplay/components/ReactComponent.d.ts +1 -2
- package/dist/LinearReadCloudDisplay/components/ReactComponent.js +4 -27
- package/dist/LinearReadCloudDisplay/index.js +17 -7
- package/dist/LinearReadCloudDisplay/model.d.ts +1 -1
- package/dist/LinearReadCloudDisplay/model.js +17 -7
- package/dist/LinearSNPCoverageDisplay/components/Tooltip.d.ts +1 -2
- package/dist/LinearSNPCoverageDisplay/components/Tooltip.js +15 -54
- package/dist/LinearSNPCoverageDisplay/model.d.ts +4 -4
- package/dist/LinearSNPCoverageDisplay/model.js +49 -35
- package/dist/MismatchParser/cigarToMismatches.d.ts +1 -2
- package/dist/MismatchParser/index.d.ts +1 -2
- package/dist/MismatchParser/mdToMismatches.d.ts +1 -2
- package/dist/PileupRenderer/PileupRenderer.d.ts +4 -4
- package/dist/PileupRenderer/PileupRenderer.js +17 -7
- package/dist/PileupRenderer/components/PileupRendering.d.ts +1 -2
- package/dist/PileupRenderer/components/PileupRendering.js +15 -40
- package/dist/PileupRenderer/configSchema.d.ts +5 -0
- package/dist/PileupRenderer/configSchema.js +5 -0
- package/dist/PileupRenderer/makeImageData.js +2 -0
- package/dist/PileupRenderer/renderMismatches.d.ts +2 -1
- package/dist/PileupRenderer/renderMismatches.js +18 -13
- package/dist/SNPCoverageAdapter/index.js +17 -7
- package/dist/SNPCoverageAdapter/processModifications.js +1 -1
- package/dist/SNPCoverageRenderer/SNPCoverageRenderer.d.ts +1 -18
- package/dist/SNPCoverageRenderer/SNPCoverageRenderer.js +35 -264
- package/dist/SNPCoverageRenderer/configSchema.d.ts +3 -3
- package/dist/SNPCoverageRenderer/configSchema.js +3 -3
- package/dist/SNPCoverageRenderer/makeImage.d.ts +2 -0
- package/dist/SNPCoverageRenderer/makeImage.js +270 -0
- package/dist/SNPCoverageRenderer/types.d.ts +19 -0
- package/dist/SNPCoverageRenderer/types.js +2 -0
- package/dist/index.js +17 -7
- package/dist/shared/components/BaseDisplayComponent.d.ts +1 -2
- package/dist/shared/components/BaseDisplayComponent.js +6 -13
- package/dist/shared/components/FilterByTagDialog.d.ts +1 -2
- package/dist/shared/components/FilterByTagDialog.js +42 -92
- package/dist/shared/renderSvgUtil.d.ts +1 -2
- package/dist/shared/renderSvgUtil.js +20 -17
- package/esm/AlignmentsFeatureDetail/AlignmentsFeatureDetail.d.ts +1 -2
- package/esm/AlignmentsFeatureDetail/AlignmentsFeatureDetail.js +3 -6
- package/esm/AlignmentsFeatureDetail/Flags.d.ts +1 -2
- package/esm/AlignmentsFeatureDetail/Flags.js +6 -8
- package/esm/AlignmentsFeatureDetail/Formatter.d.ts +1 -2
- package/esm/AlignmentsFeatureDetail/Formatter.js +11 -13
- package/esm/AlignmentsFeatureDetail/LaunchPairedEndBreakpointSplitViewPanel.d.ts +1 -2
- package/esm/AlignmentsFeatureDetail/LaunchPairedEndBreakpointSplitViewPanel.js +27 -40
- package/esm/AlignmentsFeatureDetail/LaunchSupplementaryAlignmentBreakpointSplitViewPanel.d.ts +1 -2
- package/esm/AlignmentsFeatureDetail/LaunchSupplementaryAlignmentBreakpointSplitViewPanel.js +10 -24
- package/esm/AlignmentsFeatureDetail/LinkedPairedAlignments.d.ts +1 -2
- package/esm/AlignmentsFeatureDetail/LinkedPairedAlignments.js +2 -2
- package/esm/AlignmentsFeatureDetail/PairLink.d.ts +1 -2
- package/esm/AlignmentsFeatureDetail/PairLink.js +3 -3
- package/esm/AlignmentsFeatureDetail/SupplementaryAlignments.d.ts +1 -2
- package/esm/AlignmentsFeatureDetail/SupplementaryAlignments.js +2 -4
- package/esm/AlignmentsFeatureDetail/SupplementaryAlignmentsLocStrings.d.ts +1 -2
- package/esm/AlignmentsFeatureDetail/SupplementaryAlignmentsLocStrings.js +21 -24
- package/esm/CramAdapter/CramAdapter.js +7 -2
- package/esm/CramAdapter/CramTestAdapters.d.ts +1 -1
- package/esm/CramAdapter/CramTestAdapters.js +2 -1
- package/esm/GuessAlignmentsTypes/index.js +19 -34
- package/esm/LinearAlignmentsDisplay/components/AlignmentsDisplay.d.ts +1 -2
- package/esm/LinearAlignmentsDisplay/components/AlignmentsDisplay.js +8 -13
- package/esm/LinearAlignmentsDisplay/model.d.ts +1 -2
- package/esm/LinearAlignmentsDisplay/model.js +5 -7
- package/esm/LinearPileupDisplay/SharedLinearPileupDisplayMixin.d.ts +21 -7
- package/esm/LinearPileupDisplay/SharedLinearPileupDisplayMixin.js +23 -8
- package/esm/LinearPileupDisplay/components/ColorByTagDialog.d.ts +1 -2
- package/esm/LinearPileupDisplay/components/ColorByTagDialog.js +10 -16
- package/esm/LinearPileupDisplay/components/GroupByDialog.d.ts +1 -2
- package/esm/LinearPileupDisplay/components/GroupByDialog.js +82 -98
- package/esm/LinearPileupDisplay/components/LinearPileupDisplayBlurb.d.ts +1 -2
- package/esm/LinearPileupDisplay/components/LinearPileupDisplayBlurb.js +2 -3
- package/esm/LinearPileupDisplay/components/SetFeatureHeightDialog.d.ts +1 -2
- package/esm/LinearPileupDisplay/components/SetFeatureHeightDialog.js +13 -19
- package/esm/LinearPileupDisplay/components/SetMaxHeightDialog.d.ts +1 -2
- package/esm/LinearPileupDisplay/components/SetMaxHeightDialog.js +10 -15
- package/esm/LinearPileupDisplay/components/SortByTagDialog.d.ts +1 -2
- package/esm/LinearPileupDisplay/components/SortByTagDialog.js +15 -21
- package/esm/LinearPileupDisplay/model.d.ts +21 -7
- package/esm/LinearPileupDisplay/model.js +2 -1
- package/esm/LinearReadArcsDisplay/components/ReactComponent.d.ts +1 -2
- package/esm/LinearReadArcsDisplay/components/ReactComponent.js +4 -4
- package/esm/LinearReadArcsDisplay/model.d.ts +1 -1
- package/esm/LinearReadCloudDisplay/components/ReactComponent.d.ts +1 -2
- package/esm/LinearReadCloudDisplay/components/ReactComponent.js +4 -4
- package/esm/LinearReadCloudDisplay/model.d.ts +1 -1
- package/esm/LinearSNPCoverageDisplay/components/Tooltip.d.ts +1 -2
- package/esm/LinearSNPCoverageDisplay/components/Tooltip.js +15 -51
- package/esm/LinearSNPCoverageDisplay/model.d.ts +4 -4
- package/esm/LinearSNPCoverageDisplay/model.js +32 -28
- package/esm/MismatchParser/cigarToMismatches.d.ts +1 -2
- package/esm/MismatchParser/index.d.ts +1 -2
- package/esm/MismatchParser/mdToMismatches.d.ts +1 -2
- package/esm/PileupRenderer/PileupRenderer.d.ts +4 -4
- package/esm/PileupRenderer/components/PileupRendering.d.ts +1 -2
- package/esm/PileupRenderer/components/PileupRendering.js +15 -17
- package/esm/PileupRenderer/configSchema.d.ts +5 -0
- package/esm/PileupRenderer/configSchema.js +5 -0
- package/esm/PileupRenderer/makeImageData.js +2 -0
- package/esm/PileupRenderer/renderMismatches.d.ts +2 -1
- package/esm/PileupRenderer/renderMismatches.js +18 -13
- package/esm/SNPCoverageAdapter/processModifications.js +1 -1
- package/esm/SNPCoverageRenderer/SNPCoverageRenderer.d.ts +1 -18
- package/esm/SNPCoverageRenderer/SNPCoverageRenderer.js +3 -265
- package/esm/SNPCoverageRenderer/configSchema.d.ts +3 -3
- package/esm/SNPCoverageRenderer/configSchema.js +3 -3
- package/esm/SNPCoverageRenderer/makeImage.d.ts +2 -0
- package/esm/SNPCoverageRenderer/makeImage.js +267 -0
- package/esm/SNPCoverageRenderer/types.d.ts +19 -0
- package/esm/SNPCoverageRenderer/types.js +1 -0
- package/esm/shared/components/BaseDisplayComponent.d.ts +1 -2
- package/esm/shared/components/BaseDisplayComponent.js +6 -10
- package/esm/shared/components/FilterByTagDialog.d.ts +1 -2
- package/esm/shared/components/FilterByTagDialog.js +42 -69
- package/esm/shared/renderSvgUtil.d.ts +1 -2
- package/esm/shared/renderSvgUtil.js +3 -7
- package/package.json +13 -13
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
declare const SortByTagDialog: (props: {
|
|
3
2
|
model: {
|
|
4
3
|
setSortedBy: (arg: string, arg2: string) => void;
|
|
5
4
|
};
|
|
6
5
|
handleClose: () => void;
|
|
7
|
-
}) =>
|
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
export default SortByTagDialog;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from 'react';
|
|
2
3
|
import { Dialog } from '@jbrowse/core/ui';
|
|
3
4
|
import { Button, DialogActions, DialogContent, TextField, Typography, } from '@mui/material';
|
|
4
5
|
import { observer } from 'mobx-react';
|
|
@@ -6,25 +7,18 @@ const SortByTagDialog = observer(function (props) {
|
|
|
6
7
|
const { model, handleClose } = props;
|
|
7
8
|
const [tag, setTag] = useState('');
|
|
8
9
|
const validTag = /^[A-Za-z][A-Za-z0-9]$/.exec(tag);
|
|
9
|
-
return (
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
React.createElement(Button, { variant: "contained", color: "primary", type: "submit", autoFocus: true, onClick: () => {
|
|
23
|
-
model.setSortedBy('tag', tag);
|
|
24
|
-
handleClose();
|
|
25
|
-
} }, "Submit"),
|
|
26
|
-
React.createElement(Button, { variant: "contained", color: "secondary", onClick: () => {
|
|
27
|
-
handleClose();
|
|
28
|
-
} }, "Cancel")))));
|
|
10
|
+
return (_jsx(Dialog, { open: true, onClose: handleClose, title: "Sort by tag", children: _jsxs(DialogContent, { children: [_jsx(Typography, { children: "Set the tag to sort by" }), _jsx(Typography, { color: "textSecondary", children: "Examples: HP for haplotype, RG for read group, etc." }), _jsx(TextField, { value: tag, onChange: event => {
|
|
11
|
+
setTag(event.target.value);
|
|
12
|
+
}, placeholder: "Enter tag name", error: tag.length === 2 && !validTag, helperText: tag.length === 2 && !validTag ? 'Not a valid tag' : '', autoComplete: "off", "data-testid": "sort-tag-name", slotProps: {
|
|
13
|
+
htmlInput: {
|
|
14
|
+
maxLength: 2,
|
|
15
|
+
'data-testid': 'sort-tag-name-input',
|
|
16
|
+
},
|
|
17
|
+
} }), _jsxs(DialogActions, { children: [_jsx(Button, { variant: "contained", color: "primary", type: "submit", autoFocus: true, onClick: () => {
|
|
18
|
+
model.setSortedBy('tag', tag);
|
|
19
|
+
handleClose();
|
|
20
|
+
}, children: "Submit" }), _jsx(Button, { variant: "contained", color: "secondary", onClick: () => {
|
|
21
|
+
handleClose();
|
|
22
|
+
}, children: "Cancel" })] })] }) }));
|
|
29
23
|
});
|
|
30
24
|
export default SortByTagDialog;
|
|
@@ -36,7 +36,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
36
36
|
status?: string;
|
|
37
37
|
reactElement?: React.ReactElement;
|
|
38
38
|
};
|
|
39
|
-
}) => import("react").JSX.Element | undefined;
|
|
39
|
+
}) => import("react/jsx-runtime").JSX.Element | undefined;
|
|
40
40
|
renderProps: any;
|
|
41
41
|
} & {
|
|
42
42
|
doReload(): void;
|
|
@@ -86,6 +86,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
86
86
|
colorBySetting: import("mobx-state-tree").IType<import("../shared/types").ColorBy | undefined, import("../shared/types").ColorBy | undefined, import("../shared/types").ColorBy | undefined>;
|
|
87
87
|
filterBySetting: import("mobx-state-tree").IType<import("../shared/types").FilterBy | undefined, import("../shared/types").FilterBy | undefined, import("../shared/types").FilterBy | undefined>;
|
|
88
88
|
jexlFilters: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>;
|
|
89
|
+
hideSmallIndelsSetting: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<boolean>>;
|
|
89
90
|
} & {
|
|
90
91
|
type: import("mobx-state-tree").ISimpleType<"LinearPileupDisplay">;
|
|
91
92
|
configuration: AnyConfigurationSchemaType;
|
|
@@ -183,13 +184,13 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
183
184
|
} & {
|
|
184
185
|
readonly statsReadyAndRegionNotTooLarge: boolean;
|
|
185
186
|
regionCannotBeRenderedText(_region: import("@jbrowse/core/util").Region): "" | "Force load to see features";
|
|
186
|
-
regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): import("react").JSX.Element | null;
|
|
187
|
+
regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): import("react/jsx-runtime").JSX.Element | null;
|
|
187
188
|
} & {
|
|
188
189
|
featureIdUnderMouse: undefined | string;
|
|
189
190
|
contextMenuFeature: undefined | import("@jbrowse/core/util").Feature;
|
|
190
191
|
} & {
|
|
191
|
-
readonly DisplayMessageComponent:
|
|
192
|
-
readonly blockType: "
|
|
192
|
+
readonly DisplayMessageComponent: undefined | React.FC<any>;
|
|
193
|
+
readonly blockType: "staticBlocks" | "dynamicBlocks";
|
|
193
194
|
readonly blockDefinitions: import("@jbrowse/core/util/blockTypes").BlockSet;
|
|
194
195
|
} & {
|
|
195
196
|
readonly renderDelay: number;
|
|
@@ -216,7 +217,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
216
217
|
contextMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
217
218
|
renderProps(): any;
|
|
218
219
|
} & {
|
|
219
|
-
renderSvg(opts: import("@jbrowse/plugin-linear-genome-view").ExportSvgDisplayOptions): Promise<import("react").JSX.Element>;
|
|
220
|
+
renderSvg(opts: import("@jbrowse/plugin-linear-genome-view").ExportSvgDisplayOptions): Promise<import("react/jsx-runtime").JSX.Element>;
|
|
220
221
|
afterAttach(): void;
|
|
221
222
|
} & {
|
|
222
223
|
colorTagMap: import("mobx").ObservableMap<string, string>;
|
|
@@ -227,6 +228,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
227
228
|
readonly filterBy: any;
|
|
228
229
|
} & {
|
|
229
230
|
readonly autorunReady: boolean;
|
|
231
|
+
readonly hideSmallIndels: boolean | undefined;
|
|
230
232
|
} & {
|
|
231
233
|
setTagsReady(flag: boolean): void;
|
|
232
234
|
setMaxHeight(n?: number): void;
|
|
@@ -240,6 +242,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
240
242
|
setConfig(conf: import("@jbrowse/core/configuration").AnyConfigurationModel): void;
|
|
241
243
|
setFilterBy(filter: import("../shared/types").FilterBy): void;
|
|
242
244
|
setJexlFilters(filters: string[]): void;
|
|
245
|
+
setHideSmallIndels(arg: boolean): void;
|
|
243
246
|
} & {
|
|
244
247
|
readonly rendererConfig: {
|
|
245
248
|
[x: string]: any;
|
|
@@ -275,18 +278,28 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
275
278
|
model: {
|
|
276
279
|
sortedBy?: SortedBy;
|
|
277
280
|
};
|
|
278
|
-
}) => import("react").JSX.Element | null;
|
|
281
|
+
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
279
282
|
renderPropsPre(): any;
|
|
280
283
|
colorSchemeSubMenuItems(): {
|
|
281
284
|
label: string;
|
|
282
285
|
onClick: () => void;
|
|
283
286
|
}[];
|
|
284
287
|
trackMenuItems(): (import("@jbrowse/core/ui").MenuDivider | import("@jbrowse/core/ui").MenuSubHeader | import("@jbrowse/core/ui").NormalMenuItem | import("@jbrowse/core/ui").CheckboxMenuItem | import("@jbrowse/core/ui").RadioMenuItem | import("@jbrowse/core/ui").SubMenuItem | {
|
|
288
|
+
label: string;
|
|
289
|
+
priority: number;
|
|
290
|
+
type: string;
|
|
291
|
+
checked: boolean | undefined;
|
|
292
|
+
onClick: () => void;
|
|
293
|
+
icon?: undefined;
|
|
294
|
+
} | {
|
|
285
295
|
label: string;
|
|
286
296
|
icon: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
287
297
|
muiName: string;
|
|
288
298
|
};
|
|
289
299
|
onClick: () => void;
|
|
300
|
+
priority?: undefined;
|
|
301
|
+
type?: undefined;
|
|
302
|
+
checked?: undefined;
|
|
290
303
|
})[];
|
|
291
304
|
} & {
|
|
292
305
|
renderProps(): any;
|
|
@@ -430,7 +443,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
430
443
|
status?: string;
|
|
431
444
|
reactElement?: React.ReactElement;
|
|
432
445
|
};
|
|
433
|
-
}) => import("react").JSX.Element | undefined;
|
|
446
|
+
}) => import("react/jsx-runtime").JSX.Element | undefined;
|
|
434
447
|
renderProps: any;
|
|
435
448
|
} & {
|
|
436
449
|
doReload(): void;
|
|
@@ -480,6 +493,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
480
493
|
colorBySetting: import("mobx-state-tree").IType<import("../shared/types").ColorBy | undefined, import("../shared/types").ColorBy | undefined, import("../shared/types").ColorBy | undefined>;
|
|
481
494
|
filterBySetting: import("mobx-state-tree").IType<import("../shared/types").FilterBy | undefined, import("../shared/types").FilterBy | undefined, import("../shared/types").FilterBy | undefined>;
|
|
482
495
|
jexlFilters: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>;
|
|
496
|
+
hideSmallIndelsSetting: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<boolean>>;
|
|
483
497
|
}>> & import("mobx-state-tree/dist/internal").NonEmptyObject & import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
484
498
|
export type LinearPileupDisplayStateModel = ReturnType<typeof stateModelFactory>;
|
|
485
499
|
export type LinearPileupDisplayModel = Instance<LinearPileupDisplayStateModel>;
|
|
@@ -95,11 +95,12 @@ function stateModelFactory(configSchema) {
|
|
|
95
95
|
return [...self.visibleModifications.keys()];
|
|
96
96
|
},
|
|
97
97
|
get rendererConfig() {
|
|
98
|
-
const { featureHeight, noSpacing, trackMaxHeight, mismatchAlpha, rendererTypeName, } = self;
|
|
98
|
+
const { featureHeight, noSpacing, trackMaxHeight, mismatchAlpha, rendererTypeName, hideSmallIndels, } = self;
|
|
99
99
|
const configBlob = getConf(self, ['renderers', rendererTypeName]) || {};
|
|
100
100
|
return self.rendererType.configSchema.create({
|
|
101
101
|
...configBlob,
|
|
102
102
|
...(featureHeight !== undefined ? { height: featureHeight } : {}),
|
|
103
|
+
...(hideSmallIndels !== undefined ? { hideSmallIndels } : {}),
|
|
103
104
|
...(noSpacing !== undefined ? { noSpacing } : {}),
|
|
104
105
|
...(mismatchAlpha !== undefined ? { mismatchAlpha } : {}),
|
|
105
106
|
...(trackMaxHeight !== undefined
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import type { LinearReadArcsDisplayModel } from '../model';
|
|
3
2
|
declare const LinearReadArcsReactComponent: ({ model, }: {
|
|
4
3
|
model: LinearReadArcsDisplayModel;
|
|
5
|
-
}) =>
|
|
4
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
6
5
|
export default LinearReadArcsReactComponent;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback } from 'react';
|
|
2
3
|
import { getContainingView } from '@jbrowse/core/util';
|
|
3
4
|
import { observer } from 'mobx-react';
|
|
4
5
|
import BaseDisplayComponent from '../../shared/components/BaseDisplayComponent';
|
|
@@ -9,10 +10,9 @@ const Arcs = observer(function ({ model, }) {
|
|
|
9
10
|
const cb = useCallback((ref) => {
|
|
10
11
|
model.setRef(ref);
|
|
11
12
|
}, [model, width, height]);
|
|
12
|
-
return (
|
|
13
|
+
return (_jsx("canvas", { "data-testid": "arc-canvas", ref: cb, style: { width, height, position: 'absolute' }, width: width * 2, height: height * 2 }));
|
|
13
14
|
});
|
|
14
15
|
const LinearReadArcsReactComponent = observer(function ({ model, }) {
|
|
15
|
-
return (
|
|
16
|
-
React.createElement(Arcs, { model: model })));
|
|
16
|
+
return (_jsx(BaseDisplayComponent, { model: model, children: _jsx(Arcs, { model: model }) }));
|
|
17
17
|
});
|
|
18
18
|
export default LinearReadArcsReactComponent;
|
|
@@ -112,7 +112,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
112
112
|
} & {
|
|
113
113
|
readonly statsReadyAndRegionNotTooLarge: boolean;
|
|
114
114
|
regionCannotBeRenderedText(_region: import("@jbrowse/core/util").Region): "" | "Force load to see features";
|
|
115
|
-
regionCannotBeRendered(_region: import("@jbrowse/core/util").Region):
|
|
115
|
+
regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): import("react/jsx-runtime").JSX.Element | null;
|
|
116
116
|
} & {
|
|
117
117
|
loading: boolean;
|
|
118
118
|
chainData: ChainData | undefined;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import type { LinearReadCloudDisplayModel } from '../model';
|
|
3
2
|
declare const LinearReadCloudReactComponent: ({ model, }: {
|
|
4
3
|
model: LinearReadCloudDisplayModel;
|
|
5
|
-
}) =>
|
|
4
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
6
5
|
export default LinearReadCloudReactComponent;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback } from 'react';
|
|
2
3
|
import { getContainingView } from '@jbrowse/core/util';
|
|
3
4
|
import { observer } from 'mobx-react';
|
|
4
5
|
import BaseDisplayComponent from '../../shared/components/BaseDisplayComponent';
|
|
@@ -9,10 +10,9 @@ const Cloud = observer(function ({ model, }) {
|
|
|
9
10
|
const cb = useCallback((ref) => {
|
|
10
11
|
model.setRef(ref);
|
|
11
12
|
}, [model, width, height]);
|
|
12
|
-
return (
|
|
13
|
+
return (_jsx("canvas", { "data-testid": "cloud-canvas", ref: cb, style: { width, height, position: 'absolute' }, width: width * 2, height: height * 2 }));
|
|
13
14
|
});
|
|
14
15
|
const LinearReadCloudReactComponent = observer(function ({ model, }) {
|
|
15
|
-
return (
|
|
16
|
-
React.createElement(Cloud, { model: model })));
|
|
16
|
+
return (_jsx(BaseDisplayComponent, { model: model, children: _jsx(Cloud, { model: model }) }));
|
|
17
17
|
});
|
|
18
18
|
export default LinearReadCloudReactComponent;
|
|
@@ -109,7 +109,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
109
109
|
} & {
|
|
110
110
|
readonly statsReadyAndRegionNotTooLarge: boolean;
|
|
111
111
|
regionCannotBeRenderedText(_region: import("@jbrowse/core/util").Region): "" | "Force load to see features";
|
|
112
|
-
regionCannotBeRendered(_region: import("@jbrowse/core/util").Region):
|
|
112
|
+
regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): import("react/jsx-runtime").JSX.Element | null;
|
|
113
113
|
} & {
|
|
114
114
|
loading: boolean;
|
|
115
115
|
chainData: ChainData | undefined;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import type { Feature } from '@jbrowse/core/util';
|
|
3
2
|
type Coord = [number, number];
|
|
4
3
|
declare const SNPCoverageTooltip: (props: {
|
|
@@ -9,5 +8,5 @@ declare const SNPCoverageTooltip: (props: {
|
|
|
9
8
|
offsetMouseCoord: Coord;
|
|
10
9
|
clientMouseCoord: Coord;
|
|
11
10
|
clientRect?: DOMRect;
|
|
12
|
-
}) =>
|
|
11
|
+
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
13
12
|
export default SNPCoverageTooltip;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef } from 'react';
|
|
2
3
|
import { toLocale } from '@jbrowse/core/util';
|
|
3
4
|
import { Tooltip } from '@jbrowse/plugin-wiggle';
|
|
4
5
|
import { observer } from 'mobx-react';
|
|
@@ -10,7 +11,7 @@ const useStyles = makeStyles()(() => ({
|
|
|
10
11
|
}));
|
|
11
12
|
const toP = (s = 0) => +(+s).toFixed(1);
|
|
12
13
|
const pct = (n, total = 1) => `${toP((n / (total || 1)) * 100)}%`;
|
|
13
|
-
const TooltipContents =
|
|
14
|
+
const TooltipContents = forwardRef(function TooltipContents2(props, reactRef) {
|
|
14
15
|
const { feature, model } = props;
|
|
15
16
|
const { classes } = useStyles();
|
|
16
17
|
const start = feature.get('start') + 1;
|
|
@@ -23,58 +24,21 @@ const TooltipContents = React.forwardRef(function TooltipContents2(props, reactR
|
|
|
23
24
|
]
|
|
24
25
|
.filter(f => !!f)
|
|
25
26
|
.join(':');
|
|
26
|
-
return (
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
React.createElement("tbody", null,
|
|
37
|
-
React.createElement("tr", null,
|
|
38
|
-
React.createElement("td", null),
|
|
39
|
-
React.createElement("td", null, "Total"),
|
|
40
|
-
React.createElement("td", null, readsCounted),
|
|
41
|
-
React.createElement("td", null, " "),
|
|
42
|
-
React.createElement("td", null, " ")),
|
|
43
|
-
React.createElement("tr", null,
|
|
44
|
-
React.createElement("td", null),
|
|
45
|
-
React.createElement("td", null,
|
|
46
|
-
"REF ",
|
|
47
|
-
refbase ? `(${refbase.toUpperCase()})` : ''),
|
|
48
|
-
React.createElement("td", null, ref.entryDepth),
|
|
49
|
-
React.createElement("td", null, pct(ref.entryDepth, readsCounted)),
|
|
50
|
-
React.createElement("td", null,
|
|
51
|
-
ref['-1'] ? `${ref['-1']}(-)` : '',
|
|
52
|
-
ref['1'] ? `${ref['1']}(+)` : '')),
|
|
53
|
-
Object.entries(info).map(([key, entry]) => Object.entries(entry).map(([base, score]) => (React.createElement("tr", { key: `${key}_${base}` },
|
|
54
|
-
React.createElement("td", null,
|
|
55
|
-
React.createElement(ColorSquare, { model: model, base: base })),
|
|
56
|
-
React.createElement("td", null,
|
|
57
|
-
base.toUpperCase(),
|
|
58
|
-
" "),
|
|
59
|
-
React.createElement("td", { className: classes.td }, [
|
|
60
|
-
score.entryDepth,
|
|
61
|
-
score.avgProbability !== undefined
|
|
62
|
-
? `(avg. ${pct(score.avgProbability)} prob.)`
|
|
63
|
-
: '',
|
|
64
|
-
]
|
|
65
|
-
.filter(f => !!f)
|
|
66
|
-
.join(' ')),
|
|
67
|
-
React.createElement("td", null, base === 'depth' || base === 'skip'
|
|
68
|
-
? '---'
|
|
69
|
-
: pct(score.entryDepth, readsCounted)),
|
|
70
|
-
React.createElement("td", null,
|
|
71
|
-
score['-1'] ? `${score['-1']}(-)` : '',
|
|
72
|
-
score['1'] ? `${score['1']}(+)` : '')))))))));
|
|
27
|
+
return (_jsx("div", { ref: reactRef, children: _jsxs("table", { children: [_jsx("caption", { children: loc }), _jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", {}), _jsx("th", { children: "Base" }), _jsx("th", { children: "Count" }), _jsx("th", { children: "% of Total" }), _jsx("th", { children: "Strands" })] }) }), _jsxs("tbody", { children: [_jsxs("tr", { children: [_jsx("td", {}), _jsx("td", { children: "Total" }), _jsx("td", { children: readsCounted }), _jsx("td", { children: " " }), _jsx("td", { children: " " })] }), _jsxs("tr", { children: [_jsx("td", {}), _jsxs("td", { children: ["REF ", refbase ? `(${refbase.toUpperCase()})` : ''] }), _jsx("td", { children: ref.entryDepth }), _jsx("td", { children: pct(ref.entryDepth, readsCounted) }), _jsxs("td", { children: [ref['-1'] ? `${ref['-1']}(-)` : '', ref['1'] ? `${ref['1']}(+)` : ''] })] }), Object.entries(info).map(([key, entry]) => Object.entries(entry).map(([base, score]) => (_jsxs("tr", { children: [_jsx("td", { children: _jsx(ColorSquare, { model: model, base: base }) }), _jsxs("td", { children: [base.toUpperCase(), " "] }), _jsx("td", { className: classes.td, children: [
|
|
28
|
+
score.entryDepth,
|
|
29
|
+
score.avgProbability !== undefined
|
|
30
|
+
? `(avg. ${pct(score.avgProbability)} prob.)`
|
|
31
|
+
: '',
|
|
32
|
+
]
|
|
33
|
+
.filter(f => !!f)
|
|
34
|
+
.join(' ') }), _jsx("td", { children: base === 'depth' || base === 'skip'
|
|
35
|
+
? '---'
|
|
36
|
+
: pct(score.entryDepth, readsCounted) }), _jsxs("td", { children: [score['-1'] ? `${score['-1']}(-)` : '', score['1'] ? `${score['1']}(+)` : ''] })] }, `${key}_${base}`))))] })] }) }));
|
|
73
37
|
});
|
|
74
38
|
function ColorSquare({ base, model, }) {
|
|
75
39
|
var _a;
|
|
76
40
|
const { visibleModifications } = model;
|
|
77
|
-
return base.startsWith('mod_') ? (
|
|
41
|
+
return base.startsWith('mod_') ? (_jsx("div", { style: {
|
|
78
42
|
width: 10,
|
|
79
43
|
height: 10,
|
|
80
44
|
background: (_a = visibleModifications.get(base.replace('mod_', ''))) === null || _a === void 0 ? void 0 : _a.color,
|
|
@@ -83,6 +47,6 @@ function ColorSquare({ base, model, }) {
|
|
|
83
47
|
const SNPCoverageTooltip = observer(function (props) {
|
|
84
48
|
const { model } = props;
|
|
85
49
|
const { featureUnderMouse: feat } = model;
|
|
86
|
-
return feat && feat.get('type') === 'skip' ? null : (
|
|
50
|
+
return feat && feat.get('type') === 'skip' ? null : (_jsx(Tooltip, { TooltipContents: TooltipContents, ...props }));
|
|
87
51
|
});
|
|
88
52
|
export default SNPCoverageTooltip;
|
|
@@ -36,7 +36,7 @@ declare function stateModelFactory(pluginManager: PluginManager, configSchema: A
|
|
|
36
36
|
status?: string;
|
|
37
37
|
reactElement?: React.ReactElement;
|
|
38
38
|
};
|
|
39
|
-
}) => import("react").JSX.Element | undefined;
|
|
39
|
+
}) => import("react/jsx-runtime").JSX.Element | undefined;
|
|
40
40
|
renderProps: any;
|
|
41
41
|
} & {
|
|
42
42
|
doReload(): void;
|
|
@@ -99,9 +99,9 @@ declare function stateModelFactory(pluginManager: PluginManager, configSchema: A
|
|
|
99
99
|
type: import("mobx-state-tree").ISimpleType<"LinearWiggleDisplay">;
|
|
100
100
|
} & {
|
|
101
101
|
type: import("mobx-state-tree").ISimpleType<"LinearSNPCoverageDisplay">;
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
102
|
+
showInterbaseCounts: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<boolean>>;
|
|
103
|
+
showInterbaseIndicators: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<boolean>>;
|
|
104
|
+
showArcs: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<boolean>>;
|
|
105
105
|
filterBySetting: import("mobx-state-tree").IType<FilterBy | undefined, FilterBy | undefined, FilterBy | undefined>;
|
|
106
106
|
colorBySetting: import("mobx-state-tree").IType<ColorBy | undefined, ColorBy | undefined, ColorBy | undefined>;
|
|
107
107
|
jexlFilters: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>;
|
|
@@ -3,6 +3,7 @@ import { getConf, readConfObject } from '@jbrowse/core/configuration';
|
|
|
3
3
|
import SerializableFilterChain from '@jbrowse/core/pluggableElementTypes/renderers/util/serializableFilterChain';
|
|
4
4
|
import { getContainingView } from '@jbrowse/core/util';
|
|
5
5
|
import { linearWiggleDisplayModelFactory } from '@jbrowse/plugin-wiggle';
|
|
6
|
+
import VisibilityIcon from '@mui/icons-material/Visibility';
|
|
6
7
|
import { observable } from 'mobx';
|
|
7
8
|
import { cast, getEnv, isAlive, types } from 'mobx-state-tree';
|
|
8
9
|
import { getUniqueModifications } from '../shared/getUniqueModifications';
|
|
@@ -13,9 +14,9 @@ function stateModelFactory(pluginManager, configSchema) {
|
|
|
13
14
|
return types
|
|
14
15
|
.compose('LinearSNPCoverageDisplay', linearWiggleDisplayModelFactory(pluginManager, configSchema), types.model({
|
|
15
16
|
type: types.literal('LinearSNPCoverageDisplay'),
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
showInterbaseCounts: types.maybe(types.boolean),
|
|
18
|
+
showInterbaseIndicators: types.maybe(types.boolean),
|
|
19
|
+
showArcs: types.maybe(types.boolean),
|
|
19
20
|
filterBySetting: types.frozen(),
|
|
20
21
|
colorBySetting: types.frozen(),
|
|
21
22
|
jexlFilters: types.optional(types.array(types.string), []),
|
|
@@ -69,25 +70,25 @@ function stateModelFactory(pluginManager, configSchema) {
|
|
|
69
70
|
return {
|
|
70
71
|
get rendererConfig() {
|
|
71
72
|
const configBlob = getConf(self, ['renderers', self.rendererTypeName]) || {};
|
|
72
|
-
const {
|
|
73
|
+
const { showArcs, showInterbaseCounts, showInterbaseIndicators } = self;
|
|
73
74
|
return self.rendererType.configSchema.create({
|
|
74
75
|
...configBlob,
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
showInterbaseCounts: showInterbaseCounts !== null && showInterbaseCounts !== void 0 ? showInterbaseCounts : configBlob.showInterbaseCounts,
|
|
77
|
+
showInterbaseIndicators: showInterbaseIndicators !== null && showInterbaseIndicators !== void 0 ? showInterbaseIndicators : configBlob.showInterbaseIndicators,
|
|
78
|
+
showArcs: showArcs !== null && showArcs !== void 0 ? showArcs : configBlob.showArcs,
|
|
78
79
|
}, getEnv(self));
|
|
79
80
|
},
|
|
80
|
-
get
|
|
81
|
+
get showArcsSetting() {
|
|
81
82
|
var _a;
|
|
82
|
-
return ((_a = self.
|
|
83
|
+
return ((_a = self.showArcs) !== null && _a !== void 0 ? _a : readConfObject(this.rendererConfig, 'showArcs'));
|
|
83
84
|
},
|
|
84
|
-
get
|
|
85
|
+
get showInterbaseCountsSetting() {
|
|
85
86
|
var _a;
|
|
86
|
-
return ((_a = self.
|
|
87
|
+
return ((_a = self.showInterbaseCounts) !== null && _a !== void 0 ? _a : readConfObject(this.rendererConfig, 'showInterbaseCounts'));
|
|
87
88
|
},
|
|
88
|
-
get
|
|
89
|
+
get showInterbaseIndicatorsSetting() {
|
|
89
90
|
var _a;
|
|
90
|
-
return ((_a = self.
|
|
91
|
+
return ((_a = self.showInterbaseIndicators) !== null && _a !== void 0 ? _a : readConfObject(this.rendererConfig, 'showInterbaseIndicators'));
|
|
91
92
|
},
|
|
92
93
|
get autorunReady() {
|
|
93
94
|
const view = getContainingView(self);
|
|
@@ -110,14 +111,14 @@ function stateModelFactory(pluginManager, configSchema) {
|
|
|
110
111
|
setModificationsReady(flag) {
|
|
111
112
|
self.modificationsReady = flag;
|
|
112
113
|
},
|
|
113
|
-
|
|
114
|
-
self.
|
|
114
|
+
setShowInterbaseIndicators(arg) {
|
|
115
|
+
self.showInterbaseIndicators = arg;
|
|
115
116
|
},
|
|
116
|
-
|
|
117
|
-
self.
|
|
117
|
+
setShowInterbaseCounts(arg) {
|
|
118
|
+
self.showInterbaseCounts = arg;
|
|
118
119
|
},
|
|
119
|
-
|
|
120
|
-
self.
|
|
120
|
+
setShowArcs(arg) {
|
|
121
|
+
self.showArcs = arg;
|
|
121
122
|
},
|
|
122
123
|
}))
|
|
123
124
|
.actions(self => ({
|
|
@@ -189,27 +190,30 @@ function stateModelFactory(pluginManager, configSchema) {
|
|
|
189
190
|
return [
|
|
190
191
|
...superTrackMenuItems(),
|
|
191
192
|
{
|
|
192
|
-
label: '
|
|
193
|
+
label: 'Show insertion/clipping indicators',
|
|
194
|
+
icon: VisibilityIcon,
|
|
193
195
|
type: 'checkbox',
|
|
194
|
-
checked: self.
|
|
196
|
+
checked: self.showInterbaseIndicatorsSetting,
|
|
195
197
|
onClick: () => {
|
|
196
|
-
self.
|
|
198
|
+
self.setShowInterbaseIndicators(!self.showInterbaseIndicatorsSetting);
|
|
197
199
|
},
|
|
198
200
|
},
|
|
199
201
|
{
|
|
200
|
-
label: '
|
|
202
|
+
label: 'Show insertion/clipping counts',
|
|
203
|
+
icon: VisibilityIcon,
|
|
201
204
|
type: 'checkbox',
|
|
202
|
-
checked: self.
|
|
205
|
+
checked: self.showInterbaseCountsSetting,
|
|
203
206
|
onClick: () => {
|
|
204
|
-
self.
|
|
207
|
+
self.setShowInterbaseCounts(self.showInterbaseCountsSetting);
|
|
205
208
|
},
|
|
206
209
|
},
|
|
207
210
|
{
|
|
208
|
-
label: '
|
|
211
|
+
label: 'Show arcs',
|
|
212
|
+
icon: VisibilityIcon,
|
|
209
213
|
type: 'checkbox',
|
|
210
|
-
checked: self.
|
|
214
|
+
checked: self.showArcsSetting,
|
|
211
215
|
onClick: () => {
|
|
212
|
-
self.
|
|
216
|
+
self.setShowArcs(self.showArcsSetting);
|
|
213
217
|
},
|
|
214
218
|
},
|
|
215
219
|
];
|
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
import type { Mismatch } from '../shared/types';
|
|
2
|
-
|
|
3
|
-
export declare function cigarToMismatches(ops: string[], seq?: string, ref?: string, qual?: Buffer): Mismatch[];
|
|
2
|
+
export declare function cigarToMismatches(ops: string[], seq?: string, ref?: string, qual?: Uint8Array): Mismatch[];
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import type { Mismatch } from '../shared/types';
|
|
2
2
|
import type { Feature } from '@jbrowse/core/util';
|
|
3
|
-
import type { Buffer } from 'buffer';
|
|
4
3
|
export declare function parseCigar(cigar?: string): string[];
|
|
5
|
-
export declare function getMismatches(cigar?: string, md?: string, seq?: string, ref?: string, qual?:
|
|
4
|
+
export declare function getMismatches(cigar?: string, md?: string, seq?: string, ref?: string, qual?: Uint8Array): Mismatch[];
|
|
6
5
|
export declare function getOrientedCigar(flip: boolean, cigar: string[]): string[];
|
|
7
6
|
export declare function getOrientedMismatches(flip: boolean, cigar: string): Mismatch[];
|
|
8
7
|
export declare function getLengthOnRef(cigar: string): number;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
import type { Mismatch } from '../shared/types';
|
|
2
|
-
|
|
3
|
-
export declare function mdToMismatches(mdstring: string, ops: string[], cigarMismatches: Mismatch[], seq: string, qual?: Buffer | number[] | null): Mismatch[];
|
|
2
|
+
export declare function mdToMismatches(mdstring: string, ops: string[], cigarMismatches: Mismatch[], seq: string, qual?: Uint8Array): Mismatch[];
|
|
@@ -9,8 +9,8 @@ export default class PileupRenderer extends BoxRendererType {
|
|
|
9
9
|
getExpandedRegion(region: Region, renderArgs: RenderArgsDeserialized): {
|
|
10
10
|
start: number;
|
|
11
11
|
end: number;
|
|
12
|
-
reversed?: boolean | undefined;
|
|
13
12
|
refName: string;
|
|
13
|
+
reversed?: boolean | undefined;
|
|
14
14
|
assemblyName: string;
|
|
15
15
|
};
|
|
16
16
|
render(renderProps: RenderArgsDeserialized): Promise<{
|
|
@@ -21,7 +21,7 @@ export default class PileupRenderer extends BoxRendererType {
|
|
|
21
21
|
maxHeightReached: boolean;
|
|
22
22
|
containsNoTransferables: boolean;
|
|
23
23
|
canvasRecordedData: any;
|
|
24
|
-
reactElement?:
|
|
24
|
+
reactElement?: React.ReactElement;
|
|
25
25
|
html?: string;
|
|
26
26
|
} | {
|
|
27
27
|
features: Map<any, any>;
|
|
@@ -30,7 +30,7 @@ export default class PileupRenderer extends BoxRendererType {
|
|
|
30
30
|
width: number;
|
|
31
31
|
maxHeightReached: boolean;
|
|
32
32
|
containsNoTransferables: boolean;
|
|
33
|
-
reactElement:
|
|
33
|
+
reactElement: import("react/jsx-runtime").JSX.Element;
|
|
34
34
|
html?: string;
|
|
35
35
|
} | {
|
|
36
36
|
features: Map<any, any>;
|
|
@@ -40,7 +40,7 @@ export default class PileupRenderer extends BoxRendererType {
|
|
|
40
40
|
maxHeightReached: boolean;
|
|
41
41
|
containsNoTransferables: boolean;
|
|
42
42
|
imageData: any;
|
|
43
|
-
reactElement?:
|
|
43
|
+
reactElement?: React.ReactElement;
|
|
44
44
|
html?: string;
|
|
45
45
|
}>;
|
|
46
46
|
createSession(args: PileupLayoutSessionProps): PileupLayoutSession;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import type { Region } from '@jbrowse/core/util/types';
|
|
3
2
|
import type { BaseLinearDisplayModel } from '@jbrowse/plugin-linear-genome-view';
|
|
4
3
|
declare const PileupRendering: (props: {
|
|
@@ -23,5 +22,5 @@ declare const PileupRendering: (props: {
|
|
|
23
22
|
};
|
|
24
23
|
};
|
|
25
24
|
onMouseMove?: (event: React.MouseEvent, featureId?: string) => void;
|
|
26
|
-
}) =>
|
|
25
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
27
26
|
export default PileupRendering;
|