@jbrowse/plugin-alignments 2.11.0 → 2.11.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/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/LinearAlignmentsDisplay/models/configSchema.d.ts +8 -1
- package/dist/LinearPileupDisplay/SharedLinearPileupDisplayMixin.d.ts +13 -6
- package/dist/LinearPileupDisplay/configSchema.d.ts +11 -2
- package/dist/LinearPileupDisplay/model.d.ts +8 -6
- package/dist/LinearReadArcsDisplay/configSchema.d.ts +5 -0
- package/dist/LinearReadArcsDisplay/model.d.ts +1 -3
- package/dist/LinearReadCloudDisplay/configSchema.d.ts +7 -1
- package/dist/LinearSNPCoverageDisplay/models/configSchema.d.ts +6 -3
- package/dist/LinearSNPCoverageDisplay/models/model.d.ts +9 -0
- package/dist/PileupRPC/index.d.ts +1 -2
- package/dist/PileupRPC/index.js +3 -2
- package/dist/PileupRenderer/renderSoftClipping.js +29 -13
- package/dist/SNPCoverageAdapter/index.d.ts +1 -1
- package/dist/SNPCoverageAdapter/index.js +2 -2
- 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/LinearAlignmentsDisplay/models/configSchema.d.ts +8 -1
- package/esm/LinearPileupDisplay/SharedLinearPileupDisplayMixin.d.ts +13 -6
- package/esm/LinearPileupDisplay/configSchema.d.ts +11 -2
- package/esm/LinearPileupDisplay/model.d.ts +8 -6
- package/esm/LinearReadArcsDisplay/configSchema.d.ts +5 -0
- package/esm/LinearReadArcsDisplay/model.d.ts +1 -3
- package/esm/LinearReadCloudDisplay/configSchema.d.ts +7 -1
- package/esm/LinearSNPCoverageDisplay/models/configSchema.d.ts +6 -3
- package/esm/LinearSNPCoverageDisplay/models/model.d.ts +9 -0
- package/esm/PileupRPC/index.d.ts +1 -2
- package/esm/PileupRPC/index.js +2 -2
- package/esm/PileupRenderer/renderSoftClipping.js +29 -13
- package/esm/SNPCoverageAdapter/index.d.ts +1 -1
- package/esm/SNPCoverageAdapter/index.js +1 -1
- package/package.json +2 -2
|
@@ -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;
|
|
@@ -25,7 +25,9 @@ export default function configModelFactory(pm: PluginManager): import("@jbrowse/
|
|
|
25
25
|
type: string;
|
|
26
26
|
description: string;
|
|
27
27
|
defaultValue: number;
|
|
28
|
-
};
|
|
28
|
+
}; /**
|
|
29
|
+
* #slot
|
|
30
|
+
*/
|
|
29
31
|
fetchSizeLimit: {
|
|
30
32
|
type: string;
|
|
31
33
|
defaultValue: number;
|
|
@@ -42,4 +44,9 @@ export default function configModelFactory(pm: PluginManager): import("@jbrowse/
|
|
|
42
44
|
defaultValue: string;
|
|
43
45
|
contextVariable: string[];
|
|
44
46
|
};
|
|
47
|
+
jexlFilters: {
|
|
48
|
+
type: string;
|
|
49
|
+
description: string;
|
|
50
|
+
defaultValue: never[];
|
|
51
|
+
};
|
|
45
52
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>, undefined>>;
|
|
@@ -97,6 +97,11 @@ export declare function SharedLinearPileupDisplayMixin(configSchema: AnyConfigur
|
|
|
97
97
|
defaultValue: string;
|
|
98
98
|
contextVariable: string[];
|
|
99
99
|
};
|
|
100
|
+
jexlFilters: {
|
|
101
|
+
type: string;
|
|
102
|
+
description: string;
|
|
103
|
+
defaultValue: never[];
|
|
104
|
+
};
|
|
100
105
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
101
106
|
} & {
|
|
102
107
|
/**
|
|
@@ -247,22 +252,19 @@ export declare function SharedLinearPileupDisplayMixin(configSchema: AnyConfigur
|
|
|
247
252
|
} & {
|
|
248
253
|
readonly renderDelay: number;
|
|
249
254
|
readonly TooltipComponent: import("react").FC<any>;
|
|
250
|
-
readonly selectedFeatureId: string | undefined;
|
|
251
|
-
* #action
|
|
252
|
-
*/
|
|
255
|
+
readonly selectedFeatureId: string | undefined;
|
|
253
256
|
readonly DisplayMessageComponent: import("react").FC<any> | undefined;
|
|
254
257
|
} & {
|
|
255
258
|
readonly features: import("@jbrowse/core/util/compositeMap").default<string, Feature>;
|
|
256
259
|
readonly featureUnderMouse: Feature | undefined;
|
|
257
260
|
getFeatureOverlapping(blockKey: string, x: number, y: number): string | undefined;
|
|
258
|
-
getFeatureByID(blockKey: string, id: string): [number, number, number, number] | undefined;
|
|
259
|
-
* #action
|
|
260
|
-
*/
|
|
261
|
+
getFeatureByID(blockKey: string, id: string): [number, number, number, number] | undefined;
|
|
261
262
|
searchFeatureByID(id: string): [number, number, number, number] | undefined;
|
|
262
263
|
} & {
|
|
263
264
|
addBlock(key: string, block: import("@jbrowse/core/util/blockTypes").BaseBlock): void;
|
|
264
265
|
deleteBlock(key: string): void;
|
|
265
266
|
selectFeature(feature: Feature): void;
|
|
267
|
+
navToFeature(feature: Feature): void;
|
|
266
268
|
clearFeatureSelection(): void;
|
|
267
269
|
setFeatureIdUnderMouse(feature?: string | undefined): void;
|
|
268
270
|
setContextMenuFeature(feature?: Feature | undefined): void;
|
|
@@ -511,6 +513,11 @@ export declare function SharedLinearPileupDisplayMixin(configSchema: AnyConfigur
|
|
|
511
513
|
defaultValue: string;
|
|
512
514
|
contextVariable: string[];
|
|
513
515
|
};
|
|
516
|
+
jexlFilters: {
|
|
517
|
+
type: string;
|
|
518
|
+
description: string;
|
|
519
|
+
defaultValue: never[];
|
|
520
|
+
};
|
|
514
521
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
515
522
|
}>> & import("mobx-state-tree/dist/internal").NonEmptyObject & import("mobx-state-tree")._NotCustomized, {
|
|
516
523
|
type: string;
|
|
@@ -36,7 +36,9 @@ declare function configSchemaF(pluginManager: PluginManager): import("@jbrowse/c
|
|
|
36
36
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
37
37
|
maxFeatureScreenDensity: {
|
|
38
38
|
type: string;
|
|
39
|
-
description: string;
|
|
39
|
+
description: string; /**
|
|
40
|
+
* #slot
|
|
41
|
+
*/
|
|
40
42
|
defaultValue: number;
|
|
41
43
|
};
|
|
42
44
|
fetchSizeLimit: {
|
|
@@ -48,12 +50,19 @@ declare function configSchemaF(pluginManager: PluginManager): import("@jbrowse/c
|
|
|
48
50
|
type: string;
|
|
49
51
|
defaultValue: number;
|
|
50
52
|
description: string;
|
|
51
|
-
};
|
|
53
|
+
}; /**
|
|
54
|
+
* #slot
|
|
55
|
+
*/
|
|
52
56
|
mouseover: {
|
|
53
57
|
type: string;
|
|
54
58
|
description: string;
|
|
55
59
|
defaultValue: string;
|
|
56
60
|
contextVariable: string[];
|
|
57
61
|
};
|
|
62
|
+
jexlFilters: {
|
|
63
|
+
type: string;
|
|
64
|
+
description: string;
|
|
65
|
+
defaultValue: never[];
|
|
66
|
+
};
|
|
58
67
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>, undefined>>, undefined>>;
|
|
59
68
|
export default configSchemaF;
|
|
@@ -92,6 +92,11 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
92
92
|
defaultValue: string;
|
|
93
93
|
contextVariable: string[];
|
|
94
94
|
};
|
|
95
|
+
jexlFilters: {
|
|
96
|
+
type: string;
|
|
97
|
+
description: string;
|
|
98
|
+
defaultValue: never[];
|
|
99
|
+
};
|
|
95
100
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
96
101
|
} & {
|
|
97
102
|
configuration: AnyConfigurationSchemaType;
|
|
@@ -234,9 +239,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
234
239
|
readonly DisplayMessageComponent: import("react").FC<any> | undefined;
|
|
235
240
|
} & {
|
|
236
241
|
readonly features: import("@jbrowse/core/util/compositeMap").default<string, import("@jbrowse/core/util").Feature>;
|
|
237
|
-
readonly featureUnderMouse: import("@jbrowse/core/util").Feature | undefined;
|
|
238
|
-
* #getter
|
|
239
|
-
*/
|
|
242
|
+
readonly featureUnderMouse: import("@jbrowse/core/util").Feature | undefined;
|
|
240
243
|
getFeatureOverlapping(blockKey: string, x: number, y: number): string | undefined;
|
|
241
244
|
getFeatureByID(blockKey: string, id: string): [number, number, number, number] | undefined;
|
|
242
245
|
searchFeatureByID(id: string): [number, number, number, number] | undefined;
|
|
@@ -244,10 +247,9 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
244
247
|
addBlock(key: string, block: import("@jbrowse/core/util/blockTypes").BaseBlock): void;
|
|
245
248
|
deleteBlock(key: string): void;
|
|
246
249
|
selectFeature(feature: import("@jbrowse/core/util").Feature): void;
|
|
250
|
+
navToFeature(feature: import("@jbrowse/core/util").Feature): void;
|
|
247
251
|
clearFeatureSelection(): void;
|
|
248
|
-
setFeatureIdUnderMouse(feature?: string | undefined): void;
|
|
249
|
-
* #method
|
|
250
|
-
*/
|
|
252
|
+
setFeatureIdUnderMouse(feature?: string | undefined): void;
|
|
251
253
|
setContextMenuFeature(feature?: import("@jbrowse/core/util").Feature | undefined): void;
|
|
252
254
|
} & {
|
|
253
255
|
reload(): Promise<void>;
|
|
@@ -60,5 +60,10 @@ declare function configSchemaF(pluginManager: PluginManager): import("@jbrowse/c
|
|
|
60
60
|
defaultValue: string;
|
|
61
61
|
contextVariable: string[];
|
|
62
62
|
};
|
|
63
|
+
jexlFilters: {
|
|
64
|
+
type: string;
|
|
65
|
+
description: string;
|
|
66
|
+
defaultValue: never[];
|
|
67
|
+
};
|
|
63
68
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>, undefined>>, undefined>>;
|
|
64
69
|
export default configSchemaF;
|
|
@@ -103,9 +103,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
103
103
|
regionCannotBeRendered(): null;
|
|
104
104
|
} & {
|
|
105
105
|
setMessage(arg?: string | undefined): void;
|
|
106
|
-
setError(error?: unknown): void;
|
|
107
|
-
* #getter
|
|
108
|
-
*/
|
|
106
|
+
setError(error?: unknown): void;
|
|
109
107
|
setRpcDriverName(rpcDriverName: string): void;
|
|
110
108
|
reload(): void;
|
|
111
109
|
} & {
|
|
@@ -33,9 +33,10 @@ declare function configSchemaF(pluginManager: PluginManager): import("@jbrowse/c
|
|
|
33
33
|
maxFeatureScreenDensity: {
|
|
34
34
|
type: string;
|
|
35
35
|
description: string;
|
|
36
|
-
|
|
36
|
+
/**
|
|
37
37
|
* #slot
|
|
38
38
|
*/
|
|
39
|
+
defaultValue: number;
|
|
39
40
|
};
|
|
40
41
|
fetchSizeLimit: {
|
|
41
42
|
type: string;
|
|
@@ -53,5 +54,10 @@ declare function configSchemaF(pluginManager: PluginManager): import("@jbrowse/c
|
|
|
53
54
|
defaultValue: string;
|
|
54
55
|
contextVariable: string[];
|
|
55
56
|
};
|
|
57
|
+
jexlFilters: {
|
|
58
|
+
type: string;
|
|
59
|
+
description: string;
|
|
60
|
+
defaultValue: never[];
|
|
61
|
+
};
|
|
56
62
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>, undefined>>, undefined>>;
|
|
57
63
|
export default configSchemaF;
|
|
@@ -67,9 +67,7 @@ export default function SNPCoverageConfigFactory(pluginManager: PluginManager):
|
|
|
67
67
|
description: string;
|
|
68
68
|
};
|
|
69
69
|
height: {
|
|
70
|
-
type: string;
|
|
71
|
-
* #slot
|
|
72
|
-
*/
|
|
70
|
+
type: string;
|
|
73
71
|
defaultValue: number;
|
|
74
72
|
description: string;
|
|
75
73
|
};
|
|
@@ -79,4 +77,9 @@ export default function SNPCoverageConfigFactory(pluginManager: PluginManager):
|
|
|
79
77
|
defaultValue: string;
|
|
80
78
|
contextVariable: string[];
|
|
81
79
|
};
|
|
80
|
+
jexlFilters: {
|
|
81
|
+
type: string;
|
|
82
|
+
description: string;
|
|
83
|
+
defaultValue: never[];
|
|
84
|
+
};
|
|
82
85
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>, undefined>>;
|
|
@@ -92,6 +92,15 @@ declare function stateModelFactory(pluginManager: PluginManager, configSchema: A
|
|
|
92
92
|
description: string;
|
|
93
93
|
defaultValue: string;
|
|
94
94
|
contextVariable: string[];
|
|
95
|
+
}; /**
|
|
96
|
+
* #property
|
|
97
|
+
*/
|
|
98
|
+
jexlFilters: {
|
|
99
|
+
type: string;
|
|
100
|
+
description: string; /**
|
|
101
|
+
* #property
|
|
102
|
+
*/
|
|
103
|
+
defaultValue: never[];
|
|
95
104
|
};
|
|
96
105
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
97
106
|
} & {
|
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;
|
|
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.renderSoftClipping = void 0;
|
|
4
4
|
const configuration_1 = require("@jbrowse/core/configuration");
|
|
5
5
|
const util_1 = require("@jbrowse/core/util");
|
|
6
|
+
// locals
|
|
7
|
+
const MismatchParser_1 = require("../MismatchParser");
|
|
6
8
|
const util_2 = require("./util");
|
|
7
9
|
function renderSoftClipping({ ctx, feat, renderArgs, config, theme, colorForBase, canvasWidth, }) {
|
|
8
10
|
const { feature, topPx, heightPx } = feat;
|
|
@@ -17,19 +19,16 @@ function renderSoftClipping({ ctx, feat, renderArgs, config, theme, colorForBase
|
|
|
17
19
|
return;
|
|
18
20
|
}
|
|
19
21
|
const heightLim = charHeight - 2;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
return;
|
|
31
|
-
}
|
|
32
|
-
const s0 = start + k;
|
|
22
|
+
const CIGAR = (0, MismatchParser_1.parseCigar)(feature.get('CIGAR'));
|
|
23
|
+
let seqOffset = 0;
|
|
24
|
+
let refOffset = 0;
|
|
25
|
+
for (let i = 0; i < CIGAR.length; i += 2) {
|
|
26
|
+
const op = CIGAR[i + 1];
|
|
27
|
+
const len = +CIGAR[i];
|
|
28
|
+
if (op === 'S') {
|
|
29
|
+
for (let k = 0; k < len; k++) {
|
|
30
|
+
const base = seq[seqOffset + k];
|
|
31
|
+
const s0 = feature.get('start') - (i === 0 ? len : 0) + refOffset + k;
|
|
33
32
|
const [leftPx, rightPx] = (0, util_1.bpSpanPx)(s0, s0 + 1, region, bpPerPx);
|
|
34
33
|
const widthPx = Math.max(minFeatWidth, rightPx - leftPx);
|
|
35
34
|
// Black accounts for IUPAC ambiguity code bases such as N that
|
|
@@ -42,6 +41,23 @@ function renderSoftClipping({ ctx, feat, renderArgs, config, theme, colorForBase
|
|
|
42
41
|
ctx.fillText(base, leftPx + (widthPx - charWidth) / 2 + 1, topPx + heightPx);
|
|
43
42
|
}
|
|
44
43
|
}
|
|
44
|
+
seqOffset += len;
|
|
45
|
+
}
|
|
46
|
+
if (op === 'N') {
|
|
47
|
+
refOffset += len;
|
|
48
|
+
}
|
|
49
|
+
if (op === 'M' || op === '=' || op === 'X') {
|
|
50
|
+
refOffset += len;
|
|
51
|
+
seqOffset += len;
|
|
52
|
+
}
|
|
53
|
+
if (op === 'H') {
|
|
54
|
+
// do nothing
|
|
55
|
+
}
|
|
56
|
+
if (op === 'D') {
|
|
57
|
+
refOffset += len;
|
|
58
|
+
}
|
|
59
|
+
if (op === 'I') {
|
|
60
|
+
seqOffset += len;
|
|
45
61
|
}
|
|
46
62
|
}
|
|
47
63
|
}
|
|
@@ -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;
|
|
@@ -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({
|
|
@@ -25,7 +25,9 @@ export default function configModelFactory(pm: PluginManager): import("@jbrowse/
|
|
|
25
25
|
type: string;
|
|
26
26
|
description: string;
|
|
27
27
|
defaultValue: number;
|
|
28
|
-
};
|
|
28
|
+
}; /**
|
|
29
|
+
* #slot
|
|
30
|
+
*/
|
|
29
31
|
fetchSizeLimit: {
|
|
30
32
|
type: string;
|
|
31
33
|
defaultValue: number;
|
|
@@ -42,4 +44,9 @@ export default function configModelFactory(pm: PluginManager): import("@jbrowse/
|
|
|
42
44
|
defaultValue: string;
|
|
43
45
|
contextVariable: string[];
|
|
44
46
|
};
|
|
47
|
+
jexlFilters: {
|
|
48
|
+
type: string;
|
|
49
|
+
description: string;
|
|
50
|
+
defaultValue: never[];
|
|
51
|
+
};
|
|
45
52
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>, undefined>>;
|
|
@@ -97,6 +97,11 @@ export declare function SharedLinearPileupDisplayMixin(configSchema: AnyConfigur
|
|
|
97
97
|
defaultValue: string;
|
|
98
98
|
contextVariable: string[];
|
|
99
99
|
};
|
|
100
|
+
jexlFilters: {
|
|
101
|
+
type: string;
|
|
102
|
+
description: string;
|
|
103
|
+
defaultValue: never[];
|
|
104
|
+
};
|
|
100
105
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
101
106
|
} & {
|
|
102
107
|
/**
|
|
@@ -247,22 +252,19 @@ export declare function SharedLinearPileupDisplayMixin(configSchema: AnyConfigur
|
|
|
247
252
|
} & {
|
|
248
253
|
readonly renderDelay: number;
|
|
249
254
|
readonly TooltipComponent: import("react").FC<any>;
|
|
250
|
-
readonly selectedFeatureId: string | undefined;
|
|
251
|
-
* #action
|
|
252
|
-
*/
|
|
255
|
+
readonly selectedFeatureId: string | undefined;
|
|
253
256
|
readonly DisplayMessageComponent: import("react").FC<any> | undefined;
|
|
254
257
|
} & {
|
|
255
258
|
readonly features: import("@jbrowse/core/util/compositeMap").default<string, Feature>;
|
|
256
259
|
readonly featureUnderMouse: Feature | undefined;
|
|
257
260
|
getFeatureOverlapping(blockKey: string, x: number, y: number): string | undefined;
|
|
258
|
-
getFeatureByID(blockKey: string, id: string): [number, number, number, number] | undefined;
|
|
259
|
-
* #action
|
|
260
|
-
*/
|
|
261
|
+
getFeatureByID(blockKey: string, id: string): [number, number, number, number] | undefined;
|
|
261
262
|
searchFeatureByID(id: string): [number, number, number, number] | undefined;
|
|
262
263
|
} & {
|
|
263
264
|
addBlock(key: string, block: import("@jbrowse/core/util/blockTypes").BaseBlock): void;
|
|
264
265
|
deleteBlock(key: string): void;
|
|
265
266
|
selectFeature(feature: Feature): void;
|
|
267
|
+
navToFeature(feature: Feature): void;
|
|
266
268
|
clearFeatureSelection(): void;
|
|
267
269
|
setFeatureIdUnderMouse(feature?: string | undefined): void;
|
|
268
270
|
setContextMenuFeature(feature?: Feature | undefined): void;
|
|
@@ -511,6 +513,11 @@ export declare function SharedLinearPileupDisplayMixin(configSchema: AnyConfigur
|
|
|
511
513
|
defaultValue: string;
|
|
512
514
|
contextVariable: string[];
|
|
513
515
|
};
|
|
516
|
+
jexlFilters: {
|
|
517
|
+
type: string;
|
|
518
|
+
description: string;
|
|
519
|
+
defaultValue: never[];
|
|
520
|
+
};
|
|
514
521
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
515
522
|
}>> & import("mobx-state-tree/dist/internal").NonEmptyObject & import("mobx-state-tree")._NotCustomized, {
|
|
516
523
|
type: string;
|
|
@@ -36,7 +36,9 @@ declare function configSchemaF(pluginManager: PluginManager): import("@jbrowse/c
|
|
|
36
36
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
37
37
|
maxFeatureScreenDensity: {
|
|
38
38
|
type: string;
|
|
39
|
-
description: string;
|
|
39
|
+
description: string; /**
|
|
40
|
+
* #slot
|
|
41
|
+
*/
|
|
40
42
|
defaultValue: number;
|
|
41
43
|
};
|
|
42
44
|
fetchSizeLimit: {
|
|
@@ -48,12 +50,19 @@ declare function configSchemaF(pluginManager: PluginManager): import("@jbrowse/c
|
|
|
48
50
|
type: string;
|
|
49
51
|
defaultValue: number;
|
|
50
52
|
description: string;
|
|
51
|
-
};
|
|
53
|
+
}; /**
|
|
54
|
+
* #slot
|
|
55
|
+
*/
|
|
52
56
|
mouseover: {
|
|
53
57
|
type: string;
|
|
54
58
|
description: string;
|
|
55
59
|
defaultValue: string;
|
|
56
60
|
contextVariable: string[];
|
|
57
61
|
};
|
|
62
|
+
jexlFilters: {
|
|
63
|
+
type: string;
|
|
64
|
+
description: string;
|
|
65
|
+
defaultValue: never[];
|
|
66
|
+
};
|
|
58
67
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>, undefined>>, undefined>>;
|
|
59
68
|
export default configSchemaF;
|
|
@@ -92,6 +92,11 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
92
92
|
defaultValue: string;
|
|
93
93
|
contextVariable: string[];
|
|
94
94
|
};
|
|
95
|
+
jexlFilters: {
|
|
96
|
+
type: string;
|
|
97
|
+
description: string;
|
|
98
|
+
defaultValue: never[];
|
|
99
|
+
};
|
|
95
100
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
96
101
|
} & {
|
|
97
102
|
configuration: AnyConfigurationSchemaType;
|
|
@@ -234,9 +239,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
234
239
|
readonly DisplayMessageComponent: import("react").FC<any> | undefined;
|
|
235
240
|
} & {
|
|
236
241
|
readonly features: import("@jbrowse/core/util/compositeMap").default<string, import("@jbrowse/core/util").Feature>;
|
|
237
|
-
readonly featureUnderMouse: import("@jbrowse/core/util").Feature | undefined;
|
|
238
|
-
* #getter
|
|
239
|
-
*/
|
|
242
|
+
readonly featureUnderMouse: import("@jbrowse/core/util").Feature | undefined;
|
|
240
243
|
getFeatureOverlapping(blockKey: string, x: number, y: number): string | undefined;
|
|
241
244
|
getFeatureByID(blockKey: string, id: string): [number, number, number, number] | undefined;
|
|
242
245
|
searchFeatureByID(id: string): [number, number, number, number] | undefined;
|
|
@@ -244,10 +247,9 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
244
247
|
addBlock(key: string, block: import("@jbrowse/core/util/blockTypes").BaseBlock): void;
|
|
245
248
|
deleteBlock(key: string): void;
|
|
246
249
|
selectFeature(feature: import("@jbrowse/core/util").Feature): void;
|
|
250
|
+
navToFeature(feature: import("@jbrowse/core/util").Feature): void;
|
|
247
251
|
clearFeatureSelection(): void;
|
|
248
|
-
setFeatureIdUnderMouse(feature?: string | undefined): void;
|
|
249
|
-
* #method
|
|
250
|
-
*/
|
|
252
|
+
setFeatureIdUnderMouse(feature?: string | undefined): void;
|
|
251
253
|
setContextMenuFeature(feature?: import("@jbrowse/core/util").Feature | undefined): void;
|
|
252
254
|
} & {
|
|
253
255
|
reload(): Promise<void>;
|
|
@@ -60,5 +60,10 @@ declare function configSchemaF(pluginManager: PluginManager): import("@jbrowse/c
|
|
|
60
60
|
defaultValue: string;
|
|
61
61
|
contextVariable: string[];
|
|
62
62
|
};
|
|
63
|
+
jexlFilters: {
|
|
64
|
+
type: string;
|
|
65
|
+
description: string;
|
|
66
|
+
defaultValue: never[];
|
|
67
|
+
};
|
|
63
68
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>, undefined>>, undefined>>;
|
|
64
69
|
export default configSchemaF;
|
|
@@ -103,9 +103,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
103
103
|
regionCannotBeRendered(): null;
|
|
104
104
|
} & {
|
|
105
105
|
setMessage(arg?: string | undefined): void;
|
|
106
|
-
setError(error?: unknown): void;
|
|
107
|
-
* #getter
|
|
108
|
-
*/
|
|
106
|
+
setError(error?: unknown): void;
|
|
109
107
|
setRpcDriverName(rpcDriverName: string): void;
|
|
110
108
|
reload(): void;
|
|
111
109
|
} & {
|
|
@@ -33,9 +33,10 @@ declare function configSchemaF(pluginManager: PluginManager): import("@jbrowse/c
|
|
|
33
33
|
maxFeatureScreenDensity: {
|
|
34
34
|
type: string;
|
|
35
35
|
description: string;
|
|
36
|
-
|
|
36
|
+
/**
|
|
37
37
|
* #slot
|
|
38
38
|
*/
|
|
39
|
+
defaultValue: number;
|
|
39
40
|
};
|
|
40
41
|
fetchSizeLimit: {
|
|
41
42
|
type: string;
|
|
@@ -53,5 +54,10 @@ declare function configSchemaF(pluginManager: PluginManager): import("@jbrowse/c
|
|
|
53
54
|
defaultValue: string;
|
|
54
55
|
contextVariable: string[];
|
|
55
56
|
};
|
|
57
|
+
jexlFilters: {
|
|
58
|
+
type: string;
|
|
59
|
+
description: string;
|
|
60
|
+
defaultValue: never[];
|
|
61
|
+
};
|
|
56
62
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>, undefined>>, undefined>>;
|
|
57
63
|
export default configSchemaF;
|
|
@@ -67,9 +67,7 @@ export default function SNPCoverageConfigFactory(pluginManager: PluginManager):
|
|
|
67
67
|
description: string;
|
|
68
68
|
};
|
|
69
69
|
height: {
|
|
70
|
-
type: string;
|
|
71
|
-
* #slot
|
|
72
|
-
*/
|
|
70
|
+
type: string;
|
|
73
71
|
defaultValue: number;
|
|
74
72
|
description: string;
|
|
75
73
|
};
|
|
@@ -79,4 +77,9 @@ export default function SNPCoverageConfigFactory(pluginManager: PluginManager):
|
|
|
79
77
|
defaultValue: string;
|
|
80
78
|
contextVariable: string[];
|
|
81
79
|
};
|
|
80
|
+
jexlFilters: {
|
|
81
|
+
type: string;
|
|
82
|
+
description: string;
|
|
83
|
+
defaultValue: never[];
|
|
84
|
+
};
|
|
82
85
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>, undefined>>;
|
|
@@ -92,6 +92,15 @@ declare function stateModelFactory(pluginManager: PluginManager, configSchema: A
|
|
|
92
92
|
description: string;
|
|
93
93
|
defaultValue: string;
|
|
94
94
|
contextVariable: string[];
|
|
95
|
+
}; /**
|
|
96
|
+
* #property
|
|
97
|
+
*/
|
|
98
|
+
jexlFilters: {
|
|
99
|
+
type: string;
|
|
100
|
+
description: string; /**
|
|
101
|
+
* #property
|
|
102
|
+
*/
|
|
103
|
+
defaultValue: never[];
|
|
95
104
|
};
|
|
96
105
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
97
106
|
} & {
|
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
|
+
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { readConfObject, } from '@jbrowse/core/configuration';
|
|
2
2
|
import { bpSpanPx } from '@jbrowse/core/util';
|
|
3
|
+
// locals
|
|
4
|
+
import { parseCigar } from '../MismatchParser';
|
|
3
5
|
import { fillRect, getCharWidthHeight } from './util';
|
|
4
6
|
export function renderSoftClipping({ ctx, feat, renderArgs, config, theme, colorForBase, canvasWidth, }) {
|
|
5
7
|
const { feature, topPx, heightPx } = feat;
|
|
@@ -14,19 +16,16 @@ export function renderSoftClipping({ ctx, feat, renderArgs, config, theme, color
|
|
|
14
16
|
return;
|
|
15
17
|
}
|
|
16
18
|
const heightLim = charHeight - 2;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
return;
|
|
28
|
-
}
|
|
29
|
-
const s0 = start + k;
|
|
19
|
+
const CIGAR = parseCigar(feature.get('CIGAR'));
|
|
20
|
+
let seqOffset = 0;
|
|
21
|
+
let refOffset = 0;
|
|
22
|
+
for (let i = 0; i < CIGAR.length; i += 2) {
|
|
23
|
+
const op = CIGAR[i + 1];
|
|
24
|
+
const len = +CIGAR[i];
|
|
25
|
+
if (op === 'S') {
|
|
26
|
+
for (let k = 0; k < len; k++) {
|
|
27
|
+
const base = seq[seqOffset + k];
|
|
28
|
+
const s0 = feature.get('start') - (i === 0 ? len : 0) + refOffset + k;
|
|
30
29
|
const [leftPx, rightPx] = bpSpanPx(s0, s0 + 1, region, bpPerPx);
|
|
31
30
|
const widthPx = Math.max(minFeatWidth, rightPx - leftPx);
|
|
32
31
|
// Black accounts for IUPAC ambiguity code bases such as N that
|
|
@@ -39,6 +38,23 @@ export function renderSoftClipping({ ctx, feat, renderArgs, config, theme, color
|
|
|
39
38
|
ctx.fillText(base, leftPx + (widthPx - charWidth) / 2 + 1, topPx + heightPx);
|
|
40
39
|
}
|
|
41
40
|
}
|
|
41
|
+
seqOffset += len;
|
|
42
|
+
}
|
|
43
|
+
if (op === 'N') {
|
|
44
|
+
refOffset += len;
|
|
45
|
+
}
|
|
46
|
+
if (op === 'M' || op === '=' || op === 'X') {
|
|
47
|
+
refOffset += len;
|
|
48
|
+
seqOffset += len;
|
|
49
|
+
}
|
|
50
|
+
if (op === 'H') {
|
|
51
|
+
// do nothing
|
|
52
|
+
}
|
|
53
|
+
if (op === 'D') {
|
|
54
|
+
refOffset += len;
|
|
55
|
+
}
|
|
56
|
+
if (op === 'I') {
|
|
57
|
+
seqOffset += len;
|
|
42
58
|
}
|
|
43
59
|
}
|
|
44
60
|
}
|
|
@@ -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.11.
|
|
3
|
+
"version": "2.11.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": "511048cb6965f0bf624c96de244e7fd47fce17d6"
|
|
67
67
|
}
|