molstar 3.1.0 → 3.2.0
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/LICENSE +20 -20
- package/README.md +194 -194
- package/build/viewer/embedded.html +43 -43
- package/build/viewer/index.html +106 -106
- package/build/viewer/molstar.js +1 -1
- package/lib/apps/docking-viewer/index.html +36 -36
- package/lib/apps/viewer/embedded.html +43 -43
- package/lib/apps/viewer/index.html +106 -106
- package/lib/commonjs/mol-geo/geometry/cylinders/cylinders.d.ts +2 -2
- package/lib/commonjs/mol-geo/geometry/lines/lines.d.ts +0 -1
- package/lib/commonjs/mol-geo/geometry/points/points.d.ts +1 -1
- package/lib/commonjs/mol-io/reader/cif/schema/mmcif.d.ts +22 -0
- package/lib/commonjs/mol-io/reader/cif/schema/mmcif.js +22 -0
- package/lib/commonjs/mol-model/structure/export/categories/atom_site.js +68 -1
- package/lib/commonjs/mol-model/structure/structure/util/superposition-sifts-mapping.d.ts +21 -0
- package/lib/commonjs/mol-model/structure/structure/util/{superposition-db-mapping.js → superposition-sifts-mapping.js} +40 -20
- package/lib/commonjs/mol-model-formats/structure/basic/schema.d.ts +5 -0
- package/lib/commonjs/mol-model-formats/structure/common/property.d.ts +5 -2
- package/lib/commonjs/mol-model-formats/structure/common/property.js +20 -8
- package/lib/commonjs/mol-model-formats/structure/property/bonds/index-pair.d.ts +1 -0
- package/lib/commonjs/mol-model-formats/structure/property/bonds/index-pair.js +2 -1
- package/lib/commonjs/mol-model-props/sequence/{best-database-mapping.d.ts → sifts-mapping.d.ts} +7 -5
- package/lib/commonjs/mol-model-props/sequence/{best-database-mapping.js → sifts-mapping.js} +29 -26
- package/lib/{mol-model-props/sequence/themes/best-database-mapping.d.ts → commonjs/mol-model-props/sequence/themes/sifts-mapping.d.ts} +5 -5
- package/lib/commonjs/mol-model-props/sequence/themes/{best-database-mapping.js → sifts-mapping.js} +22 -22
- package/lib/commonjs/mol-plugin/behavior/dynamic/custom-props/sequence/{best-database-mapping.d.ts → sifts-mapping.d.ts} +1 -1
- package/lib/commonjs/mol-plugin/behavior/dynamic/custom-props/sequence/{best-database-mapping.js → sifts-mapping.js} +11 -11
- package/lib/commonjs/mol-plugin/behavior/dynamic/custom-props.d.ts +1 -1
- package/lib/commonjs/mol-plugin/behavior/dynamic/custom-props.js +2 -2
- package/lib/commonjs/mol-plugin/behavior/dynamic/volume-streaming/model.d.ts +2 -3
- package/lib/commonjs/mol-plugin-ui/structure/superposition.d.ts +4 -1
- package/lib/commonjs/mol-plugin-ui/structure/superposition.js +66 -30
- package/lib/commonjs/mol-script/language/builder.d.ts +1 -0
- package/lib/examples/alpha-orbitals/index.html +61 -61
- package/lib/examples/basic-wrapper/index.html +137 -137
- package/lib/examples/lighting/index.html +88 -88
- package/lib/examples/proteopedia-wrapper/index.html +236 -236
- package/lib/mol-geo/geometry/cylinders/cylinders.d.ts +2 -2
- package/lib/mol-geo/geometry/lines/lines.d.ts +0 -1
- package/lib/mol-geo/geometry/points/points.d.ts +1 -1
- package/lib/mol-io/reader/cif/schema/mmcif.d.ts +22 -0
- package/lib/mol-io/reader/cif/schema/mmcif.js +22 -0
- package/lib/mol-model/structure/export/categories/atom_site.js +68 -1
- package/lib/mol-model/structure/structure/util/superposition-sifts-mapping.d.ts +21 -0
- package/lib/mol-model/structure/structure/util/{superposition-db-mapping.js → superposition-sifts-mapping.js} +38 -18
- package/lib/mol-model-formats/structure/basic/schema.d.ts +5 -0
- package/lib/mol-model-formats/structure/common/property.d.ts +5 -2
- package/lib/mol-model-formats/structure/common/property.js +20 -8
- package/lib/mol-model-formats/structure/property/bonds/index-pair.d.ts +1 -0
- package/lib/mol-model-formats/structure/property/bonds/index-pair.js +2 -1
- package/lib/mol-model-props/sequence/{best-database-mapping.d.ts → sifts-mapping.d.ts} +7 -5
- package/lib/mol-model-props/sequence/{best-database-mapping.js → sifts-mapping.js} +28 -25
- package/lib/{commonjs/mol-model-props/sequence/themes/best-database-mapping.d.ts → mol-model-props/sequence/themes/sifts-mapping.d.ts} +5 -5
- package/lib/mol-model-props/sequence/themes/{best-database-mapping.js → sifts-mapping.js} +19 -19
- package/lib/mol-plugin/behavior/dynamic/custom-props/sequence/{best-database-mapping.d.ts → sifts-mapping.d.ts} +1 -1
- package/lib/mol-plugin/behavior/dynamic/custom-props/sequence/{best-database-mapping.js → sifts-mapping.js} +8 -8
- package/lib/mol-plugin/behavior/dynamic/custom-props.d.ts +1 -1
- package/lib/mol-plugin/behavior/dynamic/custom-props.js +1 -1
- package/lib/mol-plugin/behavior/dynamic/volume-streaming/model.d.ts +2 -3
- package/lib/mol-plugin/version.js +2 -2
- package/lib/mol-plugin-ui/skin/base/base.scss +32 -32
- package/lib/mol-plugin-ui/skin/base/components/controls-base.scss +333 -333
- package/lib/mol-plugin-ui/skin/base/components/controls.scss +418 -418
- package/lib/mol-plugin-ui/skin/base/components/help.scss +27 -27
- package/lib/mol-plugin-ui/skin/base/components/line-graph.scss +67 -67
- package/lib/mol-plugin-ui/skin/base/components/log.scss +100 -100
- package/lib/mol-plugin-ui/skin/base/components/misc.scss +643 -643
- package/lib/mol-plugin-ui/skin/base/components/sequence.scss +125 -125
- package/lib/mol-plugin-ui/skin/base/components/slider.scss +165 -165
- package/lib/mol-plugin-ui/skin/base/components/tasks.scss +99 -99
- package/lib/mol-plugin-ui/skin/base/components/toast.scss +83 -83
- package/lib/mol-plugin-ui/skin/base/components/transformer.scss +163 -163
- package/lib/mol-plugin-ui/skin/base/components/viewport.scss +127 -127
- package/lib/mol-plugin-ui/skin/base/layout/common.scss +71 -71
- package/lib/mol-plugin-ui/skin/base/layout/controls-landscape.scss +89 -89
- package/lib/mol-plugin-ui/skin/base/layout/controls-outside.scss +98 -98
- package/lib/mol-plugin-ui/skin/base/layout/controls-portrait.scss +108 -108
- package/lib/mol-plugin-ui/skin/base/layout.scss +40 -40
- package/lib/mol-plugin-ui/skin/base/logo.scss +12 -12
- package/lib/mol-plugin-ui/skin/base/normalize.scss +209 -209
- package/lib/mol-plugin-ui/skin/base/ui.scss +40 -40
- package/lib/mol-plugin-ui/skin/base/variables.scss +85 -85
- package/lib/mol-plugin-ui/skin/blue.scss +1 -1
- package/lib/mol-plugin-ui/skin/colors/blue.scss +23 -23
- package/lib/mol-plugin-ui/skin/colors/dark.scss +23 -23
- package/lib/mol-plugin-ui/skin/colors/light.scss +29 -29
- package/lib/mol-plugin-ui/skin/dark.scss +1 -1
- package/lib/mol-plugin-ui/skin/light.scss +1 -1
- package/lib/mol-plugin-ui/structure/superposition.d.ts +4 -1
- package/lib/mol-plugin-ui/structure/superposition.js +66 -30
- package/lib/mol-script/language/builder.d.ts +1 -0
- package/package.json +160 -160
- package/lib/commonjs/mol-model/structure/structure/util/superposition-db-mapping.d.ts +0 -13
- package/lib/mol-model/structure/structure/util/superposition-db-mapping.d.ts +0 -13
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
6
6
|
*/
|
|
7
7
|
import { CifWriter } from '../../../../mol-io/writer/cif';
|
|
8
|
+
import { MmcifFormat } from '../../../../mol-model-formats/structure/mmcif';
|
|
9
|
+
import { SIFTSMapping } from '../../../../mol-model-props/sequence/sifts-mapping';
|
|
8
10
|
import { StructureProperties as P } from '../../structure';
|
|
9
11
|
var CifField = CifWriter.Field;
|
|
10
12
|
var E = CifWriter.Encodings;
|
|
@@ -22,6 +24,61 @@ function atom_site_auth_asym_id(e) {
|
|
|
22
24
|
return l;
|
|
23
25
|
return l + suffix;
|
|
24
26
|
}
|
|
27
|
+
var atom_site_pdbx_label_index = {
|
|
28
|
+
shouldInclude: function (s) {
|
|
29
|
+
var _a;
|
|
30
|
+
return !!((_a = s.atom_site) === null || _a === void 0 ? void 0 : _a.pdbx_label_index.isDefined);
|
|
31
|
+
},
|
|
32
|
+
value: function (e, d) {
|
|
33
|
+
var srcIndex = d.sourceIndex.value(e.element);
|
|
34
|
+
return d.atom_site.pdbx_label_index.value(srcIndex);
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
var SIFTS = {
|
|
38
|
+
shouldInclude: function (s) {
|
|
39
|
+
return SIFTSMapping.isAvailable(s.structure.models[0]);
|
|
40
|
+
},
|
|
41
|
+
pdbx_sifts_xref_db_name: {
|
|
42
|
+
value: function (e, d) {
|
|
43
|
+
var srcIndex = d.sourceIndex.value(e.element);
|
|
44
|
+
return d.atom_site.pdbx_sifts_xref_db_name.value(srcIndex);
|
|
45
|
+
},
|
|
46
|
+
valueKind: function (e, d) {
|
|
47
|
+
var srcIndex = d.sourceIndex.value(e.element);
|
|
48
|
+
return d.atom_site.pdbx_sifts_xref_db_name.valueKind(srcIndex);
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
pdbx_sifts_xref_db_acc: {
|
|
52
|
+
value: function (e, d) {
|
|
53
|
+
var srcIndex = d.sourceIndex.value(e.element);
|
|
54
|
+
return d.atom_site.pdbx_sifts_xref_db_acc.value(srcIndex);
|
|
55
|
+
},
|
|
56
|
+
valueKind: function (e, d) {
|
|
57
|
+
var srcIndex = d.sourceIndex.value(e.element);
|
|
58
|
+
return d.atom_site.pdbx_sifts_xref_db_acc.valueKind(srcIndex);
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
pdbx_sifts_xref_db_num: {
|
|
62
|
+
value: function (e, d) {
|
|
63
|
+
var srcIndex = d.sourceIndex.value(e.element);
|
|
64
|
+
return d.atom_site.pdbx_sifts_xref_db_num.value(srcIndex);
|
|
65
|
+
},
|
|
66
|
+
valueKind: function (e, d) {
|
|
67
|
+
var srcIndex = d.sourceIndex.value(e.element);
|
|
68
|
+
return d.atom_site.pdbx_sifts_xref_db_num.valueKind(srcIndex);
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
pdbx_sifts_xref_db_res: {
|
|
72
|
+
value: function (e, d) {
|
|
73
|
+
var srcIndex = d.sourceIndex.value(e.element);
|
|
74
|
+
return d.atom_site.pdbx_sifts_xref_db_res.value(srcIndex);
|
|
75
|
+
},
|
|
76
|
+
valueKind: function (e, d) {
|
|
77
|
+
var srcIndex = d.sourceIndex.value(e.element);
|
|
78
|
+
return d.atom_site.pdbx_sifts_xref_db_res.valueKind(srcIndex);
|
|
79
|
+
},
|
|
80
|
+
}
|
|
81
|
+
};
|
|
25
82
|
var atom_site_fields = function () { return CifWriter.fields()
|
|
26
83
|
.str('group_PDB', P.residue.group_PDB)
|
|
27
84
|
.index('id')
|
|
@@ -53,6 +110,12 @@ var atom_site_fields = function () { return CifWriter.fields()
|
|
|
53
110
|
.int('auth_seq_id', P.residue.auth_seq_id, { encoder: E.deltaRLE })
|
|
54
111
|
.str('auth_asym_id', atom_site_auth_asym_id)
|
|
55
112
|
.int('pdbx_PDB_model_num', P.unit.model_num, { encoder: E.deltaRLE })
|
|
113
|
+
.int('pdbx_label_index', atom_site_pdbx_label_index.value, { shouldInclude: atom_site_pdbx_label_index.shouldInclude })
|
|
114
|
+
// SIFTS
|
|
115
|
+
.str('pdbx_sifts_xref_db_name', SIFTS.pdbx_sifts_xref_db_name.value, { shouldInclude: SIFTS.shouldInclude, valueKind: SIFTS.pdbx_sifts_xref_db_name.valueKind })
|
|
116
|
+
.str('pdbx_sifts_xref_db_acc', SIFTS.pdbx_sifts_xref_db_acc.value, { shouldInclude: SIFTS.shouldInclude, valueKind: SIFTS.pdbx_sifts_xref_db_acc.valueKind })
|
|
117
|
+
.str('pdbx_sifts_xref_db_num', SIFTS.pdbx_sifts_xref_db_num.value, { shouldInclude: SIFTS.shouldInclude, valueKind: SIFTS.pdbx_sifts_xref_db_num.valueKind })
|
|
118
|
+
.str('pdbx_sifts_xref_db_res', SIFTS.pdbx_sifts_xref_db_res.value, { shouldInclude: SIFTS.shouldInclude, valueKind: SIFTS.pdbx_sifts_xref_db_res.valueKind })
|
|
56
119
|
// .str('operator_name', P.unit.operator_name, {
|
|
57
120
|
// shouldInclude: structure => structure.units.some(u => !u.conformation.operator.isIdentity)
|
|
58
121
|
// })
|
|
@@ -64,7 +127,11 @@ export var _atom_site = {
|
|
|
64
127
|
return {
|
|
65
128
|
fields: atom_site_fields(),
|
|
66
129
|
source: structures.map(function (s) { return ({
|
|
67
|
-
data:
|
|
130
|
+
data: {
|
|
131
|
+
structure: s,
|
|
132
|
+
sourceIndex: s.model.atomicHierarchy.atomSourceIndex,
|
|
133
|
+
atom_site: MmcifFormat.is(s.model.sourceData) ? s.model.sourceData.data.db.atom_site : void 0
|
|
134
|
+
},
|
|
68
135
|
rowCount: s.elementCount,
|
|
69
136
|
keys: function () { return s.elementLocations(); }
|
|
70
137
|
}); })
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2021-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
3
|
+
*
|
|
4
|
+
* @author David Sehnal <david.sehnal@gmail.com>
|
|
5
|
+
* @author Sebastian Bittrich <sebastian.bittrich@rcsb.org>
|
|
6
|
+
*/
|
|
7
|
+
import { MinimizeRmsd } from '../../../../mol-math/linear-algebra/3d/minimize-rmsd';
|
|
8
|
+
import { Structure } from '../structure';
|
|
9
|
+
export interface AlignmentResultEntry {
|
|
10
|
+
transform: MinimizeRmsd.Result;
|
|
11
|
+
pivot: number;
|
|
12
|
+
other: number;
|
|
13
|
+
}
|
|
14
|
+
export interface AlignmentResult {
|
|
15
|
+
entries: AlignmentResultEntry[];
|
|
16
|
+
zeroOverlapPairs: [number, number][];
|
|
17
|
+
failedPairs: [number, number][];
|
|
18
|
+
}
|
|
19
|
+
export declare function alignAndSuperposeWithSIFTSMapping(structures: Structure[], options?: {
|
|
20
|
+
traceOnly?: boolean;
|
|
21
|
+
}): AlignmentResult;
|
|
@@ -1,29 +1,41 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c) 2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
2
|
+
* Copyright (c) 2021-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
3
3
|
*
|
|
4
4
|
* @author David Sehnal <david.sehnal@gmail.com>
|
|
5
|
+
* @author Sebastian Bittrich <sebastian.bittrich@rcsb.org>
|
|
5
6
|
*/
|
|
6
7
|
import { Segmentation } from '../../../../mol-data/int';
|
|
7
|
-
import { Mat4 } from '../../../../mol-math/linear-algebra';
|
|
8
8
|
import { MinimizeRmsd } from '../../../../mol-math/linear-algebra/3d/minimize-rmsd';
|
|
9
|
-
import {
|
|
10
|
-
export function
|
|
9
|
+
import { SIFTSMapping } from '../../../../mol-model-props/sequence/sifts-mapping';
|
|
10
|
+
export function alignAndSuperposeWithSIFTSMapping(structures, options) {
|
|
11
|
+
var _a;
|
|
11
12
|
var indexMap = new Map();
|
|
12
13
|
for (var i = 0; i < structures.length; i++) {
|
|
13
|
-
buildIndex(structures[i], indexMap, i);
|
|
14
|
+
buildIndex(structures[i], indexMap, i, (_a = options === null || options === void 0 ? void 0 : options.traceOnly) !== null && _a !== void 0 ? _a : true);
|
|
14
15
|
}
|
|
15
16
|
var index = Array.from(indexMap.values());
|
|
16
17
|
// TODO: support non-first structure pivots
|
|
17
18
|
var pairs = findPairs(structures.length, index);
|
|
18
|
-
var
|
|
19
|
+
var zeroOverlapPairs = [];
|
|
20
|
+
var failedPairs = [];
|
|
21
|
+
var entries = [];
|
|
19
22
|
for (var _i = 0, pairs_1 = pairs; _i < pairs_1.length; _i++) {
|
|
20
23
|
var p = pairs_1[_i];
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
24
|
+
if (p.count === 0) {
|
|
25
|
+
zeroOverlapPairs.push([p.i, p.j]);
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
var _b = getPositionTables(index, p.i, p.j, p.count), a = _b[0], b = _b[1];
|
|
29
|
+
var transform = MinimizeRmsd.compute({ a: a, b: b });
|
|
30
|
+
if (Number.isNaN(transform.rmsd)) {
|
|
31
|
+
failedPairs.push([p.i, p.j]);
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
entries.push({ transform: transform, pivot: p.i, other: p.j });
|
|
35
|
+
}
|
|
36
|
+
}
|
|
25
37
|
}
|
|
26
|
-
return
|
|
38
|
+
return { entries: entries, zeroOverlapPairs: zeroOverlapPairs, failedPairs: failedPairs };
|
|
27
39
|
}
|
|
28
40
|
function getPositionTables(index, pivot, other, N) {
|
|
29
41
|
var xs = MinimizeRmsd.Positions.empty(N);
|
|
@@ -36,7 +48,6 @@ function getPositionTables(index, pivot, other, N) {
|
|
|
36
48
|
if (!a || !b)
|
|
37
49
|
continue;
|
|
38
50
|
var l = Math.min(a[2] - a[1], b[2] - b[1]);
|
|
39
|
-
// TODO: allow to use just backbone atoms?
|
|
40
51
|
// TODO: check if residue types match?
|
|
41
52
|
for (var i = 0; i < l; i++) {
|
|
42
53
|
var eI = (a[1] + i);
|
|
@@ -90,19 +101,20 @@ function findPairs(N, index) {
|
|
|
90
101
|
// }
|
|
91
102
|
return ret;
|
|
92
103
|
}
|
|
93
|
-
function buildIndex(structure, index, sI) {
|
|
104
|
+
function buildIndex(structure, index, sI, traceOnly) {
|
|
94
105
|
var _a;
|
|
95
106
|
for (var _i = 0, _b = structure.units; _i < _b.length; _i++) {
|
|
96
107
|
var unit = _b[_i];
|
|
97
108
|
if (unit.kind !== 0 /* Atomic */)
|
|
98
109
|
continue;
|
|
99
110
|
var elements = unit.elements, model = unit.model;
|
|
100
|
-
var map =
|
|
111
|
+
var map = SIFTSMapping.Provider.get(model).value;
|
|
101
112
|
if (!map)
|
|
102
113
|
return;
|
|
103
114
|
var dbName = map.dbName, accession = map.accession, num = map.num;
|
|
104
115
|
var chainsIt = Segmentation.transientSegments(unit.model.atomicHierarchy.chainAtomSegments, elements);
|
|
105
116
|
var residuesIt = Segmentation.transientSegments(unit.model.atomicHierarchy.residueAtomSegments, elements);
|
|
117
|
+
var traceElementIndex = unit.model.atomicHierarchy.derived.residue.traceElementIndex;
|
|
106
118
|
while (chainsIt.hasNext) {
|
|
107
119
|
var chainSegment = chainsIt.move();
|
|
108
120
|
residuesIt.setSegment(chainSegment);
|
|
@@ -111,8 +123,17 @@ function buildIndex(structure, index, sI) {
|
|
|
111
123
|
var rI = residueSegment.index;
|
|
112
124
|
if (!dbName[rI])
|
|
113
125
|
continue;
|
|
114
|
-
var start =
|
|
115
|
-
|
|
126
|
+
var start = void 0, end = void 0;
|
|
127
|
+
if (traceOnly) {
|
|
128
|
+
start = traceElementIndex[rI];
|
|
129
|
+
if (start === -1)
|
|
130
|
+
continue;
|
|
131
|
+
end = start + 1;
|
|
132
|
+
}
|
|
133
|
+
else {
|
|
134
|
+
start = elements[residueSegment.start];
|
|
135
|
+
end = elements[residueSegment.end - 1] + 1;
|
|
136
|
+
}
|
|
116
137
|
var key = "".concat(dbName[rI], "-").concat(accession[rI], "-").concat(num[rI]);
|
|
117
138
|
if (!index.has(key)) {
|
|
118
139
|
index.set(key, { key: key, pivots: (_a = {}, _a[sI] = [unit, start, end], _a) });
|
|
@@ -126,6 +147,5 @@ function buildIndex(structure, index, sI) {
|
|
|
126
147
|
}
|
|
127
148
|
}
|
|
128
149
|
}
|
|
129
|
-
console.log(index);
|
|
130
150
|
}
|
|
131
|
-
//# sourceMappingURL=superposition-
|
|
151
|
+
//# sourceMappingURL=superposition-sifts-mapping.js.map
|
|
@@ -125,6 +125,11 @@ export declare const BasicSchema: {
|
|
|
125
125
|
pdbx_PDB_ins_code: import("../../../mol-data/db/column").Column.Schema.Str;
|
|
126
126
|
pdbx_PDB_model_num: import("../../../mol-data/db/column").Column.Schema.Int;
|
|
127
127
|
pdbx_formal_charge: import("../../../mol-data/db/column").Column.Schema.Int;
|
|
128
|
+
pdbx_label_index: import("../../../mol-data/db/column").Column.Schema.Int;
|
|
129
|
+
pdbx_sifts_xref_db_name: import("../../../mol-data/db/column").Column.Schema.Str;
|
|
130
|
+
pdbx_sifts_xref_db_acc: import("../../../mol-data/db/column").Column.Schema.Str;
|
|
131
|
+
pdbx_sifts_xref_db_num: import("../../../mol-data/db/column").Column.Schema.Str;
|
|
132
|
+
pdbx_sifts_xref_db_res: import("../../../mol-data/db/column").Column.Schema.Str;
|
|
128
133
|
ihm_model_id: import("../../../mol-data/db/column").Column.Schema.Int;
|
|
129
134
|
};
|
|
130
135
|
ihm_sphere_obj_site: {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c) 2020 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
2
|
+
* Copyright (c) 2020-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
3
3
|
*
|
|
4
4
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
5
|
+
* @author David Sehnal <david.sehnal@gmail.com>
|
|
5
6
|
*/
|
|
6
7
|
import { Model } from '../../../mol-model/structure';
|
|
7
8
|
import { ModelFormat } from '../../format';
|
|
@@ -24,5 +25,7 @@ interface FormatPropertyProvider<T> {
|
|
|
24
25
|
delete(model: Model): void;
|
|
25
26
|
}
|
|
26
27
|
declare namespace FormatPropertyProvider {
|
|
27
|
-
function create<T>(descriptor: CustomPropertyDescriptor
|
|
28
|
+
function create<T>(descriptor: CustomPropertyDescriptor, options?: {
|
|
29
|
+
asDynamic?: boolean;
|
|
30
|
+
}): FormatPropertyProvider<T>;
|
|
28
31
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c) 2020 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
2
|
+
* Copyright (c) 2020-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
3
3
|
*
|
|
4
4
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
5
|
+
* @author David Sehnal <david.sehnal@gmail.com>
|
|
5
6
|
*/
|
|
6
7
|
var FormatRegistry = /** @class */ (function () {
|
|
7
8
|
function FormatRegistry() {
|
|
@@ -29,7 +30,7 @@ var FormatRegistry = /** @class */ (function () {
|
|
|
29
30
|
export { FormatPropertyProvider };
|
|
30
31
|
var FormatPropertyProvider;
|
|
31
32
|
(function (FormatPropertyProvider) {
|
|
32
|
-
function create(descriptor) {
|
|
33
|
+
function create(descriptor, options) {
|
|
33
34
|
var name = descriptor.name;
|
|
34
35
|
var formatRegistry = new FormatRegistry();
|
|
35
36
|
return {
|
|
@@ -39,22 +40,33 @@ var FormatPropertyProvider;
|
|
|
39
40
|
return formatRegistry.isApplicable(model);
|
|
40
41
|
},
|
|
41
42
|
get: function (model) {
|
|
42
|
-
|
|
43
|
-
|
|
43
|
+
var store = (options === null || options === void 0 ? void 0 : options.asDynamic) ? model._dynamicPropertyData : model._staticPropertyData;
|
|
44
|
+
if (store[name])
|
|
45
|
+
return store[name];
|
|
44
46
|
if (model.customProperties.has(descriptor))
|
|
45
47
|
return;
|
|
46
48
|
var obtain = formatRegistry.get(model.sourceData.kind);
|
|
47
49
|
if (!obtain)
|
|
48
50
|
return;
|
|
49
|
-
|
|
51
|
+
store[name] = obtain(model);
|
|
50
52
|
model.customProperties.add(descriptor);
|
|
51
|
-
return
|
|
53
|
+
return store[name];
|
|
52
54
|
},
|
|
53
55
|
set: function (model, value) {
|
|
54
|
-
|
|
56
|
+
if (options === null || options === void 0 ? void 0 : options.asDynamic) {
|
|
57
|
+
model._dynamicPropertyData[name] = value;
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
model._staticPropertyData[name] = value;
|
|
61
|
+
}
|
|
55
62
|
},
|
|
56
63
|
delete: function (model) {
|
|
57
|
-
|
|
64
|
+
if (options === null || options === void 0 ? void 0 : options.asDynamic) {
|
|
65
|
+
delete model._dynamicPropertyData[name];
|
|
66
|
+
}
|
|
67
|
+
else {
|
|
68
|
+
delete model._staticPropertyData[name];
|
|
69
|
+
}
|
|
58
70
|
}
|
|
59
71
|
};
|
|
60
72
|
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Copyright (c) 2019-2022 Mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
3
3
|
*
|
|
4
4
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
5
|
+
* @author David Sehnal <david.sehnal@gmail.com>
|
|
5
6
|
*/
|
|
6
7
|
import { CustomPropertyDescriptor } from '../../../../mol-model/custom-property';
|
|
7
8
|
import { IntAdjacencyGraph } from '../../../../mol-math/graph';
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Copyright (c) 2019-2022 Mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
3
3
|
*
|
|
4
4
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
5
|
+
* @author David Sehnal <david.sehnal@gmail.com>
|
|
5
6
|
*/
|
|
6
7
|
import { __assign } from "tslib";
|
|
7
8
|
import { IntAdjacencyGraph } from '../../../../mol-math/graph';
|
|
@@ -26,7 +27,7 @@ export var IndexPairBonds;
|
|
|
26
27
|
IndexPairBonds.Descriptor = {
|
|
27
28
|
name: 'index_pair_bonds',
|
|
28
29
|
};
|
|
29
|
-
IndexPairBonds.Provider = FormatPropertyProvider.create(IndexPairBonds.Descriptor);
|
|
30
|
+
IndexPairBonds.Provider = FormatPropertyProvider.create(IndexPairBonds.Descriptor, { asDynamic: true });
|
|
30
31
|
IndexPairBonds.DefaultProps = {
|
|
31
32
|
/**
|
|
32
33
|
* If negative, test using element-based threshold, otherwise distance in Angstrom.
|
|
@@ -3,17 +3,19 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @author David Sehnal <david.sehnal@gmail.com>
|
|
5
5
|
*/
|
|
6
|
+
import { Model } from '../../mol-model/structure';
|
|
6
7
|
import { StructureElement } from '../../mol-model/structure/structure';
|
|
7
8
|
import { CustomModelProperty } from '../common/custom-model-property';
|
|
8
|
-
export {
|
|
9
|
-
interface
|
|
9
|
+
export { SIFTSMapping as SIFTSMapping };
|
|
10
|
+
interface SIFTSMappingMapping {
|
|
10
11
|
readonly dbName: string[];
|
|
11
12
|
readonly accession: string[];
|
|
12
|
-
readonly num:
|
|
13
|
+
readonly num: string[];
|
|
13
14
|
readonly residue: string[];
|
|
14
15
|
}
|
|
15
|
-
declare namespace
|
|
16
|
-
const Provider: CustomModelProperty.Provider<{},
|
|
16
|
+
declare namespace SIFTSMapping {
|
|
17
|
+
const Provider: CustomModelProperty.Provider<{}, SIFTSMappingMapping>;
|
|
18
|
+
function isAvailable(model: Model): boolean;
|
|
17
19
|
function getKey(loc: StructureElement.Location): string;
|
|
18
20
|
function getLabel(loc: StructureElement.Location): string | undefined;
|
|
19
21
|
}
|
|
@@ -7,38 +7,45 @@ import { __awaiter, __generator } from "tslib";
|
|
|
7
7
|
import { MmcifFormat } from '../../mol-model-formats/structure/mmcif';
|
|
8
8
|
import { CustomPropertyDescriptor } from '../../mol-model/custom-property';
|
|
9
9
|
import { CustomModelProperty } from '../common/custom-model-property';
|
|
10
|
-
export {
|
|
11
|
-
var
|
|
12
|
-
(function (
|
|
10
|
+
export { SIFTSMapping as SIFTSMapping };
|
|
11
|
+
var SIFTSMapping;
|
|
12
|
+
(function (SIFTSMapping) {
|
|
13
13
|
var _this = this;
|
|
14
|
-
|
|
15
|
-
label: '
|
|
14
|
+
SIFTSMapping.Provider = CustomModelProperty.createProvider({
|
|
15
|
+
label: 'SIFTS Mapping',
|
|
16
16
|
descriptor: CustomPropertyDescriptor({
|
|
17
|
-
name: '
|
|
17
|
+
name: 'sifts_sequence_mapping'
|
|
18
18
|
}),
|
|
19
19
|
type: 'static',
|
|
20
20
|
defaultParams: {},
|
|
21
21
|
getParams: function () { return ({}); },
|
|
22
|
-
isApplicable: function (data) {
|
|
22
|
+
isApplicable: function (data) { return isAvailable(data); },
|
|
23
23
|
obtain: function (ctx, data) { return __awaiter(_this, void 0, void 0, function () {
|
|
24
24
|
return __generator(this, function (_a) {
|
|
25
25
|
return [2 /*return*/, { value: fromCif(data) }];
|
|
26
26
|
});
|
|
27
27
|
}); }
|
|
28
28
|
});
|
|
29
|
+
function isAvailable(model) {
|
|
30
|
+
if (!MmcifFormat.is(model.sourceData))
|
|
31
|
+
return false;
|
|
32
|
+
var _a = model.sourceData.data.db.atom_site, db_name = _a.pdbx_sifts_xref_db_name, db_acc = _a.pdbx_sifts_xref_db_acc, db_num = _a.pdbx_sifts_xref_db_num, db_res = _a.pdbx_sifts_xref_db_res;
|
|
33
|
+
return db_name.isDefined && db_acc.isDefined && db_num.isDefined && db_res.isDefined;
|
|
34
|
+
}
|
|
35
|
+
SIFTSMapping.isAvailable = isAvailable;
|
|
29
36
|
function getKey(loc) {
|
|
30
37
|
var model = loc.unit.model;
|
|
31
|
-
var data =
|
|
38
|
+
var data = SIFTSMapping.Provider.get(model).value;
|
|
32
39
|
if (!data)
|
|
33
40
|
return '';
|
|
34
41
|
var eI = loc.unit.elements[loc.element];
|
|
35
42
|
var rI = model.atomicHierarchy.residueAtomSegments.index[eI];
|
|
36
43
|
return data.accession[rI];
|
|
37
44
|
}
|
|
38
|
-
|
|
45
|
+
SIFTSMapping.getKey = getKey;
|
|
39
46
|
function getLabel(loc) {
|
|
40
47
|
var model = loc.unit.model;
|
|
41
|
-
var data =
|
|
48
|
+
var data = SIFTSMapping.Provider.get(model).value;
|
|
42
49
|
if (!data)
|
|
43
50
|
return;
|
|
44
51
|
var eI = loc.unit.elements[loc.element];
|
|
@@ -48,19 +55,15 @@ var BestDatabaseSequenceMapping;
|
|
|
48
55
|
return;
|
|
49
56
|
return "".concat(dbName, " ").concat(data.accession[rI], " ").concat(data.num[rI], " ").concat(data.residue[rI]);
|
|
50
57
|
}
|
|
51
|
-
|
|
58
|
+
SIFTSMapping.getLabel = getLabel;
|
|
52
59
|
function fromCif(model) {
|
|
53
60
|
if (!MmcifFormat.is(model.sourceData))
|
|
54
61
|
return;
|
|
55
|
-
var
|
|
56
|
-
|
|
57
|
-
var db_acc = atom_site.getField('pdbx_sifts_xref_db_acc');
|
|
58
|
-
var db_num = atom_site.getField('pdbx_sifts_xref_db_num');
|
|
59
|
-
var db_res = atom_site.getField('pdbx_sifts_xref_db_res');
|
|
60
|
-
if (!db_name || !db_acc || !db_num || !db_res)
|
|
62
|
+
var _a = model.sourceData.data.db.atom_site, db_name = _a.pdbx_sifts_xref_db_name, db_acc = _a.pdbx_sifts_xref_db_acc, db_num = _a.pdbx_sifts_xref_db_num, db_res = _a.pdbx_sifts_xref_db_res;
|
|
63
|
+
if (!db_name.isDefined || !db_acc.isDefined || !db_num.isDefined || !db_res.isDefined)
|
|
61
64
|
return;
|
|
62
65
|
var atomSourceIndex = model.atomicHierarchy.atomSourceIndex;
|
|
63
|
-
var
|
|
66
|
+
var _b = model.atomicHierarchy.residueAtomSegments, count = _b.count, residueOffsets = _b.offsets;
|
|
64
67
|
var dbName = new Array(count);
|
|
65
68
|
var accession = new Array(count);
|
|
66
69
|
var num = new Array(count);
|
|
@@ -70,16 +73,16 @@ var BestDatabaseSequenceMapping;
|
|
|
70
73
|
if (db_name.valueKind(row) !== 0 /* Present */) {
|
|
71
74
|
dbName[i] = '';
|
|
72
75
|
accession[i] = '';
|
|
73
|
-
num[i] =
|
|
76
|
+
num[i] = '';
|
|
74
77
|
residue[i] = '';
|
|
75
78
|
continue;
|
|
76
79
|
}
|
|
77
|
-
dbName[i] = db_name.
|
|
78
|
-
accession[i] = db_acc.
|
|
79
|
-
num[i] = db_num.
|
|
80
|
-
residue[i] = db_res.
|
|
80
|
+
dbName[i] = db_name.value(row);
|
|
81
|
+
accession[i] = db_acc.value(row);
|
|
82
|
+
num[i] = db_num.value(row);
|
|
83
|
+
residue[i] = db_res.value(row);
|
|
81
84
|
}
|
|
82
85
|
return { dbName: dbName, accession: accession, num: num, residue: residue };
|
|
83
86
|
}
|
|
84
|
-
})(
|
|
85
|
-
//# sourceMappingURL=
|
|
87
|
+
})(SIFTSMapping || (SIFTSMapping = {}));
|
|
88
|
+
//# sourceMappingURL=sifts-mapping.js.map
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { ColorTheme } from '../../../mol-theme/color';
|
|
7
7
|
import { ThemeDataContext } from '../../../mol-theme/theme';
|
|
8
8
|
import { ParamDefinition as PD } from '../../../mol-util/param-definition';
|
|
9
|
-
export declare const
|
|
9
|
+
export declare const SIFTSMappingColorThemeParams: {
|
|
10
10
|
palette: PD.Mapped<PD.NamedParams<PD.Normalize<{
|
|
11
11
|
maxCount: number;
|
|
12
12
|
hue: [number, number];
|
|
@@ -21,8 +21,8 @@ export declare const BestDatabaseSequenceMappingColorThemeParams: {
|
|
|
21
21
|
};
|
|
22
22
|
}>, "colors">>;
|
|
23
23
|
};
|
|
24
|
-
export declare type
|
|
25
|
-
export declare function
|
|
24
|
+
export declare type SIFTSMappingColorThemeParams = typeof SIFTSMappingColorThemeParams;
|
|
25
|
+
export declare function getSIFTSMappingColorThemeParams(ctx: ThemeDataContext): {
|
|
26
26
|
palette: PD.Mapped<PD.NamedParams<PD.Normalize<{
|
|
27
27
|
maxCount: number;
|
|
28
28
|
hue: [number, number];
|
|
@@ -37,5 +37,5 @@ export declare function getBestDatabaseSequenceMappingColorThemeParams(ctx: Them
|
|
|
37
37
|
};
|
|
38
38
|
}>, "colors">>;
|
|
39
39
|
};
|
|
40
|
-
export declare function
|
|
41
|
-
export declare const
|
|
40
|
+
export declare function SIFTSMappingColorTheme(ctx: ThemeDataContext, props: PD.Values<SIFTSMappingColorThemeParams>): ColorTheme<SIFTSMappingColorThemeParams>;
|
|
41
|
+
export declare const SIFTSMappingColorThemeProvider: ColorTheme.Provider<SIFTSMappingColorThemeParams, 'sifts-mapping'>;
|
|
@@ -8,21 +8,21 @@ import { Bond, StructureElement, Unit } from '../../../mol-model/structure';
|
|
|
8
8
|
import { Color } from '../../../mol-util/color';
|
|
9
9
|
import { getPalette, getPaletteParams } from '../../../mol-util/color/palette';
|
|
10
10
|
import { ParamDefinition as PD } from '../../../mol-util/param-definition';
|
|
11
|
-
import {
|
|
11
|
+
import { SIFTSMapping } from '../sifts-mapping';
|
|
12
12
|
var DefaultColor = Color(0xFAFAFA);
|
|
13
|
-
var Description = 'Assigns a color based on
|
|
13
|
+
var Description = 'Assigns a color based on SIFTS mapping.';
|
|
14
14
|
// same colors for same accessions
|
|
15
15
|
var globalAccessionMap = new Map();
|
|
16
|
-
export var
|
|
17
|
-
export function
|
|
18
|
-
return
|
|
16
|
+
export var SIFTSMappingColorThemeParams = __assign({}, getPaletteParams({ type: 'colors', colorList: 'set-1' }));
|
|
17
|
+
export function getSIFTSMappingColorThemeParams(ctx) {
|
|
18
|
+
return SIFTSMappingColorThemeParams; // TODO return copy
|
|
19
19
|
}
|
|
20
|
-
export function
|
|
20
|
+
export function SIFTSMappingColorTheme(ctx, props) {
|
|
21
21
|
var color;
|
|
22
22
|
if (ctx.structure) {
|
|
23
23
|
for (var _i = 0, _a = ctx.structure.models; _i < _a.length; _i++) {
|
|
24
24
|
var m = _a[_i];
|
|
25
|
-
var mapping =
|
|
25
|
+
var mapping = SIFTSMapping.Provider.get(m).value;
|
|
26
26
|
if (!mapping)
|
|
27
27
|
continue;
|
|
28
28
|
for (var _b = 0, _c = mapping.accession; _b < _c.length; _b++) {
|
|
@@ -36,7 +36,7 @@ export function BestDatabaseSequenceMappingColorTheme(ctx, props) {
|
|
|
36
36
|
var palette_1 = getPalette(globalAccessionMap.size + 1, props, { valueLabel: function (i) { return "".concat(i); } });
|
|
37
37
|
var colorMap_1 = new Map();
|
|
38
38
|
var getColor_1 = function (location) {
|
|
39
|
-
var key =
|
|
39
|
+
var key = SIFTSMapping.getKey(location);
|
|
40
40
|
if (!key)
|
|
41
41
|
return DefaultColor;
|
|
42
42
|
if (colorMap_1.has(key))
|
|
@@ -61,7 +61,7 @@ export function BestDatabaseSequenceMappingColorTheme(ctx, props) {
|
|
|
61
61
|
color = function () { return DefaultColor; };
|
|
62
62
|
}
|
|
63
63
|
return {
|
|
64
|
-
factory:
|
|
64
|
+
factory: SIFTSMappingColorTheme,
|
|
65
65
|
granularity: 'group',
|
|
66
66
|
preferSmoothing: true,
|
|
67
67
|
color: color,
|
|
@@ -69,14 +69,14 @@ export function BestDatabaseSequenceMappingColorTheme(ctx, props) {
|
|
|
69
69
|
description: Description,
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
|
-
export var
|
|
73
|
-
name: '
|
|
74
|
-
label: '
|
|
72
|
+
export var SIFTSMappingColorThemeProvider = {
|
|
73
|
+
name: 'sifts-mapping',
|
|
74
|
+
label: 'SIFTS Mapping',
|
|
75
75
|
category: "Residue Property" /* Residue */,
|
|
76
|
-
factory:
|
|
77
|
-
getParams:
|
|
78
|
-
defaultValues: PD.getDefaultValues(
|
|
79
|
-
isApplicable: function (ctx) { var _a; return !!((_a = ctx.structure) === null || _a === void 0 ? void 0 : _a.models.some(function (m) { return
|
|
76
|
+
factory: SIFTSMappingColorTheme,
|
|
77
|
+
getParams: getSIFTSMappingColorThemeParams,
|
|
78
|
+
defaultValues: PD.getDefaultValues(SIFTSMappingColorThemeParams),
|
|
79
|
+
isApplicable: function (ctx) { var _a; return !!((_a = ctx.structure) === null || _a === void 0 ? void 0 : _a.models.some(function (m) { return SIFTSMapping.Provider.isApplicable(m); })); },
|
|
80
80
|
ensureCustomProperties: {
|
|
81
81
|
attach: function (ctx, data) { return __awaiter(void 0, void 0, void 0, function () {
|
|
82
82
|
var _i, _a, m;
|
|
@@ -90,7 +90,7 @@ export var BestDatabaseSequenceMappingColorThemeProvider = {
|
|
|
90
90
|
case 1:
|
|
91
91
|
if (!(_i < _a.length)) return [3 /*break*/, 4];
|
|
92
92
|
m = _a[_i];
|
|
93
|
-
return [4 /*yield*/,
|
|
93
|
+
return [4 /*yield*/, SIFTSMapping.Provider.attach(ctx, m, void 0, true)];
|
|
94
94
|
case 2:
|
|
95
95
|
_b.sent();
|
|
96
96
|
_b.label = 3;
|
|
@@ -106,9 +106,9 @@ export var BestDatabaseSequenceMappingColorThemeProvider = {
|
|
|
106
106
|
return;
|
|
107
107
|
for (var _i = 0, _a = data.structure.models; _i < _a.length; _i++) {
|
|
108
108
|
var m = _a[_i];
|
|
109
|
-
|
|
109
|
+
SIFTSMapping.Provider.ref(m, false);
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
};
|
|
114
|
-
//# sourceMappingURL=
|
|
114
|
+
//# sourceMappingURL=sifts-mapping.js.map
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @author David Sehnal <david.sehnal@gmail.com>
|
|
5
5
|
*/
|
|
6
6
|
import { PluginBehavior } from '../../../behavior';
|
|
7
|
-
export declare const
|
|
7
|
+
export declare const SIFTSMapping: import("../../../../../mol-state/transformer").StateTransformer<PluginBehavior.Category, PluginBehavior.Behavior, {
|
|
8
8
|
autoAttach: boolean;
|
|
9
9
|
showTooltip: boolean;
|
|
10
10
|
}>;
|
|
@@ -5,15 +5,15 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { __extends } from "tslib";
|
|
7
7
|
import { OrderedSet } from '../../../../../mol-data/int';
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
8
|
+
import { SIFTSMapping as BestDatabaseSequenceMappingProp } from '../../../../../mol-model-props/sequence/sifts-mapping';
|
|
9
|
+
import { SIFTSMappingColorThemeProvider } from '../../../../../mol-model-props/sequence/themes/sifts-mapping';
|
|
10
10
|
import { StructureElement } from '../../../../../mol-model/structure';
|
|
11
11
|
import { ParamDefinition as PD } from '../../../../../mol-util/param-definition';
|
|
12
12
|
import { PluginBehavior } from '../../../behavior';
|
|
13
|
-
export var
|
|
14
|
-
name: '
|
|
13
|
+
export var SIFTSMapping = PluginBehavior.create({
|
|
14
|
+
name: 'sifts-mapping-prop',
|
|
15
15
|
category: 'custom-props',
|
|
16
|
-
display: { name: '
|
|
16
|
+
display: { name: 'SIFTS Mapping' },
|
|
17
17
|
ctor: /** @class */ (function (_super) {
|
|
18
18
|
__extends(class_1, _super);
|
|
19
19
|
function class_1() {
|
|
@@ -38,12 +38,12 @@ export var BestDatabaseSequenceMapping = PluginBehavior.create({
|
|
|
38
38
|
};
|
|
39
39
|
class_1.prototype.register = function () {
|
|
40
40
|
this.ctx.customModelProperties.register(this.provider, this.params.autoAttach);
|
|
41
|
-
this.ctx.representation.structure.themes.colorThemeRegistry.add(
|
|
41
|
+
this.ctx.representation.structure.themes.colorThemeRegistry.add(SIFTSMappingColorThemeProvider);
|
|
42
42
|
this.ctx.managers.lociLabels.addProvider(this.labelProvider);
|
|
43
43
|
};
|
|
44
44
|
class_1.prototype.unregister = function () {
|
|
45
45
|
this.ctx.customModelProperties.unregister(this.provider.descriptor.name);
|
|
46
|
-
this.ctx.representation.structure.themes.colorThemeRegistry.remove(
|
|
46
|
+
this.ctx.representation.structure.themes.colorThemeRegistry.remove(SIFTSMappingColorThemeProvider);
|
|
47
47
|
this.ctx.managers.lociLabels.removeProvider(this.labelProvider);
|
|
48
48
|
};
|
|
49
49
|
return class_1;
|
|
@@ -64,4 +64,4 @@ function bestDatabaseSequenceMappingLabel(loci) {
|
|
|
64
64
|
return BestDatabaseSequenceMappingProp.getLabel(se);
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
|
-
//# sourceMappingURL=
|
|
67
|
+
//# sourceMappingURL=sifts-mapping.js.map
|