@abi-software/mapintegratedvuer 1.21.0 → 1.21.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/README.md +23 -5
- package/assets/location-icon.html +33 -1
- package/assets/styleguide.css +18 -18
- package/cypress.config.js +7 -9
- package/dist/{ConnectivityGraph-CZMROk9r.js → ConnectivityGraph-DrSaFEDd.js} +3 -3
- package/dist/{ContentMixin-Vn34n5t2.js → ContentMixin-Xg0PjBqG.js} +2 -2
- package/dist/{DynamicMarkerMixin-B087dVL_.js → DynamicMarkerMixin-D5Ruu_hd.js} +2 -2
- package/dist/{Flatmap-Bm7m_5m_.js → Flatmap-CxN8TbnS.js} +4 -4
- package/dist/{Iframe-BWbhTjCR.js → Iframe-CkgbLfJt.js} +4 -4
- package/dist/{MultiFlatmap-JziqSEwL.js → MultiFlatmap-CkejvAJe.js} +4 -4
- package/dist/{Plot-ChbPsDZX.js → Plot-BfwoipSl.js} +2 -2
- package/dist/{Scaffold-C6f7c7Ha.js → Scaffold-DCqsTKpg.js} +4 -4
- package/dist/{Simulation-DcJScRYo.js → Simulation-BOtU3kTT.js} +2 -2
- package/dist/{connectivities-UXTqf7_0.js → connectivities-DyeS8w0c.js} +126 -95
- package/dist/index.html +9 -6
- package/dist/mapintegratedvuer.js +5489 -5578
- package/dist/mapintegratedvuer.umd.cjs +196 -196
- package/dist/style.css +1 -1
- package/eslint.config.js +39 -15
- package/package.json +12 -6
- package/public/index.html +9 -6
- package/src/App.vue +234 -249
- package/src/assets/_variables.scss +12 -10
- package/src/assets/header-icon.scss +8 -9
- package/src/assets/mapicon-species-style.css +10 -8
- package/src/assets/styles.scss +1 -1
- package/src/components/ContentBar.vue +98 -106
- package/src/components/ContentVuer.vue +36 -39
- package/src/components/ContextCard.vue +238 -199
- package/src/components/ContextHelp.vue +22 -26
- package/src/components/CustomSplitter.vue +32 -43
- package/src/components/DatasetHeader.vue +37 -41
- package/src/components/DialogToolbarContent.vue +292 -256
- package/src/components/FlatmapContextCard.vue +52 -57
- package/src/components/MapContent.vue +90 -86
- package/src/components/ResizeSensor.vue +8 -13
- package/src/components/SearchControls.vue +26 -35
- package/src/components/SimulatedData.js +196 -219
- package/src/components/SplitDialog.vue +139 -129
- package/src/components/SplitFlow.vue +421 -237
- package/src/components/index.js +1 -3
- package/src/components/scripts/simulation_data.js +393 -397
- package/src/components/scripts/utilities.js +108 -78
- package/src/components/viewers/CellDLViewer.vue +9 -9
- package/src/components/viewers/ConnectivityGraph.vue +9 -12
- package/src/components/viewers/Flatmap.vue +23 -25
- package/src/components/viewers/Iframe.vue +8 -10
- package/src/components/viewers/MultiFlatmap.vue +59 -69
- package/src/components/viewers/Plot.vue +6 -7
- package/src/components/viewers/Scaffold.vue +73 -63
- package/src/components/viewers/Simulation.vue +10 -15
- package/src/main.js +16 -21
- package/src/mixins/ContentMixin.js +208 -178
- package/src/mixins/DynamicMarkerMixin.js +17 -21
- package/src/mixins/RetrieveContextCardMixin.js +35 -30
- package/src/mixins/S3Bucket.vue +10 -13
- package/src/services/knowledgeMapping.js +53 -53
- package/src/services/tagging.js +4 -4
- package/src/stores/connectivities.js +46 -8
- package/src/stores/entries.js +7 -9
- package/src/stores/index.js +7 -7
- package/src/stores/settings.js +23 -31
- package/src/stores/splitFlow.js +364 -298
- package/vite.bundle-build.js +24 -26
- package/vite.config.js +22 -21
- package/vite.static-build.js +4 -4
- package/vitest.workspace.js +1 -3
- package/vuese-generator.js +47 -55
|
@@ -1,43 +1,35 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="search-container">
|
|
3
|
-
<div class="text search-text">
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
<div class="text search-text">Search within display</div>
|
|
4
|
+
<el-autocomplete
|
|
5
|
+
class="search-box"
|
|
6
|
+
placeholder="Search"
|
|
7
7
|
v-model="searchText"
|
|
8
8
|
:fetch-suggestions="fetchSuggestions"
|
|
9
9
|
@keyup.enter="$emit('search', searchText)"
|
|
10
10
|
@select="$emit('search', $event.value)"
|
|
11
|
-
:teleported=false
|
|
12
|
-
popper-class="autocomplete-popper"
|
|
13
|
-
|
|
14
|
-
<map-svg-icon icon="magnifyingGlass" class="magnify"
|
|
15
|
-
|
|
16
|
-
<div v-if="failedSearch" class="text not-found-text">
|
|
17
|
-
'{{failedSearch}}' not found
|
|
18
|
-
</div>
|
|
11
|
+
:teleported="false"
|
|
12
|
+
popper-class="autocomplete-popper"
|
|
13
|
+
></el-autocomplete>
|
|
14
|
+
<map-svg-icon icon="magnifyingGlass" class="magnify" @click="$emit('search', searchText)" />
|
|
15
|
+
<div v-if="failedSearch" class="text not-found-text">'{{ failedSearch }}' not found</div>
|
|
19
16
|
</div>
|
|
20
17
|
</template>
|
|
21
18
|
|
|
22
19
|
<script>
|
|
23
|
-
/* eslint-disable no-alert, no-console */
|
|
24
20
|
import { MapSvgIcon } from '@abi-software/svg-sprite';
|
|
25
|
-
import {
|
|
26
|
-
ElAutocomplete as Autocomplete
|
|
27
|
-
} from "element-plus";
|
|
28
21
|
|
|
29
22
|
export default {
|
|
30
|
-
name:
|
|
23
|
+
name: 'SearchControls',
|
|
31
24
|
props: {
|
|
32
25
|
failedSearch: undefined,
|
|
33
26
|
},
|
|
34
27
|
components: {
|
|
35
|
-
Autocomplete,
|
|
36
28
|
MapSvgIcon,
|
|
37
29
|
},
|
|
38
30
|
methods: {
|
|
39
|
-
fetchSuggestions: function(term, cb) {
|
|
40
|
-
if (term ===
|
|
31
|
+
fetchSuggestions: function (term, cb) {
|
|
32
|
+
if (term === '') {
|
|
41
33
|
cb([]);
|
|
42
34
|
} else {
|
|
43
35
|
this.$emit('fetch-suggestions', { term, cb });
|
|
@@ -46,7 +38,7 @@ export default {
|
|
|
46
38
|
},
|
|
47
39
|
data: function () {
|
|
48
40
|
return {
|
|
49
|
-
searchText:
|
|
41
|
+
searchText: '',
|
|
50
42
|
};
|
|
51
43
|
},
|
|
52
44
|
};
|
|
@@ -55,7 +47,7 @@ export default {
|
|
|
55
47
|
<!-- Add "scoped" attribute to limit CSS to this component only -->
|
|
56
48
|
<style scoped lang="scss">
|
|
57
49
|
.search-container {
|
|
58
|
-
display:flex;
|
|
50
|
+
display: flex;
|
|
59
51
|
flex-direction: row;
|
|
60
52
|
|
|
61
53
|
.text {
|
|
@@ -66,7 +58,7 @@ export default {
|
|
|
66
58
|
-webkit-user-select: none;
|
|
67
59
|
-ms-user-select: none;
|
|
68
60
|
user-select: none;
|
|
69
|
-
line-height:18px;
|
|
61
|
+
line-height: 18px;
|
|
70
62
|
}
|
|
71
63
|
.search-text {
|
|
72
64
|
margin-top: 8px;
|
|
@@ -82,12 +74,12 @@ export default {
|
|
|
82
74
|
}
|
|
83
75
|
:deep(.search-box.el-autocomplete) {
|
|
84
76
|
margin-top: 2px;
|
|
85
|
-
margin-left:0.5rem;
|
|
86
|
-
height:28px;
|
|
87
|
-
width:137px;
|
|
77
|
+
margin-left: 0.5rem;
|
|
78
|
+
height: 28px;
|
|
79
|
+
width: 137px;
|
|
88
80
|
.el-input__inner {
|
|
89
|
-
height:26px;
|
|
90
|
-
line-height:28px;
|
|
81
|
+
height: 26px;
|
|
82
|
+
line-height: 28px;
|
|
91
83
|
border-radius: 4px;
|
|
92
84
|
&:focus {
|
|
93
85
|
border-color: $app-primary-color;
|
|
@@ -96,20 +88,19 @@ export default {
|
|
|
96
88
|
}
|
|
97
89
|
.magnify {
|
|
98
90
|
margin-top: 2px;
|
|
99
|
-
margin-left:0.5rem;
|
|
91
|
+
margin-left: 0.5rem;
|
|
100
92
|
background: $app-primary-color;
|
|
101
93
|
border-radius: 4px;
|
|
102
|
-
height:28px;
|
|
103
|
-
width:28px;
|
|
94
|
+
height: 28px;
|
|
95
|
+
width: 28px;
|
|
104
96
|
cursor: pointer;
|
|
105
97
|
&:hover {
|
|
106
|
-
box-shadow: -3px 2px 4px 0 rgba(0,0,0,0.25);
|
|
98
|
+
box-shadow: -3px 2px 4px 0 rgba(0, 0, 0, 0.25);
|
|
107
99
|
}
|
|
108
100
|
}
|
|
109
101
|
:deep(.autocomplete-popper) {
|
|
110
|
-
min-width:137px!important;
|
|
111
|
-
width: auto!important;
|
|
102
|
+
min-width: 137px !important;
|
|
103
|
+
width: auto !important;
|
|
112
104
|
}
|
|
113
105
|
}
|
|
114
|
-
|
|
115
106
|
</style>
|
|
@@ -1,217 +1,196 @@
|
|
|
1
1
|
const nerveMaps = [
|
|
2
2
|
{
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
"centrelines": [
|
|
184
|
-
"L1_ventral_root_ramus",
|
|
185
|
-
"L1_spinal_n-1",
|
|
186
|
-
"lumbar_splanchnic_n",
|
|
187
|
-
"L2_spinal_n",
|
|
188
|
-
"hypogastric_n",
|
|
189
|
-
"L2_ventral_root_ramus"
|
|
190
|
-
]
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
"id": "ilxtr:neuron-type-keast-19",
|
|
194
|
-
"centrelines": [
|
|
195
|
-
"n_69"
|
|
196
|
-
]
|
|
197
|
-
},
|
|
198
|
-
{
|
|
199
|
-
"id": "ilxtr:neuron-type-keast-14",
|
|
200
|
-
"centrelines": [
|
|
201
|
-
"n_72"
|
|
202
|
-
]
|
|
203
|
-
}
|
|
3
|
+
id: 'ilxtr:neuron-type-keast-13',
|
|
4
|
+
centrelines: ['n_71'],
|
|
5
|
+
},
|
|
6
|
+
{
|
|
7
|
+
id: 'ilxtr:neuron-type-keast-2',
|
|
8
|
+
centrelines: ['bladder_n'],
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
id: 'ilxtr:neuron-type-keast-3',
|
|
12
|
+
centrelines: ['bladder_n', 'hypogastric_n'],
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
id: 'ilxtr:neuron-type-keast-15',
|
|
16
|
+
centrelines: ['n_73'],
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
id: 'ilxtr:neuron-type-keast-1',
|
|
20
|
+
centrelines: ['bladder_n'],
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
id: 'ilxtr:neuron-type-keast-7',
|
|
24
|
+
centrelines: [
|
|
25
|
+
'L1_ventral_root_ramus',
|
|
26
|
+
'L1_spinal_n-1',
|
|
27
|
+
'lumbar_splanchnic_n',
|
|
28
|
+
'L2_spinal_n',
|
|
29
|
+
'L2_ventral_root_ramus',
|
|
30
|
+
],
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
id: 'ilxtr:neuron-type-keast-9',
|
|
34
|
+
centrelines: [
|
|
35
|
+
'L6_spinal_n-1',
|
|
36
|
+
'L6_ventral_root',
|
|
37
|
+
'pudendal_n',
|
|
38
|
+
'L5_spinal_n',
|
|
39
|
+
'L5_ventral_root',
|
|
40
|
+
],
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
id: 'ilxtr:neuron-type-keast-10',
|
|
44
|
+
centrelines: [
|
|
45
|
+
'S1_dorsal_root',
|
|
46
|
+
'S1_spinal_n-2',
|
|
47
|
+
'pelvic_splanchnic_n',
|
|
48
|
+
'L6_spinal_n-2',
|
|
49
|
+
'L6_dorsal_root',
|
|
50
|
+
'bladder_n',
|
|
51
|
+
],
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
id: 'ilxtr:neuron-type-keast-11',
|
|
55
|
+
centrelines: [
|
|
56
|
+
'lumbar_splanchnic_n',
|
|
57
|
+
'L2_spinal_n',
|
|
58
|
+
'L1_spinal_n-1',
|
|
59
|
+
'hypogastric_n',
|
|
60
|
+
'bladder_n',
|
|
61
|
+
'L1_dorsal_root',
|
|
62
|
+
'L2_dorsal_root',
|
|
63
|
+
],
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
id: 'ilxtr:neuron-type-keast-12',
|
|
67
|
+
centrelines: [
|
|
68
|
+
'L6_spinal_n-1',
|
|
69
|
+
'L6_dorsal_root',
|
|
70
|
+
'pudendal_n',
|
|
71
|
+
'S1_spinal_n-1',
|
|
72
|
+
'S1_dorsal_root',
|
|
73
|
+
],
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
id: 'ilxtr:neuron-type-keast-8',
|
|
77
|
+
centrelines: [
|
|
78
|
+
'L1_ventral_root_paravertebral_ganglion',
|
|
79
|
+
'L1-L2_interganglionic_segment',
|
|
80
|
+
'sympathetic_trunk_T13-L1',
|
|
81
|
+
'L2_ventral_root_paravertebral_ganglion',
|
|
82
|
+
'sympathetic_trunk_L2-L3',
|
|
83
|
+
'sympathetic_trunk_L4-L5',
|
|
84
|
+
'sympathetic_trunk_L3-L4',
|
|
85
|
+
'sympathetic_trunk_L5-L6',
|
|
86
|
+
'sympathetic_trunk_T12-T13',
|
|
87
|
+
],
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
id: 'ilxtr:neuron-type-keast-20',
|
|
91
|
+
centrelines: [
|
|
92
|
+
'T1_T2_cns',
|
|
93
|
+
'C8_T1_cns',
|
|
94
|
+
'T2_T3_cns',
|
|
95
|
+
'T10_T11_cns',
|
|
96
|
+
'T9_T10_cns',
|
|
97
|
+
'T11_T12_cns',
|
|
98
|
+
'T8_T9_cns',
|
|
99
|
+
'C7_C8_cns',
|
|
100
|
+
'C6_C7_cns',
|
|
101
|
+
'C4_C5_cns',
|
|
102
|
+
'C3_C4_cns',
|
|
103
|
+
'C5_C6_cns',
|
|
104
|
+
'medulla_C1_cns',
|
|
105
|
+
'pons_medulla_cns',
|
|
106
|
+
'C1_C2_cns',
|
|
107
|
+
'T5_T6_cns',
|
|
108
|
+
'T4_T5_cns',
|
|
109
|
+
'T6_T7_cns',
|
|
110
|
+
'L3_L4_cns',
|
|
111
|
+
'L2_L3_cns',
|
|
112
|
+
'L4_L5_cns',
|
|
113
|
+
'L5_L6_cns',
|
|
114
|
+
'T13_L1_cns',
|
|
115
|
+
'T12_T13_cns',
|
|
116
|
+
'L1_L2_cns',
|
|
117
|
+
'T3_T4_cns',
|
|
118
|
+
'n_69',
|
|
119
|
+
'C2_C3_cns',
|
|
120
|
+
'T7_T8_cns',
|
|
121
|
+
],
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
id: 'ilxtr:neuron-type-keast-16',
|
|
125
|
+
centrelines: ['n_74'],
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
id: 'ilxtr:neuron-type-keast-4',
|
|
129
|
+
centrelines: [
|
|
130
|
+
'sympathetic_trunk_L6-S1',
|
|
131
|
+
'L6_gray_ramus-spinal_n',
|
|
132
|
+
'sympathetic_trunk_L5-L6',
|
|
133
|
+
'S1_gray_ramus-spinal_n',
|
|
134
|
+
'S1_spinal_n-2',
|
|
135
|
+
'pelvic_splanchnic_n',
|
|
136
|
+
'L6_spinal_n-2',
|
|
137
|
+
'L1-L2_interganglionic_segment',
|
|
138
|
+
'sympathetic_trunk_T13-L1',
|
|
139
|
+
'sympathetic_trunk_L2-L3',
|
|
140
|
+
'bladder_n',
|
|
141
|
+
'sympathetic_trunk_L4-L5',
|
|
142
|
+
'sympathetic_trunk_L3-L4',
|
|
143
|
+
'sympathetic_trunk_T12-T13',
|
|
144
|
+
],
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
id: 'ilxtr:neuron-type-keast-17',
|
|
148
|
+
centrelines: ['n_75'],
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
id: 'ilxtr:neuron-type-keast-5',
|
|
152
|
+
centrelines: [
|
|
153
|
+
'S1_ventral_root',
|
|
154
|
+
'S1_spinal_n-2',
|
|
155
|
+
'pelvic_splanchnic_n',
|
|
156
|
+
'L6_spinal_n-2',
|
|
157
|
+
'L6_ventral_root',
|
|
158
|
+
],
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
id: 'ilxtr:neuron-type-keast-18',
|
|
162
|
+
centrelines: ['n_70'],
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
id: 'ilxtr:neuron-type-keast-6',
|
|
166
|
+
centrelines: [
|
|
167
|
+
'L1_ventral_root_ramus',
|
|
168
|
+
'L1_spinal_n-1',
|
|
169
|
+
'lumbar_splanchnic_n',
|
|
170
|
+
'L2_spinal_n',
|
|
171
|
+
'hypogastric_n',
|
|
172
|
+
'L2_ventral_root_ramus',
|
|
173
|
+
],
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
id: 'ilxtr:neuron-type-keast-19',
|
|
177
|
+
centrelines: ['n_69'],
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
id: 'ilxtr:neuron-type-keast-14',
|
|
181
|
+
centrelines: ['n_72'],
|
|
182
|
+
},
|
|
204
183
|
];
|
|
205
184
|
|
|
206
185
|
function getRatTerms() {
|
|
207
186
|
return [
|
|
208
|
-
{id:
|
|
209
|
-
{id:
|
|
210
|
-
{id:
|
|
211
|
-
{id:
|
|
212
|
-
{id:
|
|
213
|
-
{id:
|
|
214
|
-
{id:
|
|
187
|
+
{ id: 'UBERON:0000948', name: 'Heart', type: 'simulation' },
|
|
188
|
+
{ id: 'UBERON:0001156', name: 'Colon', type: 'simulation' },
|
|
189
|
+
{ id: 'UBERON:0001255', name: 'Bladder', type: 'simulation' },
|
|
190
|
+
{ id: 'UBERON:0000945', name: 'Stomach', type: 'simulation' },
|
|
191
|
+
{ id: 'UBERON:0001759', name: 'Vagus nerve', type: 'simulation' },
|
|
192
|
+
{ id: 'UBERON:0002108', name: 'Small intestines', type: 'simulation' },
|
|
193
|
+
{ id: 'UBERON:0002107', name: 'Liver', type: 'simulation' },
|
|
215
194
|
];
|
|
216
195
|
}
|
|
217
196
|
|
|
@@ -222,13 +201,12 @@ export function getAvailableTermsForSpecies() {
|
|
|
222
201
|
// Find the id/centre lines for the matchin centre lines/id
|
|
223
202
|
export function getNerveNames(name) {
|
|
224
203
|
if (name) {
|
|
225
|
-
for (let i = 0; i < nerveMaps.length
|
|
204
|
+
for (let i = 0; i < nerveMaps.length; i++) {
|
|
226
205
|
if (nerveMaps[i].id == name) {
|
|
227
206
|
return nerveMaps[i].centrelines;
|
|
228
207
|
}
|
|
229
|
-
const found = nerveMaps[i].centrelines.find(element => element === name);
|
|
230
|
-
if (found)
|
|
231
|
-
return [nerveMaps[i].id];
|
|
208
|
+
const found = nerveMaps[i].centrelines.find((element) => element === name);
|
|
209
|
+
if (found) return [nerveMaps[i].id];
|
|
232
210
|
}
|
|
233
211
|
}
|
|
234
212
|
return [];
|
|
@@ -236,19 +214,18 @@ export function getNerveNames(name) {
|
|
|
236
214
|
|
|
237
215
|
export function getParentsRegion(name) {
|
|
238
216
|
if (name) {
|
|
239
|
-
const lName = name.toLowerCase()
|
|
217
|
+
const lName = name.toLowerCase();
|
|
240
218
|
if (lName.includes('heart')) {
|
|
241
|
-
return {id: 'UBERON:0000948', name: 'Heart'};
|
|
219
|
+
return { id: 'UBERON:0000948', name: 'Heart' };
|
|
242
220
|
} else if (lName.includes('liver')) {
|
|
243
|
-
return {id: 'UBERON:0002107', name: 'Liver'};
|
|
221
|
+
return { id: 'UBERON:0002107', name: 'Liver' };
|
|
244
222
|
} else if (lName.includes('stomach')) {
|
|
245
|
-
return {id: 'UBERON:0000945', name: 'Stomach'};
|
|
223
|
+
return { id: 'UBERON:0000945', name: 'Stomach' };
|
|
246
224
|
} else if (lName.includes('colon')) {
|
|
247
|
-
return {id: 'UBERON:0001156', name: 'Colon'};
|
|
225
|
+
return { id: 'UBERON:0001156', name: 'Colon' };
|
|
248
226
|
} else if (lName.includes('bladder')) {
|
|
249
|
-
return {id: 'UBERON:0001255', name: 'Bladder'};
|
|
227
|
+
return { id: 'UBERON:0001255', name: 'Bladder' };
|
|
250
228
|
}
|
|
251
229
|
}
|
|
252
230
|
return undefined;
|
|
253
231
|
}
|
|
254
|
-
|