@abi-software/mapintegratedvuer 1.21.1 → 1.22.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.
Files changed (68) hide show
  1. package/README.md +23 -5
  2. package/assets/location-icon.html +33 -1
  3. package/assets/styleguide.css +18 -18
  4. package/cypress.config.js +7 -9
  5. package/dist/{ConnectivityGraph-CZMROk9r.js → ConnectivityGraph-BBZ3Dgat.js} +3 -3
  6. package/dist/{ContentMixin-Vn34n5t2.js → ContentMixin-B-O_IwPg.js} +16 -18
  7. package/dist/{DynamicMarkerMixin-BS6t7w_i.js → DynamicMarkerMixin-B9iqtP_f.js} +1 -1
  8. package/dist/{Flatmap-BejxA0uz.js → Flatmap-BoEFI50b.js} +4 -4
  9. package/dist/{Iframe-BWbhTjCR.js → Iframe-Slj-LQTF.js} +4 -4
  10. package/dist/{MultiFlatmap-nlmsH-Ib.js → MultiFlatmap-l6aBn6x3.js} +17 -5
  11. package/dist/{Plot-ChbPsDZX.js → Plot-CIhEip5b.js} +2 -2
  12. package/dist/{Scaffold-C6f7c7Ha.js → Scaffold-D5ZGCDvt.js} +4 -4
  13. package/dist/{Simulation-DcJScRYo.js → Simulation-C5o5DXRb.js} +2 -2
  14. package/dist/{connectivities-UXTqf7_0.js → connectivities-Br3MpoAv.js} +154 -95
  15. package/dist/index.html +9 -6
  16. package/dist/mapintegratedvuer.js +5506 -5582
  17. package/dist/mapintegratedvuer.umd.cjs +196 -196
  18. package/dist/style.css +1 -1
  19. package/eslint.config.js +39 -15
  20. package/package.json +12 -6
  21. package/public/index.html +9 -6
  22. package/src/App.vue +224 -255
  23. package/src/assets/_variables.scss +12 -10
  24. package/src/assets/header-icon.scss +8 -9
  25. package/src/assets/mapicon-species-style.css +10 -8
  26. package/src/assets/styles.scss +1 -1
  27. package/src/components/ContentBar.vue +99 -106
  28. package/src/components/ContentVuer.vue +36 -39
  29. package/src/components/ContextCard.vue +238 -199
  30. package/src/components/ContextHelp.vue +22 -26
  31. package/src/components/CustomSplitter.vue +32 -43
  32. package/src/components/DatasetHeader.vue +37 -41
  33. package/src/components/DialogToolbarContent.vue +292 -256
  34. package/src/components/FlatmapContextCard.vue +52 -57
  35. package/src/components/MapContent.vue +111 -87
  36. package/src/components/ResizeSensor.vue +8 -13
  37. package/src/components/SearchControls.vue +26 -35
  38. package/src/components/SimulatedData.js +196 -219
  39. package/src/components/SplitDialog.vue +139 -129
  40. package/src/components/SplitFlow.vue +433 -239
  41. package/src/components/index.js +1 -3
  42. package/src/components/scripts/simulation_data.js +393 -397
  43. package/src/components/scripts/utilities.js +108 -78
  44. package/src/components/viewers/CellDLViewer.vue +9 -9
  45. package/src/components/viewers/ConnectivityGraph.vue +9 -12
  46. package/src/components/viewers/Flatmap.vue +23 -25
  47. package/src/components/viewers/Iframe.vue +8 -10
  48. package/src/components/viewers/MultiFlatmap.vue +73 -69
  49. package/src/components/viewers/Plot.vue +6 -7
  50. package/src/components/viewers/Scaffold.vue +73 -63
  51. package/src/components/viewers/Simulation.vue +10 -15
  52. package/src/main.js +16 -21
  53. package/src/mixins/ContentMixin.js +208 -178
  54. package/src/mixins/DynamicMarkerMixin.js +14 -18
  55. package/src/mixins/RetrieveContextCardMixin.js +35 -30
  56. package/src/mixins/S3Bucket.vue +10 -13
  57. package/src/services/knowledgeMapping.js +53 -53
  58. package/src/services/tagging.js +4 -4
  59. package/src/stores/connectivities.js +46 -8
  60. package/src/stores/entries.js +7 -9
  61. package/src/stores/index.js +7 -7
  62. package/src/stores/settings.js +23 -31
  63. package/src/stores/splitFlow.js +395 -298
  64. package/vite.bundle-build.js +24 -26
  65. package/vite.config.js +22 -21
  66. package/vite.static-build.js +4 -4
  67. package/vitest.workspace.js +1 -3
  68. 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
