@abi-software/mapintegratedvuer 1.3.4-beta.1 → 1.3.4

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.
@@ -1,1218 +0,0 @@
1
- import { u as w, b as N, E as u, T as v } from "./index-Ct_Hq2A5.js";
2
- import { mapStores as S } from "pinia";
3
- const p = [
4
- {
5
- id: "ilxtr:neuron-type-keast-13",
6
- centrelines: [
7
- "n_71"
8
- ]
9
- },
10
- {
11
- id: "ilxtr:neuron-type-keast-2",
12
- centrelines: [
13
- "bladder_n"
14
- ]
15
- },
16
- {
17
- id: "ilxtr:neuron-type-keast-3",
18
- centrelines: [
19
- "bladder_n",
20
- "hypogastric_n"
21
- ]
22
- },
23
- {
24
- id: "ilxtr:neuron-type-keast-15",
25
- centrelines: [
26
- "n_73"
27
- ]
28
- },
29
- {
30
- id: "ilxtr:neuron-type-keast-1",
31
- centrelines: [
32
- "bladder_n"
33
- ]
34
- },
35
- {
36
- id: "ilxtr:neuron-type-keast-7",
37
- centrelines: [
38
- "L1_ventral_root_ramus",
39
- "L1_spinal_n-1",
40
- "lumbar_splanchnic_n",
41
- "L2_spinal_n",
42
- "L2_ventral_root_ramus"
43
- ]
44
- },
45
- {
46
- id: "ilxtr:neuron-type-keast-9",
47
- centrelines: [
48
- "L6_spinal_n-1",
49
- "L6_ventral_root",
50
- "pudendal_n",
51
- "L5_spinal_n",
52
- "L5_ventral_root"
53
- ]
54
- },
55
- {
56
- id: "ilxtr:neuron-type-keast-10",
57
- centrelines: [
58
- "S1_dorsal_root",
59
- "S1_spinal_n-2",
60
- "pelvic_splanchnic_n",
61
- "L6_spinal_n-2",
62
- "L6_dorsal_root",
63
- "bladder_n"
64
- ]
65
- },
66
- {
67
- id: "ilxtr:neuron-type-keast-11",
68
- centrelines: [
69
- "lumbar_splanchnic_n",
70
- "L2_spinal_n",
71
- "L1_spinal_n-1",
72
- "hypogastric_n",
73
- "bladder_n",
74
- "L1_dorsal_root",
75
- "L2_dorsal_root"
76
- ]
77
- },
78
- {
79
- id: "ilxtr:neuron-type-keast-12",
80
- centrelines: [
81
- "L6_spinal_n-1",
82
- "L6_dorsal_root",
83
- "pudendal_n",
84
- "S1_spinal_n-1",
85
- "S1_dorsal_root"
86
- ]
87
- },
88
- {
89
- id: "ilxtr:neuron-type-keast-8",
90
- centrelines: [
91
- "L1_ventral_root_paravertebral_ganglion",
92
- "L1-L2_interganglionic_segment",
93
- "sympathetic_trunk_T13-L1",
94
- "L2_ventral_root_paravertebral_ganglion",
95
- "sympathetic_trunk_L2-L3",
96
- "sympathetic_trunk_L4-L5",
97
- "sympathetic_trunk_L3-L4",
98
- "sympathetic_trunk_L5-L6",
99
- "sympathetic_trunk_T12-T13"
100
- ]
101
- },
102
- {
103
- id: "ilxtr:neuron-type-keast-20",
104
- centrelines: [
105
- "T1_T2_cns",
106
- "C8_T1_cns",
107
- "T2_T3_cns",
108
- "T10_T11_cns",
109
- "T9_T10_cns",
110
- "T11_T12_cns",
111
- "T8_T9_cns",
112
- "C7_C8_cns",
113
- "C6_C7_cns",
114
- "C4_C5_cns",
115
- "C3_C4_cns",
116
- "C5_C6_cns",
117
- "medulla_C1_cns",
118
- "pons_medulla_cns",
119
- "C1_C2_cns",
120
- "T5_T6_cns",
121
- "T4_T5_cns",
122
- "T6_T7_cns",
123
- "L3_L4_cns",
124
- "L2_L3_cns",
125
- "L4_L5_cns",
126
- "L5_L6_cns",
127
- "T13_L1_cns",
128
- "T12_T13_cns",
129
- "L1_L2_cns",
130
- "T3_T4_cns",
131
- "n_69",
132
- "C2_C3_cns",
133
- "T7_T8_cns"
134
- ]
135
- },
136
- {
137
- id: "ilxtr:neuron-type-keast-16",
138
- centrelines: [
139
- "n_74"
140
- ]
141
- },
142
- {
143
- id: "ilxtr:neuron-type-keast-4",
144
- centrelines: [
145
- "sympathetic_trunk_L6-S1",
146
- "L6_gray_ramus-spinal_n",
147
- "sympathetic_trunk_L5-L6",
148
- "S1_gray_ramus-spinal_n",
149
- "S1_spinal_n-2",
150
- "pelvic_splanchnic_n",
151
- "L6_spinal_n-2",
152
- "L1-L2_interganglionic_segment",
153
- "sympathetic_trunk_T13-L1",
154
- "sympathetic_trunk_L2-L3",
155
- "bladder_n",
156
- "sympathetic_trunk_L4-L5",
157
- "sympathetic_trunk_L3-L4",
158
- "sympathetic_trunk_T12-T13"
159
- ]
160
- },
161
- {
162
- id: "ilxtr:neuron-type-keast-17",
163
- centrelines: [
164
- "n_75"
165
- ]
166
- },
167
- {
168
- id: "ilxtr:neuron-type-keast-5",
169
- centrelines: [
170
- "S1_ventral_root",
171
- "S1_spinal_n-2",
172
- "pelvic_splanchnic_n",
173
- "L6_spinal_n-2",
174
- "L6_ventral_root"
175
- ]
176
- },
177
- {
178
- id: "ilxtr:neuron-type-keast-18",
179
- centrelines: [
180
- "n_70"
181
- ]
182
- },
183
- {
184
- id: "ilxtr:neuron-type-keast-6",
185
- centrelines: [
186
- "L1_ventral_root_ramus",
187
- "L1_spinal_n-1",
188
- "lumbar_splanchnic_n",
189
- "L2_spinal_n",
190
- "hypogastric_n",
191
- "L2_ventral_root_ramus"
192
- ]
193
- },
194
- {
195
- id: "ilxtr:neuron-type-keast-19",
196
- centrelines: [
197
- "n_69"
198
- ]
199
- },
200
- {
201
- id: "ilxtr:neuron-type-keast-14",
202
- centrelines: [
203
- "n_72"
204
- ]
205
- }
206
- ];
207
- function f(e, a, n, i, s) {
208
- let t = {};
209
- if (t.dataset = n, t.scaffold = i, t.simulations = s, a ? t.title = a : t.title = e, t.description = "", t.actions = [], e)
210
- switch (e) {
211
- case "ICN":
212
- t.title = "RNA", t.description = "The distribution of neurons in the intrinsic cardiac nervous system (ICN) were mapped and visualized in a 3D reconstruction of a male rat heart.", t.actions = {
213
- search: {
214
- title: "Explore data",
215
- resource: "icn",
216
- type: "Search",
217
- label: "ICN",
218
- filter: {
219
- facet: "genotype",
220
- term: "heart"
221
- }
222
- },
223
- plot: {
224
- title: "View plot",
225
- label: "ICN",
226
- resource: "https://mapcore-bucket1.s3-us-west-2.amazonaws.com/ISAN/csv-data/use-case-4/RNA_Seq.csv",
227
- type: "Plot",
228
- plotType: "heatmap",
229
- datasetTitle: "Molecular Phenotype Distribution of Single Rat Intracardiac Neurons",
230
- datasetDescription: "Images collected from serial cryostat sectioning of a cryopreserved heart was used to reconstruct the 3D context. Transcriptional profiles taken from isolated single neurons and mapped back into the previously generated 3D context.",
231
- datasetUrl: "https://discover.pennsieve.io/datasets/29",
232
- datasetImage: "https://assets.discover.pennsieve.io/dataset-assets/29/6/revisions/1/banner.jpg"
233
- }
234
- };
235
- break;
236
- }
237
- else
238
- t.actions = [];
239
- return t;
240
- }
241
- function E(e, a, n, i, s) {
242
- if (e || a) {
243
- let t = {};
244
- switch (e) {
245
- case "UBERON:0001157":
246
- t.title = "Colon", t.description = "", t.actions = {
247
- search: {
248
- title: "Explore data",
249
- label: "Colon",
250
- resource: "https://sparc.science/data?type=dataset&q=colon",
251
- type: "Search",
252
- filter: {
253
- facet: "genotype",
254
- term: "colon"
255
- }
256
- },
257
- scaffold: {
258
- title: "View 3D scaffold",
259
- label: "Colon",
260
- resource: "https://mapcore-bucket1.s3-us-west-2.amazonaws.com/Generic+Scaffold/Colon/human/humanColon_metadata.json",
261
- type: "Scaffold"
262
- }
263
- };
264
- break;
265
- case "UBERON:0000948":
266
- case "UBERON:0002080":
267
- t.title = "Heart", t.description = "", t.actions = {
268
- search: {
269
- title: "Explore data",
270
- label: "Heart",
271
- resource: "https://sparc.science/data?type=dataset&q=colon",
272
- type: "Search",
273
- filter: {
274
- facet: "genotype",
275
- term: "heart"
276
- }
277
- },
278
- scaffold: {
279
- title: "View 3D scaffold",
280
- label: "Heart",
281
- resource: "https://mapcore-bucket1.s3-us-west-2.amazonaws.com/Generic+Scaffold/Heart/human/humanHeart_metadata.json",
282
- type: "Scaffold"
283
- }
284
- };
285
- break;
286
- case "UBERON:0002048":
287
- t.title = "Lung", t.description = "", t.actions = {
288
- search: {
289
- title: "Explore data",
290
- label: "Lung",
291
- resource: "https://sparc.science/data?type=dataset&q=lung",
292
- type: "Search"
293
- },
294
- scaffold: {
295
- title: "View 3D scaffold",
296
- label: "Lung",
297
- resource: "https://mapcore-bucket1.s3-us-west-2.amazonaws.com/Generic+Scaffold/Lungs/human/humanLeftLung_metadata.json",
298
- type: "Scaffold"
299
- }
300
- };
301
- break;
302
- default:
303
- t = f(e, a, n, i, s);
304
- break;
305
- }
306
- return t;
307
- }
308
- }
309
- function b(e, a, n, i, s) {
310
- if (e || a) {
311
- let t = {};
312
- switch (e) {
313
- case "UBERON:0000948":
314
- case "UBERON:0002080":
315
- s ? t = f(e, a, n, i, s) : (t.title = "Heart", t.description = "", t.actions = {
316
- search: {
317
- title: "Explore data",
318
- label: "Heart",
319
- resource: "https://sparc.science/data?type=dataset&q=heart",
320
- type: "Search",
321
- filter: {
322
- facet: "genotype",
323
- term: "heart"
324
- }
325
- },
326
- scaffold: {
327
- title: "View 3D scaffold",
328
- label: "Heart",
329
- resource: "https://mapcore-bucket1.s3-us-west-2.amazonaws.com/Generic+Scaffold/Heart/rat/ratHeart_metadata.json",
330
- type: "Scaffold"
331
- },
332
- simulation: {
333
- title: "Explore simulations",
334
- label: "Heart",
335
- resource: "https://sparc.science/data?type=simulation&q=heart",
336
- type: "URL"
337
- }
338
- });
339
- break;
340
- case "UBERON:0001156":
341
- t.title = "Colon", t.description = "", t.actions = {
342
- search: {
343
- title: "Explore data",
344
- label: "Colon",
345
- resource: "https://sparc.science/data?type=dataset&q=colon",
346
- type: "Search"
347
- }
348
- };
349
- break;
350
- case "UBERON:0002108":
351
- t.title = "Small intestines", t.description = "", t.actions = {
352
- search: {
353
- title: "Explore data",
354
- label: "Colon",
355
- resource: "https://sparc.science/data?type=dataset&q=small+intestines",
356
- type: "Search"
357
- }
358
- };
359
- break;
360
- case "UBERON:0001255":
361
- t.title = "Urinary bladder", t.description = "", t.actions = {
362
- search: {
363
- title: "Explore data",
364
- label: "Urinary Bladder",
365
- resource: "https://sparc.science/data?type=dataset&q=bladder",
366
- type: "Search"
367
- },
368
- scaffold: {
369
- title: "View 3D scaffold",
370
- label: "Bladder",
371
- resource: "https://mapcore-bucket1.s3-us-west-2.amazonaws.com/Generic+Scaffold/Bladder/rat/ratBladder_metadata.json",
372
- type: "Scaffold"
373
- }
374
- };
375
- break;
376
- case "UBERON:0002048":
377
- t.title = "Lung", t.description = "", t.actions = {
378
- search: {
379
- title: "Explore data",
380
- label: "Lung",
381
- resource: "https://sparc.science/data?type=dataset&q=lung",
382
- type: "Search"
383
- }
384
- };
385
- break;
386
- case "ICN":
387
- t.title = "RNA", t.description = "The distribution of neurons in the intrinsic cardiac nervous system (ICN) were mapped and visualized in a 3D reconstruction of a male rat heart.", t.actions = {
388
- search: {
389
- title: "Explore data",
390
- resource: "icn",
391
- type: "Search"
392
- },
393
- plot: {
394
- title: "View plot",
395
- label: "ICN",
396
- resource: "https://mapcore-bucket1.s3-us-west-2.amazonaws.com/ISAN/csv-data/use-case-4/RNA_Seq.csv",
397
- type: "Plot",
398
- plotType: "heatmap",
399
- datasetTitle: "Molecular Phenotype Distribution of Single Rat Intracardiac Neurons",
400
- datasetDescription: "Images collected from serial cryostat sectioning of a cryopreserved heart was used to reconstruct the 3D context. Transcriptional profiles taken from isolated single neurons and mapped back into the previously generated 3D context.",
401
- datasetUrl: "https://discover.pennsieve.io/datasets/29",
402
- datasetImage: "https://assets.discover.pennsieve.io/dataset-assets/29/6/revisions/1/banner.jpg"
403
- }
404
- };
405
- break;
406
- case "UBERON:0000945":
407
- case "UBERON:0001160":
408
- case "UBERON:0001161":
409
- t.title = "Stomach", t.description = "", t.actions = {
410
- search: {
411
- title: "Explore data",
412
- label: "Stomach",
413
- resource: "https://sparc.science/data?type=dataset&q=stomach",
414
- type: "Search"
415
- },
416
- scaffold: {
417
- title: "View 3D scaffold",
418
- label: "Stomach",
419
- resource: "https://mapcore-bucket1.s3-us-west-2.amazonaws.com/Generic+Scaffold/Stomach/rat/ratStomach_metadata.json",
420
- type: "Scaffold"
421
- }
422
- };
423
- break;
424
- case "UBERON:0001759":
425
- a ? t.title = a : t.title = "Vagus nerve", t.actions = {
426
- search: {
427
- title: "Explore data",
428
- label: "Vagus nerve",
429
- resource: "https://sparc.science/data?type=dataset&q=vagus+nerve",
430
- type: "Search"
431
- },
432
- simulation: {
433
- title: "Explore simulations",
434
- label: "Vagus nerve",
435
- resource: "https://sparc.science/data?type=simulation&q=vagus%20nerve",
436
- type: "simulation"
437
- }
438
- };
439
- break;
440
- default:
441
- t = f(e, a, n, i, s);
442
- break;
443
- }
444
- return t;
445
- }
446
- }
447
- function R(e, a, n, i, s) {
448
- if (e || a) {
449
- let t = {};
450
- switch (e) {
451
- case "UBERON:0001156":
452
- t.title = "Colon", t.description = "", t.actions = {
453
- search: {
454
- title: "Explore data",
455
- label: "Colon",
456
- resource: "https://sparc.science/data?type=dataset&q=colon",
457
- type: "Search"
458
- },
459
- scaffold: {
460
- title: "View 3D scaffold",
461
- label: "Colon",
462
- resource: "https://mapcore-bucket1.s3-us-west-2.amazonaws.com/Generic+Scaffold/Colon/mouse/mouseColon_metadata.json",
463
- type: "Scaffold"
464
- }
465
- };
466
- break;
467
- case "UBERON:0002048":
468
- t.title = "Lung", t.description = "", t.actions = {
469
- search: {
470
- title: "Explore data",
471
- label: "Lung",
472
- resource: "https://sparc.science/data?type=dataset&q=lung",
473
- type: "Search"
474
- },
475
- scaffold: {
476
- title: "View 3D scaffold",
477
- label: "Lung",
478
- resource: "https://mapcore-bucket1.s3-us-west-2.amazonaws.com/Generic+Scaffold/Lungs/mouse/mouseLeftLung_metadata.json",
479
- type: "Scaffold"
480
- }
481
- };
482
- break;
483
- case "UBERON:0002108":
484
- t.title = "Small intestines", t.description = "", t.actions = {
485
- search: {
486
- title: "Explore data",
487
- label: "Colon",
488
- resource: "https://sparc.science/data?type=dataset&q=small+intestines",
489
- type: "Search"
490
- }
491
- };
492
- break;
493
- default:
494
- t = f(e, a, n, i, s);
495
- break;
496
- }
497
- return t;
498
- }
499
- }
500
- function k(e, a, n, i, s) {
501
- if (e || a) {
502
- let t = {};
503
- switch (e) {
504
- case "UBERON:0008972":
505
- t.title = "Colon", t.description = "", t.actions = {
506
- search: {
507
- title: "Explore data",
508
- label: "Colon",
509
- resource: "https://sparc.science/data?type=dataset&q=colon",
510
- type: "Search"
511
- },
512
- scaffold: {
513
- title: "View 3D scaffold",
514
- label: "Colon",
515
- resource: "https://mapcore-bucket1.s3-us-west-2.amazonaws.com/Generic+Scaffold/Colon/pig/pigColon_metadata.json",
516
- type: "Scaffold"
517
- }
518
- };
519
- break;
520
- case "UBERON:0002108":
521
- t.title = "Small intestines", t.description = "", t.actions = {
522
- search: {
523
- title: "Explore data",
524
- label: "Colon",
525
- resource: "https://sparc.science/data?type=dataset&q=small+intestines",
526
- type: "Search"
527
- }
528
- };
529
- break;
530
- case "UBERON:0000948":
531
- case "UBERON:0002080":
532
- t.title = "Heart", t.description = "", t.actions = {
533
- search: {
534
- title: "Explore data",
535
- label: "Heart",
536
- resource: "https://sparc.science/data?type=dataset&q=colon",
537
- type: "Search",
538
- filter: {
539
- facet: "genotype",
540
- term: "heart"
541
- }
542
- },
543
- scaffold: {
544
- title: "View 3D scaffold",
545
- label: "Heart",
546
- resource: "https://mapcore-bucket1.s3-us-west-2.amazonaws.com/Generic+Scaffold/Heart/pig/pigHeart_metadata.json",
547
- type: "Scaffold"
548
- }
549
- };
550
- break;
551
- default:
552
- t = f(e, a, n, i, s);
553
- break;
554
- }
555
- return t;
556
- }
557
- }
558
- function B(e, a, n, i, s, t) {
559
- switch (a) {
560
- case "NCBITaxon:9606":
561
- return E(e, n, i, s, t);
562
- case "NCBITaxon:9823":
563
- return k(e, n, i, s, t);
564
- case "NCBITaxon:10090":
565
- return R(e, n, i, s, t);
566
- case "NCBITaxon:10114":
567
- return b(e, n, i, s, t);
568
- default:
569
- return f(e, a, n, i, s);
570
- }
571
- }
572
- function L() {
573
- return [
574
- { id: "UBERON:0000948", name: "Heart", type: "simulation" },
575
- { id: "UBERON:0001156", name: "Colon", type: "simulation" },
576
- { id: "UBERON:0001255", name: "Bladder", type: "simulation" },
577
- { id: "UBERON:0000945", name: "Stomach", type: "simulation" },
578
- { id: "UBERON:0001759", name: "Vagus nerve", type: "simulation" },
579
- { id: "UBERON:0002108", name: "Small intestines", type: "simulation" },
580
- { id: "UBERON:0002107", name: "Liver", type: "simulation" }
581
- ];
582
- }
583
- function A() {
584
- return L();
585
- }
586
- function _(e) {
587
- if (e)
588
- for (let a = 0; a < p.length; a++) {
589
- if (p[a].id == e)
590
- return p[a].centrelines;
591
- if (p[a].centrelines.find((i) => i === e))
592
- return [p[a].id];
593
- }
594
- return [];
595
- }
596
- function U(e) {
597
- if (e) {
598
- const a = e.toLowerCase();
599
- if (a.includes("heart"))
600
- return { id: "UBERON:0000948", name: "Heart" };
601
- if (a.includes("liver"))
602
- return { id: "UBERON:0002107", name: "Liver" };
603
- if (a.includes("stomach"))
604
- return { id: "UBERON:0000945", name: "Stomach" };
605
- if (a.includes("colon"))
606
- return { id: "UBERON:0001156", name: "Colon" };
607
- if (a.includes("bladder"))
608
- return { id: "UBERON:0001255", name: "Bladder" };
609
- }
610
- }
611
- function O(e, a) {
612
- if (e && e.resource) {
613
- let n = e.resource;
614
- Array.isArray(n) && n[0] && (n = n[0]);
615
- let i, s, t, o, l, c = n.taxonomy;
616
- if (n.data && n.data.id ? (i = n.data.id, s = n.data.id) : n.feature && (i = n.feature.models, s = n.feature.label, t = n.feature.dataset, o = n.feature.scaffold, l = n.feature.simulations), i || s) {
617
- let d = B(i, c, s, t, o, l);
618
- if (d && d.actions)
619
- return d.actions[a];
620
- }
621
- }
622
- }
623
- let m = 7, r = 5;
624
- const T = [
625
- {
626
- id: "UBERON:0000948",
627
- name: "heart",
628
- showAtZoom: 1
629
- },
630
- {
631
- id: "UBERON:0001759",
632
- name: "vagus nerve",
633
- showAtZoom: 1
634
- },
635
- {
636
- id: "UBERON:0001155",
637
- name: "colon",
638
- showAtZoom: 1
639
- },
640
- {
641
- id: "UBERON:0000945",
642
- name: "stomach",
643
- showAtZoom: 1
644
- },
645
- {
646
- id: "UBERON:0001013",
647
- name: "adipose tissue",
648
- showAtZoom: 1
649
- },
650
- {
651
- id: "UBERON:0001255",
652
- name: "urinary bladder",
653
- showAtZoom: 1
654
- },
655
- {
656
- id: "UBERON:0001348",
657
- name: "brown adipose tissue",
658
- showAtZoom: 6
659
- },
660
- {
661
- id: "UBERON:0002008",
662
- name: "cardiac nerve plexus",
663
- showAtZoom: 1
664
- },
665
- {
666
- id: "UBERON:0002240",
667
- name: "spinal cord",
668
- showAtZoom: 1
669
- },
670
- {
671
- id: "UBERON:0002005",
672
- name: "Enteric Nervous System",
673
- showAtZoom: 4
674
- },
675
- {
676
- id: "UBERON:0013702",
677
- name: "body proper",
678
- showAtZoom: 1
679
- },
680
- {
681
- id: "UBERON:0002298",
682
- name: "brainstem",
683
- showAtZoom: 1
684
- },
685
- {
686
- id: "UBERON:0002439",
687
- name: "myenteric nerve plexus",
688
- showAtZoom: 6
689
- },
690
- {
691
- id: "UBERON:0000010",
692
- name: "peripheral nervous system",
693
- showAtZoom: 6
694
- },
695
- {
696
- id: "UBERON:0002048",
697
- name: "lung",
698
- showAtZoom: 1
699
- },
700
- {
701
- id: "UBERON:0002410",
702
- name: "autonomic nervous system",
703
- showAtZoom: 6
704
- },
705
- {
706
- id: "UBERON:0002441",
707
- name: "cervicothoracic ganglion",
708
- showAtZoom: 6
709
- },
710
- {
711
- id: "UBERON:0005363",
712
- name: "inferior vagus X ganglion",
713
- showAtZoom: 6
714
- },
715
- {
716
- id: "UBERON:0001264",
717
- name: "pancreas",
718
- showAtZoom: 1
719
- },
720
- {
721
- id: "UBERON:0001884",
722
- name: "phrenic nerve",
723
- showAtZoom: 6
724
- },
725
- {
726
- id: "UBERON:0002059",
727
- name: "submandibular ganglion",
728
- showAtZoom: 7
729
- },
730
- {
731
- id: "UBERON:0001347",
732
- name: "white adipose tissue",
733
- showAtZoom: 6
734
- },
735
- {
736
- id: "UBERON:0001556",
737
- name: "lower urinary tract",
738
- showAtZoom: 1
739
- },
740
- {
741
- id: "UBERON:0002262",
742
- name: "celiac ganglion",
743
- showAtZoom: 5
744
- },
745
- {
746
- id: "UBERON:0000955",
747
- name: "Brain",
748
- showAtZoom: 1
749
- },
750
- {
751
- id: "UBERON:0000160",
752
- name: "intestine",
753
- showAtZoom: 1
754
- },
755
- {
756
- id: "UBERON:0001322",
757
- name: "sciatic nerve",
758
- showAtZoom: 1
759
- },
760
- {
761
- id: "UBERON:0001649",
762
- name: "glossopharyngeal nerve",
763
- showAtZoom: 6
764
- },
765
- {
766
- id: "UBERON:0002063",
767
- name: "sinus venosus",
768
- showAtZoom: 6
769
- },
770
- {
771
- id: "UBERON:0002107",
772
- name: "liver",
773
- showAtZoom: 1
774
- },
775
- {
776
- id: "UBERON:0002113",
777
- name: "kidney",
778
- showAtZoom: 1
779
- },
780
- {
781
- id: "UBERON:0002481",
782
- name: "bone tissue",
783
- showAtZoom: 1
784
- },
785
- {
786
- id: "UBERON:0004907",
787
- name: "lower digestive tract",
788
- showAtZoom: 4
789
- },
790
- {
791
- id: "UBERON:0000044",
792
- name: "Dorsal root ganglion",
793
- showAtZoom: 5
794
- },
795
- // New levels from Keeran
796
- {
797
- id: "UBERON:0001736",
798
- name: "Submandibular gland",
799
- showAtZoom: m,
800
- keyword: !0
801
- },
802
- {
803
- id: "UBERON:0001103",
804
- name: "Diaphragm",
805
- showAtZoom: r,
806
- keyword: !0
807
- },
808
- {
809
- id: "UBERON:0001160",
810
- name: "Fundus of stomach",
811
- showAtZoom: r,
812
- keyword: !0
813
- },
814
- {
815
- id: "UBERON:0000955",
816
- name: "Brain",
817
- showAtZoom: r,
818
- keyword: !0
819
- },
820
- {
821
- id: "UBERON:0003708",
822
- name: "Carotid sinus",
823
- showAtZoom: m,
824
- keyword: !0
825
- },
826
- {
827
- id: "UBERON:0002079",
828
- name: "Left cardiac atrium",
829
- showAtZoom: r,
830
- keyword: !0
831
- },
832
- {
833
- id: "ILX:0485722",
834
- name: "Nodose ganglion",
835
- showAtZoom: m,
836
- keyword: !0
837
- },
838
- {
839
- id: "UBERON:0002078",
840
- name: "Right cardiac atrium",
841
- showAtZoom: r,
842
- keyword: !0
843
- },
844
- {
845
- id: "UBERON:0002084",
846
- name: "Heart left ventricle",
847
- showAtZoom: r,
848
- keyword: !0
849
- },
850
- {
851
- id: "UBERON:0002080",
852
- name: "Heart right ventricle",
853
- showAtZoom: r,
854
- keyword: !0
855
- },
856
- {
857
- id: "UBERON:0001508",
858
- name: "Arch of Aorta",
859
- showAtZoom: r,
860
- keyword: !0
861
- },
862
- {
863
- id: "UBERON:0001738",
864
- name: "Thyroid cartilage",
865
- showAtZoom: r,
866
- keyword: !0
867
- },
868
- {
869
- id: "UBERON:0000388",
870
- name: "Epiglottis",
871
- showAtZoom: r,
872
- keyword: !0
873
- }
874
- ];
875
- function C(e) {
876
- return e[0].toUpperCase() + e.substring(1);
877
- }
878
- const Z = {
879
- emits: ["flatmap-provenance-ready", "resource-selected", "species-changed"],
880
- props: {
881
- /**
882
- * Object containing information for
883
- * the required viewing.
884
- */
885
- entry: Object,
886
- visible: {
887
- type: Boolean,
888
- default: !0
889
- },
890
- mouseHovered: {
891
- type: Boolean,
892
- default: !1
893
- }
894
- },
895
- computed: {
896
- ...S(w, N),
897
- syncMode() {
898
- return this.splitFlowStore.syncMode;
899
- },
900
- useHelpModeDialog() {
901
- return this.settingsStore.useHelpModeDialog;
902
- },
903
- connectivityInfoSidebar() {
904
- return this.settingsStore.connectivityInfoSidebar;
905
- }
906
- },
907
- mounted: function() {
908
- u.on("startHelp", () => {
909
- this.startHelp();
910
- }), this.multiflatmapRef = this.$refs.multiflatmap, this.flatmapRef = this.$refs.flatmap, this.scaffoldRef = this.$refs.scaffold;
911
- },
912
- methods: {
913
- toggleSyncMode: function() {
914
- },
915
- getState: function() {
916
- },
917
- openMap: function(e) {
918
- e === "SYNC" ? (this.toggleSyncMode(), this.trackOpenMap("toggle_map_sync_mode")) : (u.emit("OpenNewMap", e), this.trackOpenMap(`open_new_${e}_map`)), this.onConnectivityInfoClose();
919
- },
920
- trackOpenMap: function(e) {
921
- v.sendEvent({
922
- event: "interaction_event",
923
- event_name: "portal_maps_open_map",
924
- category: e,
925
- location: "open_new_map"
926
- });
927
- },
928
- updateWithViewUrl: function() {
929
- },
930
- /**
931
- * Perform a local search on this contentvuer
932
- */
933
- search: function() {
934
- return !1;
935
- },
936
- /**
937
- * Get a list of search suggestions on this contentvuer
938
- */
939
- searchSuggestions: function() {
940
- },
941
- /**
942
- * Callback when the vuers emit a selected event.
943
- */
944
- resourceSelected: function(e, a, n) {
945
- var l, c, d;
946
- if (this.resourceHasAction(a)) {
947
- u.emit("PopoverActionClick", a);
948
- return;
949
- }
950
- let i, s = "none", t = !1;
951
- const o = {
952
- paneIndex: this.entry.id,
953
- type: e,
954
- resource: a,
955
- internalName: void 0,
956
- eventType: void 0
957
- };
958
- if (e == "MultiFlatmap" || e == "Flatmap")
959
- if (o.internalName = this.idNamePair[a.feature.models], a.eventType == "click")
960
- if (o.eventType = "selected", a.feature.type == "marker") {
961
- let y = this.idNamePair[a.feature.models], g = T.filter(
962
- (h) => h.id === a.feature.models
963
- );
964
- this.settingsStore.isFeaturedMarkerIdentifier(
965
- a.feature.id
966
- ) ? i = {
967
- type: "Search",
968
- term: this.settingsStore.featuredMarkerDoi(
969
- a.feature.id
970
- ),
971
- featuredDataset: !0
972
- } : g.filter((h) => h.keyword).length > 0 ? i = {
973
- type: "Search",
974
- term: "http://purl.obolibrary.org/obo/" + a.feature.models.replace(":", "_")
975
- } : i = {
976
- type: "Facet",
977
- facet: y,
978
- facetPropPath: "anatomy.organ.category.name",
979
- term: "Anatomical structure"
980
- }, t = !0, e == "MultiFlatmap" && this.$refs.multiflatmap.getCurrentFlatmap().mapImp.clearSearchResults();
981
- } else
982
- a.feature.type == "feature" && (this.syncMode ? t = !0 : s = "scaffold");
983
- else
984
- a.eventType == "mouseenter" && (o.eventType = "highlighted", t = !0);
985
- else
986
- e == "Scaffold" && (a && a[0] && ((((l = a[0].data) == null ? void 0 : l.id) === void 0 || ((c = a[0].data) == null ? void 0 : c.id) === "") && (a[0].data.id = (d = a[0].data) == null ? void 0 : d.group), o.internalName = a[0].data.id, a[0].data.lastActionOnMarker === !0 && (i = {
987
- type: "Facet",
988
- facet: C(a[0].data.id),
989
- facetPropPath: "anatomy.organ.category.name",
990
- term: "Anatomical structure"
991
- })), o.eventType = "selected", t = !0, s = "search");
992
- i === void 0 && n && (i = O(o, s)), i && u.emit("PopoverActionClick", i), t && this.$emit("resource-selected", o);
993
- },
994
- resourceHasAction: function(e) {
995
- return e.type === "URL" || e.type === "Search" || e.type === "Neuron Search" || e.type == "Facet" || e.type == "Facets";
996
- },
997
- /**
998
- * Check if this viewer is currently visible
999
- */
1000
- isVisible: function() {
1001
- return this.splitFlowStore.getPaneNameById(this.entry.id) !== void 0;
1002
- },
1003
- displayTooltip: function() {
1004
- },
1005
- /**
1006
- * Get the term to zoom/highlight in a synchronisation event,
1007
- * if it cannot be found in the map, it will perform several
1008
- * calls to try to ge a valid name/id.
1009
- */
1010
- getNameAndIdFromSyncData: async function(e) {
1011
- let a = e.internalName;
1012
- a === void 0 && e.resource && (a = e.resource.label);
1013
- let n;
1014
- if (e.resource && e.resource.resource && (n = e.resource.resource[0]), this.entry.type === "Scaffold") {
1015
- if (this.$refs.scaffold.findObjectsWithGroupName(a).length === 0) {
1016
- if (e.resource && e.resource.feature) {
1017
- const t = _(e.resource.feature.models);
1018
- if (t.length > 0)
1019
- return t;
1020
- }
1021
- let s = U(a);
1022
- if (s)
1023
- return s;
1024
- if (n && e.eventType === "selected")
1025
- return fetch(`${this.apiLocation}get-related-terms/${n}`).then((t) => t.json()).then((t) => {
1026
- if (t.uberon.array.length > 0)
1027
- return a = t.uberon.array[0].name.charAt(0).toUpperCase() + t.uberon.array[0].name.slice(1), n = t.uberon.array[0].id.toUpperCase(), { id: n, name: a };
1028
- });
1029
- }
1030
- } else if (this.entry.type === "MultiFlatmap")
1031
- if (a === "Bladder")
1032
- a = "Urinary Bladder";
1033
- else {
1034
- const i = _(a);
1035
- i.length > 0 && (a = i[0]);
1036
- }
1037
- return { id: n, name: a };
1038
- },
1039
- // Get the species and andaotmy info for the featured datasets
1040
- getDatasetAnatomyInfo: function(e) {
1041
- fetch(`${this.apiLocation}dataset_info/anatomy?identifier=${e}`).then((a) => a.json()).then((a) => {
1042
- const n = a.result[0];
1043
- let i;
1044
- try {
1045
- i = n.anatomy.organ[0].curie;
1046
- } catch {
1047
- i = void 0;
1048
- }
1049
- let s;
1050
- try {
1051
- s = n.item.curie;
1052
- } catch {
1053
- s = void 0;
1054
- }
1055
- let t;
1056
- try {
1057
- let o = 0, l = !1;
1058
- for (; !l && o < n.organisms.subject.length; ) {
1059
- const c = n.organisms.subject[o];
1060
- c.species && (t = c.species.name, l = !0), o += 1;
1061
- }
1062
- } catch {
1063
- t = void 0;
1064
- }
1065
- this.settingsStore.updateFeaturedMarker({
1066
- identifier: e,
1067
- marker: i,
1068
- doi: s,
1069
- species: t
1070
- });
1071
- });
1072
- },
1073
- // Check if the old featured dataset api has any info
1074
- oldFeaturedDatasetApiHasInfo: async function() {
1075
- let a = await (await fetch(`${this.apiLocation}get_featured_datasets_identifiers`)).json();
1076
- return !a.identifiers || a.identifiers.length == 0 ? !1 : a.identifiers;
1077
- },
1078
- // Check if the new featured dataset api has any info
1079
- newFeaturedDatasetApiHasInfo: async function() {
1080
- let a = await (await fetch(`${this.apiLocation}get_featured_dataset`)).json();
1081
- return !a.datasets || a.datasets.length == 0 ? !1 : a.datasets.map((n) => n.id);
1082
- },
1083
- /**
1084
- * Get a list of featured datasets to display.
1085
- */
1086
- getFeaturedDatasets: async function() {
1087
- let e = [], a = await this.oldFeaturedDatasetApiHasInfo();
1088
- if (a)
1089
- e = a;
1090
- else {
1091
- let n = await this.newFeaturedDatasetApiHasInfo();
1092
- n && (e = n);
1093
- }
1094
- this.settingsStore.updateFeatured(e), e.forEach((n) => {
1095
- this.getDatasetAnatomyInfo(n);
1096
- });
1097
- },
1098
- zoomToFeatures: function() {
1099
- },
1100
- handleSyncMouseEvent: async function(e) {
1101
- let a = await this.getNameAndIdFromSyncData(e);
1102
- e.eventType === "highlighted" ? this.highlightFeatures(a) : e.eventType === "selected" && this.displayTooltip(a);
1103
- },
1104
- /**
1105
- * Handle sync pan zoom event
1106
- */
1107
- handleSyncPanZoomEvent: function() {
1108
- },
1109
- highlightFeatures: function() {
1110
- },
1111
- receiveSynchronisedEvent: async function(e) {
1112
- if (e.paneIndex !== this.entry.id)
1113
- e.eventType == "panZoom" || this.handleSyncMouseEvent(e);
1114
- else if (e.eventType == "selected") {
1115
- let a = await this.getNameAndIdFromSyncData(e);
1116
- this.zoomToFeatures(a, !1);
1117
- }
1118
- },
1119
- requestSynchronisedEvent: function() {
1120
- },
1121
- getAvailableTerms: function() {
1122
- let e = A();
1123
- for (let a = 0; a < e.length; a++)
1124
- this.idNamePair[e[a].id] = e[a].name;
1125
- if (this.apiLocation) {
1126
- this._controller && this._controller.abort(), this._controller = new AbortController();
1127
- let a = this._controller.signal;
1128
- fetch(`${this.apiLocation}get-organ-curies`, {
1129
- signal: a
1130
- }).then((n) => n.json()).then((n) => {
1131
- this._controller = void 0, n.uberon.array.forEach((i) => {
1132
- this.idNamePair[i.id.toUpperCase()] = i.name.charAt(0).toUpperCase() + i.name.slice(1);
1133
- });
1134
- });
1135
- }
1136
- },
1137
- flatmapMarkerUpdate() {
1138
- },
1139
- onResize: function() {
1140
- },
1141
- startHelp: function() {
1142
- this.isInHelp === !1 && (this.helpMode = !0, window.addEventListener("mousedown", this.checkEndHelpMouseDown), this.isInHelp = !0);
1143
- },
1144
- endHelp: function() {
1145
- window.removeEventListener("mousedown", this.checkEndHelpMouseDown), this.helpMode = !1, setTimeout(() => {
1146
- this.isInHelp = !1;
1147
- }, 200);
1148
- },
1149
- onHelpModeShowNext: function() {
1150
- this.helpModeActiveItem += 1;
1151
- },
1152
- onHelpModeLastItem: function(e) {
1153
- e && (this.helpModeLastItem = !0);
1154
- },
1155
- onFinishHelpMode: function() {
1156
- this.helpMode = !1, this.helpModeActiveItem = 0, this.helpModeLastItem = !1;
1157
- },
1158
- onTooltipShown: function() {
1159
- this.$refs.multiflatmap && this.$refs.multiflatmapHelp && this.$refs.multiflatmapHelp.toggleTooltipHighlight(), this.$refs.flatmap && this.$refs.flatmapHelp && this.$refs.flatmapHelp.toggleTooltipHighlight(), this.$refs.scaffold && this.$refs.scaffoldHelp && this.$refs.scaffoldHelp.toggleTooltipHighlight();
1160
- },
1161
- onMapTooltipShown: function() {
1162
- this.$refs.multiflatmap && this.$refs.multiflatmapHelp && this.$refs.multiflatmapHelp.toggleTooltipPinHighlight(), this.$refs.flatmap && this.$refs.flatmapHelp && this.$refs.flatmapHelp.toggleTooltipPinHighlight(), this.$refs.scaffold && this.$refs.scaffoldHelp && this.$refs.scaffoldHelp.toggleTooltipPinHighlight();
1163
- },
1164
- /**
1165
- * End help-mode only if user clicks outside of help mode dialog.
1166
- */
1167
- checkEndHelpMouseDown: function(e) {
1168
- e.target.closest(".help-mode-dialog") || this.endHelp();
1169
- },
1170
- mapHoverHighlight: function(e) {
1171
- if (this.visible) {
1172
- const a = this.settingsStore.hoverAnatomies, n = this.settingsStore.hoverOrgans;
1173
- a.length || n.length ? (clearTimeout(this.hoverDelay), this.multiflatmapRef || this.flatmapRef ? e == null || e.zoomToFeatures(a, { noZoomIn: !0 }) : this.scaffoldRef && (e == null || e.changeHighlightedByName(n, "", !1))) : this.hoverDelay = setTimeout(() => {
1174
- this.multiflatmapRef || this.flatmapRef ? e == null || e.clearSearchResults() : this.scaffoldRef && (e == null || e.changeHighlightedByName(n, "", !1));
1175
- }, 500);
1176
- }
1177
- },
1178
- onConnectivityInfoOpen: function(e) {
1179
- u.emit("connectivity-info-open", e);
1180
- },
1181
- onConnectivityInfoClose: function() {
1182
- u.emit("connectivity-info-close");
1183
- }
1184
- },
1185
- data: function() {
1186
- return {
1187
- apiLocation: void 0,
1188
- activeSpecies: "Rat",
1189
- scaffoldCamera: void 0,
1190
- mainStyle: {
1191
- height: this.entry.datasetTitle ? "calc(100% - 30px)" : "100%",
1192
- width: "100%",
1193
- bottom: "0px"
1194
- },
1195
- helpMode: !1,
1196
- helpModeActiveItem: 0,
1197
- helpModeLastItem: !1,
1198
- multiflatmapRef: null,
1199
- flatmapRef: null,
1200
- scaffoldRef: null,
1201
- idNamePair: {},
1202
- scaffoldLoaded: !1,
1203
- isInHelp: !1,
1204
- hoverDelay: void 0
1205
- };
1206
- },
1207
- created: function() {
1208
- this.flatmapAPI = void 0, this.apiLocation = void 0, this.settingsStore.flatmapAPI && (this.flatmapAPI = this.settingsStore.flatmapAPI), this.settingsStore.sparcApi && (this.apiLocation = this.settingsStore.sparcApi);
1209
- },
1210
- watch: {
1211
- helpMode: function(e) {
1212
- e || (this.helpModeActiveItem = 0);
1213
- }
1214
- }
1215
- };
1216
- export {
1217
- Z as C
1218
- };