@jbrowse/plugin-alignments 2.10.3 → 2.11.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/LaunchBreakpointSplitViewPanel.d.ts +1 -1
- package/dist/AlignmentsFeatureDetail/LaunchBreakpointSplitViewPanel.js +3 -3
- package/dist/AlignmentsFeatureDetail/stateModelFactory.d.ts +23 -0
- package/dist/BamAdapter/index.d.ts +1 -2
- package/dist/BamAdapter/index.js +3 -2
- package/dist/CramAdapter/CramTestAdapters.js +1 -0
- package/dist/CramAdapter/index.d.ts +1 -2
- package/dist/CramAdapter/index.js +3 -2
- package/dist/GuessAlignmentsTypes/index.d.ts +1 -2
- package/dist/GuessAlignmentsTypes/index.js +3 -2
- package/dist/HtsgetBamAdapter/index.d.ts +1 -2
- package/dist/HtsgetBamAdapter/index.js +3 -2
- package/dist/LinearAlignmentsDisplay/index.d.ts +1 -1
- package/dist/LinearAlignmentsDisplay/index.js +2 -2
- package/dist/LinearPileupDisplay/SharedLinearPileupDisplayMixin.js +1 -1
- package/dist/LinearPileupDisplay/components/ColorByModifications.d.ts +1 -1
- package/dist/LinearPileupDisplay/components/SetFeatureHeight.d.ts +1 -1
- package/dist/LinearPileupDisplay/model.d.ts +17 -10
- package/dist/LinearPileupDisplay/model.js +11 -2
- package/dist/PileupRPC/index.d.ts +1 -2
- package/dist/PileupRPC/index.js +3 -2
- package/dist/PileupRenderer/components/PileupRendering.d.ts +6 -6
- package/dist/SNPCoverageAdapter/index.d.ts +1 -1
- package/dist/SNPCoverageAdapter/index.js +2 -2
- package/esm/AlignmentsFeatureDetail/LaunchBreakpointSplitViewPanel.d.ts +1 -1
- package/esm/AlignmentsFeatureDetail/LaunchBreakpointSplitViewPanel.js +3 -3
- package/esm/AlignmentsFeatureDetail/stateModelFactory.d.ts +23 -0
- package/esm/BamAdapter/index.d.ts +1 -2
- package/esm/BamAdapter/index.js +2 -2
- package/esm/CramAdapter/CramTestAdapters.js +1 -0
- package/esm/CramAdapter/index.d.ts +1 -2
- package/esm/CramAdapter/index.js +2 -2
- package/esm/GuessAlignmentsTypes/index.d.ts +1 -2
- package/esm/GuessAlignmentsTypes/index.js +2 -2
- package/esm/HtsgetBamAdapter/index.d.ts +1 -2
- package/esm/HtsgetBamAdapter/index.js +2 -2
- package/esm/LinearAlignmentsDisplay/index.d.ts +1 -1
- package/esm/LinearAlignmentsDisplay/index.js +1 -1
- package/esm/LinearPileupDisplay/SharedLinearPileupDisplayMixin.js +1 -1
- package/esm/LinearPileupDisplay/components/ColorByModifications.d.ts +1 -1
- package/esm/LinearPileupDisplay/components/SetFeatureHeight.d.ts +1 -1
- package/esm/LinearPileupDisplay/model.d.ts +17 -10
- package/esm/LinearPileupDisplay/model.js +11 -2
- package/esm/PileupRPC/index.d.ts +1 -2
- package/esm/PileupRPC/index.js +2 -2
- package/esm/PileupRenderer/components/PileupRendering.d.ts +6 -6
- package/esm/SNPCoverageAdapter/index.d.ts +1 -1
- package/esm/SNPCoverageAdapter/index.js +1 -1
- package/package.json +2 -2
|
@@ -65,7 +65,7 @@ function LaunchBreakpointSplitViewPanel({ model, feature, viewType, }) {
|
|
|
65
65
|
ret.push([res[i], res[i + 1]]);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
return
|
|
68
|
+
return ret.length ? (react_1.default.createElement("div", null,
|
|
69
69
|
react_1.default.createElement(material_1.Typography, null, "Launch split views with breakend source and target"),
|
|
70
70
|
error ? react_1.default.createElement(ui_1.ErrorMessage, { error: error }) : null,
|
|
71
71
|
react_1.default.createElement("ul", null, ret.map((arg, index) => {
|
|
@@ -82,11 +82,11 @@ function LaunchBreakpointSplitViewPanel({ model, feature, viewType, }) {
|
|
|
82
82
|
f1.refName,
|
|
83
83
|
":",
|
|
84
84
|
(0, util_1.toLocale)(f1.strand === 1 ? f1.end : f1.start),
|
|
85
|
-
" ->",
|
|
86
85
|
' ',
|
|
86
|
+
"-> ",
|
|
87
87
|
f2.refName,
|
|
88
88
|
":",
|
|
89
89
|
(0, util_1.toLocale)(f2.strand === 1 ? f2.start : f2.end)))));
|
|
90
|
-
})))) : null
|
|
90
|
+
})))) : null;
|
|
91
91
|
}
|
|
92
92
|
exports.default = LaunchBreakpointSplitViewPanel;
|
|
@@ -11,6 +11,17 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
11
11
|
trackId: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
12
12
|
trackType: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
13
13
|
maxDepth: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
14
|
+
sequenceFeatureDetails: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{}, {
|
|
15
|
+
intronBp: number;
|
|
16
|
+
upDownBp: number;
|
|
17
|
+
upperCaseCDS: boolean;
|
|
18
|
+
} & {
|
|
19
|
+
setUpDownBp(f: number): void;
|
|
20
|
+
setIntronBp(f: number): void;
|
|
21
|
+
setUpperCaseCDS(f: boolean): void;
|
|
22
|
+
} & {
|
|
23
|
+
afterAttach(): void;
|
|
24
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
14
25
|
} & {
|
|
15
26
|
type: import("mobx-state-tree").ISimpleType<"AlignmentsFeatureWidget">;
|
|
16
27
|
}, {
|
|
@@ -36,6 +47,17 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
36
47
|
trackId: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
37
48
|
trackType: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
38
49
|
maxDepth: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
50
|
+
sequenceFeatureDetails: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{}, {
|
|
51
|
+
intronBp: number;
|
|
52
|
+
upDownBp: number;
|
|
53
|
+
upperCaseCDS: boolean;
|
|
54
|
+
} & {
|
|
55
|
+
setUpDownBp(f: number): void;
|
|
56
|
+
setIntronBp(f: number): void;
|
|
57
|
+
setUpperCaseCDS(f: boolean): void;
|
|
58
|
+
} & {
|
|
59
|
+
afterAttach(): void;
|
|
60
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
39
61
|
}>> & import("mobx-state-tree/dist/internal").NonEmptyObject & import("mobx-state-tree")._NotCustomized, {
|
|
40
62
|
id: string;
|
|
41
63
|
type: "BaseFeatureWidget";
|
|
@@ -45,6 +67,7 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
45
67
|
trackType: string | undefined;
|
|
46
68
|
maxDepth: number | undefined;
|
|
47
69
|
formattedFields: any;
|
|
70
|
+
sequenceFeatureDetails: import("mobx-state-tree").ModelSnapshotType<{}>;
|
|
48
71
|
finalizedFeatureData: any;
|
|
49
72
|
} & import("mobx-state-tree")._NotCustomized>;
|
|
50
73
|
export type AlignmentFeatureWidgetStateModel = ReturnType<typeof stateModelFactory>;
|
package/dist/BamAdapter/index.js
CHANGED
|
@@ -28,7 +28,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
const AdapterType_1 = __importDefault(require("@jbrowse/core/pluggableElementTypes/AdapterType"));
|
|
30
30
|
const configSchema_1 = __importDefault(require("./configSchema"));
|
|
31
|
-
|
|
31
|
+
function BamAdapterF(pluginManager) {
|
|
32
32
|
pluginManager.addAdapterType(() => {
|
|
33
33
|
return new AdapterType_1.default({
|
|
34
34
|
name: 'BamAdapter',
|
|
@@ -37,4 +37,5 @@ exports.default = (pluginManager) => {
|
|
|
37
37
|
getAdapterClass: () => Promise.resolve().then(() => __importStar(require('./BamAdapter'))).then(r => r.default),
|
|
38
38
|
});
|
|
39
39
|
});
|
|
40
|
-
}
|
|
40
|
+
}
|
|
41
|
+
exports.default = BamAdapterF;
|
|
@@ -29,7 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
const AdapterType_1 = __importDefault(require("@jbrowse/core/pluggableElementTypes/AdapterType"));
|
|
30
30
|
// locals
|
|
31
31
|
const configSchema_1 = __importDefault(require("./configSchema"));
|
|
32
|
-
|
|
32
|
+
function CramAdapterF(pluginManager) {
|
|
33
33
|
pluginManager.addAdapterType(() => {
|
|
34
34
|
return new AdapterType_1.default({
|
|
35
35
|
name: 'CramAdapter',
|
|
@@ -38,4 +38,5 @@ exports.default = (pluginManager) => {
|
|
|
38
38
|
getAdapterClass: () => Promise.resolve().then(() => __importStar(require('./CramAdapter'))).then(r => r.default),
|
|
39
39
|
});
|
|
40
40
|
});
|
|
41
|
-
}
|
|
41
|
+
}
|
|
42
|
+
exports.default = CramAdapterF;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tracks_1 = require("@jbrowse/core/util/tracks");
|
|
4
|
-
|
|
4
|
+
function GuessAlignmentsTypesF(pluginManager) {
|
|
5
5
|
pluginManager.addToExtensionPoint('Core-guessAdapterForLocation', (adapterGuesser) => {
|
|
6
6
|
return (file, index, adapterHint) => {
|
|
7
7
|
const regexGuess = /\.cram$/i;
|
|
@@ -52,4 +52,5 @@ exports.default = (pluginManager) => {
|
|
|
52
52
|
return trackTypeGuesser(adapterName);
|
|
53
53
|
};
|
|
54
54
|
});
|
|
55
|
-
}
|
|
55
|
+
}
|
|
56
|
+
exports.default = GuessAlignmentsTypesF;
|
|
@@ -28,7 +28,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
const configSchema_1 = __importDefault(require("./configSchema"));
|
|
30
30
|
const AdapterType_1 = __importDefault(require("@jbrowse/core/pluggableElementTypes/AdapterType"));
|
|
31
|
-
|
|
31
|
+
function HtsgetBamAdapterF(pluginManager) {
|
|
32
32
|
pluginManager.addAdapterType(() => {
|
|
33
33
|
return new AdapterType_1.default({
|
|
34
34
|
name: 'HtsgetBamAdapter',
|
|
@@ -40,4 +40,5 @@ exports.default = (pluginManager) => {
|
|
|
40
40
|
getAdapterClass: () => Promise.resolve().then(() => __importStar(require('./HtsgetBamAdapter'))).then(r => r.default),
|
|
41
41
|
});
|
|
42
42
|
});
|
|
43
|
-
}
|
|
43
|
+
}
|
|
44
|
+
exports.default = HtsgetBamAdapterF;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import PluginManager from '@jbrowse/core/PluginManager';
|
|
2
|
-
export default function (pluginManager: PluginManager): void;
|
|
2
|
+
export default function LinearAlignmentsDisplayF(pluginManager: PluginManager): void;
|
|
@@ -8,7 +8,7 @@ const DisplayType_1 = __importDefault(require("@jbrowse/core/pluggableElementTyp
|
|
|
8
8
|
const configSchema_1 = __importDefault(require("./models/configSchema"));
|
|
9
9
|
const model_1 = __importDefault(require("./models/model"));
|
|
10
10
|
const AlignmentsDisplay_1 = __importDefault(require("./components/AlignmentsDisplay"));
|
|
11
|
-
function
|
|
11
|
+
function LinearAlignmentsDisplayF(pluginManager) {
|
|
12
12
|
pluginManager.addDisplayType(() => {
|
|
13
13
|
const configSchema = (0, configSchema_1.default)(pluginManager);
|
|
14
14
|
return new DisplayType_1.default({
|
|
@@ -22,4 +22,4 @@ function default_1(pluginManager) {
|
|
|
22
22
|
});
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
|
-
exports.default =
|
|
25
|
+
exports.default = LinearAlignmentsDisplayF;
|
|
@@ -4,7 +4,7 @@ declare const SetFeatureHeightDialog: (props: {
|
|
|
4
4
|
setFeatureHeight: (arg?: number) => void;
|
|
5
5
|
setNoSpacing: (arg?: boolean) => void;
|
|
6
6
|
featureHeightSetting: number;
|
|
7
|
-
noSpacing?: boolean
|
|
7
|
+
noSpacing?: boolean;
|
|
8
8
|
};
|
|
9
9
|
handleClose: () => void;
|
|
10
10
|
}) => React.JSX.Element;
|
|
@@ -5,7 +5,7 @@ import { AnyConfigurationSchemaType } from '@jbrowse/core/configuration';
|
|
|
5
5
|
* #stateModel LinearPileupDisplay
|
|
6
6
|
* #category display
|
|
7
7
|
* extends
|
|
8
|
-
|
|
8
|
+
* - [SharedLinearPileupDisplayMixin](../sharedlinearpileupdisplaymixin)
|
|
9
9
|
*/
|
|
10
10
|
declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): import("mobx-state-tree").IModelType<{
|
|
11
11
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
@@ -96,16 +96,15 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
96
96
|
} & {
|
|
97
97
|
configuration: AnyConfigurationSchemaType;
|
|
98
98
|
featureHeight: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
99
|
-
/**
|
|
100
|
-
* #action
|
|
101
|
-
*/
|
|
102
99
|
noSpacing: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<boolean>>;
|
|
103
100
|
fadeLikelihood: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<boolean>>;
|
|
104
101
|
trackMaxHeight: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
105
102
|
colorBy: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IModelType<{
|
|
106
103
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
107
104
|
tag: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
108
|
-
extra: import("mobx-state-tree").IType<any, any, any>;
|
|
105
|
+
extra: import("mobx-state-tree").IType<any, any, any>; /**
|
|
106
|
+
* #action
|
|
107
|
+
*/
|
|
109
108
|
}, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
110
109
|
filterBy: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
111
110
|
flagInclude: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
@@ -185,9 +184,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
185
184
|
readonly viewMenuActions: import("@jbrowse/core/ui").MenuItem[];
|
|
186
185
|
regionCannotBeRendered(): null;
|
|
187
186
|
} & {
|
|
188
|
-
setMessage(arg?: string | undefined): void;
|
|
189
|
-
* #getter
|
|
190
|
-
*/
|
|
187
|
+
setMessage(arg?: string | undefined): void;
|
|
191
188
|
setError(error?: unknown): void;
|
|
192
189
|
setRpcDriverName(rpcDriverName: string): void;
|
|
193
190
|
reload(): void;
|
|
@@ -237,7 +234,9 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
237
234
|
readonly DisplayMessageComponent: import("react").FC<any> | undefined;
|
|
238
235
|
} & {
|
|
239
236
|
readonly features: import("@jbrowse/core/util/compositeMap").default<string, import("@jbrowse/core/util").Feature>;
|
|
240
|
-
readonly featureUnderMouse: import("@jbrowse/core/util").Feature | undefined;
|
|
237
|
+
readonly featureUnderMouse: import("@jbrowse/core/util").Feature | undefined; /**
|
|
238
|
+
* #getter
|
|
239
|
+
*/
|
|
241
240
|
getFeatureOverlapping(blockKey: string, x: number, y: number): string | undefined;
|
|
242
241
|
getFeatureByID(blockKey: string, id: string): [number, number, number, number] | undefined;
|
|
243
242
|
searchFeatureByID(id: string): [number, number, number, number] | undefined;
|
|
@@ -246,7 +245,9 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
246
245
|
deleteBlock(key: string): void;
|
|
247
246
|
selectFeature(feature: import("@jbrowse/core/util").Feature): void;
|
|
248
247
|
clearFeatureSelection(): void;
|
|
249
|
-
setFeatureIdUnderMouse(feature?: string | undefined): void;
|
|
248
|
+
setFeatureIdUnderMouse(feature?: string | undefined): void; /**
|
|
249
|
+
* #method
|
|
250
|
+
*/
|
|
250
251
|
setContextMenuFeature(feature?: import("@jbrowse/core/util").Feature | undefined): void;
|
|
251
252
|
} & {
|
|
252
253
|
reload(): Promise<void>;
|
|
@@ -375,6 +376,12 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
375
376
|
* #action
|
|
376
377
|
*/
|
|
377
378
|
setSortedBy(type: string, tag?: string): void;
|
|
379
|
+
/**
|
|
380
|
+
* #action
|
|
381
|
+
* overrides base from SharedLinearPileupDisplay to make sortReady false
|
|
382
|
+
* since changing feature height destroys the sort-induced layout
|
|
383
|
+
*/
|
|
384
|
+
setFeatureHeight(n?: number): void;
|
|
378
385
|
} & {
|
|
379
386
|
/**
|
|
380
387
|
* #action
|
|
@@ -39,14 +39,14 @@ const Sort_1 = __importDefault(require("@mui/icons-material/Sort"));
|
|
|
39
39
|
// locals
|
|
40
40
|
const SharedLinearPileupDisplayMixin_1 = require("./SharedLinearPileupDisplayMixin");
|
|
41
41
|
const mobx_1 = require("mobx");
|
|
42
|
-
//
|
|
42
|
+
// lzies
|
|
43
43
|
const SortByTagDialog = (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('./components/SortByTag'))));
|
|
44
44
|
const ModificationsDialog = (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('./components/ColorByModifications'))));
|
|
45
45
|
/**
|
|
46
46
|
* #stateModel LinearPileupDisplay
|
|
47
47
|
* #category display
|
|
48
48
|
* extends
|
|
49
|
-
|
|
49
|
+
* - [SharedLinearPileupDisplayMixin](../sharedlinearpileupdisplaymixin)
|
|
50
50
|
*/
|
|
51
51
|
function stateModelFactory(configSchema) {
|
|
52
52
|
return mobx_state_tree_1.types
|
|
@@ -153,6 +153,15 @@ function stateModelFactory(configSchema) {
|
|
|
153
153
|
tag,
|
|
154
154
|
};
|
|
155
155
|
},
|
|
156
|
+
/**
|
|
157
|
+
* #action
|
|
158
|
+
* overrides base from SharedLinearPileupDisplay to make sortReady false
|
|
159
|
+
* since changing feature height destroys the sort-induced layout
|
|
160
|
+
*/
|
|
161
|
+
setFeatureHeight(n) {
|
|
162
|
+
self.sortReady = false;
|
|
163
|
+
self.featureHeight = n;
|
|
164
|
+
},
|
|
156
165
|
}))
|
|
157
166
|
.actions(self => {
|
|
158
167
|
// resets the sort object and refresh whole display on reload
|
package/dist/PileupRPC/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const rpcMethods_1 = require("./rpcMethods");
|
|
4
|
-
|
|
4
|
+
function PileupRPCMethodsF(pm) {
|
|
5
5
|
pm.addRpcMethod(() => new rpcMethods_1.PileupGetGlobalValueForTag(pm));
|
|
6
6
|
pm.addRpcMethod(() => new rpcMethods_1.PileupGetVisibleModifications(pm));
|
|
7
7
|
pm.addRpcMethod(() => new rpcMethods_1.PileupGetReducedFeatures(pm));
|
|
8
|
-
}
|
|
8
|
+
}
|
|
9
|
+
exports.default = PileupRPCMethodsF;
|
|
@@ -12,16 +12,16 @@ declare const PileupRendering: (props: {
|
|
|
12
12
|
type: string;
|
|
13
13
|
pos: number;
|
|
14
14
|
refName: string;
|
|
15
|
-
}
|
|
15
|
+
};
|
|
16
16
|
colorBy?: {
|
|
17
17
|
type: string;
|
|
18
|
-
tag?: string
|
|
19
|
-
}
|
|
18
|
+
tag?: string;
|
|
19
|
+
};
|
|
20
20
|
filterBy?: {
|
|
21
21
|
tagFilter?: {
|
|
22
22
|
tag: string;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
onMouseMove?: (
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
onMouseMove?: (event: React.MouseEvent, featureId?: string) => void;
|
|
26
26
|
}) => React.JSX.Element;
|
|
27
27
|
export default PileupRendering;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import PluginManager from '@jbrowse/core/PluginManager';
|
|
2
|
-
export default function (pluginManager: PluginManager): void;
|
|
2
|
+
export default function SNPCoverageAdapterF(pluginManager: PluginManager): void;
|
|
@@ -28,7 +28,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
const AdapterType_1 = __importDefault(require("@jbrowse/core/pluggableElementTypes/AdapterType"));
|
|
30
30
|
const configSchema_1 = __importDefault(require("./configSchema"));
|
|
31
|
-
function
|
|
31
|
+
function SNPCoverageAdapterF(pluginManager) {
|
|
32
32
|
pluginManager.addAdapterType(() => {
|
|
33
33
|
return new AdapterType_1.default({
|
|
34
34
|
name: 'SNPCoverageAdapter',
|
|
@@ -41,4 +41,4 @@ function default_1(pluginManager) {
|
|
|
41
41
|
});
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
|
-
exports.default =
|
|
44
|
+
exports.default = SNPCoverageAdapterF;
|
|
@@ -40,7 +40,7 @@ export default function LaunchBreakpointSplitViewPanel({ model, feature, viewTyp
|
|
|
40
40
|
ret.push([res[i], res[i + 1]]);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
return
|
|
43
|
+
return ret.length ? (React.createElement("div", null,
|
|
44
44
|
React.createElement(Typography, null, "Launch split views with breakend source and target"),
|
|
45
45
|
error ? React.createElement(ErrorMessage, { error: error }) : null,
|
|
46
46
|
React.createElement("ul", null, ret.map((arg, index) => {
|
|
@@ -57,10 +57,10 @@ export default function LaunchBreakpointSplitViewPanel({ model, feature, viewTyp
|
|
|
57
57
|
f1.refName,
|
|
58
58
|
":",
|
|
59
59
|
toLocale(f1.strand === 1 ? f1.end : f1.start),
|
|
60
|
-
" ->",
|
|
61
60
|
' ',
|
|
61
|
+
"-> ",
|
|
62
62
|
f2.refName,
|
|
63
63
|
":",
|
|
64
64
|
toLocale(f2.strand === 1 ? f2.start : f2.end)))));
|
|
65
|
-
})))) : null
|
|
65
|
+
})))) : null;
|
|
66
66
|
}
|
|
@@ -11,6 +11,17 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
11
11
|
trackId: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
12
12
|
trackType: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
13
13
|
maxDepth: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
14
|
+
sequenceFeatureDetails: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{}, {
|
|
15
|
+
intronBp: number;
|
|
16
|
+
upDownBp: number;
|
|
17
|
+
upperCaseCDS: boolean;
|
|
18
|
+
} & {
|
|
19
|
+
setUpDownBp(f: number): void;
|
|
20
|
+
setIntronBp(f: number): void;
|
|
21
|
+
setUpperCaseCDS(f: boolean): void;
|
|
22
|
+
} & {
|
|
23
|
+
afterAttach(): void;
|
|
24
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
14
25
|
} & {
|
|
15
26
|
type: import("mobx-state-tree").ISimpleType<"AlignmentsFeatureWidget">;
|
|
16
27
|
}, {
|
|
@@ -36,6 +47,17 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
36
47
|
trackId: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
37
48
|
trackType: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
38
49
|
maxDepth: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
50
|
+
sequenceFeatureDetails: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{}, {
|
|
51
|
+
intronBp: number;
|
|
52
|
+
upDownBp: number;
|
|
53
|
+
upperCaseCDS: boolean;
|
|
54
|
+
} & {
|
|
55
|
+
setUpDownBp(f: number): void;
|
|
56
|
+
setIntronBp(f: number): void;
|
|
57
|
+
setUpperCaseCDS(f: boolean): void;
|
|
58
|
+
} & {
|
|
59
|
+
afterAttach(): void;
|
|
60
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
39
61
|
}>> & import("mobx-state-tree/dist/internal").NonEmptyObject & import("mobx-state-tree")._NotCustomized, {
|
|
40
62
|
id: string;
|
|
41
63
|
type: "BaseFeatureWidget";
|
|
@@ -45,6 +67,7 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
45
67
|
trackType: string | undefined;
|
|
46
68
|
maxDepth: number | undefined;
|
|
47
69
|
formattedFields: any;
|
|
70
|
+
sequenceFeatureDetails: import("mobx-state-tree").ModelSnapshotType<{}>;
|
|
48
71
|
finalizedFeatureData: any;
|
|
49
72
|
} & import("mobx-state-tree")._NotCustomized>;
|
|
50
73
|
export type AlignmentFeatureWidgetStateModel = ReturnType<typeof stateModelFactory>;
|
package/esm/BamAdapter/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import AdapterType from '@jbrowse/core/pluggableElementTypes/AdapterType';
|
|
2
2
|
import configSchema from './configSchema';
|
|
3
|
-
export default (pluginManager)
|
|
3
|
+
export default function BamAdapterF(pluginManager) {
|
|
4
4
|
pluginManager.addAdapterType(() => {
|
|
5
5
|
return new AdapterType({
|
|
6
6
|
name: 'BamAdapter',
|
|
@@ -9,4 +9,4 @@ export default (pluginManager) => {
|
|
|
9
9
|
getAdapterClass: () => import('./BamAdapter').then(r => r.default),
|
|
10
10
|
});
|
|
11
11
|
});
|
|
12
|
-
}
|
|
12
|
+
}
|
package/esm/CramAdapter/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import AdapterType from '@jbrowse/core/pluggableElementTypes/AdapterType';
|
|
2
2
|
// locals
|
|
3
3
|
import configSchema from './configSchema';
|
|
4
|
-
export default (pluginManager)
|
|
4
|
+
export default function CramAdapterF(pluginManager) {
|
|
5
5
|
pluginManager.addAdapterType(() => {
|
|
6
6
|
return new AdapterType({
|
|
7
7
|
name: 'CramAdapter',
|
|
@@ -10,4 +10,4 @@ export default (pluginManager) => {
|
|
|
10
10
|
getAdapterClass: () => import('./CramAdapter').then(r => r.default),
|
|
11
11
|
});
|
|
12
12
|
});
|
|
13
|
-
}
|
|
13
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { makeIndex, makeIndexType, getFileName, } from '@jbrowse/core/util/tracks';
|
|
2
|
-
export default (pluginManager)
|
|
2
|
+
export default function GuessAlignmentsTypesF(pluginManager) {
|
|
3
3
|
pluginManager.addToExtensionPoint('Core-guessAdapterForLocation', (adapterGuesser) => {
|
|
4
4
|
return (file, index, adapterHint) => {
|
|
5
5
|
const regexGuess = /\.cram$/i;
|
|
@@ -50,4 +50,4 @@ export default (pluginManager) => {
|
|
|
50
50
|
return trackTypeGuesser(adapterName);
|
|
51
51
|
};
|
|
52
52
|
});
|
|
53
|
-
}
|
|
53
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import configSchema from './configSchema';
|
|
2
2
|
import AdapterType from '@jbrowse/core/pluggableElementTypes/AdapterType';
|
|
3
|
-
export default (pluginManager)
|
|
3
|
+
export default function HtsgetBamAdapterF(pluginManager) {
|
|
4
4
|
pluginManager.addAdapterType(() => {
|
|
5
5
|
return new AdapterType({
|
|
6
6
|
name: 'HtsgetBamAdapter',
|
|
@@ -12,4 +12,4 @@ export default (pluginManager) => {
|
|
|
12
12
|
getAdapterClass: () => import('./HtsgetBamAdapter').then(r => r.default),
|
|
13
13
|
});
|
|
14
14
|
});
|
|
15
|
-
}
|
|
15
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import PluginManager from '@jbrowse/core/PluginManager';
|
|
2
|
-
export default function (pluginManager: PluginManager): void;
|
|
2
|
+
export default function LinearAlignmentsDisplayF(pluginManager: PluginManager): void;
|
|
@@ -3,7 +3,7 @@ import DisplayType from '@jbrowse/core/pluggableElementTypes/DisplayType';
|
|
|
3
3
|
import configSchemaFactory from './models/configSchema';
|
|
4
4
|
import modelFactory from './models/model';
|
|
5
5
|
import ReactComponent from './components/AlignmentsDisplay';
|
|
6
|
-
export default function (pluginManager) {
|
|
6
|
+
export default function LinearAlignmentsDisplayF(pluginManager) {
|
|
7
7
|
pluginManager.addDisplayType(() => {
|
|
8
8
|
const configSchema = configSchemaFactory(pluginManager);
|
|
9
9
|
return new DisplayType({
|
|
@@ -4,7 +4,7 @@ declare const SetFeatureHeightDialog: (props: {
|
|
|
4
4
|
setFeatureHeight: (arg?: number) => void;
|
|
5
5
|
setNoSpacing: (arg?: boolean) => void;
|
|
6
6
|
featureHeightSetting: number;
|
|
7
|
-
noSpacing?: boolean
|
|
7
|
+
noSpacing?: boolean;
|
|
8
8
|
};
|
|
9
9
|
handleClose: () => void;
|
|
10
10
|
}) => React.JSX.Element;
|
|
@@ -5,7 +5,7 @@ import { AnyConfigurationSchemaType } from '@jbrowse/core/configuration';
|
|
|
5
5
|
* #stateModel LinearPileupDisplay
|
|
6
6
|
* #category display
|
|
7
7
|
* extends
|
|
8
|
-
|
|
8
|
+
* - [SharedLinearPileupDisplayMixin](../sharedlinearpileupdisplaymixin)
|
|
9
9
|
*/
|
|
10
10
|
declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): import("mobx-state-tree").IModelType<{
|
|
11
11
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
@@ -96,16 +96,15 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
96
96
|
} & {
|
|
97
97
|
configuration: AnyConfigurationSchemaType;
|
|
98
98
|
featureHeight: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
99
|
-
/**
|
|
100
|
-
* #action
|
|
101
|
-
*/
|
|
102
99
|
noSpacing: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<boolean>>;
|
|
103
100
|
fadeLikelihood: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<boolean>>;
|
|
104
101
|
trackMaxHeight: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
105
102
|
colorBy: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IModelType<{
|
|
106
103
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
107
104
|
tag: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
108
|
-
extra: import("mobx-state-tree").IType<any, any, any>;
|
|
105
|
+
extra: import("mobx-state-tree").IType<any, any, any>; /**
|
|
106
|
+
* #action
|
|
107
|
+
*/
|
|
109
108
|
}, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
110
109
|
filterBy: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
111
110
|
flagInclude: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
@@ -185,9 +184,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
185
184
|
readonly viewMenuActions: import("@jbrowse/core/ui").MenuItem[];
|
|
186
185
|
regionCannotBeRendered(): null;
|
|
187
186
|
} & {
|
|
188
|
-
setMessage(arg?: string | undefined): void;
|
|
189
|
-
* #getter
|
|
190
|
-
*/
|
|
187
|
+
setMessage(arg?: string | undefined): void;
|
|
191
188
|
setError(error?: unknown): void;
|
|
192
189
|
setRpcDriverName(rpcDriverName: string): void;
|
|
193
190
|
reload(): void;
|
|
@@ -237,7 +234,9 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
237
234
|
readonly DisplayMessageComponent: import("react").FC<any> | undefined;
|
|
238
235
|
} & {
|
|
239
236
|
readonly features: import("@jbrowse/core/util/compositeMap").default<string, import("@jbrowse/core/util").Feature>;
|
|
240
|
-
readonly featureUnderMouse: import("@jbrowse/core/util").Feature | undefined;
|
|
237
|
+
readonly featureUnderMouse: import("@jbrowse/core/util").Feature | undefined; /**
|
|
238
|
+
* #getter
|
|
239
|
+
*/
|
|
241
240
|
getFeatureOverlapping(blockKey: string, x: number, y: number): string | undefined;
|
|
242
241
|
getFeatureByID(blockKey: string, id: string): [number, number, number, number] | undefined;
|
|
243
242
|
searchFeatureByID(id: string): [number, number, number, number] | undefined;
|
|
@@ -246,7 +245,9 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
246
245
|
deleteBlock(key: string): void;
|
|
247
246
|
selectFeature(feature: import("@jbrowse/core/util").Feature): void;
|
|
248
247
|
clearFeatureSelection(): void;
|
|
249
|
-
setFeatureIdUnderMouse(feature?: string | undefined): void;
|
|
248
|
+
setFeatureIdUnderMouse(feature?: string | undefined): void; /**
|
|
249
|
+
* #method
|
|
250
|
+
*/
|
|
250
251
|
setContextMenuFeature(feature?: import("@jbrowse/core/util").Feature | undefined): void;
|
|
251
252
|
} & {
|
|
252
253
|
reload(): Promise<void>;
|
|
@@ -375,6 +376,12 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
375
376
|
* #action
|
|
376
377
|
*/
|
|
377
378
|
setSortedBy(type: string, tag?: string): void;
|
|
379
|
+
/**
|
|
380
|
+
* #action
|
|
381
|
+
* overrides base from SharedLinearPileupDisplay to make sortReady false
|
|
382
|
+
* since changing feature height destroys the sort-induced layout
|
|
383
|
+
*/
|
|
384
|
+
setFeatureHeight(n?: number): void;
|
|
378
385
|
} & {
|
|
379
386
|
/**
|
|
380
387
|
* #action
|
|
@@ -11,14 +11,14 @@ import SortIcon from '@mui/icons-material/Sort';
|
|
|
11
11
|
// locals
|
|
12
12
|
import { SharedLinearPileupDisplayMixin } from './SharedLinearPileupDisplayMixin';
|
|
13
13
|
import { observable } from 'mobx';
|
|
14
|
-
//
|
|
14
|
+
// lzies
|
|
15
15
|
const SortByTagDialog = lazy(() => import('./components/SortByTag'));
|
|
16
16
|
const ModificationsDialog = lazy(() => import('./components/ColorByModifications'));
|
|
17
17
|
/**
|
|
18
18
|
* #stateModel LinearPileupDisplay
|
|
19
19
|
* #category display
|
|
20
20
|
* extends
|
|
21
|
-
|
|
21
|
+
* - [SharedLinearPileupDisplayMixin](../sharedlinearpileupdisplaymixin)
|
|
22
22
|
*/
|
|
23
23
|
function stateModelFactory(configSchema) {
|
|
24
24
|
return types
|
|
@@ -125,6 +125,15 @@ function stateModelFactory(configSchema) {
|
|
|
125
125
|
tag,
|
|
126
126
|
};
|
|
127
127
|
},
|
|
128
|
+
/**
|
|
129
|
+
* #action
|
|
130
|
+
* overrides base from SharedLinearPileupDisplay to make sortReady false
|
|
131
|
+
* since changing feature height destroys the sort-induced layout
|
|
132
|
+
*/
|
|
133
|
+
setFeatureHeight(n) {
|
|
134
|
+
self.sortReady = false;
|
|
135
|
+
self.featureHeight = n;
|
|
136
|
+
},
|
|
128
137
|
}))
|
|
129
138
|
.actions(self => {
|
|
130
139
|
// resets the sort object and refresh whole display on reload
|
package/esm/PileupRPC/index.d.ts
CHANGED
package/esm/PileupRPC/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PileupGetGlobalValueForTag, PileupGetVisibleModifications, PileupGetReducedFeatures, } from './rpcMethods';
|
|
2
|
-
export default (pm)
|
|
2
|
+
export default function PileupRPCMethodsF(pm) {
|
|
3
3
|
pm.addRpcMethod(() => new PileupGetGlobalValueForTag(pm));
|
|
4
4
|
pm.addRpcMethod(() => new PileupGetVisibleModifications(pm));
|
|
5
5
|
pm.addRpcMethod(() => new PileupGetReducedFeatures(pm));
|
|
6
|
-
}
|
|
6
|
+
}
|
|
@@ -12,16 +12,16 @@ declare const PileupRendering: (props: {
|
|
|
12
12
|
type: string;
|
|
13
13
|
pos: number;
|
|
14
14
|
refName: string;
|
|
15
|
-
}
|
|
15
|
+
};
|
|
16
16
|
colorBy?: {
|
|
17
17
|
type: string;
|
|
18
|
-
tag?: string
|
|
19
|
-
}
|
|
18
|
+
tag?: string;
|
|
19
|
+
};
|
|
20
20
|
filterBy?: {
|
|
21
21
|
tagFilter?: {
|
|
22
22
|
tag: string;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
onMouseMove?: (
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
onMouseMove?: (event: React.MouseEvent, featureId?: string) => void;
|
|
26
26
|
}) => React.JSX.Element;
|
|
27
27
|
export default PileupRendering;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import PluginManager from '@jbrowse/core/PluginManager';
|
|
2
|
-
export default function (pluginManager: PluginManager): void;
|
|
2
|
+
export default function SNPCoverageAdapterF(pluginManager: PluginManager): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import AdapterType from '@jbrowse/core/pluggableElementTypes/AdapterType';
|
|
2
2
|
import configSchema from './configSchema';
|
|
3
|
-
export default function (pluginManager) {
|
|
3
|
+
export default function SNPCoverageAdapterF(pluginManager) {
|
|
4
4
|
pluginManager.addAdapterType(() => {
|
|
5
5
|
return new AdapterType({
|
|
6
6
|
name: 'SNPCoverageAdapter',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/plugin-alignments",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.11.1",
|
|
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": "11b28d66d782eb06f92ccb993108bb6c3c82819e"
|
|
67
67
|
}
|