@vitessce/dev 3.5.5 → 3.5.7
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/{deflate-c52145fa.js → deflate-e42f8666.js} +1 -1
- package/dist/{higlass-0bc95289.js → higlass-16c69035.js} +1 -1
- package/dist/{index-c58bafdf.js → index-242a260a.js} +1002 -156
- package/dist/{index-ecfcf2f3.js → index-632c59c9.js} +2 -2
- package/dist/index.js +1 -1
- package/dist/{jpeg-4a8dd832.js → jpeg-3edfc0bd.js} +1 -1
- package/dist/{lerc-229a68d7.js → lerc-0d506426.js} +1 -1
- package/dist/{lzw-2ebe37ef.js → lzw-93ca1380.js} +1 -1
- package/dist/{packbits-69a10647.js → packbits-6e34f5c8.js} +1 -1
- package/dist/{raw-605b3dae.js → raw-6916b128.js} +1 -1
- package/dist/{troika-three-text.esm-4cfc8853.js → troika-three-text.esm-bb0b54b3.js} +1 -1
- package/dist/{webimage-5453f579.js → webimage-35ffb81e.js} +1 -1
- package/package.json +5 -5
|
@@ -69,7 +69,9 @@ const ViewType$2 = {
|
|
|
69
69
|
DOT_PLOT: "dotPlot",
|
|
70
70
|
FEATURE_BAR_PLOT: "featureBarPlot",
|
|
71
71
|
BIOMARKER_SELECT: "biomarkerSelect",
|
|
72
|
-
LINK_CONTROLLER: "linkController"
|
|
72
|
+
LINK_CONTROLLER: "linkController",
|
|
73
|
+
DUAL_SCATTERPLOT: "dualScatterplot",
|
|
74
|
+
TREEMAP: "treemap"
|
|
73
75
|
};
|
|
74
76
|
const DataType$4 = {
|
|
75
77
|
OBS_LABELS: "obsLabels",
|
|
@@ -145,6 +147,7 @@ const FileType$2 = {
|
|
|
145
147
|
OBS_LABELS_ANNDATA_ZARR: "obsLabels.anndata.zarr",
|
|
146
148
|
FEATURE_LABELS_ANNDATA_ZARR: "featureLabels.anndata.zarr",
|
|
147
149
|
SAMPLE_EDGES_ANNDATA_ZARR: "sampleEdges.anndata.zarr",
|
|
150
|
+
SAMPLE_SETS_ANNDATA_ZARR: "sampleSets.anndata.zarr",
|
|
148
151
|
// AnnData - zipped
|
|
149
152
|
OBS_FEATURE_MATRIX_ANNDATA_ZARR_ZIP: "obsFeatureMatrix.anndata.zarr.zip",
|
|
150
153
|
OBS_FEATURE_COLUMNS_ANNDATA_ZARR_ZIP: "obsFeatureColumns.anndata.zarr.zip",
|
|
@@ -157,6 +160,7 @@ const FileType$2 = {
|
|
|
157
160
|
OBS_LABELS_ANNDATA_ZARR_ZIP: "obsLabels.anndata.zarr.zip",
|
|
158
161
|
FEATURE_LABELS_ANNDATA_ZARR_ZIP: "featureLabels.anndata.zarr.zip",
|
|
159
162
|
SAMPLE_EDGES_ANNDATA_ZARR_ZIP: "sampleEdges.anndata.zarr.zip",
|
|
163
|
+
SAMPLE_SETS_ANNDATA_ZARR_ZIP: "sampleSets.anndata.zarr.zip",
|
|
160
164
|
// AnnData - h5ad via reference spec
|
|
161
165
|
OBS_FEATURE_MATRIX_ANNDATA_H5AD: "obsFeatureMatrix.anndata.h5ad",
|
|
162
166
|
OBS_FEATURE_COLUMNS_ANNDATA_H5AD: "obsFeatureColumns.anndata.h5ad",
|
|
@@ -169,6 +173,7 @@ const FileType$2 = {
|
|
|
169
173
|
OBS_LABELS_ANNDATA_H5AD: "obsLabels.anndata.h5ad",
|
|
170
174
|
FEATURE_LABELS_ANNDATA_H5AD: "featureLabels.anndata.h5ad",
|
|
171
175
|
SAMPLE_EDGES_ANNDATA_H5AD: "sampleEdges.anndata.h5ad",
|
|
176
|
+
SAMPLE_SETS_ANNDATA_H5AD: "sampleSets.anndata.h5ad",
|
|
172
177
|
// SpatialData
|
|
173
178
|
IMAGE_SPATIALDATA_ZARR: "image.spatialdata.zarr",
|
|
174
179
|
LABELS_SPATIALDATA_ZARR: "labels.spatialdata.zarr",
|
|
@@ -270,15 +275,23 @@ const CoordinationType$2 = {
|
|
|
270
275
|
HEATMAP_ZOOM_Y: "heatmapZoomY",
|
|
271
276
|
HEATMAP_TARGET_X: "heatmapTargetX",
|
|
272
277
|
HEATMAP_TARGET_Y: "heatmapTargetY",
|
|
273
|
-
OBS_FILTER: "obsFilter",
|
|
274
278
|
OBS_HIGHLIGHT: "obsHighlight",
|
|
279
|
+
OBS_SELECTION: "obsSelection",
|
|
275
280
|
OBS_SET_SELECTION: "obsSetSelection",
|
|
281
|
+
OBS_SELECTION_MODE: "obsSelectionMode",
|
|
282
|
+
OBS_FILTER: "obsFilter",
|
|
283
|
+
OBS_SET_FILTER: "obsSetFilter",
|
|
284
|
+
OBS_FILTER_MODE: "obsFilterMode",
|
|
276
285
|
OBS_SET_HIGHLIGHT: "obsSetHighlight",
|
|
277
286
|
OBS_SET_EXPANSION: "obsSetExpansion",
|
|
278
287
|
OBS_SET_COLOR: "obsSetColor",
|
|
279
|
-
FEATURE_FILTER: "featureFilter",
|
|
280
288
|
FEATURE_HIGHLIGHT: "featureHighlight",
|
|
281
289
|
FEATURE_SELECTION: "featureSelection",
|
|
290
|
+
FEATURE_SET_SELECTION: "featureSetSelection",
|
|
291
|
+
FEATURE_SELECTION_MODE: "featureSelectionMode",
|
|
292
|
+
FEATURE_FILTER: "featureFilter",
|
|
293
|
+
FEATURE_SET_FILTER: "featureSetFilter",
|
|
294
|
+
FEATURE_FILTER_MODE: "featureFilterMode",
|
|
282
295
|
FEATURE_VALUE_COLORMAP: "featureValueColormap",
|
|
283
296
|
FEATURE_VALUE_TRANSFORM: "featureValueTransform",
|
|
284
297
|
FEATURE_VALUE_COLORMAP_RANGE: "featureValueColormapRange",
|
|
@@ -345,14 +358,22 @@ const CoordinationType$2 = {
|
|
|
345
358
|
SPATIAL_CHANNEL_LABEL_SIZE: "spatialChannelLabelSize",
|
|
346
359
|
// Multi-sample / comparative
|
|
347
360
|
SAMPLE_TYPE: "sampleType",
|
|
361
|
+
SAMPLE_SELECTION: "sampleSelection",
|
|
348
362
|
SAMPLE_SET_SELECTION: "sampleSetSelection",
|
|
363
|
+
SAMPLE_SELECTION_MODE: "sampleSelectionMode",
|
|
364
|
+
SAMPLE_FILTER: "sampleFilter",
|
|
365
|
+
SAMPLE_SET_FILTER: "sampleSetFilter",
|
|
366
|
+
SAMPLE_FILTER_MODE: "sampleFilterMode",
|
|
349
367
|
SAMPLE_SET_COLOR: "sampleSetColor",
|
|
368
|
+
SAMPLE_HIGHLIGHT: "sampleHighlight",
|
|
350
369
|
EMBEDDING_POINTS_VISIBLE: "embeddingPointsVisible",
|
|
351
370
|
EMBEDDING_CONTOURS_VISIBLE: "embeddingContoursVisible",
|
|
352
371
|
EMBEDDING_CONTOURS_FILLED: "embeddingContoursFilled",
|
|
353
372
|
EMBEDDING_CONTOUR_PERCENTILES: "embeddingContourPercentiles",
|
|
354
373
|
CONTOUR_COLOR_ENCODING: "contourColorEncoding",
|
|
355
|
-
CONTOUR_COLOR: "contourColor"
|
|
374
|
+
CONTOUR_COLOR: "contourColor",
|
|
375
|
+
// Treemap
|
|
376
|
+
HIERARCHY_LEVELS: "hierarchyLevels"
|
|
356
377
|
};
|
|
357
378
|
const STATUS$1 = {
|
|
358
379
|
LOADING: "loading",
|
|
@@ -378,7 +399,8 @@ const ViewHelpMapping = {
|
|
|
378
399
|
OBS_SET_FEATURE_VALUE_DISTRIBUTION: "The observation set feature value distribution view displays a violin plot with values (e.g., expression values) per set (e.g., cell type) for the selected feature (e.g., gene).",
|
|
379
400
|
FEATURE_VALUE_HISTOGRAM: "The feature value histogram displays the distribution of values (e.g., expression) for the selected feature (e.g., gene).",
|
|
380
401
|
DOT_PLOT: "The dot plot displays summary information about expression of the selected features (e.g., genes) for each selected observation set (e.g., cell type).",
|
|
381
|
-
FEATURE_BAR_PLOT: "The feature bar plot displays one bar per observation (e.g., cell) along the x-axis, where the value of a selected feature (e.g., gene) is encoded along the y-axis."
|
|
402
|
+
FEATURE_BAR_PLOT: "The feature bar plot displays one bar per observation (e.g., cell) along the x-axis, where the value of a selected feature (e.g., gene) is encoded along the y-axis.",
|
|
403
|
+
TREEMAP: "The treemap provides an overview of the current state of sample-level or cell-level selection and filtering."
|
|
382
404
|
};
|
|
383
405
|
const DATA_TYPE_COORDINATION_VALUE_USAGE = {
|
|
384
406
|
[DataType$4.OBS_SEGMENTATIONS]: [
|
|
@@ -472,6 +494,10 @@ const ALT_ZARR_STORE_TYPES = {
|
|
|
472
494
|
zip: FileType$2.SAMPLE_EDGES_ANNDATA_ZARR_ZIP,
|
|
473
495
|
h5ad: FileType$2.SAMPLE_EDGES_ANNDATA_H5AD
|
|
474
496
|
},
|
|
497
|
+
[FileType$2.SAMPLE_SETS_ANNDATA_ZARR]: {
|
|
498
|
+
zip: FileType$2.SAMPLE_SETS_ANNDATA_ZARR_ZIP,
|
|
499
|
+
h5ad: FileType$2.SAMPLE_SETS_ANNDATA_H5AD
|
|
500
|
+
},
|
|
475
501
|
// For OME-Zarr:
|
|
476
502
|
[FileType$2.IMAGE_OME_ZARR]: {
|
|
477
503
|
zip: FileType$2.IMAGE_OME_ZARR_ZIP
|
|
@@ -518,6 +544,50 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
|
518
544
|
CoordinationType$2.OBS_FILTER,
|
|
519
545
|
CoordinationType$2.OBS_HIGHLIGHT,
|
|
520
546
|
CoordinationType$2.OBS_SET_SELECTION,
|
|
547
|
+
CoordinationType$2.OBS_SET_FILTER,
|
|
548
|
+
CoordinationType$2.OBS_SET_HIGHLIGHT,
|
|
549
|
+
CoordinationType$2.OBS_SET_COLOR,
|
|
550
|
+
CoordinationType$2.FEATURE_HIGHLIGHT,
|
|
551
|
+
CoordinationType$2.FEATURE_SELECTION,
|
|
552
|
+
CoordinationType$2.FEATURE_VALUE_COLORMAP,
|
|
553
|
+
CoordinationType$2.FEATURE_VALUE_COLORMAP_RANGE,
|
|
554
|
+
CoordinationType$2.OBS_COLOR_ENCODING,
|
|
555
|
+
CoordinationType$2.ADDITIONAL_OBS_SETS,
|
|
556
|
+
CoordinationType$2.TOOLTIPS_VISIBLE,
|
|
557
|
+
CoordinationType$2.SAMPLE_TYPE,
|
|
558
|
+
CoordinationType$2.SAMPLE_SET_SELECTION,
|
|
559
|
+
CoordinationType$2.SAMPLE_SET_FILTER,
|
|
560
|
+
CoordinationType$2.SAMPLE_SET_COLOR,
|
|
561
|
+
CoordinationType$2.EMBEDDING_POINTS_VISIBLE,
|
|
562
|
+
CoordinationType$2.EMBEDDING_CONTOURS_VISIBLE,
|
|
563
|
+
CoordinationType$2.EMBEDDING_CONTOURS_FILLED,
|
|
564
|
+
CoordinationType$2.EMBEDDING_CONTOUR_PERCENTILES,
|
|
565
|
+
CoordinationType$2.CONTOUR_COLOR_ENCODING,
|
|
566
|
+
CoordinationType$2.CONTOUR_COLOR
|
|
567
|
+
],
|
|
568
|
+
[ViewType$2.DUAL_SCATTERPLOT]: [
|
|
569
|
+
CoordinationType$2.DATASET,
|
|
570
|
+
CoordinationType$2.OBS_TYPE,
|
|
571
|
+
CoordinationType$2.FEATURE_TYPE,
|
|
572
|
+
CoordinationType$2.FEATURE_VALUE_TYPE,
|
|
573
|
+
CoordinationType$2.OBS_LABELS_TYPE,
|
|
574
|
+
CoordinationType$2.EMBEDDING_TYPE,
|
|
575
|
+
CoordinationType$2.EMBEDDING_ZOOM,
|
|
576
|
+
CoordinationType$2.EMBEDDING_ROTATION,
|
|
577
|
+
CoordinationType$2.EMBEDDING_TARGET_X,
|
|
578
|
+
CoordinationType$2.EMBEDDING_TARGET_Y,
|
|
579
|
+
CoordinationType$2.EMBEDDING_TARGET_Z,
|
|
580
|
+
CoordinationType$2.EMBEDDING_OBS_SET_POLYGONS_VISIBLE,
|
|
581
|
+
CoordinationType$2.EMBEDDING_OBS_SET_LABELS_VISIBLE,
|
|
582
|
+
CoordinationType$2.EMBEDDING_OBS_SET_LABEL_SIZE,
|
|
583
|
+
CoordinationType$2.EMBEDDING_OBS_RADIUS,
|
|
584
|
+
CoordinationType$2.EMBEDDING_OBS_RADIUS_MODE,
|
|
585
|
+
CoordinationType$2.EMBEDDING_OBS_OPACITY,
|
|
586
|
+
CoordinationType$2.EMBEDDING_OBS_OPACITY_MODE,
|
|
587
|
+
CoordinationType$2.OBS_FILTER,
|
|
588
|
+
CoordinationType$2.OBS_HIGHLIGHT,
|
|
589
|
+
CoordinationType$2.OBS_SET_SELECTION,
|
|
590
|
+
CoordinationType$2.OBS_SET_FILTER,
|
|
521
591
|
CoordinationType$2.OBS_SET_HIGHLIGHT,
|
|
522
592
|
CoordinationType$2.OBS_SET_COLOR,
|
|
523
593
|
CoordinationType$2.FEATURE_HIGHLIGHT,
|
|
@@ -529,6 +599,7 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
|
529
599
|
CoordinationType$2.TOOLTIPS_VISIBLE,
|
|
530
600
|
CoordinationType$2.SAMPLE_TYPE,
|
|
531
601
|
CoordinationType$2.SAMPLE_SET_SELECTION,
|
|
602
|
+
CoordinationType$2.SAMPLE_SET_FILTER,
|
|
532
603
|
CoordinationType$2.SAMPLE_SET_COLOR,
|
|
533
604
|
CoordinationType$2.EMBEDDING_POINTS_VISIBLE,
|
|
534
605
|
CoordinationType$2.EMBEDDING_CONTOURS_VISIBLE,
|
|
@@ -595,6 +666,7 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
|
595
666
|
CoordinationType$2.OBS_FILTER,
|
|
596
667
|
CoordinationType$2.OBS_HIGHLIGHT,
|
|
597
668
|
CoordinationType$2.OBS_SET_SELECTION,
|
|
669
|
+
CoordinationType$2.OBS_SET_FILTER,
|
|
598
670
|
CoordinationType$2.OBS_SET_HIGHLIGHT,
|
|
599
671
|
CoordinationType$2.OBS_SET_COLOR,
|
|
600
672
|
CoordinationType$2.FEATURE_HIGHLIGHT,
|
|
@@ -631,6 +703,7 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
|
631
703
|
CoordinationType$2.OBS_FILTER,
|
|
632
704
|
CoordinationType$2.OBS_HIGHLIGHT,
|
|
633
705
|
CoordinationType$2.OBS_SET_SELECTION,
|
|
706
|
+
CoordinationType$2.OBS_SET_FILTER,
|
|
634
707
|
CoordinationType$2.OBS_SET_HIGHLIGHT,
|
|
635
708
|
CoordinationType$2.OBS_SET_COLOR,
|
|
636
709
|
CoordinationType$2.FEATURE_HIGHLIGHT,
|
|
@@ -690,6 +763,7 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
|
690
763
|
CoordinationType$2.OBS_FILTER,
|
|
691
764
|
CoordinationType$2.OBS_HIGHLIGHT,
|
|
692
765
|
CoordinationType$2.OBS_SET_SELECTION,
|
|
766
|
+
CoordinationType$2.OBS_SET_FILTER,
|
|
693
767
|
CoordinationType$2.OBS_SET_HIGHLIGHT,
|
|
694
768
|
CoordinationType$2.OBS_SET_COLOR,
|
|
695
769
|
CoordinationType$2.FEATURE_FILTER,
|
|
@@ -705,6 +779,7 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
|
705
779
|
CoordinationType$2.DATASET,
|
|
706
780
|
CoordinationType$2.OBS_TYPE,
|
|
707
781
|
CoordinationType$2.OBS_SET_SELECTION,
|
|
782
|
+
CoordinationType$2.OBS_SET_FILTER,
|
|
708
783
|
CoordinationType$2.OBS_SET_EXPANSION,
|
|
709
784
|
CoordinationType$2.OBS_SET_HIGHLIGHT,
|
|
710
785
|
CoordinationType$2.OBS_SET_COLOR,
|
|
@@ -716,6 +791,7 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
|
716
791
|
CoordinationType$2.DATASET,
|
|
717
792
|
CoordinationType$2.OBS_TYPE,
|
|
718
793
|
CoordinationType$2.OBS_SET_SELECTION,
|
|
794
|
+
CoordinationType$2.OBS_SET_FILTER,
|
|
719
795
|
CoordinationType$2.OBS_SET_EXPANSION,
|
|
720
796
|
CoordinationType$2.OBS_SET_HIGHLIGHT,
|
|
721
797
|
CoordinationType$2.OBS_SET_COLOR,
|
|
@@ -748,6 +824,7 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
|
748
824
|
CoordinationType$2.FEATURE_VALUE_TRANSFORM,
|
|
749
825
|
CoordinationType$2.FEATURE_VALUE_TRANSFORM_COEFFICIENT,
|
|
750
826
|
CoordinationType$2.OBS_SET_SELECTION,
|
|
827
|
+
CoordinationType$2.OBS_SET_FILTER,
|
|
751
828
|
CoordinationType$2.OBS_SET_HIGHLIGHT,
|
|
752
829
|
CoordinationType$2.OBS_SET_COLOR,
|
|
753
830
|
CoordinationType$2.ADDITIONAL_OBS_SETS,
|
|
@@ -764,7 +841,8 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
|
764
841
|
CoordinationType$2.ADDITIONAL_OBS_SETS,
|
|
765
842
|
CoordinationType$2.OBS_SET_COLOR,
|
|
766
843
|
CoordinationType$2.OBS_COLOR_ENCODING,
|
|
767
|
-
CoordinationType$2.OBS_SET_SELECTION
|
|
844
|
+
CoordinationType$2.OBS_SET_SELECTION,
|
|
845
|
+
CoordinationType$2.OBS_SET_FILTER
|
|
768
846
|
],
|
|
769
847
|
[ViewType$2.LAYER_CONTROLLER]: [
|
|
770
848
|
CoordinationType$2.DATASET,
|
|
@@ -879,11 +957,13 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
|
879
957
|
CoordinationType$2.FEATURE_VALUE_POSITIVITY_THRESHOLD,
|
|
880
958
|
CoordinationType$2.FEATURE_VALUE_COLORMAP,
|
|
881
959
|
CoordinationType$2.OBS_SET_SELECTION,
|
|
960
|
+
CoordinationType$2.OBS_SET_FILTER,
|
|
882
961
|
CoordinationType$2.OBS_SET_HIGHLIGHT,
|
|
883
962
|
CoordinationType$2.OBS_SET_COLOR,
|
|
884
963
|
CoordinationType$2.ADDITIONAL_OBS_SETS,
|
|
885
964
|
CoordinationType$2.SAMPLE_TYPE,
|
|
886
965
|
CoordinationType$2.SAMPLE_SET_SELECTION,
|
|
966
|
+
CoordinationType$2.SAMPLE_SET_FILTER,
|
|
887
967
|
CoordinationType$2.SAMPLE_SET_COLOR
|
|
888
968
|
],
|
|
889
969
|
higlass: [
|
|
@@ -914,15 +994,44 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
|
914
994
|
[ViewType$2.LINK_CONTROLLER]: [],
|
|
915
995
|
[ViewType$2.BIOMARKER_SELECT]: [
|
|
916
996
|
CoordinationType$2.FEATURE_SELECTION,
|
|
917
|
-
CoordinationType$2.SAMPLE_SET_SELECTION
|
|
997
|
+
CoordinationType$2.SAMPLE_SET_SELECTION,
|
|
998
|
+
CoordinationType$2.SAMPLE_SET_FILTER,
|
|
999
|
+
CoordinationType$2.OBS_SET_SELECTION,
|
|
1000
|
+
CoordinationType$2.OBS_SET_FILTER
|
|
918
1001
|
// TODO: create coordination types for internal state of the biomarker selection view?
|
|
1002
|
+
],
|
|
1003
|
+
[ViewType$2.TREEMAP]: [
|
|
1004
|
+
CoordinationType$2.DATASET,
|
|
1005
|
+
CoordinationType$2.OBS_TYPE,
|
|
1006
|
+
CoordinationType$2.FEATURE_TYPE,
|
|
1007
|
+
CoordinationType$2.FEATURE_VALUE_TYPE,
|
|
1008
|
+
CoordinationType$2.OBS_FILTER,
|
|
1009
|
+
CoordinationType$2.OBS_HIGHLIGHT,
|
|
1010
|
+
CoordinationType$2.OBS_SET_SELECTION,
|
|
1011
|
+
CoordinationType$2.OBS_SET_FILTER,
|
|
1012
|
+
CoordinationType$2.OBS_SELECTION,
|
|
1013
|
+
CoordinationType$2.OBS_SELECTION_MODE,
|
|
1014
|
+
CoordinationType$2.OBS_SET_HIGHLIGHT,
|
|
1015
|
+
CoordinationType$2.OBS_SET_COLOR,
|
|
1016
|
+
CoordinationType$2.OBS_COLOR_ENCODING,
|
|
1017
|
+
CoordinationType$2.ADDITIONAL_OBS_SETS,
|
|
1018
|
+
CoordinationType$2.SAMPLE_TYPE,
|
|
1019
|
+
CoordinationType$2.SAMPLE_SET_SELECTION,
|
|
1020
|
+
CoordinationType$2.SAMPLE_SET_FILTER,
|
|
1021
|
+
CoordinationType$2.SAMPLE_SET_COLOR,
|
|
1022
|
+
CoordinationType$2.SAMPLE_SELECTION,
|
|
1023
|
+
CoordinationType$2.SAMPLE_SELECTION_MODE,
|
|
1024
|
+
CoordinationType$2.SAMPLE_FILTER,
|
|
1025
|
+
CoordinationType$2.SAMPLE_FILTER_MODE,
|
|
1026
|
+
CoordinationType$2.SAMPLE_HIGHLIGHT,
|
|
1027
|
+
CoordinationType$2.HIERARCHY_LEVELS
|
|
919
1028
|
]
|
|
920
1029
|
};
|
|
921
1030
|
const note = "This file is autogenerated by .changeset/post-changelog.mjs.";
|
|
922
|
-
const version$6 = "3.5.
|
|
923
|
-
const date$5 = "2025-
|
|
1031
|
+
const version$6 = "3.5.7";
|
|
1032
|
+
const date$5 = "2025-02-19";
|
|
924
1033
|
const branch = "changeset-release/main";
|
|
925
|
-
const hash$1 = "
|
|
1034
|
+
const hash$1 = "a4bc3a6a";
|
|
926
1035
|
const META_VERSION = {
|
|
927
1036
|
note,
|
|
928
1037
|
version: version$6,
|
|
@@ -954,6 +1063,324 @@ const DEFAULT_RASTER_LAYER_PROPS = {
|
|
|
954
1063
|
// viv.RENDERING_MODES.ADDITIVE,
|
|
955
1064
|
use3d: false
|
|
956
1065
|
};
|
|
1066
|
+
var commonjsGlobal$1 = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
1067
|
+
function getDefaultExportFromCjs$1(x2) {
|
|
1068
|
+
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
|
1069
|
+
}
|
|
1070
|
+
function getAugmentedNamespace(n3) {
|
|
1071
|
+
if (n3.__esModule)
|
|
1072
|
+
return n3;
|
|
1073
|
+
var f2 = n3.default;
|
|
1074
|
+
if (typeof f2 == "function") {
|
|
1075
|
+
var a2 = function a3() {
|
|
1076
|
+
if (this instanceof a3) {
|
|
1077
|
+
var args = [null];
|
|
1078
|
+
args.push.apply(args, arguments);
|
|
1079
|
+
var Ctor = Function.bind.apply(f2, args);
|
|
1080
|
+
return new Ctor();
|
|
1081
|
+
}
|
|
1082
|
+
return f2.apply(this, arguments);
|
|
1083
|
+
};
|
|
1084
|
+
a2.prototype = f2.prototype;
|
|
1085
|
+
} else
|
|
1086
|
+
a2 = {};
|
|
1087
|
+
Object.defineProperty(a2, "__esModule", { value: true });
|
|
1088
|
+
Object.keys(n3).forEach(function(k) {
|
|
1089
|
+
var d = Object.getOwnPropertyDescriptor(n3, k);
|
|
1090
|
+
Object.defineProperty(a2, k, d.get ? d : {
|
|
1091
|
+
enumerable: true,
|
|
1092
|
+
get: function() {
|
|
1093
|
+
return n3[k];
|
|
1094
|
+
}
|
|
1095
|
+
});
|
|
1096
|
+
});
|
|
1097
|
+
return a2;
|
|
1098
|
+
}
|
|
1099
|
+
var loglevel = { exports: {} };
|
|
1100
|
+
(function(module2) {
|
|
1101
|
+
(function(root2, definition2) {
|
|
1102
|
+
if (module2.exports) {
|
|
1103
|
+
module2.exports = definition2();
|
|
1104
|
+
} else {
|
|
1105
|
+
root2.log = definition2();
|
|
1106
|
+
}
|
|
1107
|
+
})(commonjsGlobal$1, function() {
|
|
1108
|
+
var noop3 = function() {
|
|
1109
|
+
};
|
|
1110
|
+
var undefinedType2 = "undefined";
|
|
1111
|
+
var isIE2 = typeof window !== undefinedType2 && typeof window.navigator !== undefinedType2 && /Trident\/|MSIE /.test(window.navigator.userAgent);
|
|
1112
|
+
var logMethods = [
|
|
1113
|
+
"trace",
|
|
1114
|
+
"debug",
|
|
1115
|
+
"info",
|
|
1116
|
+
"warn",
|
|
1117
|
+
"error"
|
|
1118
|
+
];
|
|
1119
|
+
var _loggersByName = {};
|
|
1120
|
+
var defaultLogger2 = null;
|
|
1121
|
+
function bindMethod(obj, methodName) {
|
|
1122
|
+
var method2 = obj[methodName];
|
|
1123
|
+
if (typeof method2.bind === "function") {
|
|
1124
|
+
return method2.bind(obj);
|
|
1125
|
+
} else {
|
|
1126
|
+
try {
|
|
1127
|
+
return Function.prototype.bind.call(method2, obj);
|
|
1128
|
+
} catch (e3) {
|
|
1129
|
+
return function() {
|
|
1130
|
+
return Function.prototype.apply.apply(method2, [obj, arguments]);
|
|
1131
|
+
};
|
|
1132
|
+
}
|
|
1133
|
+
}
|
|
1134
|
+
}
|
|
1135
|
+
function traceForIE() {
|
|
1136
|
+
if (console.log) {
|
|
1137
|
+
if (console.log.apply) {
|
|
1138
|
+
console.log.apply(console, arguments);
|
|
1139
|
+
} else {
|
|
1140
|
+
Function.prototype.apply.apply(console.log, [console, arguments]);
|
|
1141
|
+
}
|
|
1142
|
+
}
|
|
1143
|
+
if (console.trace)
|
|
1144
|
+
console.trace();
|
|
1145
|
+
}
|
|
1146
|
+
function realMethod(methodName) {
|
|
1147
|
+
if (methodName === "debug") {
|
|
1148
|
+
methodName = "log";
|
|
1149
|
+
}
|
|
1150
|
+
if (typeof console === undefinedType2) {
|
|
1151
|
+
return false;
|
|
1152
|
+
} else if (methodName === "trace" && isIE2) {
|
|
1153
|
+
return traceForIE;
|
|
1154
|
+
} else if (console[methodName] !== void 0) {
|
|
1155
|
+
return bindMethod(console, methodName);
|
|
1156
|
+
} else if (console.log !== void 0) {
|
|
1157
|
+
return bindMethod(console, "log");
|
|
1158
|
+
} else {
|
|
1159
|
+
return noop3;
|
|
1160
|
+
}
|
|
1161
|
+
}
|
|
1162
|
+
function replaceLoggingMethods() {
|
|
1163
|
+
var level = this.getLevel();
|
|
1164
|
+
for (var i2 = 0; i2 < logMethods.length; i2++) {
|
|
1165
|
+
var methodName = logMethods[i2];
|
|
1166
|
+
this[methodName] = i2 < level ? noop3 : this.methodFactory(methodName, level, this.name);
|
|
1167
|
+
}
|
|
1168
|
+
this.log = this.debug;
|
|
1169
|
+
if (typeof console === undefinedType2 && level < this.levels.SILENT) {
|
|
1170
|
+
return "No console available for logging";
|
|
1171
|
+
}
|
|
1172
|
+
}
|
|
1173
|
+
function enableLoggingWhenConsoleArrives(methodName) {
|
|
1174
|
+
return function() {
|
|
1175
|
+
if (typeof console !== undefinedType2) {
|
|
1176
|
+
replaceLoggingMethods.call(this);
|
|
1177
|
+
this[methodName].apply(this, arguments);
|
|
1178
|
+
}
|
|
1179
|
+
};
|
|
1180
|
+
}
|
|
1181
|
+
function defaultMethodFactory(methodName, _level, _loggerName) {
|
|
1182
|
+
return realMethod(methodName) || enableLoggingWhenConsoleArrives.apply(this, arguments);
|
|
1183
|
+
}
|
|
1184
|
+
function Logger(name2, factory2) {
|
|
1185
|
+
var self2 = this;
|
|
1186
|
+
var inheritedLevel;
|
|
1187
|
+
var defaultLevel;
|
|
1188
|
+
var userLevel;
|
|
1189
|
+
var storageKey = "loglevel";
|
|
1190
|
+
if (typeof name2 === "string") {
|
|
1191
|
+
storageKey += ":" + name2;
|
|
1192
|
+
} else if (typeof name2 === "symbol") {
|
|
1193
|
+
storageKey = void 0;
|
|
1194
|
+
}
|
|
1195
|
+
function persistLevelIfPossible(levelNum) {
|
|
1196
|
+
var levelName = (logMethods[levelNum] || "silent").toUpperCase();
|
|
1197
|
+
if (typeof window === undefinedType2 || !storageKey)
|
|
1198
|
+
return;
|
|
1199
|
+
try {
|
|
1200
|
+
window.localStorage[storageKey] = levelName;
|
|
1201
|
+
return;
|
|
1202
|
+
} catch (ignore2) {
|
|
1203
|
+
}
|
|
1204
|
+
try {
|
|
1205
|
+
window.document.cookie = encodeURIComponent(storageKey) + "=" + levelName + ";";
|
|
1206
|
+
} catch (ignore2) {
|
|
1207
|
+
}
|
|
1208
|
+
}
|
|
1209
|
+
function getPersistedLevel() {
|
|
1210
|
+
var storedLevel;
|
|
1211
|
+
if (typeof window === undefinedType2 || !storageKey)
|
|
1212
|
+
return;
|
|
1213
|
+
try {
|
|
1214
|
+
storedLevel = window.localStorage[storageKey];
|
|
1215
|
+
} catch (ignore2) {
|
|
1216
|
+
}
|
|
1217
|
+
if (typeof storedLevel === undefinedType2) {
|
|
1218
|
+
try {
|
|
1219
|
+
var cookie = window.document.cookie;
|
|
1220
|
+
var cookieName = encodeURIComponent(storageKey);
|
|
1221
|
+
var location = cookie.indexOf(cookieName + "=");
|
|
1222
|
+
if (location !== -1) {
|
|
1223
|
+
storedLevel = /^([^;]+)/.exec(
|
|
1224
|
+
cookie.slice(location + cookieName.length + 1)
|
|
1225
|
+
)[1];
|
|
1226
|
+
}
|
|
1227
|
+
} catch (ignore2) {
|
|
1228
|
+
}
|
|
1229
|
+
}
|
|
1230
|
+
if (self2.levels[storedLevel] === void 0) {
|
|
1231
|
+
storedLevel = void 0;
|
|
1232
|
+
}
|
|
1233
|
+
return storedLevel;
|
|
1234
|
+
}
|
|
1235
|
+
function clearPersistedLevel() {
|
|
1236
|
+
if (typeof window === undefinedType2 || !storageKey)
|
|
1237
|
+
return;
|
|
1238
|
+
try {
|
|
1239
|
+
window.localStorage.removeItem(storageKey);
|
|
1240
|
+
} catch (ignore2) {
|
|
1241
|
+
}
|
|
1242
|
+
try {
|
|
1243
|
+
window.document.cookie = encodeURIComponent(storageKey) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC";
|
|
1244
|
+
} catch (ignore2) {
|
|
1245
|
+
}
|
|
1246
|
+
}
|
|
1247
|
+
function normalizeLevel(input) {
|
|
1248
|
+
var level = input;
|
|
1249
|
+
if (typeof level === "string" && self2.levels[level.toUpperCase()] !== void 0) {
|
|
1250
|
+
level = self2.levels[level.toUpperCase()];
|
|
1251
|
+
}
|
|
1252
|
+
if (typeof level === "number" && level >= 0 && level <= self2.levels.SILENT) {
|
|
1253
|
+
return level;
|
|
1254
|
+
} else {
|
|
1255
|
+
throw new TypeError("log.setLevel() called with invalid level: " + input);
|
|
1256
|
+
}
|
|
1257
|
+
}
|
|
1258
|
+
self2.name = name2;
|
|
1259
|
+
self2.levels = {
|
|
1260
|
+
"TRACE": 0,
|
|
1261
|
+
"DEBUG": 1,
|
|
1262
|
+
"INFO": 2,
|
|
1263
|
+
"WARN": 3,
|
|
1264
|
+
"ERROR": 4,
|
|
1265
|
+
"SILENT": 5
|
|
1266
|
+
};
|
|
1267
|
+
self2.methodFactory = factory2 || defaultMethodFactory;
|
|
1268
|
+
self2.getLevel = function() {
|
|
1269
|
+
if (userLevel != null) {
|
|
1270
|
+
return userLevel;
|
|
1271
|
+
} else if (defaultLevel != null) {
|
|
1272
|
+
return defaultLevel;
|
|
1273
|
+
} else {
|
|
1274
|
+
return inheritedLevel;
|
|
1275
|
+
}
|
|
1276
|
+
};
|
|
1277
|
+
self2.setLevel = function(level, persist) {
|
|
1278
|
+
userLevel = normalizeLevel(level);
|
|
1279
|
+
if (persist !== false) {
|
|
1280
|
+
persistLevelIfPossible(userLevel);
|
|
1281
|
+
}
|
|
1282
|
+
return replaceLoggingMethods.call(self2);
|
|
1283
|
+
};
|
|
1284
|
+
self2.setDefaultLevel = function(level) {
|
|
1285
|
+
defaultLevel = normalizeLevel(level);
|
|
1286
|
+
if (!getPersistedLevel()) {
|
|
1287
|
+
self2.setLevel(level, false);
|
|
1288
|
+
}
|
|
1289
|
+
};
|
|
1290
|
+
self2.resetLevel = function() {
|
|
1291
|
+
userLevel = null;
|
|
1292
|
+
clearPersistedLevel();
|
|
1293
|
+
replaceLoggingMethods.call(self2);
|
|
1294
|
+
};
|
|
1295
|
+
self2.enableAll = function(persist) {
|
|
1296
|
+
self2.setLevel(self2.levels.TRACE, persist);
|
|
1297
|
+
};
|
|
1298
|
+
self2.disableAll = function(persist) {
|
|
1299
|
+
self2.setLevel(self2.levels.SILENT, persist);
|
|
1300
|
+
};
|
|
1301
|
+
self2.rebuild = function() {
|
|
1302
|
+
if (defaultLogger2 !== self2) {
|
|
1303
|
+
inheritedLevel = normalizeLevel(defaultLogger2.getLevel());
|
|
1304
|
+
}
|
|
1305
|
+
replaceLoggingMethods.call(self2);
|
|
1306
|
+
if (defaultLogger2 === self2) {
|
|
1307
|
+
for (var childName in _loggersByName) {
|
|
1308
|
+
_loggersByName[childName].rebuild();
|
|
1309
|
+
}
|
|
1310
|
+
}
|
|
1311
|
+
};
|
|
1312
|
+
inheritedLevel = normalizeLevel(
|
|
1313
|
+
defaultLogger2 ? defaultLogger2.getLevel() : "WARN"
|
|
1314
|
+
);
|
|
1315
|
+
var initialLevel = getPersistedLevel();
|
|
1316
|
+
if (initialLevel != null) {
|
|
1317
|
+
userLevel = normalizeLevel(initialLevel);
|
|
1318
|
+
}
|
|
1319
|
+
replaceLoggingMethods.call(self2);
|
|
1320
|
+
}
|
|
1321
|
+
defaultLogger2 = new Logger();
|
|
1322
|
+
defaultLogger2.getLogger = function getLogger(name2) {
|
|
1323
|
+
if (typeof name2 !== "symbol" && typeof name2 !== "string" || name2 === "") {
|
|
1324
|
+
throw new TypeError("You must supply a name when creating a logger.");
|
|
1325
|
+
}
|
|
1326
|
+
var logger2 = _loggersByName[name2];
|
|
1327
|
+
if (!logger2) {
|
|
1328
|
+
logger2 = _loggersByName[name2] = new Logger(
|
|
1329
|
+
name2,
|
|
1330
|
+
defaultLogger2.methodFactory
|
|
1331
|
+
);
|
|
1332
|
+
}
|
|
1333
|
+
return logger2;
|
|
1334
|
+
};
|
|
1335
|
+
var _log2 = typeof window !== undefinedType2 ? window.log : void 0;
|
|
1336
|
+
defaultLogger2.noConflict = function() {
|
|
1337
|
+
if (typeof window !== undefinedType2 && window.log === defaultLogger2) {
|
|
1338
|
+
window.log = _log2;
|
|
1339
|
+
}
|
|
1340
|
+
return defaultLogger2;
|
|
1341
|
+
};
|
|
1342
|
+
defaultLogger2.getLoggers = function getLoggers2() {
|
|
1343
|
+
return _loggersByName;
|
|
1344
|
+
};
|
|
1345
|
+
defaultLogger2["default"] = defaultLogger2;
|
|
1346
|
+
return defaultLogger2;
|
|
1347
|
+
});
|
|
1348
|
+
})(loglevel);
|
|
1349
|
+
var loglevelExports = loglevel.exports;
|
|
1350
|
+
const log$f = /* @__PURE__ */ getDefaultExportFromCjs$1(loglevelExports);
|
|
1351
|
+
const LogLevel = {
|
|
1352
|
+
SILENT: "silent",
|
|
1353
|
+
INFO: "info",
|
|
1354
|
+
WARN: "warn",
|
|
1355
|
+
ERROR: "error",
|
|
1356
|
+
DEBUG: "debug",
|
|
1357
|
+
TRACE: "trace"
|
|
1358
|
+
// default value
|
|
1359
|
+
};
|
|
1360
|
+
const OrderedLogLevels = [
|
|
1361
|
+
LogLevel.TRACE,
|
|
1362
|
+
LogLevel.DEBUG,
|
|
1363
|
+
LogLevel.INFO,
|
|
1364
|
+
LogLevel.WARN,
|
|
1365
|
+
LogLevel.ERROR
|
|
1366
|
+
];
|
|
1367
|
+
const DEFAULT_DEBUG_MODE = false;
|
|
1368
|
+
const DEFAULT_LOG_LEVEL = LogLevel.TRACE;
|
|
1369
|
+
function getLogLevel() {
|
|
1370
|
+
return log$f.getLevel();
|
|
1371
|
+
}
|
|
1372
|
+
function setLogLevel(level) {
|
|
1373
|
+
if (Object.values(LogLevel).includes(level)) {
|
|
1374
|
+
log$f.setLevel(level);
|
|
1375
|
+
} else {
|
|
1376
|
+
log$f.warn("Log level is not valid");
|
|
1377
|
+
}
|
|
1378
|
+
}
|
|
1379
|
+
function atLeastLogLevel(someLevel) {
|
|
1380
|
+
const currLevel = getLogLevel();
|
|
1381
|
+
const numericTarget = OrderedLogLevels.indexOf(someLevel);
|
|
1382
|
+
return currLevel <= numericTarget;
|
|
1383
|
+
}
|
|
957
1384
|
const ViewType$1 = {
|
|
958
1385
|
GENES: [
|
|
959
1386
|
"genes",
|
|
@@ -1120,7 +1547,7 @@ function makeConstantWithDeprecationMessage(currObj, oldObj) {
|
|
|
1120
1547
|
const oldKeys = Object.keys(oldObj);
|
|
1121
1548
|
const propKey = String(prop);
|
|
1122
1549
|
if (oldKeys.includes(propKey)) {
|
|
1123
|
-
|
|
1550
|
+
log$f.warn(`Notice about the constant mapping ${propKey}: '${oldObj[propKey][0]}':
|
|
1124
1551
|
${oldObj[propKey][1]}`);
|
|
1125
1552
|
return oldObj[propKey];
|
|
1126
1553
|
}
|
|
@@ -1134,39 +1561,6 @@ const ViewType = makeConstantWithDeprecationMessage(ViewType$2, ViewType$1);
|
|
|
1134
1561
|
const DataType$2 = makeConstantWithDeprecationMessage(DataType$4, DataType$3);
|
|
1135
1562
|
const FileType = makeConstantWithDeprecationMessage(FileType$2, FileType$1);
|
|
1136
1563
|
const CoordinationType = makeConstantWithDeprecationMessage(CoordinationType$2, CoordinationType$1);
|
|
1137
|
-
var commonjsGlobal$1 = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
1138
|
-
function getDefaultExportFromCjs$1(x2) {
|
|
1139
|
-
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
|
1140
|
-
}
|
|
1141
|
-
function getAugmentedNamespace(n3) {
|
|
1142
|
-
if (n3.__esModule)
|
|
1143
|
-
return n3;
|
|
1144
|
-
var f2 = n3.default;
|
|
1145
|
-
if (typeof f2 == "function") {
|
|
1146
|
-
var a2 = function a3() {
|
|
1147
|
-
if (this instanceof a3) {
|
|
1148
|
-
var args = [null];
|
|
1149
|
-
args.push.apply(args, arguments);
|
|
1150
|
-
var Ctor = Function.bind.apply(f2, args);
|
|
1151
|
-
return new Ctor();
|
|
1152
|
-
}
|
|
1153
|
-
return f2.apply(this, arguments);
|
|
1154
|
-
};
|
|
1155
|
-
a2.prototype = f2.prototype;
|
|
1156
|
-
} else
|
|
1157
|
-
a2 = {};
|
|
1158
|
-
Object.defineProperty(a2, "__esModule", { value: true });
|
|
1159
|
-
Object.keys(n3).forEach(function(k) {
|
|
1160
|
-
var d = Object.getOwnPropertyDescriptor(n3, k);
|
|
1161
|
-
Object.defineProperty(a2, k, d.get ? d : {
|
|
1162
|
-
enumerable: true,
|
|
1163
|
-
get: function() {
|
|
1164
|
-
return n3[k];
|
|
1165
|
-
}
|
|
1166
|
-
});
|
|
1167
|
-
});
|
|
1168
|
-
return a2;
|
|
1169
|
-
}
|
|
1170
1564
|
function commonjsRequire(path2) {
|
|
1171
1565
|
throw new Error('Could not dynamically require "' + path2 + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
1172
1566
|
}
|
|
@@ -1590,6 +1984,27 @@ function getInitialCoordinationScopeName(datasetUid, dataType, i2 = null) {
|
|
|
1590
1984
|
const prefix2 = getInitialCoordinationScopePrefix(datasetUid, dataType);
|
|
1591
1985
|
return `${prefix2}${i2 === null ? 0 : i2}`;
|
|
1592
1986
|
}
|
|
1987
|
+
const identityFunc = (d) => d;
|
|
1988
|
+
function unnestMap(map2, keys4, aggFunc) {
|
|
1989
|
+
if (keys4.length < 2) {
|
|
1990
|
+
throw new Error("Insufficient number of keys passed to flattenInternMap");
|
|
1991
|
+
}
|
|
1992
|
+
const aggFuncToUse = !aggFunc ? identityFunc : aggFunc;
|
|
1993
|
+
return Array.from(map2.entries()).flatMap(([k, v2]) => {
|
|
1994
|
+
if (v2 instanceof Map) {
|
|
1995
|
+
const keysWithoutFirst = [...keys4];
|
|
1996
|
+
keysWithoutFirst.splice(0, 1);
|
|
1997
|
+
return unnestMap(v2, keysWithoutFirst, aggFuncToUse).map((childObj) => ({
|
|
1998
|
+
[keys4[0]]: k,
|
|
1999
|
+
...childObj
|
|
2000
|
+
}));
|
|
2001
|
+
}
|
|
2002
|
+
return {
|
|
2003
|
+
[keys4[0]]: k,
|
|
2004
|
+
[keys4[1]]: aggFuncToUse(v2)
|
|
2005
|
+
};
|
|
2006
|
+
});
|
|
2007
|
+
}
|
|
1593
2008
|
const DEFAULT_DARK_COLOR = [50, 50, 50];
|
|
1594
2009
|
const DEFAULT_LIGHT_COLOR$3 = [200, 200, 200];
|
|
1595
2010
|
const DEFAULT_LIGHT2_COLOR = [235, 235, 235];
|
|
@@ -1641,16 +2056,16 @@ const COLORMAP_OPTIONS = [
|
|
|
1641
2056
|
];
|
|
1642
2057
|
const DEFAULT_GL_OPTIONS$1 = { webgl2: true };
|
|
1643
2058
|
function createDefaultUpdateCellsHover(componentName) {
|
|
1644
|
-
return (hoverInfo) =>
|
|
2059
|
+
return (hoverInfo) => log$f.warn(`${componentName} updateCellsHover: ${hoverInfo.cellId}`);
|
|
1645
2060
|
}
|
|
1646
2061
|
function createDefaultUpdateGenesHover(componentName) {
|
|
1647
|
-
return (hoverInfo) =>
|
|
2062
|
+
return (hoverInfo) => log$f.warn(`${componentName} updateGenesHover: ${hoverInfo.geneId}`);
|
|
1648
2063
|
}
|
|
1649
2064
|
function createDefaultUpdateTracksHover(componentName) {
|
|
1650
|
-
return (hoverInfo) =>
|
|
2065
|
+
return (hoverInfo) => log$f.warn(`${componentName} updateTracksHover: ${hoverInfo}`);
|
|
1651
2066
|
}
|
|
1652
2067
|
function createDefaultUpdateViewInfo(componentName) {
|
|
1653
|
-
return (viewInfo) =>
|
|
2068
|
+
return (viewInfo) => log$f.warn(`${componentName} updateViewInfo: ${viewInfo}`);
|
|
1654
2069
|
}
|
|
1655
2070
|
function copyUint8Array(arr) {
|
|
1656
2071
|
const newBuffer = new ArrayBuffer(arr.buffer.byteLength);
|
|
@@ -2964,7 +3379,7 @@ async function generateViewDefinition(url, vc, dataset, hintsConfig) {
|
|
|
2964
3379
|
fileConfig = await configInstance.composeFileConfig();
|
|
2965
3380
|
viewsConfig = await configInstance.composeViewsConfig(hintsConfig);
|
|
2966
3381
|
} catch (error2) {
|
|
2967
|
-
|
|
3382
|
+
log$f.error(error2);
|
|
2968
3383
|
return Promise.reject(error2);
|
|
2969
3384
|
}
|
|
2970
3385
|
dataset.addFile(fileConfig);
|
|
@@ -36137,7 +36552,7 @@ function upgradeFrom1_0_14(config3) {
|
|
|
36137
36552
|
newLayout.forEach((viewDef) => {
|
|
36138
36553
|
Object.entries(propAnalogies).forEach(([oldProp, newType]) => {
|
|
36139
36554
|
if (viewDef.props?.[oldProp]) {
|
|
36140
|
-
|
|
36555
|
+
log$f.warn(`Warning: the '${oldProp}' prop on the ${viewDef.component} view is deprecated. Please use the '${newType}' coordination type instead.`);
|
|
36141
36556
|
}
|
|
36142
36557
|
});
|
|
36143
36558
|
});
|
|
@@ -36160,7 +36575,7 @@ function upgradeFrom1_0_15(config3) {
|
|
|
36160
36575
|
Object.entries(coordinationScopes).forEach(([coordinationType, coordinationScope]) => {
|
|
36161
36576
|
if (!Array.isArray(coordinationScope) && typeof coordinationScope === "object") {
|
|
36162
36577
|
if (coordinationType === "dataset") {
|
|
36163
|
-
|
|
36578
|
+
log$f.error("Expected coordinationScopes.dataset value to be either string or string[], but got object.");
|
|
36164
36579
|
}
|
|
36165
36580
|
coordinationScopesBy.dataset[coordinationType] = coordinationScope;
|
|
36166
36581
|
} else if (Array.isArray(coordinationScope) || typeof coordinationScope === "string") {
|
|
@@ -38550,6 +38965,9 @@ const annDataObsSetsArr = z.array(z.object({
|
|
|
38550
38965
|
const annDataObsSets = z.object({
|
|
38551
38966
|
obsSets: annDataObsSetsArr
|
|
38552
38967
|
});
|
|
38968
|
+
const annDataSampleSets = z.object({
|
|
38969
|
+
sampleSets: annDataObsSetsArr
|
|
38970
|
+
});
|
|
38553
38971
|
const annDataObsFeatureColumnsArr = z.array(z.object({
|
|
38554
38972
|
path: z.string()
|
|
38555
38973
|
}));
|
|
@@ -38640,6 +39058,7 @@ const obsPointsAnndataSchema = annDataObsLocations;
|
|
|
38640
39058
|
const obsLocationsAnndataSchema = annDataObsLocations;
|
|
38641
39059
|
const obsSegmentationsAnndataSchema = annDataObsSegmentations;
|
|
38642
39060
|
const obsSetsAnndataSchema = annDataObsSets;
|
|
39061
|
+
const sampleSetsAnndataSchema = annDataSampleSets;
|
|
38643
39062
|
const obsFeatureMatrixAnndataSchema = annDataObsFeatureMatrix;
|
|
38644
39063
|
const obsLabelsAnndataSchema = annDataObsLabels;
|
|
38645
39064
|
const featureLabelsAnndataSchema = annDataFeatureLabels;
|
|
@@ -45999,8 +46418,8 @@ VitessceGridLayout.defaultProps = {
|
|
|
45999
46418
|
padding: 10,
|
|
46000
46419
|
margin: 10
|
|
46001
46420
|
};
|
|
46002
|
-
class InternMap extends Map {
|
|
46003
|
-
constructor(entries2, key2 = keyof) {
|
|
46421
|
+
let InternMap$1 = class InternMap extends Map {
|
|
46422
|
+
constructor(entries2, key2 = keyof$1) {
|
|
46004
46423
|
super();
|
|
46005
46424
|
Object.defineProperties(this, { _intern: { value: /* @__PURE__ */ new Map() }, _key: { value: key2 } });
|
|
46006
46425
|
if (entries2 != null)
|
|
@@ -46008,20 +46427,20 @@ class InternMap extends Map {
|
|
|
46008
46427
|
this.set(key3, value2);
|
|
46009
46428
|
}
|
|
46010
46429
|
get(key2) {
|
|
46011
|
-
return super.get(intern_get(this, key2));
|
|
46430
|
+
return super.get(intern_get$1(this, key2));
|
|
46012
46431
|
}
|
|
46013
46432
|
has(key2) {
|
|
46014
|
-
return super.has(intern_get(this, key2));
|
|
46433
|
+
return super.has(intern_get$1(this, key2));
|
|
46015
46434
|
}
|
|
46016
46435
|
set(key2, value2) {
|
|
46017
|
-
return super.set(intern_set(this, key2), value2);
|
|
46436
|
+
return super.set(intern_set$1(this, key2), value2);
|
|
46018
46437
|
}
|
|
46019
46438
|
delete(key2) {
|
|
46020
|
-
return super.delete(intern_delete(this, key2));
|
|
46439
|
+
return super.delete(intern_delete$1(this, key2));
|
|
46021
46440
|
}
|
|
46022
|
-
}
|
|
46441
|
+
};
|
|
46023
46442
|
class InternSet extends Set {
|
|
46024
|
-
constructor(values3, key2 = keyof) {
|
|
46443
|
+
constructor(values3, key2 = keyof$1) {
|
|
46025
46444
|
super();
|
|
46026
46445
|
Object.defineProperties(this, { _intern: { value: /* @__PURE__ */ new Map() }, _key: { value: key2 } });
|
|
46027
46446
|
if (values3 != null)
|
|
@@ -46029,27 +46448,27 @@ class InternSet extends Set {
|
|
|
46029
46448
|
this.add(value2);
|
|
46030
46449
|
}
|
|
46031
46450
|
has(value2) {
|
|
46032
|
-
return super.has(intern_get(this, value2));
|
|
46451
|
+
return super.has(intern_get$1(this, value2));
|
|
46033
46452
|
}
|
|
46034
46453
|
add(value2) {
|
|
46035
|
-
return super.add(intern_set(this, value2));
|
|
46454
|
+
return super.add(intern_set$1(this, value2));
|
|
46036
46455
|
}
|
|
46037
46456
|
delete(value2) {
|
|
46038
|
-
return super.delete(intern_delete(this, value2));
|
|
46457
|
+
return super.delete(intern_delete$1(this, value2));
|
|
46039
46458
|
}
|
|
46040
46459
|
}
|
|
46041
|
-
function intern_get({ _intern, _key }, value2) {
|
|
46460
|
+
function intern_get$1({ _intern, _key }, value2) {
|
|
46042
46461
|
const key2 = _key(value2);
|
|
46043
46462
|
return _intern.has(key2) ? _intern.get(key2) : value2;
|
|
46044
46463
|
}
|
|
46045
|
-
function intern_set({ _intern, _key }, value2) {
|
|
46464
|
+
function intern_set$1({ _intern, _key }, value2) {
|
|
46046
46465
|
const key2 = _key(value2);
|
|
46047
46466
|
if (_intern.has(key2))
|
|
46048
46467
|
return _intern.get(key2);
|
|
46049
46468
|
_intern.set(key2, value2);
|
|
46050
46469
|
return value2;
|
|
46051
46470
|
}
|
|
46052
|
-
function intern_delete({ _intern, _key }, value2) {
|
|
46471
|
+
function intern_delete$1({ _intern, _key }, value2) {
|
|
46053
46472
|
const key2 = _key(value2);
|
|
46054
46473
|
if (_intern.has(key2)) {
|
|
46055
46474
|
value2 = _intern.get(key2);
|
|
@@ -46057,7 +46476,7 @@ function intern_delete({ _intern, _key }, value2) {
|
|
|
46057
46476
|
}
|
|
46058
46477
|
return value2;
|
|
46059
46478
|
}
|
|
46060
|
-
function keyof(value2) {
|
|
46479
|
+
function keyof$1(value2) {
|
|
46061
46480
|
return value2 !== null && typeof value2 === "object" ? value2.valueOf() : value2;
|
|
46062
46481
|
}
|
|
46063
46482
|
class LoaderResult {
|
|
@@ -46124,10 +46543,11 @@ class LoaderValidationError extends AbstractLoaderError {
|
|
|
46124
46543
|
this.datasetFileType = datasetFileType;
|
|
46125
46544
|
this.datasetUrl = datasetUrl;
|
|
46126
46545
|
this.reason = reason;
|
|
46546
|
+
this.message = `${datasetType} from ${datasetUrl}: validation failed`;
|
|
46127
46547
|
}
|
|
46128
46548
|
warnInConsole() {
|
|
46129
|
-
const {
|
|
46130
|
-
|
|
46549
|
+
const { reason, message } = this;
|
|
46550
|
+
log$f.warn(message, JSON.stringify(reason, null, 2));
|
|
46131
46551
|
}
|
|
46132
46552
|
}
|
|
46133
46553
|
class LoaderNotFoundError extends AbstractLoaderError {
|
|
@@ -46138,14 +46558,11 @@ class LoaderNotFoundError extends AbstractLoaderError {
|
|
|
46138
46558
|
this.dataset = dataset;
|
|
46139
46559
|
this.fileType = fileType;
|
|
46140
46560
|
this.viewCoordinationValues = viewCoordinationValues;
|
|
46561
|
+
this.message = `Expected to match on { ${Object.entries(viewCoordinationValues || {}).map(([k, v2]) => `${k}: ${v2 ?? "null"}`).join(", ")} }`;
|
|
46141
46562
|
}
|
|
46142
46563
|
warnInConsole() {
|
|
46143
|
-
const { loaders,
|
|
46144
|
-
|
|
46145
|
-
// eslint-disable-next-line prefer-template
|
|
46146
|
-
`Expected to match on { ${Object.entries(viewCoordinationValues).map(([k, v2]) => k + ": " + v2).join(", ")} }`,
|
|
46147
|
-
loaders
|
|
46148
|
-
);
|
|
46564
|
+
const { loaders, message } = this;
|
|
46565
|
+
log$f.warn(message, loaders);
|
|
46149
46566
|
}
|
|
46150
46567
|
}
|
|
46151
46568
|
class DataSourceFetchError extends AbstractLoaderError {
|
|
@@ -46154,10 +46571,11 @@ class DataSourceFetchError extends AbstractLoaderError {
|
|
|
46154
46571
|
this.source = source2;
|
|
46155
46572
|
this.url = url;
|
|
46156
46573
|
this.headers = headers;
|
|
46574
|
+
this.message = `${source2} failed to fetch from ${url} with headers ${JSON.stringify(headers)}`;
|
|
46157
46575
|
}
|
|
46158
46576
|
warnInConsole() {
|
|
46159
|
-
const {
|
|
46160
|
-
|
|
46577
|
+
const { message } = this;
|
|
46578
|
+
log$f.warn(message);
|
|
46161
46579
|
}
|
|
46162
46580
|
}
|
|
46163
46581
|
function getSourceAndLoaderFromFileType(type3, fileTypes) {
|
|
@@ -46234,7 +46652,7 @@ function withDefaults(coordinationValues, dataType, fileType, datasetUid, defaul
|
|
|
46234
46652
|
...coordinationValues
|
|
46235
46653
|
};
|
|
46236
46654
|
if (!isEqual$5(coordinationValues, coordinationValuesWithDefaults)) {
|
|
46237
|
-
|
|
46655
|
+
log$f.warn(`Using coordination value defaults for file type ${fileType} in dataset ${datasetUid}
|
|
46238
46656
|
Before: ${JSON.stringify(coordinationValues)}
|
|
46239
46657
|
After: ${JSON.stringify(coordinationValuesWithDefaults)}`);
|
|
46240
46658
|
}
|
|
@@ -46242,7 +46660,7 @@ After: ${JSON.stringify(coordinationValuesWithDefaults)}`);
|
|
|
46242
46660
|
}
|
|
46243
46661
|
function createLoaders(datasets, configDescription, fileTypes, coordinationTypes, stores) {
|
|
46244
46662
|
const result = {};
|
|
46245
|
-
const dataSources = new InternMap([], JSON.stringify);
|
|
46663
|
+
const dataSources = new InternMap$1([], JSON.stringify);
|
|
46246
46664
|
const defaultCoordinationValues = Object.fromEntries(coordinationTypes.map((ct2) => [ct2.name, ct2.defaultValue]));
|
|
46247
46665
|
datasets.forEach((dataset) => {
|
|
46248
46666
|
const datasetLoaders = {
|
|
@@ -46273,7 +46691,7 @@ function createLoaders(datasets, configDescription, fileTypes, coordinationTypes
|
|
|
46273
46691
|
if (datasetLoaders.loaders[dataType]) {
|
|
46274
46692
|
datasetLoaders.loaders[dataType].set(coordinationValuesWithDefaults, loader2);
|
|
46275
46693
|
} else {
|
|
46276
|
-
datasetLoaders.loaders[dataType] = new InternMap([
|
|
46694
|
+
datasetLoaders.loaders[dataType] = new InternMap$1([
|
|
46277
46695
|
[coordinationValuesWithDefaults, loader2]
|
|
46278
46696
|
], JSON.stringify);
|
|
46279
46697
|
}
|
|
@@ -46423,9 +46841,76 @@ function extent$2(values3, valueof) {
|
|
|
46423
46841
|
}
|
|
46424
46842
|
return [min2, max2];
|
|
46425
46843
|
}
|
|
46844
|
+
class InternMap2 extends Map {
|
|
46845
|
+
constructor(entries2, key2 = keyof) {
|
|
46846
|
+
super();
|
|
46847
|
+
Object.defineProperties(this, { _intern: { value: /* @__PURE__ */ new Map() }, _key: { value: key2 } });
|
|
46848
|
+
if (entries2 != null)
|
|
46849
|
+
for (const [key3, value2] of entries2)
|
|
46850
|
+
this.set(key3, value2);
|
|
46851
|
+
}
|
|
46852
|
+
get(key2) {
|
|
46853
|
+
return super.get(intern_get(this, key2));
|
|
46854
|
+
}
|
|
46855
|
+
has(key2) {
|
|
46856
|
+
return super.has(intern_get(this, key2));
|
|
46857
|
+
}
|
|
46858
|
+
set(key2, value2) {
|
|
46859
|
+
return super.set(intern_set(this, key2), value2);
|
|
46860
|
+
}
|
|
46861
|
+
delete(key2) {
|
|
46862
|
+
return super.delete(intern_delete(this, key2));
|
|
46863
|
+
}
|
|
46864
|
+
}
|
|
46865
|
+
function intern_get({ _intern, _key }, value2) {
|
|
46866
|
+
const key2 = _key(value2);
|
|
46867
|
+
return _intern.has(key2) ? _intern.get(key2) : value2;
|
|
46868
|
+
}
|
|
46869
|
+
function intern_set({ _intern, _key }, value2) {
|
|
46870
|
+
const key2 = _key(value2);
|
|
46871
|
+
if (_intern.has(key2))
|
|
46872
|
+
return _intern.get(key2);
|
|
46873
|
+
_intern.set(key2, value2);
|
|
46874
|
+
return value2;
|
|
46875
|
+
}
|
|
46876
|
+
function intern_delete({ _intern, _key }, value2) {
|
|
46877
|
+
const key2 = _key(value2);
|
|
46878
|
+
if (_intern.has(key2)) {
|
|
46879
|
+
value2 = _intern.get(value2);
|
|
46880
|
+
_intern.delete(key2);
|
|
46881
|
+
}
|
|
46882
|
+
return value2;
|
|
46883
|
+
}
|
|
46884
|
+
function keyof(value2) {
|
|
46885
|
+
return value2 !== null && typeof value2 === "object" ? value2.valueOf() : value2;
|
|
46886
|
+
}
|
|
46426
46887
|
function identity$j(x2) {
|
|
46427
46888
|
return x2;
|
|
46428
46889
|
}
|
|
46890
|
+
function rollup(values3, reduce2, ...keys4) {
|
|
46891
|
+
return nest$1(values3, identity$j, reduce2, keys4);
|
|
46892
|
+
}
|
|
46893
|
+
function nest$1(values3, map2, reduce2, keys4) {
|
|
46894
|
+
return function regroup(values4, i2) {
|
|
46895
|
+
if (i2 >= keys4.length)
|
|
46896
|
+
return reduce2(values4);
|
|
46897
|
+
const groups = new InternMap2();
|
|
46898
|
+
const keyof2 = keys4[i2++];
|
|
46899
|
+
let index2 = -1;
|
|
46900
|
+
for (const value2 of values4) {
|
|
46901
|
+
const key2 = keyof2(value2, ++index2, values4);
|
|
46902
|
+
const group2 = groups.get(key2);
|
|
46903
|
+
if (group2)
|
|
46904
|
+
group2.push(value2);
|
|
46905
|
+
else
|
|
46906
|
+
groups.set(key2, [value2]);
|
|
46907
|
+
}
|
|
46908
|
+
for (const [key2, values5] of groups) {
|
|
46909
|
+
groups.set(key2, regroup(values5, i2));
|
|
46910
|
+
}
|
|
46911
|
+
return map2(groups);
|
|
46912
|
+
}(values3, 0);
|
|
46913
|
+
}
|
|
46429
46914
|
var array$8 = Array.prototype;
|
|
46430
46915
|
var slice$8 = array$8.slice;
|
|
46431
46916
|
function constant$b(x2) {
|
|
@@ -47258,11 +47743,15 @@ function Warning(props) {
|
|
|
47258
47743
|
const classes = useStyles$v();
|
|
47259
47744
|
return jsxRuntimeExports.jsx("div", { className: VITESSCE_CONTAINER, children: jsxRuntimeExports.jsx("div", { className: clsx(classes.warningLayout, classes.containerFluid), children: jsxRuntimeExports.jsx("div", { className: classes.row, children: jsxRuntimeExports.jsxs("div", { className: classes.warningCard, children: [jsxRuntimeExports.jsx("h1", { children: title2 }), preformatted ? jsxRuntimeExports.jsx("pre", { children: preformatted }) : null, jsxRuntimeExports.jsx("p", { children: unformatted })] }) }) }) });
|
|
47260
47745
|
}
|
|
47746
|
+
function DebugWindow({ debugErrors }) {
|
|
47747
|
+
const classes = useStyles$v();
|
|
47748
|
+
return jsxRuntimeExports.jsx("div", { className: VITESSCE_CONTAINER, children: jsxRuntimeExports.jsx("div", { className: clsx(classes.warningLayout, classes.containerFluid), children: jsxRuntimeExports.jsx("div", { className: classes.row, children: jsxRuntimeExports.jsx("div", { className: classes.warningCard, children: debugErrors.map((error2, index2) => jsxRuntimeExports.jsxs("div", { children: [index2 === 0 && jsxRuntimeExports.jsxs("div", { children: [jsxRuntimeExports.jsxs("h1", { children: ["Error Type: ", error2.name] }), Object.keys(error2).map((key2) => key2 !== "name" && key2 !== "message" && jsxRuntimeExports.jsxs("p", { children: [key2.charAt(0).toUpperCase() + key2.slice(1), ": ", error2[key2]] }, key2))] }), jsxRuntimeExports.jsxs("p", { children: ["Error: ", error2.message] })] }, error2.message || index2)) }) }) }) });
|
|
47749
|
+
}
|
|
47261
47750
|
function validateViewConfig(viewConfig, pluginSpecificConfigSchema) {
|
|
47262
47751
|
try {
|
|
47263
47752
|
pluginSpecificConfigSchema.parse(viewConfig);
|
|
47264
47753
|
} catch (e3) {
|
|
47265
|
-
|
|
47754
|
+
log$f.error(e3);
|
|
47266
47755
|
}
|
|
47267
47756
|
}
|
|
47268
47757
|
function CallbackPublisher(props) {
|
|
@@ -47297,10 +47786,12 @@ function CallbackPublisher(props) {
|
|
|
47297
47786
|
return null;
|
|
47298
47787
|
}
|
|
47299
47788
|
function logConfig(config3, name2) {
|
|
47300
|
-
|
|
47301
|
-
|
|
47302
|
-
|
|
47303
|
-
|
|
47789
|
+
if (atLeastLogLevel(LogLevel.INFO)) {
|
|
47790
|
+
console.groupCollapsed(`🚄 VitS (${META_VERSION.version}) ${name2}`);
|
|
47791
|
+
console.info(`data:,${JSON.stringify(config3)}`);
|
|
47792
|
+
console.info(JSON.stringify(config3, null, 2));
|
|
47793
|
+
console.groupEnd();
|
|
47794
|
+
}
|
|
47304
47795
|
}
|
|
47305
47796
|
function getExistingScopesForCoordinationType(config3, coordinationType) {
|
|
47306
47797
|
const spaceScopes = Object.keys(config3?.coordinationSpace?.[coordinationType] || {});
|
|
@@ -47470,12 +47961,18 @@ function createGenerateClassName(customPrefix) {
|
|
|
47470
47961
|
};
|
|
47471
47962
|
}
|
|
47472
47963
|
function VitS(props) {
|
|
47473
|
-
const { config: config3, stores, rowHeight, height: height2, theme, onWarn, onConfigChange, onLoaderChange, validateConfig = true, validateOnConfigChange = false, isBounded = false, uid: uid2 = null, remountOnUidChange = true, viewTypes: viewTypesProp, fileTypes: fileTypesProp, jointFileTypes: jointFileTypesProp, coordinationTypes: coordinationTypesProp, asyncFunctions: asyncFunctionsProp, warning: warning2, pageMode = false, children: children3 } = props;
|
|
47964
|
+
const { config: config3, stores, rowHeight, height: height2, theme, onWarn, onConfigChange, onLoaderChange, validateConfig = true, validateOnConfigChange = false, isBounded = false, uid: uid2 = null, remountOnUidChange = true, viewTypes: viewTypesProp, fileTypes: fileTypesProp, jointFileTypes: jointFileTypesProp, coordinationTypes: coordinationTypesProp, asyncFunctions: asyncFunctionsProp, warning: warning2, pageMode = false, children: children3, debugMode = DEFAULT_DEBUG_MODE, logLevel = DEFAULT_LOG_LEVEL } = props;
|
|
47965
|
+
const [debugErrors, setDebugErrors] = useState([]);
|
|
47474
47966
|
const viewTypes = useMemo(() => viewTypesProp || [], [viewTypesProp]);
|
|
47475
47967
|
const fileTypes = useMemo(() => fileTypesProp || [], [fileTypesProp]);
|
|
47476
47968
|
const jointFileTypes = useMemo(() => jointFileTypesProp || [], [jointFileTypesProp]);
|
|
47477
47969
|
const coordinationTypes = useMemo(() => coordinationTypesProp || [], [coordinationTypesProp]);
|
|
47478
47970
|
const generateClassName2 = useMemo(() => createGenerateClassName(uid2), [uid2]);
|
|
47971
|
+
useLayoutEffect$1(() => {
|
|
47972
|
+
setLogLevel(logLevel);
|
|
47973
|
+
}, [logLevel]);
|
|
47974
|
+
useLayoutEffect$1(() => {
|
|
47975
|
+
}, [debugMode]);
|
|
47479
47976
|
const configVersion = config3?.version;
|
|
47480
47977
|
const configKey = useMemo(() => {
|
|
47481
47978
|
if (config3?.uid) {
|
|
@@ -47557,6 +48054,9 @@ function VitS(props) {
|
|
|
47557
48054
|
}
|
|
47558
48055
|
return createViewConfigStore(null, null);
|
|
47559
48056
|
}, [success, configKey]);
|
|
48057
|
+
if (debugMode && debugErrors.length > 0) {
|
|
48058
|
+
return jsxRuntimeExports.jsx(StylesProvider, { generateClassName: generateClassName2, children: jsxRuntimeExports.jsx(ThemeProvider, { theme: muiTheme[theme], children: jsxRuntimeExports.jsx(DebugWindow, { debugErrors }) }) });
|
|
48059
|
+
}
|
|
47560
48060
|
return success ? jsxRuntimeExports.jsx(StylesProvider, { generateClassName: generateClassName2, children: jsxRuntimeExports.jsx(ThemeProvider, { theme: muiTheme[theme], children: jsxRuntimeExports.jsx(QueryClientProvider, { client: queryClient, children: jsxRuntimeExports.jsx(ViewConfigProvider, { createStore: createViewConfigStoreClosure, ...remountOnUidChange ? { key: configKey } : {}, children: jsxRuntimeExports.jsx(AuxiliaryProvider, { createStore: createAuxiliaryStore, children: jsxRuntimeExports.jsxs(AsyncFunctionsContext.Provider, { value: asyncFunctions, children: [jsxRuntimeExports.jsx(VitessceGrid, { pageMode, success, configKey, viewTypes, fileTypes, coordinationTypes, config: configOrWarning, rowHeight, height: height2, theme, isBounded, stores, children: children3 }), jsxRuntimeExports.jsx(CallbackPublisher, { onWarn, onConfigChange, onLoaderChange, validateOnConfigChange, pluginSpecificConfigSchema })] }) }) }) }) }) }) : jsxRuntimeExports.jsx(StylesProvider, { generateClassName: generateClassName2, children: jsxRuntimeExports.jsx(ThemeProvider, { theme: muiTheme[theme], children: jsxRuntimeExports.jsx(Warning, { ...configOrWarning }) }) });
|
|
47561
48061
|
}
|
|
47562
48062
|
const AddIcon = createSvgIcon(/* @__PURE__ */ React$6.createElement("path", {
|
|
@@ -47752,8 +48252,8 @@ function TitleInfo(props) {
|
|
|
47752
48252
|
}
|
|
47753
48253
|
function warn$2(error2, setWarning) {
|
|
47754
48254
|
setWarning(error2.message);
|
|
47755
|
-
|
|
47756
|
-
|
|
48255
|
+
log$f.warn(error2.message);
|
|
48256
|
+
log$f.error(error2.stack);
|
|
47757
48257
|
if (error2 instanceof AbstractLoaderError) {
|
|
47758
48258
|
error2.warnInConsole();
|
|
47759
48259
|
}
|
|
@@ -67536,7 +68036,7 @@ function dataToCellSetsTree(data2, options) {
|
|
|
67536
68036
|
children: []
|
|
67537
68037
|
};
|
|
67538
68038
|
if (cellSetIds.length > 0 && Array.isArray(cellSetIds[0])) {
|
|
67539
|
-
const levelSets = new InternMap([], JSON.stringify);
|
|
68039
|
+
const levelSets = new InternMap$1([], JSON.stringify);
|
|
67540
68040
|
cellNames[j].forEach((id2, i2) => {
|
|
67541
68041
|
const classes = cellSetIds.map((col) => col[i2]);
|
|
67542
68042
|
if (levelSets.has(classes)) {
|
|
@@ -67650,7 +68150,7 @@ function getCellColors(params2) {
|
|
|
67650
68150
|
return /* @__PURE__ */ new Map();
|
|
67651
68151
|
}
|
|
67652
68152
|
function stratifyArrays(sampleEdges, sampleIdToObsIdsMap, sampleSets, sampleSetSelection, obsIndex, mergedCellSets, cellSetSelection, arraysToStratify) {
|
|
67653
|
-
const result = new InternMap([], JSON.stringify);
|
|
68153
|
+
const result = new InternMap$1([], JSON.stringify);
|
|
67654
68154
|
const hasSampleSetSelection = Array.isArray(sampleSetSelection) && sampleSetSelection.length > 0;
|
|
67655
68155
|
const hasCellSetSelection = Array.isArray(cellSetSelection) && cellSetSelection.length > 0;
|
|
67656
68156
|
const sampleSetKeys = hasSampleSetSelection ? sampleSetSelection : [null];
|
|
@@ -67665,9 +68165,9 @@ function stratifyArrays(sampleEdges, sampleIdToObsIdsMap, sampleSets, sampleSetS
|
|
|
67665
68165
|
const sampleSetInfo = sampleSets && sampleSetSelection ? treeToObsIdsBySetNames(sampleSets, sampleSetSelection) : null;
|
|
67666
68166
|
const cellSetInfo = mergedCellSets && cellSetSelection ? treeToObsIdsBySetNames(mergedCellSets, cellSetSelection) : null;
|
|
67667
68167
|
cellSetKeys.forEach((cellSetKey) => {
|
|
67668
|
-
result.set(cellSetKey, new InternMap([], JSON.stringify));
|
|
68168
|
+
result.set(cellSetKey, new InternMap$1([], JSON.stringify));
|
|
67669
68169
|
sampleSetKeys.forEach((sampleSetKey) => {
|
|
67670
|
-
result.get(cellSetKey).set(sampleSetKey, new InternMap([], JSON.stringify));
|
|
68170
|
+
result.get(cellSetKey).set(sampleSetKey, new InternMap$1([], JSON.stringify));
|
|
67671
68171
|
const sampleIdsInSampleSet = (sampleSetInfo && sampleSetKey ? sampleSetInfo?.find((n3) => isEqual$5(n3.path, sampleSetKey)) : null)?.ids;
|
|
67672
68172
|
const obsIdsInSampleSet = sampleIdsInSampleSet ? sampleIdsInSampleSet.flatMap((sampleId) => sampleIdToObsIdsMap?.get(sampleId) || []) : null;
|
|
67673
68173
|
const obsIdsInCellSet = (cellSetInfo && cellSetKey ? cellSetInfo?.find((n3) => isEqual$5(n3.path, cellSetKey)) : null)?.ids;
|
|
@@ -67709,7 +68209,7 @@ function stratifyArrays(sampleEdges, sampleIdToObsIdsMap, sampleSets, sampleSetS
|
|
|
67709
68209
|
sampleSetKeys.forEach((sampleSetKey) => {
|
|
67710
68210
|
const finalInsertionIndex = result.get(cellSetKey).get(sampleSetKey).get("i");
|
|
67711
68211
|
if (finalInsertionIndex !== result.get(cellSetKey).get(sampleSetKey).get("obsIndex").length) {
|
|
67712
|
-
|
|
68212
|
+
log$f.warn("The final insertion index is lower than expected.");
|
|
67713
68213
|
}
|
|
67714
68214
|
result.get(cellSetKey).get(sampleSetKey).delete("i");
|
|
67715
68215
|
});
|
|
@@ -67717,7 +68217,7 @@ function stratifyArrays(sampleEdges, sampleIdToObsIdsMap, sampleSets, sampleSetS
|
|
|
67717
68217
|
return result;
|
|
67718
68218
|
}
|
|
67719
68219
|
function stratifyExpressionData(sampleEdges, sampleSets, sampleSetSelection, expressionData, obsIndex, mergedCellSets, geneSelection, cellSetSelection, cellSetColor, featureValueTransform, featureValueTransformCoefficient) {
|
|
67720
|
-
const result = new InternMap([], JSON.stringify);
|
|
68220
|
+
const result = new InternMap$1([], JSON.stringify);
|
|
67721
68221
|
const hasSampleSetSelection = Array.isArray(sampleSetSelection) && sampleSetSelection.length > 0;
|
|
67722
68222
|
const hasCellSetSelection = Array.isArray(cellSetSelection) && cellSetSelection.length > 0;
|
|
67723
68223
|
const hasGeneSelection = Array.isArray(geneSelection) && geneSelection.length > 0;
|
|
@@ -67725,9 +68225,9 @@ function stratifyExpressionData(sampleEdges, sampleSets, sampleSetSelection, exp
|
|
|
67725
68225
|
const cellSetKeys = hasCellSetSelection ? cellSetSelection : [null];
|
|
67726
68226
|
const geneKeys = hasGeneSelection ? geneSelection : [null];
|
|
67727
68227
|
cellSetKeys.forEach((cellSetKey) => {
|
|
67728
|
-
result.set(cellSetKey, new InternMap([], JSON.stringify));
|
|
68228
|
+
result.set(cellSetKey, new InternMap$1([], JSON.stringify));
|
|
67729
68229
|
sampleSetKeys.forEach((sampleSetKey) => {
|
|
67730
|
-
result.get(cellSetKey).set(sampleSetKey, new InternMap([], JSON.stringify));
|
|
68230
|
+
result.get(cellSetKey).set(sampleSetKey, new InternMap$1([], JSON.stringify));
|
|
67731
68231
|
geneKeys.forEach((geneKey) => {
|
|
67732
68232
|
result.get(cellSetKey).get(sampleSetKey).set(geneKey, []);
|
|
67733
68233
|
});
|
|
@@ -67758,9 +68258,9 @@ function stratifyExpressionData(sampleEdges, sampleSets, sampleSetSelection, exp
|
|
|
67758
68258
|
return [null, null];
|
|
67759
68259
|
}
|
|
67760
68260
|
function aggregateStratifiedExpressionData(stratifiedResult, geneSelection) {
|
|
67761
|
-
const result = new InternMap([], JSON.stringify);
|
|
68261
|
+
const result = new InternMap$1([], JSON.stringify);
|
|
67762
68262
|
Array.from(stratifiedResult.entries()).forEach(([cellSetKey, firstLevelInternMap]) => {
|
|
67763
|
-
result.set(cellSetKey, new InternMap([], JSON.stringify));
|
|
68263
|
+
result.set(cellSetKey, new InternMap$1([], JSON.stringify));
|
|
67764
68264
|
Array.from(firstLevelInternMap.entries()).forEach(([sampleSetKey, secondLevelInternMap]) => {
|
|
67765
68265
|
const values3 = secondLevelInternMap.get(geneSelection[0]);
|
|
67766
68266
|
result.get(cellSetKey).set(sampleSetKey, values3);
|
|
@@ -186175,16 +186675,16 @@ async function getDecoder(fileDirectory) {
|
|
|
186175
186675
|
const Decoder = await importFn();
|
|
186176
186676
|
return new Decoder(fileDirectory);
|
|
186177
186677
|
}
|
|
186178
|
-
addDecoder([void 0, 1], () => import("./raw-
|
|
186179
|
-
addDecoder(5, () => import("./lzw-
|
|
186678
|
+
addDecoder([void 0, 1], () => import("./raw-6916b128.js").then((m2) => m2.default));
|
|
186679
|
+
addDecoder(5, () => import("./lzw-93ca1380.js").then((m2) => m2.default));
|
|
186180
186680
|
addDecoder(6, () => {
|
|
186181
186681
|
throw new Error("old style JPEG compression is not supported.");
|
|
186182
186682
|
});
|
|
186183
|
-
addDecoder(7, () => import("./jpeg-
|
|
186184
|
-
addDecoder([8, 32946], () => import("./deflate-
|
|
186185
|
-
addDecoder(32773, () => import("./packbits-
|
|
186186
|
-
addDecoder(34887, () => import("./lerc-
|
|
186187
|
-
addDecoder(50001, () => import("./webimage-
|
|
186683
|
+
addDecoder(7, () => import("./jpeg-3edfc0bd.js").then((m2) => m2.default));
|
|
186684
|
+
addDecoder([8, 32946], () => import("./deflate-e42f8666.js").then((m2) => m2.default));
|
|
186685
|
+
addDecoder(32773, () => import("./packbits-6e34f5c8.js").then((m2) => m2.default));
|
|
186686
|
+
addDecoder(34887, () => import("./lerc-0d506426.js").then((m2) => m2.default));
|
|
186687
|
+
addDecoder(50001, () => import("./webimage-35ffb81e.js").then((m2) => m2.default));
|
|
186188
186688
|
function copyNewSize(array2, width2, height2, samplesPerPixel = 1) {
|
|
186189
186689
|
return new (Object.getPrototypeOf(array2)).constructor(width2 * height2 * samplesPerPixel);
|
|
186190
186690
|
}
|
|
@@ -199589,10 +200089,10 @@ function multiSetsToTextureData(multiFeatureValues, multiMatrixObsIndex, setColo
|
|
|
199589
200089
|
const valueTexHeight = Math.max(2, Math.ceil(totalValuesLength / texSize));
|
|
199590
200090
|
const colorTexHeight = Math.max(2, Math.ceil(totalColorsLength / texSize));
|
|
199591
200091
|
if (valueTexHeight > texSize) {
|
|
199592
|
-
|
|
200092
|
+
log$f.error("Error: length of concatenated quantitative feature values larger than maximum texture size");
|
|
199593
200093
|
}
|
|
199594
200094
|
if (colorTexHeight > texSize) {
|
|
199595
|
-
|
|
200095
|
+
log$f.error("Error: length of concatenated quantitative feature values larger than maximum texture size");
|
|
199596
200096
|
}
|
|
199597
200097
|
const totalData = new Uint8Array(texSize * valueTexHeight);
|
|
199598
200098
|
const totalColors = new Uint8Array(texSize * colorTexHeight);
|
|
@@ -202128,7 +202628,7 @@ function initInterpolator$1(domain2, interpolator) {
|
|
|
202128
202628
|
}
|
|
202129
202629
|
const implicit$1 = Symbol("implicit");
|
|
202130
202630
|
function ordinal$1() {
|
|
202131
|
-
var index2 = new InternMap(), domain2 = [], range2 = [], unknown = implicit$1;
|
|
202631
|
+
var index2 = new InternMap$1(), domain2 = [], range2 = [], unknown = implicit$1;
|
|
202132
202632
|
function scale2(d) {
|
|
202133
202633
|
let i2 = index2.get(d);
|
|
202134
202634
|
if (i2 === void 0) {
|
|
@@ -202141,7 +202641,7 @@ function ordinal$1() {
|
|
|
202141
202641
|
scale2.domain = function(_2) {
|
|
202142
202642
|
if (!arguments.length)
|
|
202143
202643
|
return domain2.slice();
|
|
202144
|
-
domain2 = [], index2 = new InternMap();
|
|
202644
|
+
domain2 = [], index2 = new InternMap$1();
|
|
202145
202645
|
for (const value2 of _2) {
|
|
202146
202646
|
if (index2.has(value2))
|
|
202147
202647
|
continue;
|
|
@@ -205989,14 +206489,17 @@ function EmbeddingScatterplotSubscriber(props) {
|
|
|
205989
206489
|
title: titleOverride,
|
|
205990
206490
|
helpText = ViewHelpMapping.SCATTERPLOT,
|
|
205991
206491
|
// Average fill density for dynamic opacity calculation.
|
|
205992
|
-
averageFillDensity
|
|
206492
|
+
averageFillDensity,
|
|
206493
|
+
// For the dual scatterplot:
|
|
206494
|
+
sampleSetSelection: sampleSetSelectionFromProps
|
|
205993
206495
|
} = props;
|
|
205994
206496
|
const loaders = useLoaders();
|
|
205995
206497
|
const setComponentHover = useSetComponentHover();
|
|
205996
206498
|
const setComponentViewInfo = useSetComponentViewInfo(uuid);
|
|
205997
|
-
const [{ dataset, obsType, featureType, featureValueType, sampleType, embeddingZoom: zoom2, embeddingTargetX: targetX2, embeddingTargetY: targetY2, embeddingTargetZ: targetZ, embeddingType: mapping, obsFilter: cellFilter, obsHighlight: cellHighlight, featureSelection: geneSelection, obsSetSelection: cellSetSelection, obsSetColor: cellSetColor, obsColorEncoding: cellColorEncoding, additionalObsSets: additionalCellSets, embeddingObsSetPolygonsVisible: cellSetPolygonsVisible, embeddingObsSetLabelsVisible: cellSetLabelsVisible, embeddingObsSetLabelSize: cellSetLabelSize, embeddingObsRadius: cellRadiusFixed, embeddingObsRadiusMode: cellRadiusMode, embeddingObsOpacity: cellOpacityFixed, embeddingObsOpacityMode: cellOpacityMode, featureValueColormap: geneExpressionColormap, featureValueColormapRange: geneExpressionColormapRange, tooltipsVisible, sampleSetSelection, sampleSetColor, embeddingPointsVisible, embeddingContoursVisible, embeddingContoursFilled, embeddingContourPercentiles: contourPercentiles, contourColorEncoding, contourColor }, { setEmbeddingZoom: setZoom, setEmbeddingTargetX: setTargetX, setEmbeddingTargetY: setTargetY, setEmbeddingTargetZ: setTargetZ, setObsFilter: setCellFilter, setObsSetSelection: setCellSetSelection, setObsHighlight: setCellHighlight, setObsSetColor: setCellSetColor, setObsColorEncoding: setCellColorEncoding, setAdditionalObsSets: setAdditionalCellSets, setEmbeddingObsSetPolygonsVisible: setCellSetPolygonsVisible, setEmbeddingObsSetLabelsVisible: setCellSetLabelsVisible, setEmbeddingObsSetLabelSize: setCellSetLabelSize, setEmbeddingObsRadius: setCellRadiusFixed, setEmbeddingObsRadiusMode: setCellRadiusMode, setEmbeddingObsOpacity: setCellOpacityFixed, setEmbeddingObsOpacityMode: setCellOpacityMode, setFeatureValueColormap: setGeneExpressionColormap, setFeatureValueColormapRange: setGeneExpressionColormapRange, setTooltipsVisible, setEmbeddingPointsVisible, setEmbeddingContoursVisible, setEmbeddingContoursFilled, setEmbeddingContourPercentiles: setContourPercentiles, setContourColorEncoding }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.SCATTERPLOT], coordinationScopes);
|
|
206499
|
+
const [{ dataset, obsType, featureType, featureValueType, sampleType, embeddingZoom: zoom2, embeddingTargetX: targetX2, embeddingTargetY: targetY2, embeddingTargetZ: targetZ, embeddingType: mapping, obsFilter: cellFilter, obsHighlight: cellHighlight, featureSelection: geneSelection, obsSetSelection: cellSetSelection, obsSetColor: cellSetColor, obsColorEncoding: cellColorEncoding, additionalObsSets: additionalCellSets, embeddingObsSetPolygonsVisible: cellSetPolygonsVisible, embeddingObsSetLabelsVisible: cellSetLabelsVisible, embeddingObsSetLabelSize: cellSetLabelSize, embeddingObsRadius: cellRadiusFixed, embeddingObsRadiusMode: cellRadiusMode, embeddingObsOpacity: cellOpacityFixed, embeddingObsOpacityMode: cellOpacityMode, featureValueColormap: geneExpressionColormap, featureValueColormapRange: geneExpressionColormapRange, tooltipsVisible, sampleSetSelection: sampleSetSelectionFromCoordination, sampleSetColor, embeddingPointsVisible, embeddingContoursVisible, embeddingContoursFilled, embeddingContourPercentiles: contourPercentiles, contourColorEncoding, contourColor }, { setEmbeddingZoom: setZoom, setEmbeddingTargetX: setTargetX, setEmbeddingTargetY: setTargetY, setEmbeddingTargetZ: setTargetZ, setObsFilter: setCellFilter, setObsSetSelection: setCellSetSelection, setObsHighlight: setCellHighlight, setObsSetColor: setCellSetColor, setObsColorEncoding: setCellColorEncoding, setAdditionalObsSets: setAdditionalCellSets, setEmbeddingObsSetPolygonsVisible: setCellSetPolygonsVisible, setEmbeddingObsSetLabelsVisible: setCellSetLabelsVisible, setEmbeddingObsSetLabelSize: setCellSetLabelSize, setEmbeddingObsRadius: setCellRadiusFixed, setEmbeddingObsRadiusMode: setCellRadiusMode, setEmbeddingObsOpacity: setCellOpacityFixed, setEmbeddingObsOpacityMode: setCellOpacityMode, setFeatureValueColormap: setGeneExpressionColormap, setFeatureValueColormapRange: setGeneExpressionColormapRange, setTooltipsVisible, setEmbeddingPointsVisible, setEmbeddingContoursVisible, setEmbeddingContoursFilled, setEmbeddingContourPercentiles: setContourPercentiles, setContourColorEncoding }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.SCATTERPLOT], coordinationScopes);
|
|
205998
206500
|
const { embeddingZoom: initialZoom, embeddingTargetX: initialTargetX, embeddingTargetY: initialTargetY } = useInitialCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.SCATTERPLOT], coordinationScopes);
|
|
205999
206501
|
const observationsLabel = observationsLabelOverride || obsType;
|
|
206502
|
+
const sampleSetSelection = sampleSetSelectionFromProps || sampleSetSelectionFromCoordination;
|
|
206000
206503
|
const [width2, height2, deckRef] = useDeckCanvasSize();
|
|
206001
206504
|
const title2 = titleOverride || `Scatterplot (${mapping})`;
|
|
206002
206505
|
const [obsLabelsTypes, obsLabelsData] = useMultiObsLabels(coordinationScopes, obsType, loaders, dataset);
|
|
@@ -206281,6 +206784,13 @@ function EmbeddingScatterplotSubscriber(props) {
|
|
|
206281
206784
|
contourThresholds
|
|
206282
206785
|
})] });
|
|
206283
206786
|
}
|
|
206787
|
+
function DualEmbeddingScatterplotSubscriber(props) {
|
|
206788
|
+
const { uuid, coordinationScopes } = props;
|
|
206789
|
+
const [{ sampleSetSelection }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.DUAL_SCATTERPLOT], coordinationScopes);
|
|
206790
|
+
const caseSampleSetSelection = useMemo(() => sampleSetSelection?.[0] ? [sampleSetSelection[0]] : null, [sampleSetSelection]);
|
|
206791
|
+
const ctrlSampleSetSelection = useMemo(() => sampleSetSelection?.[1] ? [sampleSetSelection[1]] : null, [sampleSetSelection]);
|
|
206792
|
+
return jsxRuntimeExports.jsxs("div", { style: { width: "100%", height: "100%", display: "flex", flexDirection: "row" }, children: [jsxRuntimeExports.jsx("div", { style: { width: "50%", display: "flex", flexDirection: "column" }, children: jsxRuntimeExports.jsx(EmbeddingScatterplotSubscriber, { ...props, uuid: `${uuid}-case`, sampleSetSelection: caseSampleSetSelection }) }), jsxRuntimeExports.jsx("div", { style: { width: "50%", display: "flex", flexDirection: "column" }, children: jsxRuntimeExports.jsx(EmbeddingScatterplotSubscriber, { ...props, uuid: `${uuid}-ctrl`, sampleSetSelection: ctrlSampleSetSelection }) })] });
|
|
206793
|
+
}
|
|
206284
206794
|
function GatingScatterplotOptions(props) {
|
|
206285
206795
|
const { featureType, gatingFeatureSelectionX, setGatingFeatureSelectionX, gatingFeatureSelectionY, setGatingFeatureSelectionY, gatingFeatureValueTransform, setGatingFeatureValueTransform, gatingFeatureValueTransformCoefficient, setGatingFeatureValueTransformCoefficient, geneSelectOptions, transformOptions } = props;
|
|
206286
206796
|
const gatingScatterplotOptionsId = $bdb11010cef70236$export$f680877a34711e37();
|
|
@@ -221959,7 +222469,7 @@ function normalizeCoordinateTransformations(coordinateTransformations, datasets)
|
|
|
221959
222469
|
if (type3 === "sequence") {
|
|
221960
222470
|
return normalizeCoordinateTransformations(transform4.transformations, datasets);
|
|
221961
222471
|
}
|
|
221962
|
-
|
|
222472
|
+
log$f.warn(`Coordinate transformation type "${type3}" is not supported.`);
|
|
221963
222473
|
}
|
|
221964
222474
|
return transform4;
|
|
221965
222475
|
});
|
|
@@ -225809,7 +226319,7 @@ function SpatialSubscriber$1(props) {
|
|
|
225809
226319
|
]);
|
|
225810
226320
|
useEffect(() => {
|
|
225811
226321
|
if (!hasSegmentationsData && cellsLayer && !obsSegmentations && !obsSegmentationsIndex && obsCentroids && obsCentroidsIndex) {
|
|
225812
|
-
|
|
226322
|
+
log$f.warn("Rendering cell segmentation diamonds for backwards compatibility.");
|
|
225813
226323
|
}
|
|
225814
226324
|
}, [
|
|
225815
226325
|
hasSegmentationsData,
|
|
@@ -226165,13 +226675,21 @@ class Spatial2 extends AbstractSpatialOrScatterplot {
|
|
|
226165
226675
|
coordinateSystem: COORDINATE_SYSTEM.CARTESIAN,
|
|
226166
226676
|
pickable: true,
|
|
226167
226677
|
autoHighlight: AUTO_HIGHLIGHT,
|
|
226168
|
-
filled:
|
|
226678
|
+
filled: true,
|
|
226169
226679
|
stroked: !spatialSegmentationFilled,
|
|
226170
226680
|
backgroundColor: [0, 0, 0],
|
|
226171
226681
|
// isSelected: getCellIsSelected,
|
|
226172
226682
|
getPolygon,
|
|
226173
|
-
getFillColor:
|
|
226174
|
-
|
|
226683
|
+
getFillColor: (object2, { index: index2 }) => {
|
|
226684
|
+
const color2 = isStaticColor ? staticColor : getCellColor(object2, { index: index2 });
|
|
226685
|
+
color2[3] = spatialSegmentationFilled ? opacity2 * 255 : 0;
|
|
226686
|
+
return color2;
|
|
226687
|
+
},
|
|
226688
|
+
getLineColor: (object2, { index: index2 }) => {
|
|
226689
|
+
const color2 = isStaticColor ? staticColor : getCellColor(object2, { index: index2 });
|
|
226690
|
+
color2[3] = spatialSegmentationFilled ? 0 : opacity2 * 255;
|
|
226691
|
+
return color2;
|
|
226692
|
+
},
|
|
226175
226693
|
onClick: (info2) => {
|
|
226176
226694
|
},
|
|
226177
226695
|
onHover: (info2) => delegateHover(info2, "segmentation-polygon", layerScope),
|
|
@@ -226187,8 +226705,20 @@ class Spatial2 extends AbstractSpatialOrScatterplot {
|
|
|
226187
226705
|
isExpressionMode: obsColorEncoding === "geneSelection",
|
|
226188
226706
|
colormap: featureValueColormap,
|
|
226189
226707
|
updateTriggers: {
|
|
226190
|
-
getFillColor: [
|
|
226191
|
-
|
|
226708
|
+
getFillColor: [
|
|
226709
|
+
opacity2,
|
|
226710
|
+
spatialSegmentationFilled,
|
|
226711
|
+
obsColorEncoding,
|
|
226712
|
+
staticColor,
|
|
226713
|
+
layerColors
|
|
226714
|
+
],
|
|
226715
|
+
getLineColor: [
|
|
226716
|
+
opacity2,
|
|
226717
|
+
spatialSegmentationFilled,
|
|
226718
|
+
obsColorEncoding,
|
|
226719
|
+
staticColor,
|
|
226720
|
+
layerColors
|
|
226721
|
+
]
|
|
226192
226722
|
/*
|
|
226193
226723
|
getLineWidth: [stroked],
|
|
226194
226724
|
isSelected: cellSelection,
|
|
@@ -227193,7 +227723,7 @@ class ErrorBoundary extends React__default.Component {
|
|
|
227193
227723
|
}
|
|
227194
227724
|
}
|
|
227195
227725
|
const LazySpatialThree = React__default.lazy(async () => {
|
|
227196
|
-
const { SpatialWrapper: SpatialWrapper2 } = await import("./index-
|
|
227726
|
+
const { SpatialWrapper: SpatialWrapper2 } = await import("./index-632c59c9.js");
|
|
227197
227727
|
return { default: SpatialWrapper2 };
|
|
227198
227728
|
});
|
|
227199
227729
|
const SpatialThreeAdapter = React__default.forwardRef((props, ref2) => jsxRuntimeExports.jsx("div", { ref: ref2, style: { width: "100%", height: "100%" }, children: jsxRuntimeExports.jsx(ErrorBoundary, { children: jsxRuntimeExports.jsx(Suspense, { fallback: jsxRuntimeExports.jsx("div", { children: "Loading..." }), children: jsxRuntimeExports.jsx(LazySpatialThree, { ...props }) }) }) }));
|
|
@@ -234925,7 +235455,7 @@ function LinkController(props) {
|
|
|
234925
235455
|
};
|
|
234926
235456
|
connection.current?.send(JSON.stringify(message));
|
|
234927
235457
|
} catch (error2) {
|
|
234928
|
-
|
|
235458
|
+
log$f.error("Unable to send Configuration to Server", error2);
|
|
234929
235459
|
}
|
|
234930
235460
|
}
|
|
234931
235461
|
}, [id2, socketOpen, sync]);
|
|
@@ -234942,7 +235472,7 @@ function LinkController(props) {
|
|
|
234942
235472
|
}).then((response) => response.json()).then((response) => {
|
|
234943
235473
|
setLinkID(response.link_id);
|
|
234944
235474
|
}).catch((err2) => {
|
|
234945
|
-
|
|
235475
|
+
log$f.error("Fetch Error :-S", err2);
|
|
234946
235476
|
});
|
|
234947
235477
|
}
|
|
234948
235478
|
}, [linkID, linkEndpoint]);
|
|
@@ -234958,27 +235488,27 @@ function LinkController(props) {
|
|
|
234958
235488
|
if (linkID !== null) {
|
|
234959
235489
|
const ws2 = new WebSocket(websocketEndpoint, ["Authorization", authToken, linkID]);
|
|
234960
235490
|
ws2.addEventListener("open", (event2) => {
|
|
234961
|
-
|
|
235491
|
+
log$f.log("Open", event2);
|
|
234962
235492
|
setSocketOpen(true);
|
|
234963
235493
|
});
|
|
234964
235494
|
ws2.addEventListener("connecting", (event2) => {
|
|
234965
|
-
|
|
235495
|
+
log$f.log("Connecting", event2);
|
|
234966
235496
|
setSocketOpen(false);
|
|
234967
235497
|
});
|
|
234968
235498
|
ws2.addEventListener("error", (event2) => {
|
|
234969
|
-
|
|
235499
|
+
log$f.log("Error", event2);
|
|
234970
235500
|
});
|
|
234971
235501
|
ws2.addEventListener("close", (event2) => {
|
|
234972
|
-
|
|
235502
|
+
log$f.log("Close", event2);
|
|
234973
235503
|
});
|
|
234974
235504
|
ws2.addEventListener("message", (event2) => {
|
|
234975
|
-
|
|
235505
|
+
log$f.log("Message", event2);
|
|
234976
235506
|
const eventData = event2.data;
|
|
234977
235507
|
if (eventData.includes(";")) {
|
|
234978
235508
|
if (eventData.split(";")[0] === id2) {
|
|
234979
|
-
|
|
235509
|
+
log$f.log("Message from ourselves");
|
|
234980
235510
|
} else {
|
|
234981
|
-
|
|
235511
|
+
log$f.log("Message from server ");
|
|
234982
235512
|
if (sync) {
|
|
234983
235513
|
setConfig({
|
|
234984
235514
|
...JSON.parse(decodeURI(atob(eventData.split(";")[1]))),
|
|
@@ -235697,7 +236227,7 @@ const useStyles$3 = makeStyles((theme) => ({
|
|
|
235697
236227
|
}));
|
|
235698
236228
|
register({ dataFetcher: ZarrMultivecDataFetcher_default, config: ZarrMultivecDataFetcher_default.config }, { pluginType: "dataFetcher" });
|
|
235699
236229
|
const LazyHiGlassComponent = React__default.lazy(async () => {
|
|
235700
|
-
const { HiGlassComponent } = await import("./higlass-
|
|
236230
|
+
const { HiGlassComponent } = await import("./higlass-16c69035.js");
|
|
235701
236231
|
return { default: HiGlassComponent };
|
|
235702
236232
|
});
|
|
235703
236233
|
const HG_SIZE = 800;
|
|
@@ -240896,7 +241426,7 @@ function CellSetExpressionPlot(props) {
|
|
|
240896
241426
|
stratificationSide = ordinal$1().domain(sampleSetNames).range(["left", "right"]);
|
|
240897
241427
|
stratificationColor = ordinal$1().domain(sampleSetNames).range(
|
|
240898
241428
|
// TODO: check for full path equality here.
|
|
240899
|
-
sampleSetNames.map((name2) => sampleSetColor?.find((d) => d.path.at(-1) === name2)
|
|
241429
|
+
sampleSetNames.map((name2) => sampleSetColor?.find((d) => d.path.at(-1) === name2)?.color || [125, 125, 125]).map(colorArrayToString)
|
|
240900
241430
|
);
|
|
240901
241431
|
}
|
|
240902
241432
|
const {
|
|
@@ -241027,11 +241557,11 @@ function summarize(iterable, keepZeros) {
|
|
|
241027
241557
|
};
|
|
241028
241558
|
}
|
|
241029
241559
|
function dotStratifiedExpressionData(stratifiedResult, posThreshold) {
|
|
241030
|
-
const result = new InternMap([], JSON.stringify);
|
|
241560
|
+
const result = new InternMap$1([], JSON.stringify);
|
|
241031
241561
|
Array.from(stratifiedResult.entries()).forEach(([cellSetKey, firstLevelInternMap]) => {
|
|
241032
|
-
result.set(cellSetKey, new InternMap([], JSON.stringify));
|
|
241562
|
+
result.set(cellSetKey, new InternMap$1([], JSON.stringify));
|
|
241033
241563
|
Array.from(firstLevelInternMap.entries()).forEach(([sampleSetKey, secondLevelInternMap]) => {
|
|
241034
|
-
result.get(cellSetKey).set(sampleSetKey, new InternMap([], JSON.stringify));
|
|
241564
|
+
result.get(cellSetKey).set(sampleSetKey, new InternMap$1([], JSON.stringify));
|
|
241035
241565
|
Array.from(secondLevelInternMap.entries()).forEach(([geneKey, values3]) => {
|
|
241036
241566
|
if (values3) {
|
|
241037
241567
|
const exprMean = mean$1(values3);
|
|
@@ -241049,9 +241579,9 @@ function dotStratifiedExpressionData(stratifiedResult, posThreshold) {
|
|
|
241049
241579
|
return result;
|
|
241050
241580
|
}
|
|
241051
241581
|
function summarizeStratifiedExpressionData(stratifiedResult, keepZeros) {
|
|
241052
|
-
const summarizedResult = new InternMap([], JSON.stringify);
|
|
241582
|
+
const summarizedResult = new InternMap$1([], JSON.stringify);
|
|
241053
241583
|
Array.from(stratifiedResult.entries()).forEach(([cellSetKey, firstLevelInternMap]) => {
|
|
241054
|
-
summarizedResult.set(cellSetKey, new InternMap([], JSON.stringify));
|
|
241584
|
+
summarizedResult.set(cellSetKey, new InternMap$1([], JSON.stringify));
|
|
241055
241585
|
Array.from(firstLevelInternMap.entries()).forEach(([sampleSetKey, secondLevelInternMap]) => {
|
|
241056
241586
|
const values3 = secondLevelInternMap;
|
|
241057
241587
|
const summary = summarize(values3, keepZeros);
|
|
@@ -260241,10 +260771,10 @@ const Tiles = {
|
|
|
260241
260771
|
resquarify: treemapResquarify
|
|
260242
260772
|
};
|
|
260243
260773
|
const Output$4 = ["x0", "y0", "x1", "y1", "depth", "children"];
|
|
260244
|
-
function Treemap(params2) {
|
|
260774
|
+
function Treemap$1(params2) {
|
|
260245
260775
|
HierarchyLayout.call(this, params2);
|
|
260246
260776
|
}
|
|
260247
|
-
Treemap.Definition = {
|
|
260777
|
+
Treemap$1.Definition = {
|
|
260248
260778
|
"type": "Treemap",
|
|
260249
260779
|
"metadata": {
|
|
260250
260780
|
"tree": true,
|
|
@@ -260310,7 +260840,7 @@ Treemap.Definition = {
|
|
|
260310
260840
|
"default": Output$4
|
|
260311
260841
|
}]
|
|
260312
260842
|
};
|
|
260313
|
-
inherits(Treemap, HierarchyLayout, {
|
|
260843
|
+
inherits(Treemap$1, HierarchyLayout, {
|
|
260314
260844
|
/**
|
|
260315
260845
|
* Treemap layout generator. Adds 'method' and 'ratio' parameters
|
|
260316
260846
|
* to configure the underlying tile method.
|
|
@@ -260341,7 +260871,7 @@ const tree = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty
|
|
|
260341
260871
|
stratify: Stratify,
|
|
260342
260872
|
tree: Tree,
|
|
260343
260873
|
treelinks: TreeLinks,
|
|
260344
|
-
treemap: Treemap
|
|
260874
|
+
treemap: Treemap$1
|
|
260345
260875
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
260346
260876
|
const ALPHA_MASK = 4278190080;
|
|
260347
260877
|
function baseBitmaps($2, data2) {
|
|
@@ -292959,8 +293489,8 @@ function useExpressionSummaries(sampleEdges, sampleSets, sampleSetSelection, exp
|
|
|
292959
293489
|
if (stratifiedData) {
|
|
292960
293490
|
const dotData = dotStratifiedExpressionData(stratifiedData, posThreshold);
|
|
292961
293491
|
const geneToUuid = new Map(geneSelection?.map((gene) => [gene, v4$1()]));
|
|
292962
|
-
const cellSetToUuid = new InternMap(cellSetSelection?.map((sampleSet) => [sampleSet, v4$1()]), JSON.stringify);
|
|
292963
|
-
const sampleSetToUuid = new InternMap(sampleSetSelection?.map((sampleSet) => [sampleSet, v4$1()]), JSON.stringify);
|
|
293492
|
+
const cellSetToUuid = new InternMap$1(cellSetSelection?.map((sampleSet) => [sampleSet, v4$1()]), JSON.stringify);
|
|
293493
|
+
const sampleSetToUuid = new InternMap$1(sampleSetSelection?.map((sampleSet) => [sampleSet, v4$1()]), JSON.stringify);
|
|
292964
293494
|
const result = [];
|
|
292965
293495
|
Array.from(dotData.entries()).forEach(([cellSetKey, firstLevelInternMap]) => {
|
|
292966
293496
|
Array.from(firstLevelInternMap.entries()).forEach(([sampleSetKey, secondLevelInternMap]) => {
|
|
@@ -293201,6 +293731,222 @@ function FeatureBarPlotSubscriber(props) {
|
|
|
293201
293731
|
]);
|
|
293202
293732
|
return jsxRuntimeExports.jsx(TitleInfo, { title: `Feature Values${firstGeneSelected ? ` (${firstGeneSelected})` : ""}`, removeGridComponent, urls: urls2, theme, isReady, helpText, children: jsxRuntimeExports.jsx("div", { ref: containerRef, className: classes.vegaContainer, children: expressionArr ? jsxRuntimeExports.jsx(FeatureBarPlot, { yMin, yMax: expressionMax, yUnits, data: expressionArr, theme, width: width2, height: height2, obsType, cellHighlight, cellSetSelection, additionalCellSets, cellSetColor, featureType, featureValueType, featureName: firstGeneSelected, onBarSelect, onBarHighlight }) : jsxRuntimeExports.jsxs("span", { children: ["Select a ", featureType, "."] }) }) });
|
|
293203
293733
|
}
|
|
293734
|
+
function uidGenerator(prefix2) {
|
|
293735
|
+
let i2 = 0;
|
|
293736
|
+
return () => {
|
|
293737
|
+
i2 += 1;
|
|
293738
|
+
return { id: `${prefix2}-${i2}`, href: `#${prefix2}-${i2}` };
|
|
293739
|
+
};
|
|
293740
|
+
}
|
|
293741
|
+
function getColorScale(setSelectionArr, setColorArr, theme) {
|
|
293742
|
+
return ordinal$1().domain(setSelectionArr || []).range(setSelectionArr?.map((setNamePath) => setColorArr?.find((d) => isEqual$5(d.path, setNamePath))?.color || getDefaultColor(theme))?.map(colorArrayToString) || []);
|
|
293743
|
+
}
|
|
293744
|
+
function Treemap(props) {
|
|
293745
|
+
const { obsCounts, obsColorEncoding, hierarchyLevels, theme, width: width2, height: height2, obsType, sampleType, obsSetColor, sampleSetColor, obsSetSelection, sampleSetSelection, marginTop = 5, marginRight = 5, marginLeft = 80, marginBottom } = props;
|
|
293746
|
+
const hierarchyData = useMemo(() => {
|
|
293747
|
+
if (!obsCounts) {
|
|
293748
|
+
return null;
|
|
293749
|
+
}
|
|
293750
|
+
let map2;
|
|
293751
|
+
if (isEqual$5(hierarchyLevels, ["sampleSet", "obsSet"])) {
|
|
293752
|
+
map2 = rollup(obsCounts, (D2) => D2[0].value, (d) => d.sampleSetPath, (d) => d.obsSetPath);
|
|
293753
|
+
} else if (isEqual$5(hierarchyLevels, ["obsSet", "sampleSet"])) {
|
|
293754
|
+
map2 = rollup(obsCounts, (D2) => D2[0].value, (d) => d.obsSetPath, (d) => d.sampleSetPath);
|
|
293755
|
+
} else {
|
|
293756
|
+
throw new Error("Unexpected levels value.");
|
|
293757
|
+
}
|
|
293758
|
+
return hierarchy(map2);
|
|
293759
|
+
}, [obsCounts, hierarchyLevels]);
|
|
293760
|
+
const [obsSetColorScale, sampleSetColorScale] = useMemo(() => [
|
|
293761
|
+
getColorScale(obsSetSelection, obsSetColor, theme),
|
|
293762
|
+
getColorScale(sampleSetSelection, sampleSetColor, theme)
|
|
293763
|
+
], [obsSetSelection, sampleSetSelection, sampleSetColor, obsSetColor, theme]);
|
|
293764
|
+
const treemapLeaves = useMemo(() => {
|
|
293765
|
+
const treemapFunc = treemap().tile(treemapBinary).size([width2, height2]).padding(1).round(true);
|
|
293766
|
+
const treemapLayout = treemapFunc(hierarchyData.sum((d) => d[1]).sort((a2, b2) => b2[1] - a2[1]));
|
|
293767
|
+
return treemapLayout.leaves();
|
|
293768
|
+
}, [hierarchyData, width2, height2]);
|
|
293769
|
+
const svgRef = useRef();
|
|
293770
|
+
useEffect(() => {
|
|
293771
|
+
const domElement = svgRef.current;
|
|
293772
|
+
const svg2 = select$1(domElement);
|
|
293773
|
+
svg2.selectAll("g").remove();
|
|
293774
|
+
svg2.attr("width", width2).attr("height", height2).attr("viewBox", [0, 0, width2, height2]).attr("style", "font: 10px sans-serif");
|
|
293775
|
+
if (!treemapLeaves || !obsSetSelection || !sampleSetSelection) {
|
|
293776
|
+
return;
|
|
293777
|
+
}
|
|
293778
|
+
const leaf = svg2.selectAll("g").data(treemapLeaves).join("g").attr("transform", (d) => `translate(${d.x0},${d.y0})`);
|
|
293779
|
+
leaf.append("title").text((d) => {
|
|
293780
|
+
const cellCount = d.data?.[1];
|
|
293781
|
+
const primaryPathString = JSON.stringify(d.data[0]);
|
|
293782
|
+
const secondaryPathString = JSON.stringify(d.parent.data[0]);
|
|
293783
|
+
return `${cellCount.toLocaleString()} ${pluralize(obsType, cellCount)} in ${primaryPathString} and ${secondaryPathString}`;
|
|
293784
|
+
});
|
|
293785
|
+
const getLeafUid = uidGenerator("leaf");
|
|
293786
|
+
const getClipUid = uidGenerator("clip");
|
|
293787
|
+
const colorScale2 = obsColorEncoding === "sampleSetSelection" ? sampleSetColorScale : obsSetColorScale;
|
|
293788
|
+
const getPathForColoring = (d) => (
|
|
293789
|
+
// eslint-disable-next-line no-nested-ternary
|
|
293790
|
+
obsColorEncoding === "sampleSetSelection" ? hierarchyLevels[0] === "obsSet" ? d.data?.[0] : d.parent?.data?.[0] : hierarchyLevels[0] === "sampleSet" ? d.data?.[0] : d.parent?.data?.[0]
|
|
293791
|
+
);
|
|
293792
|
+
leaf.append("rect").attr("id", (d) => {
|
|
293793
|
+
d.leafUid = getLeafUid();
|
|
293794
|
+
return d.leafUid.id;
|
|
293795
|
+
}).attr("fill", (d) => colorScale2(getPathForColoring(d))).attr("fill-opacity", 0.8).attr("width", (d) => d.x1 - d.x0).attr("height", (d) => d.y1 - d.y0);
|
|
293796
|
+
leaf.append("clipPath").attr("id", (d) => {
|
|
293797
|
+
d.clipUid = getClipUid();
|
|
293798
|
+
return d.clipUid.id;
|
|
293799
|
+
}).append("use").attr("xlink:href", (d) => d.leafUid.href);
|
|
293800
|
+
leaf.append("text").attr("clip-path", (d) => `url(${d.clipUid.href})`).selectAll("tspan").data((d) => [
|
|
293801
|
+
// Each element in this array corresponds to a line of text.
|
|
293802
|
+
d.data?.[0]?.at(-1),
|
|
293803
|
+
d.parent?.data?.[0]?.at(-1),
|
|
293804
|
+
`${d.data?.[1].toLocaleString()} ${pluralize(obsType, d.data?.[1])}`
|
|
293805
|
+
]).join("tspan").attr("x", 3).attr("y", (d, i2, nodes) => `${(i2 === nodes.length - 1) * 0.3 + 1.1 + i2 * 0.9}em`).text((d) => d);
|
|
293806
|
+
}, [
|
|
293807
|
+
width2,
|
|
293808
|
+
height2,
|
|
293809
|
+
marginLeft,
|
|
293810
|
+
marginBottom,
|
|
293811
|
+
theme,
|
|
293812
|
+
marginTop,
|
|
293813
|
+
marginRight,
|
|
293814
|
+
obsType,
|
|
293815
|
+
sampleType,
|
|
293816
|
+
treemapLeaves,
|
|
293817
|
+
sampleSetColor,
|
|
293818
|
+
sampleSetSelection,
|
|
293819
|
+
obsSetSelection,
|
|
293820
|
+
obsSetColor,
|
|
293821
|
+
obsSetColorScale,
|
|
293822
|
+
sampleSetColorScale,
|
|
293823
|
+
obsColorEncoding,
|
|
293824
|
+
hierarchyLevels
|
|
293825
|
+
]);
|
|
293826
|
+
return jsxRuntimeExports.jsx("svg", { ref: svgRef, style: {
|
|
293827
|
+
top: 0,
|
|
293828
|
+
left: 0,
|
|
293829
|
+
width: `${width2}px`,
|
|
293830
|
+
height: `${height2}px`,
|
|
293831
|
+
position: "relative"
|
|
293832
|
+
} });
|
|
293833
|
+
}
|
|
293834
|
+
function TreemapOptions(props) {
|
|
293835
|
+
const { children: children3, obsType, sampleType, hierarchyLevels, setHierarchyLevels, obsColorEncoding, setObsColorEncoding } = props;
|
|
293836
|
+
const treemapOptionsId = $bdb11010cef70236$export$f680877a34711e37();
|
|
293837
|
+
const classes = useStyles$r();
|
|
293838
|
+
function handleColorEncodingChange(event2) {
|
|
293839
|
+
setObsColorEncoding(event2.target.value);
|
|
293840
|
+
}
|
|
293841
|
+
function handleHierarchyLevelsOrderingChange(event2) {
|
|
293842
|
+
if (event2.target.value === "sampleSet") {
|
|
293843
|
+
setHierarchyLevels(["sampleSet", "obsSet"]);
|
|
293844
|
+
} else {
|
|
293845
|
+
setHierarchyLevels(["obsSet", "sampleSet"]);
|
|
293846
|
+
}
|
|
293847
|
+
}
|
|
293848
|
+
const primaryHierarchyLevel = isEqual$5(hierarchyLevels, ["sampleSet", "obsSet"]) ? "sampleSet" : "obsSet";
|
|
293849
|
+
return jsxRuntimeExports.jsxs(OptionsContainer, { children: [children3, jsxRuntimeExports.jsxs(TableRow$1, { children: [jsxRuntimeExports.jsx(TableCell$1, { className: classes.labelCell, variant: "head", scope: "row", children: jsxRuntimeExports.jsx("label", { htmlFor: `cell-color-encoding-select-${treemapOptionsId}`, children: "Color Encoding" }) }), jsxRuntimeExports.jsx(TableCell$1, { className: classes.inputCell, variant: "body", children: jsxRuntimeExports.jsxs(OptionSelect, { className: classes.select, value: obsColorEncoding, onChange: handleColorEncodingChange, inputProps: {
|
|
293850
|
+
id: `cell-color-encoding-select-${treemapOptionsId}`
|
|
293851
|
+
}, children: [jsxRuntimeExports.jsxs("option", { value: "cellSetSelection", children: [capitalize$2(obsType), " Sets"] }), jsxRuntimeExports.jsxs("option", { value: "sampleSetSelection", children: [capitalize$2(sampleType), " Sets"] })] }) })] }), jsxRuntimeExports.jsxs(TableRow$1, { children: [jsxRuntimeExports.jsx(TableCell$1, { className: classes.labelCell, variant: "head", scope: "row", children: jsxRuntimeExports.jsx("label", { htmlFor: `treemap-set-hierarchy-levels-${treemapOptionsId}`, children: "Primary Hierarchy Level" }) }), jsxRuntimeExports.jsx(TableCell$1, { className: classes.inputCell, variant: "body", children: jsxRuntimeExports.jsxs(OptionSelect, { className: classes.select, value: primaryHierarchyLevel, onChange: handleHierarchyLevelsOrderingChange, inputProps: {
|
|
293852
|
+
id: `hierarchy-level-select-${treemapOptionsId}`
|
|
293853
|
+
}, children: [jsxRuntimeExports.jsxs("option", { value: "obsSet", children: [capitalize$2(obsType), " Sets"] }), jsxRuntimeExports.jsxs("option", { value: "sampleSet", children: [capitalize$2(sampleType), " Sets"] })] }) })] })] });
|
|
293854
|
+
}
|
|
293855
|
+
const DEFAULT_HIERARCHY_LEVELS = ["obsSet", "sampleSet"];
|
|
293856
|
+
function TreemapSubscriber(props) {
|
|
293857
|
+
const { coordinationScopes, removeGridComponent, theme, helpText = ViewHelpMapping.TREEMAP } = props;
|
|
293858
|
+
const classes = useStyles$2();
|
|
293859
|
+
const loaders = useLoaders();
|
|
293860
|
+
const [{ dataset, obsType, featureType, featureValueType, obsFilter, obsHighlight, obsSetSelection, obsSetFilter, obsSelection, obsSelectionMode, obsSetHighlight, obsSetColor, obsColorEncoding, additionalObsSets, sampleType, sampleSetSelection, sampleSetFilter, sampleSetColor, sampleSelection, sampleSelectionMode, sampleFilter, sampleFilterMode, sampleHighlight, hierarchyLevels }, { setObsFilter, setObsSelection: setObsSelection2, setObsSetFilter, setObsSetSelection, setObsSelectionMode, setObsFilterMode, setObsHighlight, setObsSetColor, setObsColorEncoding, setAdditionalObsSets, setSampleFilter, setSampleSetFilter, setSampleFilterMode, setSampleSelection, setSampleSetSelection, setSampleSelectionMode, setSampleHighlight, setSampleSetColor, setHierarchyLevels }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.TREEMAP], coordinationScopes);
|
|
293861
|
+
const [width2, height2, containerRef] = useGridItemSize();
|
|
293862
|
+
const [{ obsIndex }, matrixIndicesStatus, matrixIndicesUrls] = useObsFeatureMatrixIndices(loaders, dataset, false, { obsType, featureType, featureValueType });
|
|
293863
|
+
const [{ obsSets }, obsSetsStatus, obsSetsUrls] = useObsSetsData(loaders, dataset, true, {}, {}, { obsType });
|
|
293864
|
+
const [{ sampleIndex, sampleSets }, sampleSetsStatus, sampleSetsUrls] = useSampleSetsData(
|
|
293865
|
+
loaders,
|
|
293866
|
+
dataset,
|
|
293867
|
+
// TODO: support `false`, i.e., configurations in which
|
|
293868
|
+
// there are no sampleSets
|
|
293869
|
+
true,
|
|
293870
|
+
{ setSampleSetColor },
|
|
293871
|
+
{ sampleSetColor },
|
|
293872
|
+
{ sampleType }
|
|
293873
|
+
);
|
|
293874
|
+
const [{ sampleEdges }, sampleEdgesStatus, sampleEdgesUrls] = useSampleEdgesData(
|
|
293875
|
+
loaders,
|
|
293876
|
+
dataset,
|
|
293877
|
+
// TODO: support `false`, i.e., configurations in which
|
|
293878
|
+
// there are no sampleEdges
|
|
293879
|
+
true,
|
|
293880
|
+
{},
|
|
293881
|
+
{},
|
|
293882
|
+
{ obsType, sampleType }
|
|
293883
|
+
);
|
|
293884
|
+
const isReady = useReady([
|
|
293885
|
+
matrixIndicesStatus,
|
|
293886
|
+
obsSetsStatus,
|
|
293887
|
+
sampleSetsStatus,
|
|
293888
|
+
sampleEdgesStatus
|
|
293889
|
+
]);
|
|
293890
|
+
const urls2 = useUrls([
|
|
293891
|
+
matrixIndicesUrls,
|
|
293892
|
+
obsSetsUrls,
|
|
293893
|
+
sampleSetsUrls,
|
|
293894
|
+
sampleEdgesUrls
|
|
293895
|
+
]);
|
|
293896
|
+
const mergedObsSets = useMemo(() => mergeObsSets(obsSets, additionalObsSets), [obsSets, additionalObsSets]);
|
|
293897
|
+
const mergedSampleSets = useMemo(() => mergeObsSets(sampleSets, null), [sampleSets]);
|
|
293898
|
+
const obsCount = obsIndex?.length || 0;
|
|
293899
|
+
const sampleCount = sampleIndex?.length || 0;
|
|
293900
|
+
const [obsCounts, sampleCounts] = useMemo(() => {
|
|
293901
|
+
const obsResult = new InternMap$1([], JSON.stringify);
|
|
293902
|
+
const sampleResult = new InternMap$1([], JSON.stringify);
|
|
293903
|
+
const hasSampleSetSelection = Array.isArray(sampleSetSelection) && sampleSetSelection.length > 0;
|
|
293904
|
+
const hasCellSetSelection = Array.isArray(obsSetSelection) && obsSetSelection.length > 0;
|
|
293905
|
+
const sampleSetKeys = hasSampleSetSelection ? sampleSetSelection : [null];
|
|
293906
|
+
const cellSetKeys = hasCellSetSelection ? obsSetSelection : [null];
|
|
293907
|
+
cellSetKeys.forEach((cellSetKey) => {
|
|
293908
|
+
obsResult.set(cellSetKey, new InternMap$1([], JSON.stringify));
|
|
293909
|
+
sampleSetKeys.forEach((sampleSetKey) => {
|
|
293910
|
+
obsResult.get(cellSetKey).set(sampleSetKey, 0);
|
|
293911
|
+
});
|
|
293912
|
+
});
|
|
293913
|
+
const sampleSetSizes = treeToSetSizesBySetNames(mergedSampleSets, sampleSetSelection, sampleSetSelection, sampleSetColor, theme);
|
|
293914
|
+
sampleSetKeys.forEach((sampleSetKey) => {
|
|
293915
|
+
const sampleSetSize = sampleSetSizes.find((d) => isEqual$5(d.setNamePath, sampleSetKey))?.size;
|
|
293916
|
+
sampleResult.set(sampleSetKey, sampleSetSize || 0);
|
|
293917
|
+
});
|
|
293918
|
+
if (mergedObsSets && obsSetSelection) {
|
|
293919
|
+
const sampleIdToSetMap = sampleSets && sampleSetSelection ? treeToSelectedSetMap(sampleSets, sampleSetSelection) : null;
|
|
293920
|
+
const cellIdToSetMap = treeToSelectedSetMap(mergedObsSets, obsSetSelection);
|
|
293921
|
+
for (let i2 = 0; i2 < obsIndex.length; i2 += 1) {
|
|
293922
|
+
const obsId = obsIndex[i2];
|
|
293923
|
+
const cellSet = cellIdToSetMap?.get(obsId);
|
|
293924
|
+
const sampleId = sampleEdges?.get(obsId);
|
|
293925
|
+
const sampleSet = sampleId ? sampleIdToSetMap?.get(sampleId) : null;
|
|
293926
|
+
if (hasSampleSetSelection && !sampleSet) {
|
|
293927
|
+
continue;
|
|
293928
|
+
}
|
|
293929
|
+
const prevObsCount = obsResult.get(cellSet)?.get(sampleSet);
|
|
293930
|
+
obsResult.get(cellSet)?.set(sampleSet, prevObsCount + 1);
|
|
293931
|
+
}
|
|
293932
|
+
}
|
|
293933
|
+
return [
|
|
293934
|
+
unnestMap(obsResult, ["obsSetPath", "sampleSetPath", "value"]),
|
|
293935
|
+
unnestMap(sampleResult, ["sampleSetPath", "value"])
|
|
293936
|
+
];
|
|
293937
|
+
}, [
|
|
293938
|
+
obsIndex,
|
|
293939
|
+
sampleEdges,
|
|
293940
|
+
sampleSets,
|
|
293941
|
+
obsSetColor,
|
|
293942
|
+
sampleSetColor,
|
|
293943
|
+
mergedObsSets,
|
|
293944
|
+
obsSetSelection,
|
|
293945
|
+
mergedSampleSets
|
|
293946
|
+
// TODO: consider filtering-related coordination values
|
|
293947
|
+
]);
|
|
293948
|
+
return jsxRuntimeExports.jsx(TitleInfo, { title: `Treemap of ${capitalize$2(pluralize(obsType, 2))}`, info: `${commaNumber(obsCount)} ${pluralize(obsType, obsCount)} from ${commaNumber(sampleCount)} ${pluralize(sampleType, sampleCount)}`, removeGridComponent, urls: urls2, theme, isReady, helpText, options: jsxRuntimeExports.jsx(TreemapOptions, { obsType, sampleType, obsColorEncoding, setObsColorEncoding, hierarchyLevels: hierarchyLevels || DEFAULT_HIERARCHY_LEVELS, setHierarchyLevels }), children: jsxRuntimeExports.jsx("div", { ref: containerRef, className: classes.vegaContainer, children: jsxRuntimeExports.jsx(Treemap, { obsCounts, sampleCounts, obsColorEncoding, hierarchyLevels: hierarchyLevels || DEFAULT_HIERARCHY_LEVELS, theme, width: width2, height: height2, obsType, sampleType, obsSetColor, sampleSetColor, obsSetSelection, sampleSetSelection }) }) });
|
|
293949
|
+
}
|
|
293204
293950
|
class CsvSource {
|
|
293205
293951
|
constructor({ url, requestInit: requestInit2 }) {
|
|
293206
293952
|
this.url = url;
|
|
@@ -293989,7 +294735,7 @@ async function initLoader(imageData) {
|
|
|
293989
294735
|
const { metadata: loaderMetadata } = loader2;
|
|
293990
294736
|
const { omero, multiscales } = loaderMetadata;
|
|
293991
294737
|
if (!Array.isArray(multiscales) || multiscales.length === 0) {
|
|
293992
|
-
|
|
294738
|
+
log$f.error("Multiscales array must exist and have at least one element");
|
|
293993
294739
|
}
|
|
293994
294740
|
const { coordinateTransformations } = multiscales[0];
|
|
293995
294741
|
const axes = getNgffAxes(multiscales[0].axes);
|
|
@@ -294065,7 +294811,7 @@ class RasterJsonAsImageLoader extends RasterLoader {
|
|
|
294065
294811
|
}
|
|
294066
294812
|
});
|
|
294067
294813
|
if (!coordinationValues?.spatialImageLayer) {
|
|
294068
|
-
|
|
294814
|
+
log$f.warn("Could not initialize coordinationValues.spatialImageLayer in RasterJsonAsImageLoader. This may be an indicator that the image could not be loaded.");
|
|
294069
294815
|
}
|
|
294070
294816
|
return new LoaderResult({
|
|
294071
294817
|
image: loaders.length > 0 && meta2.length > 0 ? { loaders, meta: meta2 } : null
|
|
@@ -294095,7 +294841,7 @@ class RasterJsonAsObsSegmentationsLoader extends RasterLoader {
|
|
|
294095
294841
|
}
|
|
294096
294842
|
});
|
|
294097
294843
|
if (!coordinationValues?.spatialImageLayer) {
|
|
294098
|
-
|
|
294844
|
+
log$f.warn("Could not initialize coordinationValues.spatialImageLayer in RasterJsonAsObsSegmentationsLoader. This may be an indicator that the image could not be loaded.");
|
|
294099
294845
|
}
|
|
294100
294846
|
return new LoaderResult(loaders.length > 0 && meta2.length > 0 ? {
|
|
294101
294847
|
obsSegmentationsType: "bitmask",
|
|
@@ -294158,7 +294904,7 @@ function basename(path2) {
|
|
|
294158
294904
|
const arr = path2.split("/");
|
|
294159
294905
|
const result = arr.at(-1);
|
|
294160
294906
|
if (!result) {
|
|
294161
|
-
|
|
294907
|
+
log$f.error("basename of path is empty", path2);
|
|
294162
294908
|
return "";
|
|
294163
294909
|
}
|
|
294164
294910
|
return result;
|
|
@@ -294328,6 +295074,16 @@ class AnnDataSource extends ZarrDataSource {
|
|
|
294328
295074
|
this.obsIndex = this.getJson("obs/.zattrs").then(({ _index }) => this.getFlatArrDecompressed(`/obs/${_index}`));
|
|
294329
295075
|
return this.obsIndex;
|
|
294330
295076
|
}
|
|
295077
|
+
/**
|
|
295078
|
+
* Class method for loading the obs index.
|
|
295079
|
+
* @param {string|undefined} path Used by subclasses.
|
|
295080
|
+
* @returns {Promise<string[]>} An promise for a zarr array
|
|
295081
|
+
* containing the indices.
|
|
295082
|
+
*/
|
|
295083
|
+
loadDataFrameIndex(path2 = void 0) {
|
|
295084
|
+
const dfPath = path2 ? dirname(path2) : "";
|
|
295085
|
+
return this.getJson(`${dfPath}/.zattrs`).then(({ _index }) => this.getFlatArrDecompressed(`${dfPath.length > 0 ? "/" : ""}${dfPath}/${_index}`));
|
|
295086
|
+
}
|
|
294331
295087
|
/**
|
|
294332
295088
|
* Class method for loading the var index.
|
|
294333
295089
|
* @param {string|undefined} path Used by subclasses.
|
|
@@ -294439,7 +295195,7 @@ class AnnDataSource extends ZarrDataSource {
|
|
|
294439
295195
|
try {
|
|
294440
295196
|
val = await this._loadElement(`${path2}/${key2}`);
|
|
294441
295197
|
} catch (e3) {
|
|
294442
|
-
|
|
295198
|
+
log$f.error(`Error in _loadDict: could not load ${key2}`);
|
|
294443
295199
|
}
|
|
294444
295200
|
result[key2] = val;
|
|
294445
295201
|
}));
|
|
@@ -295319,6 +296075,65 @@ class SampleEdgesAnndataLoader extends AbstractTwoStepLoader {
|
|
|
295319
296075
|
});
|
|
295320
296076
|
}
|
|
295321
296077
|
}
|
|
296078
|
+
class SampleSetsAnndataLoader extends AbstractTwoStepLoader {
|
|
296079
|
+
loadObsIndices() {
|
|
296080
|
+
const { options } = this;
|
|
296081
|
+
const obsIndexPromises = options.sampleSets?.map(({ path: path2 }) => path2).map((pathOrPaths) => {
|
|
296082
|
+
if (Array.isArray(pathOrPaths)) {
|
|
296083
|
+
if (pathOrPaths.length > 0) {
|
|
296084
|
+
return this.dataSource.loadDataFrameIndex(pathOrPaths[0]);
|
|
296085
|
+
}
|
|
296086
|
+
return this.dataSource.loadDataFrameIndex();
|
|
296087
|
+
}
|
|
296088
|
+
return this.dataSource.loadDataFrameIndex(pathOrPaths);
|
|
296089
|
+
});
|
|
296090
|
+
return Promise.all(obsIndexPromises);
|
|
296091
|
+
}
|
|
296092
|
+
loadCellSetIds() {
|
|
296093
|
+
const { options } = this;
|
|
296094
|
+
const cellSetZarrLocation = options.sampleSets?.map(({ path: path2 }) => path2);
|
|
296095
|
+
return this.dataSource.loadObsColumns(cellSetZarrLocation);
|
|
296096
|
+
}
|
|
296097
|
+
loadCellSetScores() {
|
|
296098
|
+
const { options } = this;
|
|
296099
|
+
const cellSetScoreZarrLocation = options.sampleSets?.map((option) => option.scorePath || void 0);
|
|
296100
|
+
return this.dataSource.loadObsColumns(cellSetScoreZarrLocation);
|
|
296101
|
+
}
|
|
296102
|
+
async load() {
|
|
296103
|
+
const superResult = await super.load().catch((reason) => Promise.resolve(reason));
|
|
296104
|
+
if (superResult instanceof AbstractLoaderError) {
|
|
296105
|
+
return Promise.reject(superResult);
|
|
296106
|
+
}
|
|
296107
|
+
if (!this.cachedResult) {
|
|
296108
|
+
const { options } = this;
|
|
296109
|
+
this.cachedResult = Promise.all([
|
|
296110
|
+
this.dataSource.loadDataFrameIndex(),
|
|
296111
|
+
this.loadObsIndices(),
|
|
296112
|
+
this.loadCellSetIds(),
|
|
296113
|
+
this.loadCellSetScores()
|
|
296114
|
+
]).then((data2) => [
|
|
296115
|
+
data2[0],
|
|
296116
|
+
dataToCellSetsTree([data2[1], data2[2], data2[3]], options.sampleSets)
|
|
296117
|
+
]);
|
|
296118
|
+
}
|
|
296119
|
+
const [obsIndex, obsSets] = await this.cachedResult;
|
|
296120
|
+
const obsSetsMembership = treeToMembershipMap(obsSets);
|
|
296121
|
+
const coordinationValues = {};
|
|
296122
|
+
const { tree: tree2 } = obsSets;
|
|
296123
|
+
const newAutoSetSelectionParentName = tree2[0].name;
|
|
296124
|
+
tree2[0].children.map((node2) => [
|
|
296125
|
+
newAutoSetSelectionParentName,
|
|
296126
|
+
node2.name
|
|
296127
|
+
]);
|
|
296128
|
+
const newAutoSetColors = initializeCellSetColor(obsSets, []);
|
|
296129
|
+
coordinationValues.sampleSetColor = newAutoSetColors;
|
|
296130
|
+
return Promise.resolve(new LoaderResult({
|
|
296131
|
+
sampleIndex: obsIndex,
|
|
296132
|
+
sampleSets: obsSets,
|
|
296133
|
+
sampleSetsMembership: obsSetsMembership
|
|
296134
|
+
}, null, coordinationValues));
|
|
296135
|
+
}
|
|
296136
|
+
}
|
|
295322
296137
|
class GenomicProfilesZarrLoader extends AbstractTwoStepLoader {
|
|
295323
296138
|
loadAttrs() {
|
|
295324
296139
|
if (this.attrs) {
|
|
@@ -295452,7 +296267,7 @@ class ImageWrapper {
|
|
|
295452
296267
|
const channelNames = this.getChannelNames();
|
|
295453
296268
|
const channelIndex = channelNames.indexOf(channelSpecifier);
|
|
295454
296269
|
if (channelIndex === -1) {
|
|
295455
|
-
|
|
296270
|
+
log$f.error(`Channel ${channelSpecifier} not found in image.`);
|
|
295456
296271
|
}
|
|
295457
296272
|
return channelIndex;
|
|
295458
296273
|
}
|
|
@@ -295625,11 +296440,11 @@ class OmeZarrLoader extends AbstractTwoStepLoader {
|
|
|
295625
296440
|
const isSpatialData = !!spatialDataChannels || !!imageLabel;
|
|
295626
296441
|
const isLabels = !!imageLabel;
|
|
295627
296442
|
if (!isSpatialData && !omero) {
|
|
295628
|
-
|
|
296443
|
+
log$f.error("image.ome-zarr must have omero metadata in attributes.");
|
|
295629
296444
|
return Promise.reject(payload);
|
|
295630
296445
|
}
|
|
295631
296446
|
if (!Array.isArray(multiscales) || multiscales.length === 0) {
|
|
295632
|
-
|
|
296447
|
+
log$f.error("Multiscales array must exist and have at least one element");
|
|
295633
296448
|
}
|
|
295634
296449
|
const { datasets, coordinateTransformations: coordinateTransformationsFromFile, name: imageName } = multiscales[0];
|
|
295635
296450
|
const axes = getNgffAxes(multiscales[0].axes);
|
|
@@ -295937,7 +296752,7 @@ class SpatialDataObsSpotsLoader extends AbstractTwoStepLoader {
|
|
|
295937
296752
|
const xScaleFactor = scaleFactors[0];
|
|
295938
296753
|
const yScaleFactor = scaleFactors[1];
|
|
295939
296754
|
if (xScaleFactor !== yScaleFactor) {
|
|
295940
|
-
|
|
296755
|
+
log$f.warn("Using x-axis scale factor for transformation of obsSpots, but x and y scale factors are not equal");
|
|
295941
296756
|
}
|
|
295942
296757
|
for (let i2 = 0; i2 < this.radius.shape[0]; i2++) {
|
|
295943
296758
|
this.radius.data[i2] *= xScaleFactor;
|
|
@@ -352010,8 +352825,8 @@ function BiomarkerSelectSubscriber(props) {
|
|
|
352010
352825
|
const { coordinationScopes, stratificationOptions } = props;
|
|
352011
352826
|
useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.BIOMARKER_SELECT], coordinationScopes);
|
|
352012
352827
|
const viewConfigStoreApi = useViewConfigStoreApi();
|
|
352013
|
-
useViewConfig();
|
|
352014
|
-
useSetViewConfig(viewConfigStoreApi);
|
|
352828
|
+
const viewConfig = useViewConfig();
|
|
352829
|
+
const setViewConfig = useSetViewConfig(viewConfigStoreApi);
|
|
352015
352830
|
const [isSelecting, setIsSelecting] = useState(true);
|
|
352016
352831
|
const [mode, setMode] = useState(null);
|
|
352017
352832
|
const [step2, setStep] = useState(null);
|
|
@@ -352023,7 +352838,20 @@ function BiomarkerSelectSubscriber(props) {
|
|
|
352023
352838
|
const autocompleteNode = useCallback(async (inputValue) => autocompleteFeature2(inputValue), [autocompleteFeature2]);
|
|
352024
352839
|
const getEdges = useCallback(async (node2, targetModality) => transformFeature2(node2, targetModality), [transformFeature2]);
|
|
352025
352840
|
return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: isSelecting ? jsxRuntimeExports.jsx(ScmdUi, { mode, setMode, step: step2, setStep, currentModalityAgnosticSelection, setCurrentModalityAgnosticSelection, currentModalitySpecificSelection, setCurrentModalitySpecificSelection, currentStratificationSelection, setCurrentStratificationSelection, autocompleteNode, getEdges, stratifications: stratificationOptions, onFinish: () => {
|
|
352026
|
-
|
|
352841
|
+
setViewConfig({
|
|
352842
|
+
...viewConfig,
|
|
352843
|
+
coordinationSpace: {
|
|
352844
|
+
...viewConfig.coordinationSpace,
|
|
352845
|
+
sampleSetFilter: {
|
|
352846
|
+
...viewConfig.coordinationSpace.sampleSetFilter,
|
|
352847
|
+
"case-control": currentStratificationSelection?.sampleSets
|
|
352848
|
+
},
|
|
352849
|
+
sampleSetSelection: {
|
|
352850
|
+
...viewConfig.coordinationSpace.sampleSetSelection,
|
|
352851
|
+
"case-control": currentStratificationSelection?.sampleSets
|
|
352852
|
+
}
|
|
352853
|
+
}
|
|
352854
|
+
});
|
|
352027
352855
|
} }) : null });
|
|
352028
352856
|
}
|
|
352029
352857
|
function isArray3(value2) {
|
|
@@ -353694,6 +354522,7 @@ const baseViewTypes = [
|
|
|
353694
354522
|
makeViewType(ViewType$2.DESCRIPTION, DescriptionSubscriber),
|
|
353695
354523
|
makeViewType(ViewType$2.OBS_SETS, ObsSetsManagerSubscriber),
|
|
353696
354524
|
makeViewType(ViewType$2.SCATTERPLOT, EmbeddingScatterplotSubscriber),
|
|
354525
|
+
makeViewType(ViewType$2.DUAL_SCATTERPLOT, DualEmbeddingScatterplotSubscriber),
|
|
353697
354526
|
makeViewType(ViewType$2.GATING, GatingSubscriber),
|
|
353698
354527
|
makeViewType(ViewType$2.SPATIAL, SpatialSubscriber$1),
|
|
353699
354528
|
makeViewType(ViewType$2.SPATIAL_BETA, SpatialSubscriber),
|
|
@@ -353710,7 +354539,8 @@ const baseViewTypes = [
|
|
|
353710
354539
|
makeViewType(ViewType$2.GENOMIC_PROFILES, GenomicProfilesSubscriber),
|
|
353711
354540
|
makeViewType(ViewType$2.DOT_PLOT, DotPlotSubscriber),
|
|
353712
354541
|
makeViewType(ViewType$2.BIOMARKER_SELECT, BiomarkerSelectSubscriber),
|
|
353713
|
-
makeViewType(ViewType$2.LINK_CONTROLLER, LinkControllerSubscriber)
|
|
354542
|
+
makeViewType(ViewType$2.LINK_CONTROLLER, LinkControllerSubscriber),
|
|
354543
|
+
makeViewType(ViewType$2.TREEMAP, TreemapSubscriber)
|
|
353714
354544
|
];
|
|
353715
354545
|
const baseFileTypes = [
|
|
353716
354546
|
// All CSV file types
|
|
@@ -353738,6 +354568,7 @@ const baseFileTypes = [
|
|
|
353738
354568
|
...makeZarrFileTypes(FileType$2.OBS_SEGMENTATIONS_ANNDATA_ZARR, DataType$4.OBS_SEGMENTATIONS, ObsSegmentationsAnndataLoader, AnnDataSource, obsSegmentationsAnndataSchema),
|
|
353739
354569
|
...makeZarrFileTypes(FileType$2.FEATURE_LABELS_ANNDATA_ZARR, DataType$4.FEATURE_LABELS, FeatureLabelsAnndataLoader, AnnDataSource, featureLabelsAnndataSchema),
|
|
353740
354570
|
...makeZarrFileTypes(FileType$2.SAMPLE_EDGES_ANNDATA_ZARR, DataType$4.SAMPLE_EDGES, SampleEdgesAnndataLoader, AnnDataSource, sampleEdgesAnndataSchema),
|
|
354571
|
+
...makeZarrFileTypes(FileType$2.SAMPLE_SETS_ANNDATA_ZARR, DataType$4.SAMPLE_SETS, SampleSetsAnndataLoader, AnnDataSource, sampleSetsAnndataSchema),
|
|
353741
354572
|
// All MuData file types
|
|
353742
354573
|
makeFileType(FileType$2.OBS_SETS_MUDATA_ZARR, DataType$4.OBS_SETS, ObsSetsAnndataLoader, MuDataSource, obsSetsAnndataSchema),
|
|
353743
354574
|
makeFileType(FileType$2.OBS_EMBEDDING_MUDATA_ZARR, DataType$4.OBS_EMBEDDING, ObsEmbeddingAnndataLoader, MuDataSource, obsEmbeddingAnndataSchema),
|
|
@@ -353845,7 +354676,11 @@ const baseCoordinationTypes = [
|
|
|
353845
354676
|
new PluginCoordinationType(CoordinationType$2.HEATMAP_TARGET_Y, 0, z.number()),
|
|
353846
354677
|
new PluginCoordinationType(CoordinationType$2.OBS_FILTER, null, z.array(z.string()).nullable()),
|
|
353847
354678
|
new PluginCoordinationType(CoordinationType$2.OBS_HIGHLIGHT, null, z.string().nullable()),
|
|
354679
|
+
new PluginCoordinationType(CoordinationType$2.OBS_SELECTION, null, z.array(z.string()).nullable()),
|
|
353848
354680
|
new PluginCoordinationType(CoordinationType$2.OBS_SET_SELECTION, null, z.array(obsSetPath).nullable()),
|
|
354681
|
+
new PluginCoordinationType(CoordinationType$2.OBS_SELECTION_MODE, null, z.enum(["obsSelection", "obsSetSelection"]).nullable()),
|
|
354682
|
+
new PluginCoordinationType(CoordinationType$2.OBS_SET_FILTER, null, z.array(obsSetPath).nullable()),
|
|
354683
|
+
new PluginCoordinationType(CoordinationType$2.OBS_FILTER_MODE, null, z.enum(["obsFilter", "obsSetFilter"]).nullable()),
|
|
353849
354684
|
new PluginCoordinationType(CoordinationType$2.OBS_SET_EXPANSION, null, z.array(obsSetPath).nullable()),
|
|
353850
354685
|
new PluginCoordinationType(CoordinationType$2.OBS_SET_HIGHLIGHT, null, obsSetPath.nullable()),
|
|
353851
354686
|
new PluginCoordinationType(CoordinationType$2.OBS_SET_COLOR, null, z.array(z.object({
|
|
@@ -353856,6 +354691,10 @@ const baseCoordinationTypes = [
|
|
|
353856
354691
|
new PluginCoordinationType(CoordinationType$2.FEATURE_FILTER, null, z.array(z.string()).nullable()),
|
|
353857
354692
|
new PluginCoordinationType(CoordinationType$2.FEATURE_HIGHLIGHT, null, z.string().nullable()),
|
|
353858
354693
|
new PluginCoordinationType(CoordinationType$2.FEATURE_SELECTION, null, z.array(z.string()).nullable()),
|
|
354694
|
+
new PluginCoordinationType(CoordinationType$2.FEATURE_SET_SELECTION, null, z.array(obsSetPath).nullable()),
|
|
354695
|
+
new PluginCoordinationType(CoordinationType$2.FEATURE_SELECTION_MODE, null, z.enum(["featureSelection", "featureSetSelection"]).nullable()),
|
|
354696
|
+
new PluginCoordinationType(CoordinationType$2.FEATURE_SET_FILTER, null, z.array(obsSetPath).nullable()),
|
|
354697
|
+
new PluginCoordinationType(CoordinationType$2.FEATURE_FILTER_MODE, null, z.enum(["featureFilter", "featureSetFilter"]).nullable()),
|
|
353859
354698
|
new PluginCoordinationType(CoordinationType$2.FEATURE_VALUE_TRANSFORM, null, z.enum(["log1p", "arcsinh"]).nullable()),
|
|
353860
354699
|
new PluginCoordinationType(CoordinationType$2.FEATURE_VALUE_TRANSFORM_COEFFICIENT, 1, z.number()),
|
|
353861
354700
|
new PluginCoordinationType(CoordinationType$2.FEATURE_VALUE_POSITIVITY_THRESHOLD, 0, z.number()),
|
|
@@ -353912,17 +354751,24 @@ const baseCoordinationTypes = [
|
|
|
353912
354751
|
new PluginCoordinationType(CoordinationType$2.SPATIAL_CHANNEL_LABEL_SIZE, 14, z.number()),
|
|
353913
354752
|
new PluginCoordinationType(CoordinationType$2.SAMPLE_TYPE, "sample", z.string().nullable()),
|
|
353914
354753
|
// TODO: remove one array level and use multi-coordination for sampleSetSelection?
|
|
354754
|
+
new PluginCoordinationType(CoordinationType$2.SAMPLE_FILTER, null, z.array(z.string()).nullable()),
|
|
354755
|
+
new PluginCoordinationType(CoordinationType$2.SAMPLE_SELECTION, null, z.array(z.string()).nullable()),
|
|
353915
354756
|
new PluginCoordinationType(CoordinationType$2.SAMPLE_SET_SELECTION, null, z.array(z.array(z.string())).nullable()),
|
|
354757
|
+
new PluginCoordinationType(CoordinationType$2.SAMPLE_SET_FILTER, null, z.array(z.array(z.string())).nullable()),
|
|
354758
|
+
new PluginCoordinationType(CoordinationType$2.SAMPLE_SELECTION_MODE, null, z.enum(["sampleSelection", "sampleSetSelection"]).nullable()),
|
|
354759
|
+
new PluginCoordinationType(CoordinationType$2.SAMPLE_FILTER_MODE, null, z.enum(["sampleFilter", "sampleSetFilter"]).nullable()),
|
|
353916
354760
|
new PluginCoordinationType(CoordinationType$2.SAMPLE_SET_COLOR, null, z.array(z.object({
|
|
353917
354761
|
path: obsSetPath,
|
|
353918
354762
|
color: rgbArray
|
|
353919
354763
|
})).nullable()),
|
|
354764
|
+
new PluginCoordinationType(CoordinationType$2.SAMPLE_HIGHLIGHT, null, z.string().nullable()),
|
|
353920
354765
|
new PluginCoordinationType(CoordinationType$2.EMBEDDING_POINTS_VISIBLE, true, z.boolean()),
|
|
353921
354766
|
new PluginCoordinationType(CoordinationType$2.EMBEDDING_CONTOURS_VISIBLE, false, z.boolean()),
|
|
353922
354767
|
new PluginCoordinationType(CoordinationType$2.EMBEDDING_CONTOURS_FILLED, true, z.boolean()),
|
|
353923
354768
|
new PluginCoordinationType(CoordinationType$2.EMBEDDING_CONTOUR_PERCENTILES, null, z.array(z.number()).nullable()),
|
|
353924
354769
|
new PluginCoordinationType(CoordinationType$2.CONTOUR_COLOR_ENCODING, "cellSetSelection", z.enum(["cellSetSelection", "sampleSetSelection", "contourColor"])),
|
|
353925
|
-
new PluginCoordinationType(CoordinationType$2.CONTOUR_COLOR, null, rgbArray.nullable())
|
|
354770
|
+
new PluginCoordinationType(CoordinationType$2.CONTOUR_COLOR, null, rgbArray.nullable()),
|
|
354771
|
+
new PluginCoordinationType(CoordinationType$2.HIERARCHY_LEVELS, null, z.array(z.enum(["sampleSet", "obsSet"])).nullable())
|
|
353926
354772
|
];
|
|
353927
354773
|
const baseAsyncFunctions = [
|
|
353928
354774
|
new PluginAsyncFunction(AsyncFunctionType.AUTOCOMPLETE_FEATURE, autocompleteFeature),
|
|
@@ -353940,7 +354786,7 @@ function Vitessce(props) {
|
|
|
353940
354786
|
const validConfig = upgradeAndParse(config3, onConfigUpgrade);
|
|
353941
354787
|
return [validConfig, true];
|
|
353942
354788
|
} catch (e3) {
|
|
353943
|
-
|
|
354789
|
+
log$f.error(e3);
|
|
353944
354790
|
return [
|
|
353945
354791
|
{
|
|
353946
354792
|
title: "Config validation or upgrade failed.",
|
|
@@ -356403,7 +357249,7 @@ function encodeConfInUrl({ conf, onOverMaximumUrlLength = () => {
|
|
|
356403
357249
|
if (newParams.length > maxLength) {
|
|
356404
357250
|
const willWorkOn = Object.entries(MAX_BROWSER_URL_LENGTHS).filter((entry2) => entry2[1] > newParams.length).map((entry2) => entry2[0]);
|
|
356405
357251
|
const message = `Configuration is ${compressedConf.length} characters; max URL for ${browser2} is ${maxLength}: it will work on ${willWorkOn.join(", ") || "no browser"}.`;
|
|
356406
|
-
|
|
357252
|
+
log$f.error(message);
|
|
356407
357253
|
onOverMaximumUrlLength({ message, willWorkOn });
|
|
356408
357254
|
}
|
|
356409
357255
|
return newParams;
|