- Search within display
5
- </div>
6
- <el-autocomplete class="search-box" placeholder="Search"
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
- </el-autocomplete>
14
- <map-svg-icon icon="magnifyingGlass" class="magnify"
15
- @click="$emit('search', searchText)"/>
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: "SearchControls",
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
- "id": "ilxtr:neuron-type-keast-13",
4
- "centrelines": [
5
- "n_71"
6
- ]
7
- },
8
- {
9
- "id": "ilxtr:neuron-type-keast-2",
10
- "centrelines": [
11
- "bladder_n"
12
- ]
13
- },
14
- {
15
- "id": "ilxtr:neuron-type-keast-3",
16
- "centrelines": [
17
- "bladder_n",
18
- "hypogastric_n"
19
- ]
20
- },
21
- {
22
- "id": "ilxtr:neuron-type-keast-15",
23
- "centrelines": [
24
- "n_73"
25
- ]
26
- },
27
- {
28
- "id": "ilxtr:neuron-type-keast-1",
29
- "centrelines": [
30
- "bladder_n"
31
- ]
32
- },
33
- {
34
- "id": "ilxtr:neuron-type-keast-7",
35
- "centrelines": [
36
- "L1_ventral_root_ramus",
37
- "L1_spinal_n-1",
38
- "lumbar_splanchnic_n",
39
- "L2_spinal_n",
40
- "L2_ventral_root_ramus"
41
- ]
42
- },
43
- {
44
- "id": "ilxtr:neuron-type-keast-9",
45
- "centrelines": [
46
- "L6_spinal_n-1",
47
- "L6_ventral_root",
48
- "pudendal_n",
49
- "L5_spinal_n",
50
- "L5_ventral_root"
51
- ]
52
- },
53
- {
54
- "id": "ilxtr:neuron-type-keast-10",
55
- "centrelines": [
56
- "S1_dorsal_root",
57
- "S1_spinal_n-2",
58
- "pelvic_splanchnic_n",
59
- "L6_spinal_n-2",
60
- "L6_dorsal_root",
61
- "bladder_n"
62
- ]
63
- },
64
- {
65
- "id": "ilxtr:neuron-type-keast-11",
66
- "centrelines": [
67
- "lumbar_splanchnic_n",
68
- "L2_spinal_n",
69
- "L1_spinal_n-1",
70
- "hypogastric_n",
71
- "bladder_n",
72
- "L1_dorsal_root",
73
- "L2_dorsal_root"
74
- ]
75
- },
76
- {
77
- "id": "ilxtr:neuron-type-keast-12",
78
- "centrelines": [
79
- "L6_spinal_n-1",
80
- "L6_dorsal_root",
81
- "pudendal_n",
82
- "S1_spinal_n-1",
83
- "S1_dorsal_root"
84
- ]
85
- },
86
- {
87
- "id": "ilxtr:neuron-type-keast-8",
88
- "centrelines": [
89
- "L1_ventral_root_paravertebral_ganglion",
90
- "L1-L2_interganglionic_segment",
91
- "sympathetic_trunk_T13-L1",
92
- "L2_ventral_root_paravertebral_ganglion",
93
- "sympathetic_trunk_L2-L3",
94
- "sympathetic_trunk_L4-L5",
95
- "sympathetic_trunk_L3-L4",
96
- "sympathetic_trunk_L5-L6",
97
- "sympathetic_trunk_T12-T13"
98
- ]
99
- },
100
- {
101
- "id": "ilxtr:neuron-type-keast-20",
102
- "centrelines": [
103
- "T1_T2_cns",
104
- "C8_T1_cns",
105
- "T2_T3_cns",
106
- "T10_T11_cns",
107
- "T9_T10_cns",
108
- "T11_T12_cns",
109
- "T8_T9_cns",
110
- "C7_C8_cns",
111
- "C6_C7_cns",
112
- "C4_C5_cns",
113
- "C3_C4_cns",
114
- "C5_C6_cns",
115
- "medulla_C1_cns",
116
- "pons_medulla_cns",
117
- "C1_C2_cns",
118
- "T5_T6_cns",
119
- "T4_T5_cns",
120
- "T6_T7_cns",
121
- "L3_L4_cns",
122
- "L2_L3_cns",
123
- "L4_L5_cns",
124
- "L5_L6_cns",
125
- "T13_L1_cns",
126
- "T12_T13_cns",
127
- "L1_L2_cns",
128
- "T3_T4_cns",
129
- "n_69",
130
- "C2_C3_cns",
131
- "T7_T8_cns"
132
- ]
133
- },
134
- {
135
- "id": "ilxtr:neuron-type-keast-16",
136
- "centrelines": [
137
- "n_74"
138
- ]
139
- },
140
- {
141
- "id": "ilxtr:neuron-type-keast-4",
142
- "centrelines": [
143
- "sympathetic_trunk_L6-S1",
144
- "L6_gray_ramus-spinal_n",
145
- "sympathetic_trunk_L5-L6",
146
- "S1_gray_ramus-spinal_n",
147
- "S1_spinal_n-2",
148
- "pelvic_splanchnic_n",
149
- "L6_spinal_n-2",
150
- "L1-L2_interganglionic_segment",
151
- "sympathetic_trunk_T13-L1",
152
- "sympathetic_trunk_L2-L3",
153
- "bladder_n",
154
- "sympathetic_trunk_L4-L5",
155
- "sympathetic_trunk_L3-L4",
156
- "sympathetic_trunk_T12-T13"
157
- ]
158
- },
159
- {
160
- "id": "ilxtr:neuron-type-keast-17",
161
- "centrelines": [
162
- "n_75"
163
- ]
164
- },
165
- {
166
- "id": "ilxtr:neuron-type-keast-5",
167
- "centrelines": [
168
- "S1_ventral_root",
169
- "S1_spinal_n-2",
170
- "pelvic_splanchnic_n",
171
- "L6_spinal_n-2",
172
- "L6_ventral_root"
173
- ]
174
- },
175
- {
176
- "id": "ilxtr:neuron-type-keast-18",
177
- "centrelines": [
178
- "n_70"
179
- ]
180
- },
181
- {
182
- "id": "ilxtr:neuron-type-keast-6",
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: "UBERON:0000948", name: "Heart", type:"simulation"},
209
- {id: "UBERON:0001156", name: "Colon", type:"simulation"},
210
- {id: "UBERON:0001255", name: "Bladder", type:"simulation"},
211
- {id: "UBERON:0000945", name: "Stomach", type:"simulation"},
212
- {id: "UBERON:0001759", name: "Vagus nerve", type:"simulation"},
213
- {id: "UBERON:0002108", name: "Small intestines", type:"simulation"},
214
- {id: "UBERON:0002107", name: "Liver", type:"simulation"},
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 ; i++) {
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
-