@jbrowse/plugin-hic 3.7.0 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/HicAdapter/HicAdapter.d.ts +9 -0
- package/esm/HicAdapter/HicAdapter.js +33 -2
- package/esm/HicAdapter/HicFilehandle.js +1 -0
- package/esm/HicAdapter/configSchema.d.ts +2 -2
- package/esm/HicAdapter/index.js +2 -2
- package/esm/HicRenderer/HicRenderer.d.ts +7 -36
- package/esm/HicRenderer/HicRenderer.js +19 -26
- package/esm/HicRenderer/components/HicColorLegend.d.ts +6 -0
- package/esm/HicRenderer/components/HicColorLegend.js +52 -0
- package/esm/HicRenderer/components/HicRendering.d.ts +1 -8
- package/esm/HicRenderer/components/HicRendering.js +3 -8
- package/esm/HicRenderer/configSchema.d.ts +2 -2
- package/esm/HicRenderer/index.js +4 -4
- package/esm/HicRenderer/makeImageData.d.ts +9 -2
- package/esm/HicRenderer/makeImageData.js +83 -58
- package/esm/HicRenderer/types.d.ts +7 -0
- package/esm/HicRenderer/types.js +1 -0
- package/esm/HicTrack/configSchema.d.ts +16 -11
- package/esm/HicTrack/index.js +1 -1
- package/esm/LinearHicDisplay/afterAttach.d.ts +2 -0
- package/esm/LinearHicDisplay/afterAttach.js +111 -0
- package/esm/LinearHicDisplay/components/BaseDisplayComponent.d.ts +2 -0
- package/esm/LinearHicDisplay/components/BaseDisplayComponent.js +1 -0
- package/esm/LinearHicDisplay/components/HicSVGColorLegend.d.ts +7 -0
- package/esm/LinearHicDisplay/components/HicSVGColorLegend.js +60 -0
- package/esm/LinearHicDisplay/components/ReactComponent.d.ts +5 -0
- package/esm/LinearHicDisplay/components/ReactComponent.js +83 -0
- package/esm/LinearHicDisplay/configSchema.d.ts +9 -4
- package/esm/LinearHicDisplay/configSchema.js +5 -0
- package/esm/LinearHicDisplay/index.js +4 -4
- package/esm/LinearHicDisplay/model.d.ts +180 -235
- package/esm/LinearHicDisplay/model.js +71 -34
- package/esm/LinearHicDisplay/renderSvg.d.ts +3 -0
- package/esm/LinearHicDisplay/renderSvg.js +32 -0
- package/esm/index.js +6 -9
- package/package.json +27 -32
- package/dist/GuessAdapter/index.d.ts +0 -2
- package/dist/GuessAdapter/index.js +0 -23
- package/dist/HicAdapter/HicAdapter.d.ts +0 -27
- package/dist/HicAdapter/HicAdapter.js +0 -63
- package/dist/HicAdapter/HicFilehandle.d.ts +0 -10
- package/dist/HicAdapter/HicFilehandle.js +0 -16
- package/dist/HicAdapter/configSchema.d.ts +0 -15
- package/dist/HicAdapter/configSchema.js +0 -32
- package/dist/HicAdapter/index.d.ts +0 -2
- package/dist/HicAdapter/index.js +0 -49
- package/dist/HicRenderer/HicRenderer.d.ts +0 -54
- package/dist/HicRenderer/HicRenderer.js +0 -87
- package/dist/HicRenderer/components/HicRendering.d.ts +0 -9
- package/dist/HicRenderer/components/HicRendering.js +0 -11
- package/dist/HicRenderer/configSchema.d.ts +0 -19
- package/dist/HicRenderer/configSchema.js +0 -23
- package/dist/HicRenderer/index.d.ts +0 -2
- package/dist/HicRenderer/index.js +0 -17
- package/dist/HicRenderer/makeImageData.d.ts +0 -11
- package/dist/HicRenderer/makeImageData.js +0 -81
- package/dist/HicRenderer/viridis.d.ts +0 -2
- package/dist/HicRenderer/viridis.js +0 -18
- package/dist/HicTrack/configSchema.d.ts +0 -80
- package/dist/HicTrack/configSchema.js +0 -9
- package/dist/HicTrack/index.d.ts +0 -2
- package/dist/HicTrack/index.js +0 -20
- package/dist/LinearHicDisplay/configSchema.d.ts +0 -35
- package/dist/LinearHicDisplay/configSchema.js +0 -14
- package/dist/LinearHicDisplay/index.d.ts +0 -2
- package/dist/LinearHicDisplay/index.js +0 -24
- package/dist/LinearHicDisplay/model.d.ts +0 -359
- package/dist/LinearHicDisplay/model.js +0 -205
- package/dist/index.d.ts +0 -7
- package/dist/index.js +0 -33
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.makeImageData = makeImageData;
|
|
7
|
-
const configuration_1 = require("@jbrowse/core/configuration");
|
|
8
|
-
const dataAdapterCache_1 = require("@jbrowse/core/data_adapters/dataAdapterCache");
|
|
9
|
-
const util_1 = require("@jbrowse/core/util");
|
|
10
|
-
const colord_1 = require("@jbrowse/core/util/colord");
|
|
11
|
-
const stopToken_1 = require("@jbrowse/core/util/stopToken");
|
|
12
|
-
const d3_interpolate_1 = require("@mui/x-charts-vendor/d3-interpolate");
|
|
13
|
-
const d3_scale_1 = require("@mui/x-charts-vendor/d3-scale");
|
|
14
|
-
const viridis_1 = __importDefault(require("./viridis"));
|
|
15
|
-
async function makeImageData(ctx, props) {
|
|
16
|
-
const { features, config, bpPerPx, stopToken, resolution, sessionId, adapterConfig, useLogScale, colorScheme, regions, pluginManager, yScalar, } = props;
|
|
17
|
-
const { statusCallback = () => { } } = props;
|
|
18
|
-
statusCallback('Drawing Hi-C matrix');
|
|
19
|
-
const region = regions[0];
|
|
20
|
-
const { dataAdapter } = await (0, dataAdapterCache_1.getAdapter)(pluginManager, sessionId, adapterConfig);
|
|
21
|
-
const res = await dataAdapter.getResolution(bpPerPx / resolution);
|
|
22
|
-
const width = (region.end - region.start) / bpPerPx;
|
|
23
|
-
const w = res / (bpPerPx * Math.sqrt(2));
|
|
24
|
-
const baseColor = (0, colord_1.colord)((0, configuration_1.readConfObject)(config, 'baseColor'));
|
|
25
|
-
const offset = Math.floor(region.start / res);
|
|
26
|
-
if (features.length) {
|
|
27
|
-
let maxScore = 0;
|
|
28
|
-
let minBin = 0;
|
|
29
|
-
let maxBin = 0;
|
|
30
|
-
(0, stopToken_1.checkStopToken)(stopToken);
|
|
31
|
-
for (const { bin1, bin2, counts } of features) {
|
|
32
|
-
maxScore = Math.max(counts, maxScore);
|
|
33
|
-
minBin = Math.min(Math.min(bin1, bin2), minBin);
|
|
34
|
-
maxBin = Math.max(Math.max(bin1, bin2), maxBin);
|
|
35
|
-
}
|
|
36
|
-
(0, stopToken_1.checkStopToken)(stopToken);
|
|
37
|
-
const colorSchemes = {
|
|
38
|
-
juicebox: ['rgba(0,0,0,0)', 'red'],
|
|
39
|
-
fall: (0, d3_interpolate_1.interpolateRgbBasis)([
|
|
40
|
-
'rgb(255, 255, 255)',
|
|
41
|
-
'rgb(255, 255, 204)',
|
|
42
|
-
'rgb(255, 237, 160)',
|
|
43
|
-
'rgb(254, 217, 118)',
|
|
44
|
-
'rgb(254, 178, 76)',
|
|
45
|
-
'rgb(253, 141, 60)',
|
|
46
|
-
'rgb(252, 78, 42)',
|
|
47
|
-
'rgb(227, 26, 28)',
|
|
48
|
-
'rgb(189, 0, 38)',
|
|
49
|
-
'rgb(128, 0, 38)',
|
|
50
|
-
'rgb(0, 0, 0)',
|
|
51
|
-
]),
|
|
52
|
-
viridis: viridis_1.default,
|
|
53
|
-
};
|
|
54
|
-
const m = useLogScale ? maxScore : maxScore / 20;
|
|
55
|
-
const x1 = colorSchemes[colorScheme] || colorSchemes.juicebox;
|
|
56
|
-
const scale = useLogScale
|
|
57
|
-
? (0, d3_scale_1.scaleSequentialLog)(x1).domain([1, m])
|
|
58
|
-
: (0, d3_scale_1.scaleSequential)(x1).domain([0, m]);
|
|
59
|
-
if (yScalar) {
|
|
60
|
-
ctx.scale(1, yScalar);
|
|
61
|
-
}
|
|
62
|
-
ctx.save();
|
|
63
|
-
if (region.reversed === true) {
|
|
64
|
-
ctx.scale(-1, 1);
|
|
65
|
-
ctx.translate(-width, 0);
|
|
66
|
-
}
|
|
67
|
-
ctx.rotate(-Math.PI / 4);
|
|
68
|
-
(0, util_1.forEachWithStopTokenCheck)(features, stopToken, ({ bin1, bin2, counts }) => {
|
|
69
|
-
ctx.fillStyle = (0, configuration_1.readConfObject)(config, 'color', {
|
|
70
|
-
count: counts,
|
|
71
|
-
maxScore,
|
|
72
|
-
baseColor,
|
|
73
|
-
scale,
|
|
74
|
-
useLogScale,
|
|
75
|
-
});
|
|
76
|
-
ctx.fillRect((bin1 - offset) * w, (bin2 - offset) * w, w, w);
|
|
77
|
-
});
|
|
78
|
-
ctx.restore();
|
|
79
|
-
}
|
|
80
|
-
return undefined;
|
|
81
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
function colors(specifier) {
|
|
4
|
-
const n = (specifier.length / 6) | 0;
|
|
5
|
-
const colors = new Array(n);
|
|
6
|
-
let i = 0;
|
|
7
|
-
while (i < n) {
|
|
8
|
-
colors[i] = `#${specifier.slice(i * 6, ++i * 6)}`;
|
|
9
|
-
}
|
|
10
|
-
return colors;
|
|
11
|
-
}
|
|
12
|
-
function ramp(range) {
|
|
13
|
-
const n = range.length;
|
|
14
|
-
return function (t) {
|
|
15
|
-
return range[Math.max(0, Math.min(n - 1, Math.floor(t * n)))];
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
exports.default = ramp(colors('44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725'));
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
|
-
declare const configSchema: (pluginManager: PluginManager) => import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
3
|
-
name: {
|
|
4
|
-
description: string;
|
|
5
|
-
type: string;
|
|
6
|
-
defaultValue: string;
|
|
7
|
-
};
|
|
8
|
-
assemblyNames: {
|
|
9
|
-
description: string;
|
|
10
|
-
type: string;
|
|
11
|
-
defaultValue: string[];
|
|
12
|
-
};
|
|
13
|
-
description: {
|
|
14
|
-
description: string;
|
|
15
|
-
type: string;
|
|
16
|
-
defaultValue: string;
|
|
17
|
-
};
|
|
18
|
-
category: {
|
|
19
|
-
description: string;
|
|
20
|
-
type: string;
|
|
21
|
-
defaultValue: never[];
|
|
22
|
-
};
|
|
23
|
-
metadata: {
|
|
24
|
-
type: string;
|
|
25
|
-
description: string;
|
|
26
|
-
defaultValue: {};
|
|
27
|
-
};
|
|
28
|
-
adapter: import("mobx-state-tree").IAnyModelType;
|
|
29
|
-
textSearching: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
30
|
-
indexingAttributes: {
|
|
31
|
-
type: string;
|
|
32
|
-
description: string;
|
|
33
|
-
defaultValue: string[];
|
|
34
|
-
};
|
|
35
|
-
indexingFeatureTypesToExclude: {
|
|
36
|
-
type: string;
|
|
37
|
-
description: string;
|
|
38
|
-
defaultValue: string[];
|
|
39
|
-
};
|
|
40
|
-
textSearchAdapter: import("mobx-state-tree").IAnyModelType;
|
|
41
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
42
|
-
displays: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyModelType>;
|
|
43
|
-
formatDetails: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
44
|
-
feature: {
|
|
45
|
-
type: string;
|
|
46
|
-
description: string;
|
|
47
|
-
defaultValue: {};
|
|
48
|
-
contextVariable: string[];
|
|
49
|
-
};
|
|
50
|
-
subfeatures: {
|
|
51
|
-
type: string;
|
|
52
|
-
description: string;
|
|
53
|
-
defaultValue: {};
|
|
54
|
-
contextVariable: string[];
|
|
55
|
-
};
|
|
56
|
-
depth: {
|
|
57
|
-
type: string;
|
|
58
|
-
defaultValue: number;
|
|
59
|
-
description: string;
|
|
60
|
-
};
|
|
61
|
-
maxDepth: {
|
|
62
|
-
type: string;
|
|
63
|
-
defaultValue: number;
|
|
64
|
-
description: string;
|
|
65
|
-
};
|
|
66
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
67
|
-
formatAbout: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
68
|
-
config: {
|
|
69
|
-
type: string;
|
|
70
|
-
description: string;
|
|
71
|
-
defaultValue: {};
|
|
72
|
-
contextVariable: string[];
|
|
73
|
-
};
|
|
74
|
-
hideUris: {
|
|
75
|
-
type: string;
|
|
76
|
-
defaultValue: boolean;
|
|
77
|
-
};
|
|
78
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
79
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "trackId">>, undefined>>;
|
|
80
|
-
export default configSchema;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const configuration_1 = require("@jbrowse/core/configuration");
|
|
4
|
-
const pluggableElementTypes_1 = require("@jbrowse/core/pluggableElementTypes");
|
|
5
|
-
function x() { }
|
|
6
|
-
const configSchema = (pluginManager) => (0, configuration_1.ConfigurationSchema)('HicTrack', {}, {
|
|
7
|
-
baseConfiguration: (0, pluggableElementTypes_1.createBaseTrackConfig)(pluginManager),
|
|
8
|
-
});
|
|
9
|
-
exports.default = configSchema;
|
package/dist/HicTrack/index.d.ts
DELETED
package/dist/HicTrack/index.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.default = HicTrackF;
|
|
7
|
-
const TrackType_1 = __importDefault(require("@jbrowse/core/pluggableElementTypes/TrackType"));
|
|
8
|
-
const models_1 = require("@jbrowse/core/pluggableElementTypes/models");
|
|
9
|
-
const configSchema_1 = __importDefault(require("./configSchema"));
|
|
10
|
-
function HicTrackF(pluginManager) {
|
|
11
|
-
pluginManager.addTrackType(() => {
|
|
12
|
-
const configSchema = (0, configSchema_1.default)(pluginManager);
|
|
13
|
-
return new TrackType_1.default({
|
|
14
|
-
name: 'HicTrack',
|
|
15
|
-
displayName: 'Hi-C track',
|
|
16
|
-
configSchema,
|
|
17
|
-
stateModel: (0, models_1.createBaseTrackModel)(pluginManager, 'HicTrack', configSchema),
|
|
18
|
-
});
|
|
19
|
-
});
|
|
20
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
|
-
import type { Instance } from 'mobx-state-tree';
|
|
3
|
-
declare const HicTrackConfigFactory: (pluginManager: PluginManager) => import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
4
|
-
renderer: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
|
|
5
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
6
|
-
maxFeatureScreenDensity: {
|
|
7
|
-
type: string;
|
|
8
|
-
description: string;
|
|
9
|
-
defaultValue: number;
|
|
10
|
-
};
|
|
11
|
-
fetchSizeLimit: {
|
|
12
|
-
type: string;
|
|
13
|
-
defaultValue: number;
|
|
14
|
-
description: string;
|
|
15
|
-
};
|
|
16
|
-
height: {
|
|
17
|
-
type: string;
|
|
18
|
-
defaultValue: number;
|
|
19
|
-
description: string;
|
|
20
|
-
};
|
|
21
|
-
mouseover: {
|
|
22
|
-
type: string;
|
|
23
|
-
description: string;
|
|
24
|
-
defaultValue: string;
|
|
25
|
-
contextVariable: string[];
|
|
26
|
-
};
|
|
27
|
-
jexlFilters: {
|
|
28
|
-
type: string;
|
|
29
|
-
description: string;
|
|
30
|
-
defaultValue: never[];
|
|
31
|
-
};
|
|
32
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>, undefined>>;
|
|
33
|
-
export type HicTrackConfigModel = ReturnType<typeof HicTrackConfigFactory>;
|
|
34
|
-
export type HicTrackConfig = Instance<HicTrackConfigModel>;
|
|
35
|
-
export default HicTrackConfigFactory;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const configuration_1 = require("@jbrowse/core/configuration");
|
|
4
|
-
const plugin_linear_genome_view_1 = require("@jbrowse/plugin-linear-genome-view");
|
|
5
|
-
function x() { }
|
|
6
|
-
const HicTrackConfigFactory = (pluginManager) => {
|
|
7
|
-
return (0, configuration_1.ConfigurationSchema)('LinearHicDisplay', {
|
|
8
|
-
renderer: pluginManager.getRendererType('HicRenderer').configSchema,
|
|
9
|
-
}, {
|
|
10
|
-
baseConfiguration: plugin_linear_genome_view_1.baseLinearDisplayConfigSchema,
|
|
11
|
-
explicitlyTyped: true,
|
|
12
|
-
});
|
|
13
|
-
};
|
|
14
|
-
exports.default = HicTrackConfigFactory;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.default = LinearHicDisplayF;
|
|
7
|
-
const pluggableElementTypes_1 = require("@jbrowse/core/pluggableElementTypes");
|
|
8
|
-
const plugin_linear_genome_view_1 = require("@jbrowse/plugin-linear-genome-view");
|
|
9
|
-
const configSchema_1 = __importDefault(require("./configSchema"));
|
|
10
|
-
const model_1 = __importDefault(require("./model"));
|
|
11
|
-
function LinearHicDisplayF(pluginManager) {
|
|
12
|
-
pluginManager.addDisplayType(() => {
|
|
13
|
-
const configSchema = (0, configSchema_1.default)(pluginManager);
|
|
14
|
-
return new pluggableElementTypes_1.DisplayType({
|
|
15
|
-
name: 'LinearHicDisplay',
|
|
16
|
-
displayName: 'Hi-C contact matrix display',
|
|
17
|
-
configSchema,
|
|
18
|
-
stateModel: (0, model_1.default)(configSchema),
|
|
19
|
-
trackType: 'HicTrack',
|
|
20
|
-
viewType: 'LinearGenomeView',
|
|
21
|
-
ReactComponent: plugin_linear_genome_view_1.BaseLinearDisplayComponent,
|
|
22
|
-
});
|
|
23
|
-
});
|
|
24
|
-
}
|
|
@@ -1,359 +0,0 @@
|
|
|
1
|
-
import type { AnyConfigurationSchemaType } from '@jbrowse/core/configuration';
|
|
2
|
-
export default function stateModelFactory(configSchema: AnyConfigurationSchemaType): import("mobx-state-tree").IModelType<{
|
|
3
|
-
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
4
|
-
type: import("mobx-state-tree").ISimpleType<string>;
|
|
5
|
-
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
6
|
-
} & {
|
|
7
|
-
heightPreConfig: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
8
|
-
} & {
|
|
9
|
-
userBpPerPxLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
10
|
-
userByteSizeLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
11
|
-
} & {
|
|
12
|
-
blockState: import("mobx-state-tree").IMapType<import("mobx-state-tree").IModelType<{
|
|
13
|
-
key: import("mobx-state-tree").ISimpleType<string>;
|
|
14
|
-
region: import("mobx-state-tree").IType<import("@jbrowse/core/util").Region, import("@jbrowse/core/util").Region, import("@jbrowse/core/util").Region>;
|
|
15
|
-
reloadFlag: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
16
|
-
isLeftEndOfDisplayedRegion: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
17
|
-
isRightEndOfDisplayedRegion: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
18
|
-
}, {
|
|
19
|
-
stopToken: string | undefined;
|
|
20
|
-
filled: boolean;
|
|
21
|
-
reactElement: React.ReactElement | undefined;
|
|
22
|
-
features: Map<string, import("@jbrowse/core/util").Feature> | undefined;
|
|
23
|
-
layout: any;
|
|
24
|
-
status: string;
|
|
25
|
-
error: unknown;
|
|
26
|
-
message: string | undefined;
|
|
27
|
-
maxHeightReached: boolean;
|
|
28
|
-
ReactComponent: ({ model, }: {
|
|
29
|
-
model: {
|
|
30
|
-
error?: unknown;
|
|
31
|
-
reload: () => void;
|
|
32
|
-
message: React.ReactNode;
|
|
33
|
-
filled?: boolean;
|
|
34
|
-
status?: string;
|
|
35
|
-
reactElement?: React.ReactElement;
|
|
36
|
-
};
|
|
37
|
-
}) => import("react/jsx-runtime").JSX.Element | undefined;
|
|
38
|
-
renderProps: any;
|
|
39
|
-
} & {
|
|
40
|
-
doReload(): void;
|
|
41
|
-
afterAttach(): void;
|
|
42
|
-
setStatus(message: string): void;
|
|
43
|
-
setLoading(newStopToken: string): void;
|
|
44
|
-
setMessage(messageText: string): void;
|
|
45
|
-
setRendered(props: import("@jbrowse/plugin-linear-genome-view/src/BaseLinearDisplay/models/serverSideRenderedBlock").RenderedProps | undefined): void;
|
|
46
|
-
setError(error: unknown): void;
|
|
47
|
-
reload(): void;
|
|
48
|
-
beforeDestroy(): void;
|
|
49
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
50
|
-
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
51
|
-
maxFeatureScreenDensity: {
|
|
52
|
-
type: string;
|
|
53
|
-
description: string;
|
|
54
|
-
defaultValue: number;
|
|
55
|
-
};
|
|
56
|
-
fetchSizeLimit: {
|
|
57
|
-
type: string;
|
|
58
|
-
defaultValue: number;
|
|
59
|
-
description: string;
|
|
60
|
-
};
|
|
61
|
-
height: {
|
|
62
|
-
type: string;
|
|
63
|
-
defaultValue: number;
|
|
64
|
-
description: string;
|
|
65
|
-
};
|
|
66
|
-
mouseover: {
|
|
67
|
-
type: string;
|
|
68
|
-
description: string;
|
|
69
|
-
defaultValue: string;
|
|
70
|
-
contextVariable: string[];
|
|
71
|
-
};
|
|
72
|
-
jexlFilters: {
|
|
73
|
-
type: string;
|
|
74
|
-
description: string;
|
|
75
|
-
defaultValue: never[];
|
|
76
|
-
};
|
|
77
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
78
|
-
} & {
|
|
79
|
-
type: import("mobx-state-tree").ISimpleType<"LinearHicDisplay">;
|
|
80
|
-
configuration: AnyConfigurationSchemaType;
|
|
81
|
-
resolution: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
82
|
-
useLogScale: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
83
|
-
colorScheme: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
84
|
-
activeNormalization: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
85
|
-
mode: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
86
|
-
}, {
|
|
87
|
-
rendererTypeName: string;
|
|
88
|
-
error: unknown;
|
|
89
|
-
message: string | undefined;
|
|
90
|
-
} & {
|
|
91
|
-
readonly RenderingComponent: React.FC<{
|
|
92
|
-
model: {
|
|
93
|
-
id: string;
|
|
94
|
-
type: string;
|
|
95
|
-
rpcDriverName: string | undefined;
|
|
96
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
97
|
-
rendererTypeName: string;
|
|
98
|
-
error: unknown;
|
|
99
|
-
message: string | undefined;
|
|
100
|
-
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
101
|
-
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
102
|
-
type: import("mobx-state-tree").ISimpleType<string>;
|
|
103
|
-
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
104
|
-
}, {
|
|
105
|
-
rendererTypeName: string;
|
|
106
|
-
error: unknown;
|
|
107
|
-
message: string | undefined;
|
|
108
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
109
|
-
onHorizontalScroll?: () => void;
|
|
110
|
-
blockState?: Record<string, any>;
|
|
111
|
-
}>;
|
|
112
|
-
readonly DisplayBlurb: React.FC<{
|
|
113
|
-
model: {
|
|
114
|
-
id: string;
|
|
115
|
-
type: string;
|
|
116
|
-
rpcDriverName: string | undefined;
|
|
117
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
118
|
-
rendererTypeName: string;
|
|
119
|
-
error: unknown;
|
|
120
|
-
message: string | undefined;
|
|
121
|
-
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
122
|
-
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
123
|
-
type: import("mobx-state-tree").ISimpleType<string>;
|
|
124
|
-
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
125
|
-
}, {
|
|
126
|
-
rendererTypeName: string;
|
|
127
|
-
error: unknown;
|
|
128
|
-
message: string | undefined;
|
|
129
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
130
|
-
}> | null;
|
|
131
|
-
readonly adapterConfig: any;
|
|
132
|
-
readonly parentTrack: any;
|
|
133
|
-
renderProps(): any;
|
|
134
|
-
readonly rendererType: import("@jbrowse/core/pluggableElementTypes").RendererType;
|
|
135
|
-
readonly DisplayMessageComponent: undefined | React.FC<any>;
|
|
136
|
-
trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
137
|
-
readonly viewMenuActions: import("@jbrowse/core/ui").MenuItem[];
|
|
138
|
-
regionCannotBeRendered(): null;
|
|
139
|
-
} & {
|
|
140
|
-
setMessage(arg?: string): void;
|
|
141
|
-
setError(error?: unknown): void;
|
|
142
|
-
setRpcDriverName(rpcDriverName: string): void;
|
|
143
|
-
reload(): void;
|
|
144
|
-
} & {
|
|
145
|
-
scrollTop: number;
|
|
146
|
-
} & {
|
|
147
|
-
readonly height: number;
|
|
148
|
-
} & {
|
|
149
|
-
setScrollTop(scrollTop: number): void;
|
|
150
|
-
setHeight(displayHeight: number): number;
|
|
151
|
-
resizeHeight(distance: number): number;
|
|
152
|
-
} & {
|
|
153
|
-
featureDensityStatsP: undefined | Promise<import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats>;
|
|
154
|
-
featureDensityStats: undefined | import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats;
|
|
155
|
-
currStatsBpPerPx: number;
|
|
156
|
-
} & {
|
|
157
|
-
readonly currentBytesRequested: number;
|
|
158
|
-
readonly currentFeatureScreenDensity: number;
|
|
159
|
-
readonly maxFeatureScreenDensity: any;
|
|
160
|
-
readonly featureDensityStatsReady: boolean;
|
|
161
|
-
readonly maxAllowableBytes: number;
|
|
162
|
-
} & {
|
|
163
|
-
afterAttach(): void;
|
|
164
|
-
} & {
|
|
165
|
-
setCurrStatsBpPerPx(n: number): void;
|
|
166
|
-
setFeatureDensityStatsLimit(stats?: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats): void;
|
|
167
|
-
getFeatureDensityStats(): Promise<import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats>;
|
|
168
|
-
setFeatureDensityStatsP(arg: any): void;
|
|
169
|
-
setFeatureDensityStats(featureDensityStats?: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats): void;
|
|
170
|
-
clearFeatureDensityStats(): void;
|
|
171
|
-
} & {
|
|
172
|
-
readonly regionTooLarge: boolean;
|
|
173
|
-
readonly regionTooLargeReason: string;
|
|
174
|
-
} & {
|
|
175
|
-
readonly statsReadyAndRegionNotTooLarge: boolean;
|
|
176
|
-
regionCannotBeRenderedText(_region: import("@jbrowse/core/util").Region): "" | "Force load to see features";
|
|
177
|
-
regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): import("react/jsx-runtime").JSX.Element | null;
|
|
178
|
-
} & {
|
|
179
|
-
mouseoverExtraInformation: string | undefined;
|
|
180
|
-
featureIdUnderMouse: undefined | string;
|
|
181
|
-
contextMenuFeature: undefined | import("@jbrowse/core/util").Feature;
|
|
182
|
-
} & {
|
|
183
|
-
readonly DisplayMessageComponent: undefined | React.FC<any>;
|
|
184
|
-
readonly blockType: "staticBlocks" | "dynamicBlocks";
|
|
185
|
-
readonly blockDefinitions: import("@jbrowse/core/util/blockTypes").BlockSet;
|
|
186
|
-
} & {
|
|
187
|
-
readonly renderDelay: number;
|
|
188
|
-
readonly TooltipComponent: import("@jbrowse/core/util").AnyReactComponentType;
|
|
189
|
-
readonly selectedFeatureId: string | undefined;
|
|
190
|
-
copyInfoToClipboard(feature: import("@jbrowse/core/util").Feature): void;
|
|
191
|
-
} & {
|
|
192
|
-
readonly features: import("@jbrowse/core/util/compositeMap").default<string, import("@jbrowse/core/util").Feature>;
|
|
193
|
-
readonly featureUnderMouse: import("@jbrowse/core/util").Feature | undefined;
|
|
194
|
-
readonly layoutFeatures: import("@jbrowse/core/util/compositeMap").default<string, [number, number, number, number] | [number, number, number, number, {
|
|
195
|
-
label?: string;
|
|
196
|
-
description?: string;
|
|
197
|
-
refName: string;
|
|
198
|
-
}]>;
|
|
199
|
-
getFeatureOverlapping(blockKey: string, x: number, y: number): string | undefined;
|
|
200
|
-
getFeatureByID(blockKey: string, id: string): ([number, number, number, number] | [number, number, number, number, {
|
|
201
|
-
label?: string;
|
|
202
|
-
description?: string;
|
|
203
|
-
refName: string;
|
|
204
|
-
}]) | undefined;
|
|
205
|
-
searchFeatureByID(id: string): ([number, number, number, number] | [number, number, number, number, {
|
|
206
|
-
label?: string;
|
|
207
|
-
description?: string;
|
|
208
|
-
refName: string;
|
|
209
|
-
}]) | undefined;
|
|
210
|
-
} & {
|
|
211
|
-
addBlock(key: string, block: import("@jbrowse/core/util/blockTypes").BaseBlock): void;
|
|
212
|
-
deleteBlock(key: string): void;
|
|
213
|
-
selectFeature(feature: import("@jbrowse/core/util").Feature): void;
|
|
214
|
-
navToFeature(feature: import("@jbrowse/core/util").Feature): void;
|
|
215
|
-
clearFeatureSelection(): void;
|
|
216
|
-
setFeatureIdUnderMouse(feature?: string): void;
|
|
217
|
-
setContextMenuFeature(feature?: import("@jbrowse/core/util").Feature): void;
|
|
218
|
-
setMouseoverExtraInformation(extra?: string): void;
|
|
219
|
-
} & {
|
|
220
|
-
reload(): Promise<void>;
|
|
221
|
-
} & {
|
|
222
|
-
trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
223
|
-
contextMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
224
|
-
renderProps(): any;
|
|
225
|
-
} & {
|
|
226
|
-
renderSvg(opts: import("@jbrowse/plugin-linear-genome-view").ExportSvgDisplayOptions): Promise<import("react/jsx-runtime").JSX.Element>;
|
|
227
|
-
afterAttach(): void;
|
|
228
|
-
} & {
|
|
229
|
-
availableNormalizations: string[] | undefined;
|
|
230
|
-
} & {
|
|
231
|
-
readonly blockType: string;
|
|
232
|
-
readonly rendererTypeName: string;
|
|
233
|
-
renderProps(): any;
|
|
234
|
-
} & {
|
|
235
|
-
setResolution(n: number): void;
|
|
236
|
-
setUseLogScale(f: boolean): void;
|
|
237
|
-
setColorScheme(f?: string): void;
|
|
238
|
-
setActiveNormalization(f: string): void;
|
|
239
|
-
setAvailableNormalizations(f: string[]): void;
|
|
240
|
-
setMode(arg: string): void;
|
|
241
|
-
} & {
|
|
242
|
-
trackMenuItems(): (import("@jbrowse/core/ui").MenuDivider | import("@jbrowse/core/ui").MenuSubHeader | import("@jbrowse/core/ui").NormalMenuItem | import("@jbrowse/core/ui").CheckboxMenuItem | import("@jbrowse/core/ui").RadioMenuItem | import("@jbrowse/core/ui").SubMenuItem | {
|
|
243
|
-
label: string;
|
|
244
|
-
type: string;
|
|
245
|
-
checked: boolean;
|
|
246
|
-
onClick: () => void;
|
|
247
|
-
subMenu?: undefined;
|
|
248
|
-
} | {
|
|
249
|
-
label: string;
|
|
250
|
-
type: string;
|
|
251
|
-
subMenu: {
|
|
252
|
-
label: string;
|
|
253
|
-
type: string;
|
|
254
|
-
checked: boolean;
|
|
255
|
-
onClick: () => void;
|
|
256
|
-
}[];
|
|
257
|
-
checked?: undefined;
|
|
258
|
-
onClick?: undefined;
|
|
259
|
-
} | {
|
|
260
|
-
label: string;
|
|
261
|
-
subMenu: {
|
|
262
|
-
label: string;
|
|
263
|
-
type: string;
|
|
264
|
-
checked: boolean;
|
|
265
|
-
onClick: () => void;
|
|
266
|
-
}[];
|
|
267
|
-
type?: undefined;
|
|
268
|
-
checked?: undefined;
|
|
269
|
-
onClick?: undefined;
|
|
270
|
-
})[];
|
|
271
|
-
} & {
|
|
272
|
-
afterAttach(): void;
|
|
273
|
-
}, {
|
|
274
|
-
type: string;
|
|
275
|
-
} & Partial<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
|
|
276
|
-
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
277
|
-
type: import("mobx-state-tree").ISimpleType<string>;
|
|
278
|
-
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
279
|
-
} & {
|
|
280
|
-
heightPreConfig: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
281
|
-
} & {
|
|
282
|
-
userBpPerPxLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
283
|
-
userByteSizeLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
284
|
-
} & {
|
|
285
|
-
blockState: import("mobx-state-tree").IMapType<import("mobx-state-tree").IModelType<{
|
|
286
|
-
key: import("mobx-state-tree").ISimpleType<string>;
|
|
287
|
-
region: import("mobx-state-tree").IType<import("@jbrowse/core/util").Region, import("@jbrowse/core/util").Region, import("@jbrowse/core/util").Region>;
|
|
288
|
-
reloadFlag: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
289
|
-
isLeftEndOfDisplayedRegion: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
290
|
-
isRightEndOfDisplayedRegion: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
291
|
-
}, {
|
|
292
|
-
stopToken: string | undefined;
|
|
293
|
-
filled: boolean;
|
|
294
|
-
reactElement: React.ReactElement | undefined;
|
|
295
|
-
features: Map<string, import("@jbrowse/core/util").Feature> | undefined;
|
|
296
|
-
layout: any;
|
|
297
|
-
status: string;
|
|
298
|
-
error: unknown;
|
|
299
|
-
message: string | undefined;
|
|
300
|
-
maxHeightReached: boolean;
|
|
301
|
-
ReactComponent: ({ model, }: {
|
|
302
|
-
model: {
|
|
303
|
-
error?: unknown;
|
|
304
|
-
reload: () => void;
|
|
305
|
-
message: React.ReactNode;
|
|
306
|
-
filled?: boolean;
|
|
307
|
-
status?: string;
|
|
308
|
-
reactElement?: React.ReactElement;
|
|
309
|
-
};
|
|
310
|
-
}) => import("react/jsx-runtime").JSX.Element | undefined;
|
|
311
|
-
renderProps: any;
|
|
312
|
-
} & {
|
|
313
|
-
doReload(): void;
|
|
314
|
-
afterAttach(): void;
|
|
315
|
-
setStatus(message: string): void;
|
|
316
|
-
setLoading(newStopToken: string): void;
|
|
317
|
-
setMessage(messageText: string): void;
|
|
318
|
-
setRendered(props: import("@jbrowse/plugin-linear-genome-view/src/BaseLinearDisplay/models/serverSideRenderedBlock").RenderedProps | undefined): void;
|
|
319
|
-
setError(error: unknown): void;
|
|
320
|
-
reload(): void;
|
|
321
|
-
beforeDestroy(): void;
|
|
322
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
323
|
-
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
324
|
-
maxFeatureScreenDensity: {
|
|
325
|
-
type: string;
|
|
326
|
-
description: string;
|
|
327
|
-
defaultValue: number;
|
|
328
|
-
};
|
|
329
|
-
fetchSizeLimit: {
|
|
330
|
-
type: string;
|
|
331
|
-
defaultValue: number;
|
|
332
|
-
description: string;
|
|
333
|
-
};
|
|
334
|
-
height: {
|
|
335
|
-
type: string;
|
|
336
|
-
defaultValue: number;
|
|
337
|
-
description: string;
|
|
338
|
-
};
|
|
339
|
-
mouseover: {
|
|
340
|
-
type: string;
|
|
341
|
-
description: string;
|
|
342
|
-
defaultValue: string;
|
|
343
|
-
contextVariable: string[];
|
|
344
|
-
};
|
|
345
|
-
jexlFilters: {
|
|
346
|
-
type: string;
|
|
347
|
-
description: string;
|
|
348
|
-
defaultValue: never[];
|
|
349
|
-
};
|
|
350
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
351
|
-
}>> & import("mobx-state-tree/dist/internal").NonEmptyObject & import("mobx-state-tree")._NotCustomized, {
|
|
352
|
-
type: string;
|
|
353
|
-
id: string;
|
|
354
|
-
configuration: import("mobx-state-tree").ModelSnapshotType<Record<string, any>>;
|
|
355
|
-
rpcDriverName: string | undefined;
|
|
356
|
-
heightPreConfig: number | undefined;
|
|
357
|
-
userBpPerPxLimit: number | undefined;
|
|
358
|
-
userByteSizeLimit: number | undefined;
|
|
359
|
-
} & import("mobx-state-tree")._NotCustomized>;
|