@abi-software/mapintegratedvuer 1.19.1 → 1.20.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/dist/{ConnectivityGraph-Dke0RVKd.js → ConnectivityGraph-B2xlAebI.js} +2 -2
- package/dist/{ContentMixin-DTwXABLi.js → ContentMixin-jHFoA2A8.js} +8 -8
- package/dist/{Flatmap-Cx77Oj1E.js → Flatmap-CBB2P9Ql.js} +3 -3
- package/dist/{Iframe-TRtI4-ya.js → Iframe-BXPDKp2g.js} +2 -2
- package/dist/{MultiFlatmap-Ch6lxRgk.js → MultiFlatmap-BPUGtzDT.js} +3 -3
- package/dist/{Plot-BFA_lv4q.js → Plot-CAAiTTub.js} +2 -2
- package/dist/{Scaffold-FInSFFdY.js → Scaffold-oW-i75jl.js} +2 -2
- package/dist/{Simulation-B5nhpML1.js → Simulation-D5BM15nU.js} +2 -2
- package/dist/{index-DqMph8mt.js → index-B6Cnscja.js} +21708 -21455
- package/dist/mapintegratedvuer.js +1 -1
- package/dist/mapintegratedvuer.umd.cjs +190 -189
- package/dist/{style--VeSAQ5A.js → style-DuFTyFX4.js} +1 -1
- package/dist/style.css +1 -1
- package/package.json +15 -9
- package/src/components/viewers/CellDLViewer.vue +37 -0
- package/src/components.d.ts +1 -0
- package/src/mixins/ContentMixin.js +15 -5
- package/src/services/knowledgeMapping.js +77 -0
package/package.json
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abi-software/mapintegratedvuer",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.20.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
|
+
"engines": {
|
|
6
|
+
"node": ">=20"
|
|
7
|
+
},
|
|
5
8
|
"scripts": {
|
|
6
9
|
"serve": "vite --host --force",
|
|
7
10
|
"heroku-postbuild": "vite build",
|
|
@@ -52,14 +55,14 @@
|
|
|
52
55
|
"*.js"
|
|
53
56
|
],
|
|
54
57
|
"dependencies": {
|
|
55
|
-
"@abi-software/flatmapvuer": "1.
|
|
56
|
-
"@abi-software/map-side-bar": "
|
|
57
|
-
"@abi-software/map-utilities": "1.
|
|
58
|
-
"@abi-software/plotvuer": "1.0
|
|
59
|
-
"@abi-software/scaffoldvuer": "1.
|
|
60
|
-
"@abi-software/simulationvuer": "3.
|
|
58
|
+
"@abi-software/flatmapvuer": "1.14.0",
|
|
59
|
+
"@abi-software/map-side-bar": "2.16.0",
|
|
60
|
+
"@abi-software/map-utilities": "1.9.0",
|
|
61
|
+
"@abi-software/plotvuer": "1.1.0",
|
|
62
|
+
"@abi-software/scaffoldvuer": "1.18.0",
|
|
63
|
+
"@abi-software/simulationvuer": "3.3.0",
|
|
61
64
|
"@abi-software/sparc-annotation": "0.3.2",
|
|
62
|
-
"@abi-software/svg-sprite": "1.0
|
|
65
|
+
"@abi-software/svg-sprite": "1.1.0",
|
|
63
66
|
"@element-plus/icons-vue": "^2.3.1",
|
|
64
67
|
"@vitejs/plugin-vue": "^4.6.2",
|
|
65
68
|
"css-element-queries": "^1.2.3",
|
|
@@ -106,7 +109,10 @@
|
|
|
106
109
|
"vue-router": "^4.2.5"
|
|
107
110
|
},
|
|
108
111
|
"optionalDependencies": {
|
|
109
|
-
"@esbuild/darwin-arm64": "^0.25.3"
|
|
112
|
+
"@esbuild/darwin-arm64": "^0.25.3",
|
|
113
|
+
"@rollup/rollup-darwin-arm64": "4.62.3",
|
|
114
|
+
"@rollup/rollup-linux-x64-gnu": "4.62.3",
|
|
115
|
+
"@rollup/rollup-win32-x64-msvc": "4.62.3"
|
|
110
116
|
},
|
|
111
117
|
"eslintConfig": {
|
|
112
118
|
"root": true,
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<CellDLViewer
|
|
3
|
+
:annotations="annotations"
|
|
4
|
+
:celldlData="celldlData"
|
|
5
|
+
@error="onError"
|
|
6
|
+
@event="onEvent"
|
|
7
|
+
/>
|
|
8
|
+
</template>
|
|
9
|
+
|
|
10
|
+
<script>
|
|
11
|
+
/* eslint-disable no-alert, no-console */
|
|
12
|
+
import './cellDLViewer.css';
|
|
13
|
+
import CellDLViewer from '@celldl/viewer';
|
|
14
|
+
import ContentMixin from "../../mixins/ContentMixin";
|
|
15
|
+
|
|
16
|
+
export default {
|
|
17
|
+
name: "CellDLView",
|
|
18
|
+
mixins: [ ContentMixin ],
|
|
19
|
+
components: {
|
|
20
|
+
CellDLViewer,
|
|
21
|
+
},
|
|
22
|
+
data: function() {
|
|
23
|
+
return {
|
|
24
|
+
annotations: {},
|
|
25
|
+
celldlData: '',
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
methods: {
|
|
29
|
+
onError: function() {
|
|
30
|
+
console.log(msg);
|
|
31
|
+
},
|
|
32
|
+
onEvent: function() {
|
|
33
|
+
console.log(detail);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
</script>
|
package/src/components.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export {}
|
|
|
7
7
|
|
|
8
8
|
declare module 'vue' {
|
|
9
9
|
export interface GlobalComponents {
|
|
10
|
+
CellDLViewer: typeof import('./components/viewers/CellDLViewer.vue')['default']
|
|
10
11
|
ConnectivityGraph: typeof import('./components/viewers/ConnectivityGraph.vue')['default']
|
|
11
12
|
ContentBar: typeof import('./components/ContentBar.vue')['default']
|
|
12
13
|
ContentVuer: typeof import('./components/ContentVuer.vue')['default']
|
|
@@ -65,11 +65,21 @@ export default {
|
|
|
65
65
|
this.alive = false;
|
|
66
66
|
},
|
|
67
67
|
mounted: function () {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
68
|
+
if (this.$refs.multiflatmap) {
|
|
69
|
+
this.multiflatmapRef = markRaw(this.$refs.multiflatmap);
|
|
70
|
+
}
|
|
71
|
+
if (this.$refs.flatmap) {
|
|
72
|
+
this.flatmapRef = markRaw(this.$refs.flatmap);
|
|
73
|
+
}
|
|
74
|
+
if (this.$refs.iframe) {
|
|
75
|
+
this.iframeRef = markRaw(this.$refs.iframe);
|
|
76
|
+
}
|
|
77
|
+
if (this.$refs.plot) {
|
|
78
|
+
this.plotRef = markRaw(this.$refs.plot);
|
|
79
|
+
}
|
|
80
|
+
if (this.$refs.simulation) {
|
|
81
|
+
this.simulationRef = markRaw(this.$refs.simulation);
|
|
82
|
+
}
|
|
73
83
|
// load connectivity with mock human male flatmap
|
|
74
84
|
if (this.iframeRef || this.plotRef || this.simulationRef) {
|
|
75
85
|
this.loadExplorerConfig();
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
const knowledgeMap = {
|
|
2
|
+
"classes": {
|
|
3
|
+
"cardio_28": {
|
|
4
|
+
"models": "UBERON:0002165",
|
|
5
|
+
"name": "Endocardium"
|
|
6
|
+
},
|
|
7
|
+
"cardio_29": {
|
|
8
|
+
"models": "UBERON:0002349",
|
|
9
|
+
"name": "Myocardium"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"features": {
|
|
13
|
+
"v_GLUT2_basal": {
|
|
14
|
+
"name": "Flow through GLUT2 transporter",
|
|
15
|
+
"variable": "main/v_GLUT2base"
|
|
16
|
+
},
|
|
17
|
+
"v_SGLT1_apical": {
|
|
18
|
+
"name": "SGLT1 transporter",
|
|
19
|
+
"variable": "main/v_SGLT1"
|
|
20
|
+
},
|
|
21
|
+
"v_Kir_basal": {
|
|
22
|
+
"name": "Kir channel",
|
|
23
|
+
"models": "UBERON:0001536",
|
|
24
|
+
"variable": "main/v_Kir"
|
|
25
|
+
},
|
|
26
|
+
"v_NKA_basal": {
|
|
27
|
+
"name": "Na/K ATPase",
|
|
28
|
+
"variable": "main/v_NKA"
|
|
29
|
+
},
|
|
30
|
+
"v_GLUT2_apical": {
|
|
31
|
+
"name": "GLUT2 transporter",
|
|
32
|
+
"variable": "main/v_GLUT2apex"
|
|
33
|
+
},
|
|
34
|
+
"q_Na_lumen": {
|
|
35
|
+
"name": "[Na+] in lumen",
|
|
36
|
+
"variable": "main/c_Na_gut"
|
|
37
|
+
},
|
|
38
|
+
"q_Na_i": {
|
|
39
|
+
"name": "[Na+] in intracellular space",
|
|
40
|
+
"variable": "main/c_Na_int"
|
|
41
|
+
},
|
|
42
|
+
"q_Na_blood": {
|
|
43
|
+
"name": "[Na+] in blood",
|
|
44
|
+
"variable": "main/c_Na_cap"
|
|
45
|
+
},
|
|
46
|
+
"q_K_blood": {
|
|
47
|
+
"name": "[K+] in blood",
|
|
48
|
+
"variable": "main/c_K_cap"
|
|
49
|
+
},
|
|
50
|
+
"q_K_i": {
|
|
51
|
+
"name": "[K+] in intracellular space",
|
|
52
|
+
"variable": "main/c_K_int"
|
|
53
|
+
},
|
|
54
|
+
"q_Glc_lumen": {
|
|
55
|
+
"name": "[Glucose] in lumen",
|
|
56
|
+
"variable": "main/c_Glc_gut"
|
|
57
|
+
},
|
|
58
|
+
"q_Glc_i": {
|
|
59
|
+
"name": "[Glucose] in intracellular space",
|
|
60
|
+
"variable": "main/c_Glc_int"
|
|
61
|
+
},
|
|
62
|
+
"q_Glc_blood": {
|
|
63
|
+
"name": "[Glucose] in blood",
|
|
64
|
+
"variable": "main/c_Glc_cap"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
const getVariableName = (name) => {
|
|
70
|
+
if (Object.hasOwn(knowledgeMap.features, name)) {
|
|
71
|
+
console.log("pass")
|
|
72
|
+
const data = knowledgeMap.features[name];
|
|
73
|
+
return data;
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
export { getVariableName }
|