@jbrowse/plugin-alignments 2.10.1 → 2.10.2
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 +2 -2
- package/dist/AlignmentsFeatureDetail/AlignmentsFeatureDetail.js +10 -113
- package/dist/AlignmentsFeatureDetail/BreakendOptionDialog.d.ts +12 -0
- package/dist/AlignmentsFeatureDetail/BreakendOptionDialog.js +89 -0
- package/dist/AlignmentsFeatureDetail/Formatter.d.ts +4 -0
- package/dist/AlignmentsFeatureDetail/Formatter.js +47 -0
- package/dist/AlignmentsFeatureDetail/LaunchBreakpointSplitViewPanel.d.ts +9 -0
- package/dist/AlignmentsFeatureDetail/LaunchBreakpointSplitViewPanel.js +92 -0
- package/dist/AlignmentsFeatureDetail/PairLink.d.ts +6 -0
- package/dist/AlignmentsFeatureDetail/PairLink.js +16 -0
- package/dist/AlignmentsFeatureDetail/SuppAlignments.d.ts +8 -0
- package/dist/AlignmentsFeatureDetail/SuppAlignments.js +26 -0
- package/dist/AlignmentsFeatureDetail/SuppAlignmentsLocStrings.d.ts +6 -0
- package/dist/AlignmentsFeatureDetail/{AlignmentsFeatureSuppAligns.js → SuppAlignmentsLocStrings.js} +8 -7
- package/dist/AlignmentsFeatureDetail/configSchema.d.ts +1 -0
- package/dist/AlignmentsFeatureDetail/configSchema.js +5 -0
- package/dist/AlignmentsFeatureDetail/getSAFeatures.d.ts +23 -0
- package/dist/AlignmentsFeatureDetail/getSAFeatures.js +41 -0
- package/dist/AlignmentsFeatureDetail/index.d.ts +1 -50
- package/dist/AlignmentsFeatureDetail/index.js +6 -17
- package/dist/AlignmentsFeatureDetail/launchBreakpointSplitView.d.ts +22 -0
- package/dist/AlignmentsFeatureDetail/launchBreakpointSplitView.js +50 -0
- package/dist/AlignmentsFeatureDetail/stateModelFactory.d.ts +51 -0
- package/dist/AlignmentsFeatureDetail/stateModelFactory.js +12 -0
- package/dist/AlignmentsFeatureDetail/tagInfo.d.ts +63 -0
- package/dist/AlignmentsFeatureDetail/tagInfo.js +66 -0
- package/dist/BamAdapter/BamAdapter.js +3 -1
- package/dist/CramAdapter/CramAdapter.js +3 -1
- package/dist/LinearPileupDisplay/SharedLinearPileupDisplayMixin.d.ts +20 -20
- package/dist/LinearPileupDisplay/SharedLinearPileupDisplayMixin.js +8 -8
- package/dist/LinearPileupDisplay/model.d.ts +15 -24
- package/dist/LinearPileupDisplay/model.js +4 -4
- package/dist/LinearReadArcsDisplay/model.d.ts +8 -8
- package/dist/LinearReadArcsDisplay/model.js +2 -2
- package/dist/LinearReadCloudDisplay/model.d.ts +13 -7
- package/dist/LinearReadCloudDisplay/model.js +2 -2
- package/dist/LinearSNPCoverageDisplay/components/Tooltip.js +5 -2
- package/esm/AlignmentsFeatureDetail/AlignmentsFeatureDetail.d.ts +2 -2
- package/esm/AlignmentsFeatureDetail/AlignmentsFeatureDetail.js +12 -92
- package/esm/AlignmentsFeatureDetail/BreakendOptionDialog.d.ts +12 -0
- package/esm/AlignmentsFeatureDetail/BreakendOptionDialog.js +64 -0
- package/esm/AlignmentsFeatureDetail/Formatter.d.ts +4 -0
- package/esm/AlignmentsFeatureDetail/Formatter.js +18 -0
- package/esm/AlignmentsFeatureDetail/LaunchBreakpointSplitViewPanel.d.ts +9 -0
- package/esm/AlignmentsFeatureDetail/LaunchBreakpointSplitViewPanel.js +66 -0
- package/esm/AlignmentsFeatureDetail/PairLink.d.ts +6 -0
- package/esm/AlignmentsFeatureDetail/PairLink.js +10 -0
- package/esm/AlignmentsFeatureDetail/SuppAlignments.d.ts +8 -0
- package/esm/AlignmentsFeatureDetail/SuppAlignments.js +20 -0
- package/esm/AlignmentsFeatureDetail/SuppAlignmentsLocStrings.d.ts +6 -0
- package/esm/AlignmentsFeatureDetail/{AlignmentsFeatureSuppAligns.js → SuppAlignmentsLocStrings.js} +7 -6
- package/esm/AlignmentsFeatureDetail/configSchema.d.ts +1 -0
- package/esm/AlignmentsFeatureDetail/configSchema.js +2 -0
- package/esm/AlignmentsFeatureDetail/getSAFeatures.d.ts +23 -0
- package/esm/AlignmentsFeatureDetail/getSAFeatures.js +37 -0
- package/esm/AlignmentsFeatureDetail/index.d.ts +1 -50
- package/esm/AlignmentsFeatureDetail/index.js +4 -13
- package/esm/AlignmentsFeatureDetail/launchBreakpointSplitView.d.ts +22 -0
- package/esm/AlignmentsFeatureDetail/launchBreakpointSplitView.js +46 -0
- package/esm/AlignmentsFeatureDetail/stateModelFactory.d.ts +51 -0
- package/esm/AlignmentsFeatureDetail/stateModelFactory.js +8 -0
- package/esm/AlignmentsFeatureDetail/tagInfo.d.ts +63 -0
- package/esm/AlignmentsFeatureDetail/tagInfo.js +63 -0
- package/esm/BamAdapter/BamAdapter.js +3 -1
- package/esm/CramAdapter/CramAdapter.js +3 -1
- package/esm/LinearPileupDisplay/SharedLinearPileupDisplayMixin.d.ts +20 -20
- package/esm/LinearPileupDisplay/SharedLinearPileupDisplayMixin.js +8 -8
- package/esm/LinearPileupDisplay/model.d.ts +15 -24
- package/esm/LinearPileupDisplay/model.js +4 -4
- package/esm/LinearReadArcsDisplay/model.d.ts +8 -8
- package/esm/LinearReadArcsDisplay/model.js +2 -2
- package/esm/LinearReadCloudDisplay/model.d.ts +13 -7
- package/esm/LinearReadCloudDisplay/model.js +2 -2
- package/esm/LinearSNPCoverageDisplay/components/Tooltip.js +5 -2
- package/package.json +2 -2
- package/dist/AlignmentsFeatureDetail/AlignmentsFeatureSuppAligns.d.ts +0 -6
- package/esm/AlignmentsFeatureDetail/AlignmentsFeatureSuppAligns.d.ts +0 -6
- /package/dist/AlignmentsFeatureDetail/{AlignmentsFeatureFlags.d.ts → Flags.d.ts} +0 -0
- /package/dist/AlignmentsFeatureDetail/{AlignmentsFeatureFlags.js → Flags.js} +0 -0
- /package/esm/AlignmentsFeatureDetail/{AlignmentsFeatureFlags.d.ts → Flags.d.ts} +0 -0
- /package/esm/AlignmentsFeatureDetail/{AlignmentsFeatureFlags.js → Flags.js} +0 -0
|
@@ -12,8 +12,8 @@ import SortIcon from '@mui/icons-material/Sort';
|
|
|
12
12
|
import { SharedLinearPileupDisplayMixin } from './SharedLinearPileupDisplayMixin';
|
|
13
13
|
import { observable } from 'mobx';
|
|
14
14
|
// async
|
|
15
|
-
const
|
|
16
|
-
const
|
|
15
|
+
const SortByTagDialog = lazy(() => import('./components/SortByTag'));
|
|
16
|
+
const ModificationsDialog = lazy(() => import('./components/ColorByModifications'));
|
|
17
17
|
/**
|
|
18
18
|
* #stateModel LinearPileupDisplay
|
|
19
19
|
* #category display
|
|
@@ -237,7 +237,7 @@ function stateModelFactory(configSchema) {
|
|
|
237
237
|
label: 'Sort by tag...',
|
|
238
238
|
onClick: () => {
|
|
239
239
|
getSession(self).queueDialog(handleClose => [
|
|
240
|
-
|
|
240
|
+
SortByTagDialog,
|
|
241
241
|
{ model: self, handleClose },
|
|
242
242
|
]);
|
|
243
243
|
},
|
|
@@ -259,7 +259,7 @@ function stateModelFactory(configSchema) {
|
|
|
259
259
|
label: 'Modifications or methylation',
|
|
260
260
|
onClick: () => {
|
|
261
261
|
getSession(self).queueDialog(doneCallback => [
|
|
262
|
-
|
|
262
|
+
ModificationsDialog,
|
|
263
263
|
{ model: self, handleClose: doneCallback },
|
|
264
264
|
]);
|
|
265
265
|
},
|
|
@@ -61,7 +61,9 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
61
61
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
62
62
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
63
63
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
64
|
-
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
64
|
+
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>; /**
|
|
65
|
+
* #property
|
|
66
|
+
*/
|
|
65
67
|
}, {
|
|
66
68
|
rendererTypeName: string;
|
|
67
69
|
error: unknown;
|
|
@@ -80,7 +82,9 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
80
82
|
error: unknown;
|
|
81
83
|
message: string | undefined;
|
|
82
84
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
83
|
-
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
85
|
+
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>; /**
|
|
86
|
+
* #action
|
|
87
|
+
*/
|
|
84
88
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
85
89
|
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
86
90
|
}, {
|
|
@@ -90,17 +94,13 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
90
94
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
91
95
|
}> | null;
|
|
92
96
|
readonly adapterConfig: any;
|
|
93
|
-
readonly parentTrack: any;
|
|
94
|
-
* #action
|
|
95
|
-
*/
|
|
97
|
+
readonly parentTrack: any;
|
|
96
98
|
renderProps(): any;
|
|
97
99
|
readonly rendererType: import("@jbrowse/core/pluggableElementTypes").RendererType;
|
|
98
100
|
readonly DisplayMessageComponent: React.FC<any> | undefined;
|
|
99
101
|
trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
100
102
|
readonly viewMenuActions: import("@jbrowse/core/ui").MenuItem[];
|
|
101
|
-
regionCannotBeRendered(): null;
|
|
102
|
-
* #getter
|
|
103
|
-
*/
|
|
103
|
+
regionCannotBeRendered(): null;
|
|
104
104
|
} & {
|
|
105
105
|
setMessage(arg?: string | undefined): void;
|
|
106
106
|
setError(error?: unknown): void; /**
|
|
@@ -10,7 +10,7 @@ import FilterListIcon from '@mui/icons-material/ClearAll';
|
|
|
10
10
|
// locals
|
|
11
11
|
import { FilterModel } from '../shared';
|
|
12
12
|
// async
|
|
13
|
-
const
|
|
13
|
+
const FilterByTagDialog = lazy(() => import('../shared/FilterByTag'));
|
|
14
14
|
/**
|
|
15
15
|
* #stateModel LinearReadArcsDisplay
|
|
16
16
|
* the arc display is a non-block-based track, so draws to a single canvas and
|
|
@@ -192,7 +192,7 @@ function stateModelFactory(configSchema) {
|
|
|
192
192
|
icon: FilterListIcon,
|
|
193
193
|
onClick: () => {
|
|
194
194
|
getSession(self).queueDialog(handleClose => [
|
|
195
|
-
|
|
195
|
+
FilterByTagDialog,
|
|
196
196
|
{ model: self, handleClose },
|
|
197
197
|
]);
|
|
198
198
|
},
|
|
@@ -44,6 +44,14 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
44
44
|
message: string | undefined;
|
|
45
45
|
} & {
|
|
46
46
|
readonly RenderingComponent: React.FC<{
|
|
47
|
+
/**
|
|
48
|
+
* #stateModel LinearReadCloudDisplay
|
|
49
|
+
* it is not a block based track, hence not BaseLinearDisplay
|
|
50
|
+
* extends
|
|
51
|
+
* - [BaseDisplay](../basedisplay)
|
|
52
|
+
* - [TrackHeightMixin](../trackheightmixin)
|
|
53
|
+
* - [FeatureDensityMixin](../featuredensitymixin)
|
|
54
|
+
*/
|
|
47
55
|
model: {
|
|
48
56
|
id: string;
|
|
49
57
|
type: string;
|
|
@@ -55,9 +63,6 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
55
63
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
56
64
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
57
65
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
58
|
-
/**
|
|
59
|
-
* #property
|
|
60
|
-
*/
|
|
61
66
|
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
62
67
|
}, {
|
|
63
68
|
rendererTypeName: string;
|
|
@@ -78,7 +83,11 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
78
83
|
message: string | undefined;
|
|
79
84
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
80
85
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
81
|
-
type: import("mobx-state-tree").ISimpleType<string>;
|
|
86
|
+
type: import("mobx-state-tree").ISimpleType<string>; /**
|
|
87
|
+
* #action
|
|
88
|
+
* internal, a reference to a HTMLCanvas because we use a autorun to draw
|
|
89
|
+
* the canvas
|
|
90
|
+
*/
|
|
82
91
|
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
83
92
|
}, {
|
|
84
93
|
rendererTypeName: string;
|
|
@@ -130,9 +139,6 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
130
139
|
readonly regionTooLarge: boolean;
|
|
131
140
|
readonly regionTooLargeReason: string;
|
|
132
141
|
} & {
|
|
133
|
-
/**
|
|
134
|
-
* #method
|
|
135
|
-
*/
|
|
136
142
|
regionCannotBeRenderedText(_region: import("@jbrowse/core/util").Region): "" | "Force load to see features";
|
|
137
143
|
regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): React.JSX.Element | null;
|
|
138
144
|
} & {
|
|
@@ -10,7 +10,7 @@ import FilterListIcon from '@mui/icons-material/ClearAll';
|
|
|
10
10
|
// locals
|
|
11
11
|
import { FilterModel } from '../shared';
|
|
12
12
|
// async
|
|
13
|
-
const
|
|
13
|
+
const FilterByTagDialog = lazy(() => import('../shared/FilterByTag'));
|
|
14
14
|
/**
|
|
15
15
|
* #stateModel LinearReadCloudDisplay
|
|
16
16
|
* it is not a block based track, hence not BaseLinearDisplay
|
|
@@ -142,7 +142,7 @@ function stateModelFactory(configSchema) {
|
|
|
142
142
|
icon: FilterListIcon,
|
|
143
143
|
onClick: () => {
|
|
144
144
|
getSession(self).queueDialog(handleClose => [
|
|
145
|
-
|
|
145
|
+
FilterByTagDialog,
|
|
146
146
|
{ model: self, handleClose },
|
|
147
147
|
]);
|
|
148
148
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { observer } from 'mobx-react';
|
|
3
|
+
import { toLocale } from '@jbrowse/core/util';
|
|
3
4
|
import { Tooltip } from '@jbrowse/plugin-wiggle';
|
|
4
|
-
const en = (n) => n.toLocaleString('en-US');
|
|
5
5
|
const toP = (s = 0) => +(+s).toFixed(1);
|
|
6
6
|
const pct = (n, total) => `${toP((n / (total || 1)) * 100)}%`;
|
|
7
7
|
const TooltipContents = React.forwardRef(function TooltipContents2({ feature }, reactRef) {
|
|
@@ -9,7 +9,10 @@ const TooltipContents = React.forwardRef(function TooltipContents2({ feature },
|
|
|
9
9
|
const end = feature.get('end');
|
|
10
10
|
const name = feature.get('refName');
|
|
11
11
|
const { refbase, all, total, ref, '-1': rn1, '1': r1, '0': r0, ...info } = feature.get('snpinfo');
|
|
12
|
-
const loc = [
|
|
12
|
+
const loc = [
|
|
13
|
+
name,
|
|
14
|
+
start === end ? toLocale(start) : `${toLocale(start)}..${toLocale(end)}`,
|
|
15
|
+
]
|
|
13
16
|
.filter(f => !!f)
|
|
14
17
|
.join(':');
|
|
15
18
|
return (React.createElement("div", { ref: reactRef },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/plugin-alignments",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.2",
|
|
4
4
|
"description": "JBrowse 2 alignments adapters, tracks, etc.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -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": "7ca3b7db337ebd88853e2d96cdab940ed550c4fb"
|
|
67
67
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|