@vitessce/constants-internal 3.5.6 → 3.5.8
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/index.js +181 -7
- package/dist-tsc/constant-relationships.d.ts.map +1 -1
- package/dist-tsc/constant-relationships.js +41 -0
- package/dist-tsc/constants.d.ts +36 -0
- package/dist-tsc/constants.d.ts.map +1 -1
- package/dist-tsc/constants.js +38 -0
- package/dist-tsc/coordination.d.ts.map +1 -1
- package/dist-tsc/coordination.js +95 -0
- package/dist-tsc/version.json +3 -3
- package/package.json +1 -1
- package/src/constant-relationships.ts +42 -0
- package/src/constants.ts +43 -0
- package/src/coordination.ts +95 -0
- package/src/version.json +3 -3
package/dist/index.js
CHANGED
|
@@ -16,9 +16,15 @@ const ViewType = {
|
|
|
16
16
|
FEATURE_VALUE_HISTOGRAM: "featureValueHistogram",
|
|
17
17
|
DOT_PLOT: "dotPlot",
|
|
18
18
|
FEATURE_BAR_PLOT: "featureBarPlot",
|
|
19
|
+
VOLCANO_PLOT: "volcanoPlot",
|
|
20
|
+
OBS_SET_COMPOSITION_BAR_PLOT: "obsSetCompositionBarPlot",
|
|
21
|
+
FEATURE_SET_ENRICHMENT_BAR_PLOT: "featureSetEnrichmentBarPlot",
|
|
19
22
|
BIOMARKER_SELECT: "biomarkerSelect",
|
|
23
|
+
COMPARATIVE_HEADING: "comparativeHeading",
|
|
20
24
|
LINK_CONTROLLER: "linkController",
|
|
21
|
-
|
|
25
|
+
NEUROGLANCER: "neuroglancer",
|
|
26
|
+
DUAL_SCATTERPLOT: "dualScatterplot",
|
|
27
|
+
TREEMAP: "treemap"
|
|
22
28
|
};
|
|
23
29
|
const DataType = {
|
|
24
30
|
OBS_LABELS: "obsLabels",
|
|
@@ -34,7 +40,11 @@ const DataType = {
|
|
|
34
40
|
OBS_POINTS: "obsPoints",
|
|
35
41
|
OBS_LOCATIONS: "obsLocations",
|
|
36
42
|
SAMPLE_SETS: "sampleSets",
|
|
37
|
-
SAMPLE_EDGES: "sampleEdges"
|
|
43
|
+
SAMPLE_EDGES: "sampleEdges",
|
|
44
|
+
COMPARISON_METADATA: "comparisonMetadata",
|
|
45
|
+
FEATURE_STATS: "featureStats",
|
|
46
|
+
FEATURE_SET_STATS: "featureSetStats",
|
|
47
|
+
OBS_SET_STATS: "obsSetStats"
|
|
38
48
|
};
|
|
39
49
|
const AsyncFunctionType = {
|
|
40
50
|
// String input (rather than Node input)
|
|
@@ -94,6 +104,11 @@ const FileType = {
|
|
|
94
104
|
OBS_LABELS_ANNDATA_ZARR: "obsLabels.anndata.zarr",
|
|
95
105
|
FEATURE_LABELS_ANNDATA_ZARR: "featureLabels.anndata.zarr",
|
|
96
106
|
SAMPLE_EDGES_ANNDATA_ZARR: "sampleEdges.anndata.zarr",
|
|
107
|
+
SAMPLE_SETS_ANNDATA_ZARR: "sampleSets.anndata.zarr",
|
|
108
|
+
COMPARISON_METADATA_ANNDATA_ZARR: "comparisonMetadata.anndata.zarr",
|
|
109
|
+
COMPARATIVE_FEATURE_STATS_ANNDATA_ZARR: "comparativeFeatureStats.anndata.zarr",
|
|
110
|
+
COMPARATIVE_FEATURE_SET_STATS_ANNDATA_ZARR: "comparativeFeatureSetStats.anndata.zarr",
|
|
111
|
+
COMPARATIVE_OBS_SET_STATS_ANNDATA_ZARR: "comparativeObsSetStats.anndata.zarr",
|
|
97
112
|
// AnnData - zipped
|
|
98
113
|
OBS_FEATURE_MATRIX_ANNDATA_ZARR_ZIP: "obsFeatureMatrix.anndata.zarr.zip",
|
|
99
114
|
OBS_FEATURE_COLUMNS_ANNDATA_ZARR_ZIP: "obsFeatureColumns.anndata.zarr.zip",
|
|
@@ -106,6 +121,11 @@ const FileType = {
|
|
|
106
121
|
OBS_LABELS_ANNDATA_ZARR_ZIP: "obsLabels.anndata.zarr.zip",
|
|
107
122
|
FEATURE_LABELS_ANNDATA_ZARR_ZIP: "featureLabels.anndata.zarr.zip",
|
|
108
123
|
SAMPLE_EDGES_ANNDATA_ZARR_ZIP: "sampleEdges.anndata.zarr.zip",
|
|
124
|
+
SAMPLE_SETS_ANNDATA_ZARR_ZIP: "sampleSets.anndata.zarr.zip",
|
|
125
|
+
COMPARISON_METADATA_ANNDATA_ZARR_ZIP: "comparisonMetadata.anndata.zarr.zip",
|
|
126
|
+
COMPARATIVE_FEATURE_STATS_ANNDATA_ZARR_ZIP: "comparativeFeatureStats.anndata.zarr.zip",
|
|
127
|
+
COMPARATIVE_FEATURE_SET_STATS_ANNDATA_ZARR_ZIP: "comparativeFeatureSetStats.anndata.zarr.zip",
|
|
128
|
+
COMPARATIVE_OBS_SET_STATS_ANNDATA_ZARR_ZIP: "comparativeObsSetStats.anndata.zarr.zip",
|
|
109
129
|
// AnnData - h5ad via reference spec
|
|
110
130
|
OBS_FEATURE_MATRIX_ANNDATA_H5AD: "obsFeatureMatrix.anndata.h5ad",
|
|
111
131
|
OBS_FEATURE_COLUMNS_ANNDATA_H5AD: "obsFeatureColumns.anndata.h5ad",
|
|
@@ -118,6 +138,11 @@ const FileType = {
|
|
|
118
138
|
OBS_LABELS_ANNDATA_H5AD: "obsLabels.anndata.h5ad",
|
|
119
139
|
FEATURE_LABELS_ANNDATA_H5AD: "featureLabels.anndata.h5ad",
|
|
120
140
|
SAMPLE_EDGES_ANNDATA_H5AD: "sampleEdges.anndata.h5ad",
|
|
141
|
+
SAMPLE_SETS_ANNDATA_H5AD: "sampleSets.anndata.h5ad",
|
|
142
|
+
COMPARISON_METADATA_ANNDATA_H5AD: "comparisonMetadata.anndata.h5ad",
|
|
143
|
+
COMPARATIVE_FEATURE_STATS_ANNDATA_H5AD: "comparativeFeatureStats.anndata.h5ad",
|
|
144
|
+
COMPARATIVE_FEATURE_SET_STATS_ANNDATA_H5AD: "comparativeFeatureSetStats.anndata.h5ad",
|
|
145
|
+
COMPARATIVE_OBS_SET_STATS_ANNDATA_H5AD: "comparativeObsSetStats.anndata.h5ad",
|
|
121
146
|
// SpatialData
|
|
122
147
|
IMAGE_SPATIALDATA_ZARR: "image.spatialdata.zarr",
|
|
123
148
|
LABELS_SPATIALDATA_ZARR: "labels.spatialdata.zarr",
|
|
@@ -309,12 +334,20 @@ const CoordinationType = {
|
|
|
309
334
|
SAMPLE_SET_FILTER: "sampleSetFilter",
|
|
310
335
|
SAMPLE_FILTER_MODE: "sampleFilterMode",
|
|
311
336
|
SAMPLE_SET_COLOR: "sampleSetColor",
|
|
337
|
+
SAMPLE_HIGHLIGHT: "sampleHighlight",
|
|
312
338
|
EMBEDDING_POINTS_VISIBLE: "embeddingPointsVisible",
|
|
313
339
|
EMBEDDING_CONTOURS_VISIBLE: "embeddingContoursVisible",
|
|
314
340
|
EMBEDDING_CONTOURS_FILLED: "embeddingContoursFilled",
|
|
315
341
|
EMBEDDING_CONTOUR_PERCENTILES: "embeddingContourPercentiles",
|
|
316
342
|
CONTOUR_COLOR_ENCODING: "contourColorEncoding",
|
|
317
|
-
CONTOUR_COLOR: "contourColor"
|
|
343
|
+
CONTOUR_COLOR: "contourColor",
|
|
344
|
+
// For volcano plot:
|
|
345
|
+
FEATURE_POINT_SIGNIFICANCE_THRESHOLD: "featurePointSignificanceThreshold",
|
|
346
|
+
FEATURE_LABEL_SIGNIFICANCE_THRESHOLD: "featureLabelSignificanceThreshold",
|
|
347
|
+
FEATURE_POINT_FOLD_CHANGE_THRESHOLD: "featurePointFoldChangeThreshold",
|
|
348
|
+
FEATURE_LABEL_FOLD_CHANGE_THRESHOLD: "featureLabelFoldChangeThreshold",
|
|
349
|
+
// Treemap
|
|
350
|
+
HIERARCHY_LEVELS: "hierarchyLevels"
|
|
318
351
|
};
|
|
319
352
|
const STATUS = {
|
|
320
353
|
LOADING: "loading",
|
|
@@ -340,7 +373,12 @@ const ViewHelpMapping = {
|
|
|
340
373
|
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).",
|
|
341
374
|
FEATURE_VALUE_HISTOGRAM: "The feature value histogram displays the distribution of values (e.g., expression) for the selected feature (e.g., gene).",
|
|
342
375
|
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).",
|
|
343
|
-
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."
|
|
376
|
+
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.",
|
|
377
|
+
NEUROGLANCER: "The Neuroglancer view displays 3d meshes using Neuroglancer developed by Google.",
|
|
378
|
+
TREEMAP: "The treemap provides an overview of the current state of sample-level or cell-level selection and filtering.",
|
|
379
|
+
VOLCANO_PLOT: "The volcano plot displays differential expression results. Each data point represents a feature (as opposed to an observation).",
|
|
380
|
+
OBS_SET_COMPOSITION_BAR_PLOT: "The set composition bar plot displays the results of a compositional analysis conducted using the scCODA method (Büttner et al. 2021 Nature Communications).",
|
|
381
|
+
FEATURE_SET_ENRICHMENT_BAR_PLOT: "The feature set enrichment bar plot displays the results of a hypergeometric test applied to the differential expression test results to identify enriched pathway gene sets."
|
|
344
382
|
};
|
|
345
383
|
const FILE_TYPE_DATA_TYPE_MAPPING = {
|
|
346
384
|
// For new file types
|
|
@@ -368,6 +406,11 @@ const FILE_TYPE_DATA_TYPE_MAPPING = {
|
|
|
368
406
|
[FileType.OBS_LABELS_ANNDATA_ZARR]: DataType.OBS_LABELS,
|
|
369
407
|
[FileType.FEATURE_LABELS_ANNDATA_ZARR]: DataType.FEATURE_LABELS,
|
|
370
408
|
[FileType.SAMPLE_EDGES_ANNDATA_ZARR]: DataType.SAMPLE_EDGES,
|
|
409
|
+
[FileType.SAMPLE_SETS_ANNDATA_ZARR]: DataType.SAMPLE_SETS,
|
|
410
|
+
[FileType.COMPARISON_METADATA_ANNDATA_ZARR]: DataType.COMPARISON_METADATA,
|
|
411
|
+
[FileType.COMPARATIVE_FEATURE_STATS_ANNDATA_ZARR]: DataType.FEATURE_STATS,
|
|
412
|
+
[FileType.COMPARATIVE_FEATURE_SET_STATS_ANNDATA_ZARR]: DataType.FEATURE_SET_STATS,
|
|
413
|
+
[FileType.COMPARATIVE_OBS_SET_STATS_ANNDATA_ZARR]: DataType.OBS_SET_STATS,
|
|
371
414
|
[FileType.IMAGE_OME_TIFF]: DataType.IMAGE,
|
|
372
415
|
[FileType.OBS_SEGMENTATIONS_OME_TIFF]: DataType.OBS_SEGMENTATIONS,
|
|
373
416
|
[FileType.OBS_FEATURE_MATRIX_MUDATA_ZARR]: DataType.OBS_FEATURE_MATRIX,
|
|
@@ -448,6 +491,22 @@ const DATA_TYPE_COORDINATION_VALUE_USAGE = {
|
|
|
448
491
|
[DataType.SAMPLE_EDGES]: [
|
|
449
492
|
CoordinationType.OBS_TYPE,
|
|
450
493
|
CoordinationType.SAMPLE_TYPE
|
|
494
|
+
],
|
|
495
|
+
[DataType.COMPARISON_METADATA]: [
|
|
496
|
+
CoordinationType.OBS_TYPE,
|
|
497
|
+
CoordinationType.SAMPLE_TYPE
|
|
498
|
+
],
|
|
499
|
+
[DataType.FEATURE_STATS]: [
|
|
500
|
+
CoordinationType.FEATURE_TYPE
|
|
501
|
+
// TODO: should sampleType, obsSetSelection, and/or sampleSetSelection be used here?
|
|
502
|
+
],
|
|
503
|
+
[DataType.FEATURE_SET_STATS]: [
|
|
504
|
+
CoordinationType.FEATURE_TYPE
|
|
505
|
+
// TODO: should sampleType, obsSetSelection, and/or sampleSetSelection be used here?
|
|
506
|
+
],
|
|
507
|
+
[DataType.OBS_SET_STATS]: [
|
|
508
|
+
CoordinationType.OBS_TYPE
|
|
509
|
+
// TODO: should sampleType, obsSetSelection, and/or sampleSetSelection be used here?
|
|
451
510
|
]
|
|
452
511
|
};
|
|
453
512
|
const ALT_ZARR_STORE_TYPES = {
|
|
@@ -496,6 +555,26 @@ const ALT_ZARR_STORE_TYPES = {
|
|
|
496
555
|
zip: FileType.SAMPLE_EDGES_ANNDATA_ZARR_ZIP,
|
|
497
556
|
h5ad: FileType.SAMPLE_EDGES_ANNDATA_H5AD
|
|
498
557
|
},
|
|
558
|
+
[FileType.SAMPLE_SETS_ANNDATA_ZARR]: {
|
|
559
|
+
zip: FileType.SAMPLE_SETS_ANNDATA_ZARR_ZIP,
|
|
560
|
+
h5ad: FileType.SAMPLE_SETS_ANNDATA_H5AD
|
|
561
|
+
},
|
|
562
|
+
[FileType.COMPARISON_METADATA_ANNDATA_ZARR]: {
|
|
563
|
+
zip: FileType.COMPARISON_METADATA_ANNDATA_ZARR_ZIP,
|
|
564
|
+
h5ad: FileType.COMPARISON_METADATA_ANNDATA_H5AD
|
|
565
|
+
},
|
|
566
|
+
[FileType.COMPARATIVE_FEATURE_STATS_ANNDATA_ZARR]: {
|
|
567
|
+
zip: FileType.COMPARATIVE_FEATURE_STATS_ANNDATA_ZARR_ZIP,
|
|
568
|
+
h5ad: FileType.COMPARATIVE_FEATURE_STATS_ANNDATA_H5AD
|
|
569
|
+
},
|
|
570
|
+
[FileType.COMPARATIVE_FEATURE_SET_STATS_ANNDATA_ZARR]: {
|
|
571
|
+
zip: FileType.COMPARATIVE_FEATURE_SET_STATS_ANNDATA_ZARR_ZIP,
|
|
572
|
+
h5ad: FileType.COMPARATIVE_FEATURE_SET_STATS_ANNDATA_H5AD
|
|
573
|
+
},
|
|
574
|
+
[FileType.COMPARATIVE_OBS_SET_STATS_ANNDATA_ZARR]: {
|
|
575
|
+
zip: FileType.COMPARATIVE_OBS_SET_STATS_ANNDATA_ZARR_ZIP,
|
|
576
|
+
h5ad: FileType.COMPARATIVE_OBS_SET_STATS_ANNDATA_H5AD
|
|
577
|
+
},
|
|
499
578
|
// For OME-Zarr:
|
|
500
579
|
[FileType.IMAGE_OME_ZARR]: {
|
|
501
580
|
zip: FileType.IMAGE_OME_ZARR_ZIP
|
|
@@ -520,6 +599,9 @@ const AUTO_INDEPENDENT_COORDINATION_TYPES = [
|
|
|
520
599
|
CoordinationType.EMBEDDING_OBS_OPACITY
|
|
521
600
|
];
|
|
522
601
|
const COMPONENT_COORDINATION_TYPES = {
|
|
602
|
+
[ViewType.NEUROGLANCER]: [
|
|
603
|
+
CoordinationType.DATASET
|
|
604
|
+
],
|
|
523
605
|
[ViewType.SCATTERPLOT]: [
|
|
524
606
|
CoordinationType.DATASET,
|
|
525
607
|
CoordinationType.OBS_TYPE,
|
|
@@ -989,21 +1071,113 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
|
989
1071
|
CoordinationType.OBS_COLOR_ENCODING,
|
|
990
1072
|
CoordinationType.ADDITIONAL_OBS_SETS
|
|
991
1073
|
],
|
|
1074
|
+
[ViewType.VOLCANO_PLOT]: [
|
|
1075
|
+
CoordinationType.DATASET,
|
|
1076
|
+
CoordinationType.OBS_TYPE,
|
|
1077
|
+
CoordinationType.FEATURE_TYPE,
|
|
1078
|
+
CoordinationType.SAMPLE_TYPE,
|
|
1079
|
+
// For selection of case-control sets of samples:
|
|
1080
|
+
CoordinationType.SAMPLE_SET_SELECTION,
|
|
1081
|
+
// For selection of one-vs-others sets of observations:
|
|
1082
|
+
CoordinationType.OBS_SET_SELECTION,
|
|
1083
|
+
// TODO: CoordinationType.FEATURE_SET_SELECTION,
|
|
1084
|
+
// TODO: CoordinationType.FEATURE_SET_HIGHLIGHT,
|
|
1085
|
+
// TODO: CoordinationType.FEATURE_SET_COLOR,
|
|
1086
|
+
CoordinationType.FEATURE_HIGHLIGHT,
|
|
1087
|
+
CoordinationType.FEATURE_SELECTION,
|
|
1088
|
+
CoordinationType.FEATURE_VALUE_COLORMAP,
|
|
1089
|
+
CoordinationType.FEATURE_VALUE_COLORMAP_RANGE,
|
|
1090
|
+
// TODO: CoordinationType.FEATURE_COLOR_ENCODING,
|
|
1091
|
+
// TODO: CoordinationType.ADDITIONAL_FEATURE_SETS,
|
|
1092
|
+
CoordinationType.TOOLTIPS_VISIBLE,
|
|
1093
|
+
CoordinationType.ADDITIONAL_OBS_SETS,
|
|
1094
|
+
CoordinationType.OBS_SET_COLOR,
|
|
1095
|
+
CoordinationType.SAMPLE_SET_COLOR,
|
|
1096
|
+
CoordinationType.FEATURE_POINT_SIGNIFICANCE_THRESHOLD,
|
|
1097
|
+
CoordinationType.FEATURE_LABEL_SIGNIFICANCE_THRESHOLD,
|
|
1098
|
+
CoordinationType.FEATURE_POINT_FOLD_CHANGE_THRESHOLD,
|
|
1099
|
+
CoordinationType.FEATURE_LABEL_FOLD_CHANGE_THRESHOLD
|
|
1100
|
+
],
|
|
1101
|
+
[ViewType.OBS_SET_COMPOSITION_BAR_PLOT]: [
|
|
1102
|
+
CoordinationType.DATASET,
|
|
1103
|
+
CoordinationType.OBS_TYPE,
|
|
1104
|
+
CoordinationType.SAMPLE_TYPE,
|
|
1105
|
+
// For selection of case-control sets of samples:
|
|
1106
|
+
CoordinationType.SAMPLE_SET_SELECTION,
|
|
1107
|
+
// For selection of one-vs-others sets of observations:
|
|
1108
|
+
CoordinationType.OBS_SET_SELECTION,
|
|
1109
|
+
CoordinationType.ADDITIONAL_OBS_SETS,
|
|
1110
|
+
CoordinationType.OBS_SET_COLOR,
|
|
1111
|
+
CoordinationType.SAMPLE_SET_COLOR
|
|
1112
|
+
],
|
|
1113
|
+
[ViewType.FEATURE_SET_ENRICHMENT_BAR_PLOT]: [
|
|
1114
|
+
CoordinationType.DATASET,
|
|
1115
|
+
CoordinationType.OBS_TYPE,
|
|
1116
|
+
CoordinationType.FEATURE_TYPE,
|
|
1117
|
+
CoordinationType.SAMPLE_TYPE,
|
|
1118
|
+
// For selection of case-control sets of samples:
|
|
1119
|
+
CoordinationType.SAMPLE_SET_SELECTION,
|
|
1120
|
+
// For selection of one-vs-others sets of observations:
|
|
1121
|
+
CoordinationType.OBS_SET_SELECTION,
|
|
1122
|
+
CoordinationType.ADDITIONAL_OBS_SETS,
|
|
1123
|
+
CoordinationType.OBS_SET_COLOR,
|
|
1124
|
+
CoordinationType.SAMPLE_SET_COLOR,
|
|
1125
|
+
CoordinationType.FEATURE_SELECTION
|
|
1126
|
+
],
|
|
992
1127
|
[ViewType.LINK_CONTROLLER]: [],
|
|
993
1128
|
[ViewType.BIOMARKER_SELECT]: [
|
|
1129
|
+
CoordinationType.DATASET,
|
|
1130
|
+
CoordinationType.OBS_TYPE,
|
|
1131
|
+
CoordinationType.SAMPLE_TYPE,
|
|
994
1132
|
CoordinationType.FEATURE_SELECTION,
|
|
995
1133
|
CoordinationType.SAMPLE_SET_SELECTION,
|
|
996
1134
|
CoordinationType.SAMPLE_SET_FILTER,
|
|
997
1135
|
CoordinationType.OBS_SET_SELECTION,
|
|
998
1136
|
CoordinationType.OBS_SET_FILTER
|
|
999
1137
|
// TODO: create coordination types for internal state of the biomarker selection view?
|
|
1138
|
+
],
|
|
1139
|
+
[ViewType.COMPARATIVE_HEADING]: [
|
|
1140
|
+
CoordinationType.DATASET,
|
|
1141
|
+
CoordinationType.OBS_TYPE,
|
|
1142
|
+
CoordinationType.SAMPLE_TYPE,
|
|
1143
|
+
CoordinationType.FEATURE_SELECTION,
|
|
1144
|
+
CoordinationType.SAMPLE_SET_SELECTION,
|
|
1145
|
+
CoordinationType.SAMPLE_SET_FILTER,
|
|
1146
|
+
CoordinationType.OBS_SET_SELECTION,
|
|
1147
|
+
CoordinationType.OBS_SET_FILTER
|
|
1148
|
+
],
|
|
1149
|
+
[ViewType.TREEMAP]: [
|
|
1150
|
+
CoordinationType.DATASET,
|
|
1151
|
+
CoordinationType.OBS_TYPE,
|
|
1152
|
+
CoordinationType.FEATURE_TYPE,
|
|
1153
|
+
CoordinationType.FEATURE_VALUE_TYPE,
|
|
1154
|
+
CoordinationType.OBS_FILTER,
|
|
1155
|
+
CoordinationType.OBS_HIGHLIGHT,
|
|
1156
|
+
CoordinationType.OBS_SET_SELECTION,
|
|
1157
|
+
CoordinationType.OBS_SET_FILTER,
|
|
1158
|
+
CoordinationType.OBS_SELECTION,
|
|
1159
|
+
CoordinationType.OBS_SELECTION_MODE,
|
|
1160
|
+
CoordinationType.OBS_SET_HIGHLIGHT,
|
|
1161
|
+
CoordinationType.OBS_SET_COLOR,
|
|
1162
|
+
CoordinationType.OBS_COLOR_ENCODING,
|
|
1163
|
+
CoordinationType.ADDITIONAL_OBS_SETS,
|
|
1164
|
+
CoordinationType.SAMPLE_TYPE,
|
|
1165
|
+
CoordinationType.SAMPLE_SET_SELECTION,
|
|
1166
|
+
CoordinationType.SAMPLE_SET_FILTER,
|
|
1167
|
+
CoordinationType.SAMPLE_SET_COLOR,
|
|
1168
|
+
CoordinationType.SAMPLE_SELECTION,
|
|
1169
|
+
CoordinationType.SAMPLE_SELECTION_MODE,
|
|
1170
|
+
CoordinationType.SAMPLE_FILTER,
|
|
1171
|
+
CoordinationType.SAMPLE_FILTER_MODE,
|
|
1172
|
+
CoordinationType.SAMPLE_HIGHLIGHT,
|
|
1173
|
+
CoordinationType.HIERARCHY_LEVELS
|
|
1000
1174
|
]
|
|
1001
1175
|
};
|
|
1002
1176
|
const note = "This file is autogenerated by .changeset/post-changelog.mjs.";
|
|
1003
|
-
const version = "3.5.
|
|
1004
|
-
const date = "2025-
|
|
1177
|
+
const version = "3.5.8";
|
|
1178
|
+
const date = "2025-03-06";
|
|
1005
1179
|
const branch = "changeset-release/main";
|
|
1006
|
-
const hash = "
|
|
1180
|
+
const hash = "9066c55a";
|
|
1007
1181
|
const version$1 = {
|
|
1008
1182
|
note,
|
|
1009
1183
|
version,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constant-relationships.d.ts","sourceRoot":"","sources":["../src/constant-relationships.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,2BAA2B;;
|
|
1
|
+
{"version":3,"file":"constant-relationships.d.ts","sourceRoot":"","sources":["../src/constant-relationships.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,2BAA2B;;CAoEvC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,kCAAkC;;CA6D9C,CAAC;AAKF,eAAO,MAAM,oBAAoB;;;;;;;;CA0EhC,CAAC"}
|
|
@@ -30,6 +30,11 @@ export const FILE_TYPE_DATA_TYPE_MAPPING = {
|
|
|
30
30
|
[FileType.OBS_LABELS_ANNDATA_ZARR]: DataType.OBS_LABELS,
|
|
31
31
|
[FileType.FEATURE_LABELS_ANNDATA_ZARR]: DataType.FEATURE_LABELS,
|
|
32
32
|
[FileType.SAMPLE_EDGES_ANNDATA_ZARR]: DataType.SAMPLE_EDGES,
|
|
33
|
+
[FileType.SAMPLE_SETS_ANNDATA_ZARR]: DataType.SAMPLE_SETS,
|
|
34
|
+
[FileType.COMPARISON_METADATA_ANNDATA_ZARR]: DataType.COMPARISON_METADATA,
|
|
35
|
+
[FileType.COMPARATIVE_FEATURE_STATS_ANNDATA_ZARR]: DataType.FEATURE_STATS,
|
|
36
|
+
[FileType.COMPARATIVE_FEATURE_SET_STATS_ANNDATA_ZARR]: DataType.FEATURE_SET_STATS,
|
|
37
|
+
[FileType.COMPARATIVE_OBS_SET_STATS_ANNDATA_ZARR]: DataType.OBS_SET_STATS,
|
|
33
38
|
[FileType.IMAGE_OME_TIFF]: DataType.IMAGE,
|
|
34
39
|
[FileType.OBS_SEGMENTATIONS_OME_TIFF]: DataType.OBS_SEGMENTATIONS,
|
|
35
40
|
[FileType.OBS_FEATURE_MATRIX_MUDATA_ZARR]: DataType.OBS_FEATURE_MATRIX,
|
|
@@ -116,6 +121,22 @@ export const DATA_TYPE_COORDINATION_VALUE_USAGE = {
|
|
|
116
121
|
CoordinationType.OBS_TYPE,
|
|
117
122
|
CoordinationType.SAMPLE_TYPE,
|
|
118
123
|
],
|
|
124
|
+
[DataType.COMPARISON_METADATA]: [
|
|
125
|
+
CoordinationType.OBS_TYPE,
|
|
126
|
+
CoordinationType.SAMPLE_TYPE,
|
|
127
|
+
],
|
|
128
|
+
[DataType.FEATURE_STATS]: [
|
|
129
|
+
CoordinationType.FEATURE_TYPE,
|
|
130
|
+
// TODO: should sampleType, obsSetSelection, and/or sampleSetSelection be used here?
|
|
131
|
+
],
|
|
132
|
+
[DataType.FEATURE_SET_STATS]: [
|
|
133
|
+
CoordinationType.FEATURE_TYPE,
|
|
134
|
+
// TODO: should sampleType, obsSetSelection, and/or sampleSetSelection be used here?
|
|
135
|
+
],
|
|
136
|
+
[DataType.OBS_SET_STATS]: [
|
|
137
|
+
CoordinationType.OBS_TYPE,
|
|
138
|
+
// TODO: should sampleType, obsSetSelection, and/or sampleSetSelection be used here?
|
|
139
|
+
],
|
|
119
140
|
};
|
|
120
141
|
// For Zarr-based file types, we keep a mapping to file types
|
|
121
142
|
// corresponding to alternative store implementations,
|
|
@@ -166,6 +187,26 @@ export const ALT_ZARR_STORE_TYPES = {
|
|
|
166
187
|
zip: FileType.SAMPLE_EDGES_ANNDATA_ZARR_ZIP,
|
|
167
188
|
h5ad: FileType.SAMPLE_EDGES_ANNDATA_H5AD,
|
|
168
189
|
},
|
|
190
|
+
[FileType.SAMPLE_SETS_ANNDATA_ZARR]: {
|
|
191
|
+
zip: FileType.SAMPLE_SETS_ANNDATA_ZARR_ZIP,
|
|
192
|
+
h5ad: FileType.SAMPLE_SETS_ANNDATA_H5AD,
|
|
193
|
+
},
|
|
194
|
+
[FileType.COMPARISON_METADATA_ANNDATA_ZARR]: {
|
|
195
|
+
zip: FileType.COMPARISON_METADATA_ANNDATA_ZARR_ZIP,
|
|
196
|
+
h5ad: FileType.COMPARISON_METADATA_ANNDATA_H5AD,
|
|
197
|
+
},
|
|
198
|
+
[FileType.COMPARATIVE_FEATURE_STATS_ANNDATA_ZARR]: {
|
|
199
|
+
zip: FileType.COMPARATIVE_FEATURE_STATS_ANNDATA_ZARR_ZIP,
|
|
200
|
+
h5ad: FileType.COMPARATIVE_FEATURE_STATS_ANNDATA_H5AD,
|
|
201
|
+
},
|
|
202
|
+
[FileType.COMPARATIVE_FEATURE_SET_STATS_ANNDATA_ZARR]: {
|
|
203
|
+
zip: FileType.COMPARATIVE_FEATURE_SET_STATS_ANNDATA_ZARR_ZIP,
|
|
204
|
+
h5ad: FileType.COMPARATIVE_FEATURE_SET_STATS_ANNDATA_H5AD,
|
|
205
|
+
},
|
|
206
|
+
[FileType.COMPARATIVE_OBS_SET_STATS_ANNDATA_ZARR]: {
|
|
207
|
+
zip: FileType.COMPARATIVE_OBS_SET_STATS_ANNDATA_ZARR_ZIP,
|
|
208
|
+
h5ad: FileType.COMPARATIVE_OBS_SET_STATS_ANNDATA_H5AD,
|
|
209
|
+
},
|
|
169
210
|
// For OME-Zarr:
|
|
170
211
|
[FileType.IMAGE_OME_ZARR]: {
|
|
171
212
|
zip: FileType.IMAGE_OME_ZARR_ZIP,
|
package/dist-tsc/constants.d.ts
CHANGED
|
@@ -21,9 +21,15 @@ export declare const ViewType: {
|
|
|
21
21
|
FEATURE_VALUE_HISTOGRAM: string;
|
|
22
22
|
DOT_PLOT: string;
|
|
23
23
|
FEATURE_BAR_PLOT: string;
|
|
24
|
+
VOLCANO_PLOT: string;
|
|
25
|
+
OBS_SET_COMPOSITION_BAR_PLOT: string;
|
|
26
|
+
FEATURE_SET_ENRICHMENT_BAR_PLOT: string;
|
|
24
27
|
BIOMARKER_SELECT: string;
|
|
28
|
+
COMPARATIVE_HEADING: string;
|
|
25
29
|
LINK_CONTROLLER: string;
|
|
30
|
+
NEUROGLANCER: string;
|
|
26
31
|
DUAL_SCATTERPLOT: string;
|
|
32
|
+
TREEMAP: string;
|
|
27
33
|
};
|
|
28
34
|
export declare const DataType: {
|
|
29
35
|
OBS_LABELS: string;
|
|
@@ -40,6 +46,10 @@ export declare const DataType: {
|
|
|
40
46
|
OBS_LOCATIONS: string;
|
|
41
47
|
SAMPLE_SETS: string;
|
|
42
48
|
SAMPLE_EDGES: string;
|
|
49
|
+
COMPARISON_METADATA: string;
|
|
50
|
+
FEATURE_STATS: string;
|
|
51
|
+
FEATURE_SET_STATS: string;
|
|
52
|
+
OBS_SET_STATS: string;
|
|
43
53
|
};
|
|
44
54
|
export declare const AsyncFunctionType: {
|
|
45
55
|
AUTOCOMPLETE_FEATURE: string;
|
|
@@ -83,6 +93,11 @@ export declare const FileType: {
|
|
|
83
93
|
OBS_LABELS_ANNDATA_ZARR: string;
|
|
84
94
|
FEATURE_LABELS_ANNDATA_ZARR: string;
|
|
85
95
|
SAMPLE_EDGES_ANNDATA_ZARR: string;
|
|
96
|
+
SAMPLE_SETS_ANNDATA_ZARR: string;
|
|
97
|
+
COMPARISON_METADATA_ANNDATA_ZARR: string;
|
|
98
|
+
COMPARATIVE_FEATURE_STATS_ANNDATA_ZARR: string;
|
|
99
|
+
COMPARATIVE_FEATURE_SET_STATS_ANNDATA_ZARR: string;
|
|
100
|
+
COMPARATIVE_OBS_SET_STATS_ANNDATA_ZARR: string;
|
|
86
101
|
OBS_FEATURE_MATRIX_ANNDATA_ZARR_ZIP: string;
|
|
87
102
|
OBS_FEATURE_COLUMNS_ANNDATA_ZARR_ZIP: string;
|
|
88
103
|
OBS_SETS_ANNDATA_ZARR_ZIP: string;
|
|
@@ -94,6 +109,11 @@ export declare const FileType: {
|
|
|
94
109
|
OBS_LABELS_ANNDATA_ZARR_ZIP: string;
|
|
95
110
|
FEATURE_LABELS_ANNDATA_ZARR_ZIP: string;
|
|
96
111
|
SAMPLE_EDGES_ANNDATA_ZARR_ZIP: string;
|
|
112
|
+
SAMPLE_SETS_ANNDATA_ZARR_ZIP: string;
|
|
113
|
+
COMPARISON_METADATA_ANNDATA_ZARR_ZIP: string;
|
|
114
|
+
COMPARATIVE_FEATURE_STATS_ANNDATA_ZARR_ZIP: string;
|
|
115
|
+
COMPARATIVE_FEATURE_SET_STATS_ANNDATA_ZARR_ZIP: string;
|
|
116
|
+
COMPARATIVE_OBS_SET_STATS_ANNDATA_ZARR_ZIP: string;
|
|
97
117
|
OBS_FEATURE_MATRIX_ANNDATA_H5AD: string;
|
|
98
118
|
OBS_FEATURE_COLUMNS_ANNDATA_H5AD: string;
|
|
99
119
|
OBS_SETS_ANNDATA_H5AD: string;
|
|
@@ -105,6 +125,11 @@ export declare const FileType: {
|
|
|
105
125
|
OBS_LABELS_ANNDATA_H5AD: string;
|
|
106
126
|
FEATURE_LABELS_ANNDATA_H5AD: string;
|
|
107
127
|
SAMPLE_EDGES_ANNDATA_H5AD: string;
|
|
128
|
+
SAMPLE_SETS_ANNDATA_H5AD: string;
|
|
129
|
+
COMPARISON_METADATA_ANNDATA_H5AD: string;
|
|
130
|
+
COMPARATIVE_FEATURE_STATS_ANNDATA_H5AD: string;
|
|
131
|
+
COMPARATIVE_FEATURE_SET_STATS_ANNDATA_H5AD: string;
|
|
132
|
+
COMPARATIVE_OBS_SET_STATS_ANNDATA_H5AD: string;
|
|
108
133
|
IMAGE_SPATIALDATA_ZARR: string;
|
|
109
134
|
LABELS_SPATIALDATA_ZARR: string;
|
|
110
135
|
SHAPES_SPATIALDATA_ZARR: string;
|
|
@@ -272,12 +297,18 @@ export declare const CoordinationType: {
|
|
|
272
297
|
SAMPLE_SET_FILTER: string;
|
|
273
298
|
SAMPLE_FILTER_MODE: string;
|
|
274
299
|
SAMPLE_SET_COLOR: string;
|
|
300
|
+
SAMPLE_HIGHLIGHT: string;
|
|
275
301
|
EMBEDDING_POINTS_VISIBLE: string;
|
|
276
302
|
EMBEDDING_CONTOURS_VISIBLE: string;
|
|
277
303
|
EMBEDDING_CONTOURS_FILLED: string;
|
|
278
304
|
EMBEDDING_CONTOUR_PERCENTILES: string;
|
|
279
305
|
CONTOUR_COLOR_ENCODING: string;
|
|
280
306
|
CONTOUR_COLOR: string;
|
|
307
|
+
FEATURE_POINT_SIGNIFICANCE_THRESHOLD: string;
|
|
308
|
+
FEATURE_LABEL_SIGNIFICANCE_THRESHOLD: string;
|
|
309
|
+
FEATURE_POINT_FOLD_CHANGE_THRESHOLD: string;
|
|
310
|
+
FEATURE_LABEL_FOLD_CHANGE_THRESHOLD: string;
|
|
311
|
+
HIERARCHY_LEVELS: string;
|
|
281
312
|
};
|
|
282
313
|
export declare const STATUS: {
|
|
283
314
|
LOADING: string;
|
|
@@ -308,5 +339,10 @@ export declare const ViewHelpMapping: {
|
|
|
308
339
|
FEATURE_VALUE_HISTOGRAM: string;
|
|
309
340
|
DOT_PLOT: string;
|
|
310
341
|
FEATURE_BAR_PLOT: string;
|
|
342
|
+
NEUROGLANCER: string;
|
|
343
|
+
TREEMAP: string;
|
|
344
|
+
VOLCANO_PLOT: string;
|
|
345
|
+
OBS_SET_COMPOSITION_BAR_PLOT: string;
|
|
346
|
+
FEATURE_SET_ENRICHMENT_BAR_PLOT: string;
|
|
311
347
|
};
|
|
312
348
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BpB,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;CAmBpB,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;;CAc7B,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4IpB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2I5B,CAAC;AAEF,eAAO,MAAM,MAAM;;;;CAIlB,CAAC;AAEF,eAAO,MAAM,eAAe;;;CAG3B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;CAqB3B,CAAC"}
|
package/dist-tsc/constants.js
CHANGED
|
@@ -21,9 +21,15 @@ export const ViewType = {
|
|
|
21
21
|
FEATURE_VALUE_HISTOGRAM: 'featureValueHistogram',
|
|
22
22
|
DOT_PLOT: 'dotPlot',
|
|
23
23
|
FEATURE_BAR_PLOT: 'featureBarPlot',
|
|
24
|
+
VOLCANO_PLOT: 'volcanoPlot',
|
|
25
|
+
OBS_SET_COMPOSITION_BAR_PLOT: 'obsSetCompositionBarPlot',
|
|
26
|
+
FEATURE_SET_ENRICHMENT_BAR_PLOT: 'featureSetEnrichmentBarPlot',
|
|
24
27
|
BIOMARKER_SELECT: 'biomarkerSelect',
|
|
28
|
+
COMPARATIVE_HEADING: 'comparativeHeading',
|
|
25
29
|
LINK_CONTROLLER: 'linkController',
|
|
30
|
+
NEUROGLANCER: 'neuroglancer',
|
|
26
31
|
DUAL_SCATTERPLOT: 'dualScatterplot',
|
|
32
|
+
TREEMAP: 'treemap',
|
|
27
33
|
};
|
|
28
34
|
export const DataType = {
|
|
29
35
|
OBS_LABELS: 'obsLabels',
|
|
@@ -40,6 +46,10 @@ export const DataType = {
|
|
|
40
46
|
OBS_LOCATIONS: 'obsLocations',
|
|
41
47
|
SAMPLE_SETS: 'sampleSets',
|
|
42
48
|
SAMPLE_EDGES: 'sampleEdges',
|
|
49
|
+
COMPARISON_METADATA: 'comparisonMetadata',
|
|
50
|
+
FEATURE_STATS: 'featureStats',
|
|
51
|
+
FEATURE_SET_STATS: 'featureSetStats',
|
|
52
|
+
OBS_SET_STATS: 'obsSetStats',
|
|
43
53
|
};
|
|
44
54
|
export const AsyncFunctionType = {
|
|
45
55
|
// String input (rather than Node input)
|
|
@@ -90,6 +100,11 @@ export const FileType = {
|
|
|
90
100
|
OBS_LABELS_ANNDATA_ZARR: 'obsLabels.anndata.zarr',
|
|
91
101
|
FEATURE_LABELS_ANNDATA_ZARR: 'featureLabels.anndata.zarr',
|
|
92
102
|
SAMPLE_EDGES_ANNDATA_ZARR: 'sampleEdges.anndata.zarr',
|
|
103
|
+
SAMPLE_SETS_ANNDATA_ZARR: 'sampleSets.anndata.zarr',
|
|
104
|
+
COMPARISON_METADATA_ANNDATA_ZARR: 'comparisonMetadata.anndata.zarr',
|
|
105
|
+
COMPARATIVE_FEATURE_STATS_ANNDATA_ZARR: 'comparativeFeatureStats.anndata.zarr',
|
|
106
|
+
COMPARATIVE_FEATURE_SET_STATS_ANNDATA_ZARR: 'comparativeFeatureSetStats.anndata.zarr',
|
|
107
|
+
COMPARATIVE_OBS_SET_STATS_ANNDATA_ZARR: 'comparativeObsSetStats.anndata.zarr',
|
|
93
108
|
// AnnData - zipped
|
|
94
109
|
OBS_FEATURE_MATRIX_ANNDATA_ZARR_ZIP: 'obsFeatureMatrix.anndata.zarr.zip',
|
|
95
110
|
OBS_FEATURE_COLUMNS_ANNDATA_ZARR_ZIP: 'obsFeatureColumns.anndata.zarr.zip',
|
|
@@ -102,6 +117,11 @@ export const FileType = {
|
|
|
102
117
|
OBS_LABELS_ANNDATA_ZARR_ZIP: 'obsLabels.anndata.zarr.zip',
|
|
103
118
|
FEATURE_LABELS_ANNDATA_ZARR_ZIP: 'featureLabels.anndata.zarr.zip',
|
|
104
119
|
SAMPLE_EDGES_ANNDATA_ZARR_ZIP: 'sampleEdges.anndata.zarr.zip',
|
|
120
|
+
SAMPLE_SETS_ANNDATA_ZARR_ZIP: 'sampleSets.anndata.zarr.zip',
|
|
121
|
+
COMPARISON_METADATA_ANNDATA_ZARR_ZIP: 'comparisonMetadata.anndata.zarr.zip',
|
|
122
|
+
COMPARATIVE_FEATURE_STATS_ANNDATA_ZARR_ZIP: 'comparativeFeatureStats.anndata.zarr.zip',
|
|
123
|
+
COMPARATIVE_FEATURE_SET_STATS_ANNDATA_ZARR_ZIP: 'comparativeFeatureSetStats.anndata.zarr.zip',
|
|
124
|
+
COMPARATIVE_OBS_SET_STATS_ANNDATA_ZARR_ZIP: 'comparativeObsSetStats.anndata.zarr.zip',
|
|
105
125
|
// AnnData - h5ad via reference spec
|
|
106
126
|
OBS_FEATURE_MATRIX_ANNDATA_H5AD: 'obsFeatureMatrix.anndata.h5ad',
|
|
107
127
|
OBS_FEATURE_COLUMNS_ANNDATA_H5AD: 'obsFeatureColumns.anndata.h5ad',
|
|
@@ -114,6 +134,11 @@ export const FileType = {
|
|
|
114
134
|
OBS_LABELS_ANNDATA_H5AD: 'obsLabels.anndata.h5ad',
|
|
115
135
|
FEATURE_LABELS_ANNDATA_H5AD: 'featureLabels.anndata.h5ad',
|
|
116
136
|
SAMPLE_EDGES_ANNDATA_H5AD: 'sampleEdges.anndata.h5ad',
|
|
137
|
+
SAMPLE_SETS_ANNDATA_H5AD: 'sampleSets.anndata.h5ad',
|
|
138
|
+
COMPARISON_METADATA_ANNDATA_H5AD: 'comparisonMetadata.anndata.h5ad',
|
|
139
|
+
COMPARATIVE_FEATURE_STATS_ANNDATA_H5AD: 'comparativeFeatureStats.anndata.h5ad',
|
|
140
|
+
COMPARATIVE_FEATURE_SET_STATS_ANNDATA_H5AD: 'comparativeFeatureSetStats.anndata.h5ad',
|
|
141
|
+
COMPARATIVE_OBS_SET_STATS_ANNDATA_H5AD: 'comparativeObsSetStats.anndata.h5ad',
|
|
117
142
|
// SpatialData
|
|
118
143
|
IMAGE_SPATIALDATA_ZARR: 'image.spatialdata.zarr',
|
|
119
144
|
LABELS_SPATIALDATA_ZARR: 'labels.spatialdata.zarr',
|
|
@@ -304,12 +329,20 @@ export const CoordinationType = {
|
|
|
304
329
|
SAMPLE_SET_FILTER: 'sampleSetFilter',
|
|
305
330
|
SAMPLE_FILTER_MODE: 'sampleFilterMode',
|
|
306
331
|
SAMPLE_SET_COLOR: 'sampleSetColor',
|
|
332
|
+
SAMPLE_HIGHLIGHT: 'sampleHighlight',
|
|
307
333
|
EMBEDDING_POINTS_VISIBLE: 'embeddingPointsVisible',
|
|
308
334
|
EMBEDDING_CONTOURS_VISIBLE: 'embeddingContoursVisible',
|
|
309
335
|
EMBEDDING_CONTOURS_FILLED: 'embeddingContoursFilled',
|
|
310
336
|
EMBEDDING_CONTOUR_PERCENTILES: 'embeddingContourPercentiles',
|
|
311
337
|
CONTOUR_COLOR_ENCODING: 'contourColorEncoding',
|
|
312
338
|
CONTOUR_COLOR: 'contourColor',
|
|
339
|
+
// For volcano plot:
|
|
340
|
+
FEATURE_POINT_SIGNIFICANCE_THRESHOLD: 'featurePointSignificanceThreshold',
|
|
341
|
+
FEATURE_LABEL_SIGNIFICANCE_THRESHOLD: 'featureLabelSignificanceThreshold',
|
|
342
|
+
FEATURE_POINT_FOLD_CHANGE_THRESHOLD: 'featurePointFoldChangeThreshold',
|
|
343
|
+
FEATURE_LABEL_FOLD_CHANGE_THRESHOLD: 'featureLabelFoldChangeThreshold',
|
|
344
|
+
// Treemap
|
|
345
|
+
HIERARCHY_LEVELS: 'hierarchyLevels',
|
|
313
346
|
};
|
|
314
347
|
export const STATUS = {
|
|
315
348
|
LOADING: 'loading',
|
|
@@ -340,4 +373,9 @@ export const ViewHelpMapping = {
|
|
|
340
373
|
FEATURE_VALUE_HISTOGRAM: 'The feature value histogram displays the distribution of values (e.g., expression) for the selected feature (e.g., gene).',
|
|
341
374
|
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).',
|
|
342
375
|
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.',
|
|
376
|
+
NEUROGLANCER: 'The Neuroglancer view displays 3d meshes using Neuroglancer developed by Google.',
|
|
377
|
+
TREEMAP: 'The treemap provides an overview of the current state of sample-level or cell-level selection and filtering.',
|
|
378
|
+
VOLCANO_PLOT: 'The volcano plot displays differential expression results. Each data point represents a feature (as opposed to an observation).',
|
|
379
|
+
OBS_SET_COMPOSITION_BAR_PLOT: 'The set composition bar plot displays the results of a compositional analysis conducted using the scCODA method (Büttner et al. 2021 Nature Communications).',
|
|
380
|
+
FEATURE_SET_ENRICHMENT_BAR_PLOT: 'The feature set enrichment bar plot displays the results of a hypergeometric test applied to the differential expression test results to identify enriched pathway gene sets.',
|
|
343
381
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coordination.d.ts","sourceRoot":"","sources":["../src/coordination.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,mCAAmC,UAc/C,CAAC;AAEF;;;;;;;KAOK;AACL,eAAO,MAAM,4BAA4B;;;
|
|
1
|
+
{"version":3,"file":"coordination.d.ts","sourceRoot":"","sources":["../src/coordination.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,mCAAmC,UAc/C,CAAC;AAEF;;;;;;;KAOK;AACL,eAAO,MAAM,4BAA4B;;;CA8jBxC,CAAC"}
|
package/dist-tsc/coordination.js
CHANGED
|
@@ -30,6 +30,9 @@ export const AUTO_INDEPENDENT_COORDINATION_TYPES = [
|
|
|
30
30
|
* Keys here are the component registry keys.
|
|
31
31
|
*/
|
|
32
32
|
export const COMPONENT_COORDINATION_TYPES = {
|
|
33
|
+
[ViewType.NEUROGLANCER]: [
|
|
34
|
+
CoordinationType.DATASET,
|
|
35
|
+
],
|
|
33
36
|
[ViewType.SCATTERPLOT]: [
|
|
34
37
|
CoordinationType.DATASET,
|
|
35
38
|
CoordinationType.OBS_TYPE,
|
|
@@ -499,8 +502,64 @@ export const COMPONENT_COORDINATION_TYPES = {
|
|
|
499
502
|
CoordinationType.OBS_COLOR_ENCODING,
|
|
500
503
|
CoordinationType.ADDITIONAL_OBS_SETS,
|
|
501
504
|
],
|
|
505
|
+
[ViewType.VOLCANO_PLOT]: [
|
|
506
|
+
CoordinationType.DATASET,
|
|
507
|
+
CoordinationType.OBS_TYPE,
|
|
508
|
+
CoordinationType.FEATURE_TYPE,
|
|
509
|
+
CoordinationType.SAMPLE_TYPE,
|
|
510
|
+
// For selection of case-control sets of samples:
|
|
511
|
+
CoordinationType.SAMPLE_SET_SELECTION,
|
|
512
|
+
// For selection of one-vs-others sets of observations:
|
|
513
|
+
CoordinationType.OBS_SET_SELECTION,
|
|
514
|
+
// TODO: CoordinationType.FEATURE_SET_SELECTION,
|
|
515
|
+
// TODO: CoordinationType.FEATURE_SET_HIGHLIGHT,
|
|
516
|
+
// TODO: CoordinationType.FEATURE_SET_COLOR,
|
|
517
|
+
CoordinationType.FEATURE_HIGHLIGHT,
|
|
518
|
+
CoordinationType.FEATURE_SELECTION,
|
|
519
|
+
CoordinationType.FEATURE_VALUE_COLORMAP,
|
|
520
|
+
CoordinationType.FEATURE_VALUE_COLORMAP_RANGE,
|
|
521
|
+
// TODO: CoordinationType.FEATURE_COLOR_ENCODING,
|
|
522
|
+
// TODO: CoordinationType.ADDITIONAL_FEATURE_SETS,
|
|
523
|
+
CoordinationType.TOOLTIPS_VISIBLE,
|
|
524
|
+
CoordinationType.ADDITIONAL_OBS_SETS,
|
|
525
|
+
CoordinationType.OBS_SET_COLOR,
|
|
526
|
+
CoordinationType.SAMPLE_SET_COLOR,
|
|
527
|
+
CoordinationType.FEATURE_POINT_SIGNIFICANCE_THRESHOLD,
|
|
528
|
+
CoordinationType.FEATURE_LABEL_SIGNIFICANCE_THRESHOLD,
|
|
529
|
+
CoordinationType.FEATURE_POINT_FOLD_CHANGE_THRESHOLD,
|
|
530
|
+
CoordinationType.FEATURE_LABEL_FOLD_CHANGE_THRESHOLD,
|
|
531
|
+
],
|
|
532
|
+
[ViewType.OBS_SET_COMPOSITION_BAR_PLOT]: [
|
|
533
|
+
CoordinationType.DATASET,
|
|
534
|
+
CoordinationType.OBS_TYPE,
|
|
535
|
+
CoordinationType.SAMPLE_TYPE,
|
|
536
|
+
// For selection of case-control sets of samples:
|
|
537
|
+
CoordinationType.SAMPLE_SET_SELECTION,
|
|
538
|
+
// For selection of one-vs-others sets of observations:
|
|
539
|
+
CoordinationType.OBS_SET_SELECTION,
|
|
540
|
+
CoordinationType.ADDITIONAL_OBS_SETS,
|
|
541
|
+
CoordinationType.OBS_SET_COLOR,
|
|
542
|
+
CoordinationType.SAMPLE_SET_COLOR,
|
|
543
|
+
],
|
|
544
|
+
[ViewType.FEATURE_SET_ENRICHMENT_BAR_PLOT]: [
|
|
545
|
+
CoordinationType.DATASET,
|
|
546
|
+
CoordinationType.OBS_TYPE,
|
|
547
|
+
CoordinationType.FEATURE_TYPE,
|
|
548
|
+
CoordinationType.SAMPLE_TYPE,
|
|
549
|
+
// For selection of case-control sets of samples:
|
|
550
|
+
CoordinationType.SAMPLE_SET_SELECTION,
|
|
551
|
+
// For selection of one-vs-others sets of observations:
|
|
552
|
+
CoordinationType.OBS_SET_SELECTION,
|
|
553
|
+
CoordinationType.ADDITIONAL_OBS_SETS,
|
|
554
|
+
CoordinationType.OBS_SET_COLOR,
|
|
555
|
+
CoordinationType.SAMPLE_SET_COLOR,
|
|
556
|
+
CoordinationType.FEATURE_SELECTION,
|
|
557
|
+
],
|
|
502
558
|
[ViewType.LINK_CONTROLLER]: [],
|
|
503
559
|
[ViewType.BIOMARKER_SELECT]: [
|
|
560
|
+
CoordinationType.DATASET,
|
|
561
|
+
CoordinationType.OBS_TYPE,
|
|
562
|
+
CoordinationType.SAMPLE_TYPE,
|
|
504
563
|
CoordinationType.FEATURE_SELECTION,
|
|
505
564
|
CoordinationType.SAMPLE_SET_SELECTION,
|
|
506
565
|
CoordinationType.SAMPLE_SET_FILTER,
|
|
@@ -508,4 +567,40 @@ export const COMPONENT_COORDINATION_TYPES = {
|
|
|
508
567
|
CoordinationType.OBS_SET_FILTER,
|
|
509
568
|
// TODO: create coordination types for internal state of the biomarker selection view?
|
|
510
569
|
],
|
|
570
|
+
[ViewType.COMPARATIVE_HEADING]: [
|
|
571
|
+
CoordinationType.DATASET,
|
|
572
|
+
CoordinationType.OBS_TYPE,
|
|
573
|
+
CoordinationType.SAMPLE_TYPE,
|
|
574
|
+
CoordinationType.FEATURE_SELECTION,
|
|
575
|
+
CoordinationType.SAMPLE_SET_SELECTION,
|
|
576
|
+
CoordinationType.SAMPLE_SET_FILTER,
|
|
577
|
+
CoordinationType.OBS_SET_SELECTION,
|
|
578
|
+
CoordinationType.OBS_SET_FILTER,
|
|
579
|
+
],
|
|
580
|
+
[ViewType.TREEMAP]: [
|
|
581
|
+
CoordinationType.DATASET,
|
|
582
|
+
CoordinationType.OBS_TYPE,
|
|
583
|
+
CoordinationType.FEATURE_TYPE,
|
|
584
|
+
CoordinationType.FEATURE_VALUE_TYPE,
|
|
585
|
+
CoordinationType.OBS_FILTER,
|
|
586
|
+
CoordinationType.OBS_HIGHLIGHT,
|
|
587
|
+
CoordinationType.OBS_SET_SELECTION,
|
|
588
|
+
CoordinationType.OBS_SET_FILTER,
|
|
589
|
+
CoordinationType.OBS_SELECTION,
|
|
590
|
+
CoordinationType.OBS_SELECTION_MODE,
|
|
591
|
+
CoordinationType.OBS_SET_HIGHLIGHT,
|
|
592
|
+
CoordinationType.OBS_SET_COLOR,
|
|
593
|
+
CoordinationType.OBS_COLOR_ENCODING,
|
|
594
|
+
CoordinationType.ADDITIONAL_OBS_SETS,
|
|
595
|
+
CoordinationType.SAMPLE_TYPE,
|
|
596
|
+
CoordinationType.SAMPLE_SET_SELECTION,
|
|
597
|
+
CoordinationType.SAMPLE_SET_FILTER,
|
|
598
|
+
CoordinationType.SAMPLE_SET_COLOR,
|
|
599
|
+
CoordinationType.SAMPLE_SELECTION,
|
|
600
|
+
CoordinationType.SAMPLE_SELECTION_MODE,
|
|
601
|
+
CoordinationType.SAMPLE_FILTER,
|
|
602
|
+
CoordinationType.SAMPLE_FILTER_MODE,
|
|
603
|
+
CoordinationType.SAMPLE_HIGHLIGHT,
|
|
604
|
+
CoordinationType.HIERARCHY_LEVELS,
|
|
605
|
+
],
|
|
511
606
|
};
|
package/dist-tsc/version.json
CHANGED
package/package.json
CHANGED
|
@@ -31,6 +31,11 @@ export const FILE_TYPE_DATA_TYPE_MAPPING = {
|
|
|
31
31
|
[FileType.OBS_LABELS_ANNDATA_ZARR]: DataType.OBS_LABELS,
|
|
32
32
|
[FileType.FEATURE_LABELS_ANNDATA_ZARR]: DataType.FEATURE_LABELS,
|
|
33
33
|
[FileType.SAMPLE_EDGES_ANNDATA_ZARR]: DataType.SAMPLE_EDGES,
|
|
34
|
+
[FileType.SAMPLE_SETS_ANNDATA_ZARR]: DataType.SAMPLE_SETS,
|
|
35
|
+
[FileType.COMPARISON_METADATA_ANNDATA_ZARR]: DataType.COMPARISON_METADATA,
|
|
36
|
+
[FileType.COMPARATIVE_FEATURE_STATS_ANNDATA_ZARR]: DataType.FEATURE_STATS,
|
|
37
|
+
[FileType.COMPARATIVE_FEATURE_SET_STATS_ANNDATA_ZARR]: DataType.FEATURE_SET_STATS,
|
|
38
|
+
[FileType.COMPARATIVE_OBS_SET_STATS_ANNDATA_ZARR]: DataType.OBS_SET_STATS,
|
|
34
39
|
[FileType.IMAGE_OME_TIFF]: DataType.IMAGE,
|
|
35
40
|
[FileType.OBS_SEGMENTATIONS_OME_TIFF]: DataType.OBS_SEGMENTATIONS,
|
|
36
41
|
[FileType.OBS_FEATURE_MATRIX_MUDATA_ZARR]: DataType.OBS_FEATURE_MATRIX,
|
|
@@ -120,6 +125,22 @@ export const DATA_TYPE_COORDINATION_VALUE_USAGE = {
|
|
|
120
125
|
CoordinationType.OBS_TYPE,
|
|
121
126
|
CoordinationType.SAMPLE_TYPE,
|
|
122
127
|
],
|
|
128
|
+
[DataType.COMPARISON_METADATA]: [
|
|
129
|
+
CoordinationType.OBS_TYPE,
|
|
130
|
+
CoordinationType.SAMPLE_TYPE,
|
|
131
|
+
],
|
|
132
|
+
[DataType.FEATURE_STATS]: [
|
|
133
|
+
CoordinationType.FEATURE_TYPE,
|
|
134
|
+
// TODO: should sampleType, obsSetSelection, and/or sampleSetSelection be used here?
|
|
135
|
+
],
|
|
136
|
+
[DataType.FEATURE_SET_STATS]: [
|
|
137
|
+
CoordinationType.FEATURE_TYPE,
|
|
138
|
+
// TODO: should sampleType, obsSetSelection, and/or sampleSetSelection be used here?
|
|
139
|
+
],
|
|
140
|
+
[DataType.OBS_SET_STATS]: [
|
|
141
|
+
CoordinationType.OBS_TYPE,
|
|
142
|
+
// TODO: should sampleType, obsSetSelection, and/or sampleSetSelection be used here?
|
|
143
|
+
],
|
|
123
144
|
};
|
|
124
145
|
|
|
125
146
|
// For Zarr-based file types, we keep a mapping to file types
|
|
@@ -171,6 +192,27 @@ export const ALT_ZARR_STORE_TYPES = {
|
|
|
171
192
|
zip: FileType.SAMPLE_EDGES_ANNDATA_ZARR_ZIP,
|
|
172
193
|
h5ad: FileType.SAMPLE_EDGES_ANNDATA_H5AD,
|
|
173
194
|
},
|
|
195
|
+
[FileType.SAMPLE_SETS_ANNDATA_ZARR]: {
|
|
196
|
+
zip: FileType.SAMPLE_SETS_ANNDATA_ZARR_ZIP,
|
|
197
|
+
h5ad: FileType.SAMPLE_SETS_ANNDATA_H5AD,
|
|
198
|
+
},
|
|
199
|
+
[FileType.COMPARISON_METADATA_ANNDATA_ZARR]: {
|
|
200
|
+
zip: FileType.COMPARISON_METADATA_ANNDATA_ZARR_ZIP,
|
|
201
|
+
h5ad: FileType.COMPARISON_METADATA_ANNDATA_H5AD,
|
|
202
|
+
},
|
|
203
|
+
[FileType.COMPARATIVE_FEATURE_STATS_ANNDATA_ZARR]: {
|
|
204
|
+
zip: FileType.COMPARATIVE_FEATURE_STATS_ANNDATA_ZARR_ZIP,
|
|
205
|
+
h5ad: FileType.COMPARATIVE_FEATURE_STATS_ANNDATA_H5AD,
|
|
206
|
+
},
|
|
207
|
+
[FileType.COMPARATIVE_FEATURE_SET_STATS_ANNDATA_ZARR]: {
|
|
208
|
+
zip: FileType.COMPARATIVE_FEATURE_SET_STATS_ANNDATA_ZARR_ZIP,
|
|
209
|
+
h5ad: FileType.COMPARATIVE_FEATURE_SET_STATS_ANNDATA_H5AD,
|
|
210
|
+
},
|
|
211
|
+
[FileType.COMPARATIVE_OBS_SET_STATS_ANNDATA_ZARR]: {
|
|
212
|
+
zip: FileType.COMPARATIVE_OBS_SET_STATS_ANNDATA_ZARR_ZIP,
|
|
213
|
+
h5ad: FileType.COMPARATIVE_OBS_SET_STATS_ANNDATA_H5AD,
|
|
214
|
+
},
|
|
215
|
+
|
|
174
216
|
// For OME-Zarr:
|
|
175
217
|
[FileType.IMAGE_OME_ZARR]: {
|
|
176
218
|
zip: FileType.IMAGE_OME_ZARR_ZIP,
|
package/src/constants.ts
CHANGED
|
@@ -21,9 +21,15 @@ export const ViewType = {
|
|
|
21
21
|
FEATURE_VALUE_HISTOGRAM: 'featureValueHistogram',
|
|
22
22
|
DOT_PLOT: 'dotPlot',
|
|
23
23
|
FEATURE_BAR_PLOT: 'featureBarPlot',
|
|
24
|
+
VOLCANO_PLOT: 'volcanoPlot',
|
|
25
|
+
OBS_SET_COMPOSITION_BAR_PLOT: 'obsSetCompositionBarPlot',
|
|
26
|
+
FEATURE_SET_ENRICHMENT_BAR_PLOT: 'featureSetEnrichmentBarPlot',
|
|
24
27
|
BIOMARKER_SELECT: 'biomarkerSelect',
|
|
28
|
+
COMPARATIVE_HEADING: 'comparativeHeading',
|
|
25
29
|
LINK_CONTROLLER: 'linkController',
|
|
30
|
+
NEUROGLANCER: 'neuroglancer',
|
|
26
31
|
DUAL_SCATTERPLOT: 'dualScatterplot',
|
|
32
|
+
TREEMAP: 'treemap',
|
|
27
33
|
};
|
|
28
34
|
|
|
29
35
|
export const DataType = {
|
|
@@ -41,6 +47,10 @@ export const DataType = {
|
|
|
41
47
|
OBS_LOCATIONS: 'obsLocations',
|
|
42
48
|
SAMPLE_SETS: 'sampleSets',
|
|
43
49
|
SAMPLE_EDGES: 'sampleEdges',
|
|
50
|
+
COMPARISON_METADATA: 'comparisonMetadata',
|
|
51
|
+
FEATURE_STATS: 'featureStats',
|
|
52
|
+
FEATURE_SET_STATS: 'featureSetStats',
|
|
53
|
+
OBS_SET_STATS: 'obsSetStats',
|
|
44
54
|
};
|
|
45
55
|
|
|
46
56
|
export const AsyncFunctionType = {
|
|
@@ -95,6 +105,13 @@ export const FileType = {
|
|
|
95
105
|
OBS_LABELS_ANNDATA_ZARR: 'obsLabels.anndata.zarr',
|
|
96
106
|
FEATURE_LABELS_ANNDATA_ZARR: 'featureLabels.anndata.zarr',
|
|
97
107
|
SAMPLE_EDGES_ANNDATA_ZARR: 'sampleEdges.anndata.zarr',
|
|
108
|
+
SAMPLE_SETS_ANNDATA_ZARR: 'sampleSets.anndata.zarr',
|
|
109
|
+
|
|
110
|
+
COMPARISON_METADATA_ANNDATA_ZARR: 'comparisonMetadata.anndata.zarr',
|
|
111
|
+
COMPARATIVE_FEATURE_STATS_ANNDATA_ZARR: 'comparativeFeatureStats.anndata.zarr',
|
|
112
|
+
COMPARATIVE_FEATURE_SET_STATS_ANNDATA_ZARR: 'comparativeFeatureSetStats.anndata.zarr',
|
|
113
|
+
COMPARATIVE_OBS_SET_STATS_ANNDATA_ZARR: 'comparativeObsSetStats.anndata.zarr',
|
|
114
|
+
|
|
98
115
|
// AnnData - zipped
|
|
99
116
|
OBS_FEATURE_MATRIX_ANNDATA_ZARR_ZIP: 'obsFeatureMatrix.anndata.zarr.zip',
|
|
100
117
|
OBS_FEATURE_COLUMNS_ANNDATA_ZARR_ZIP: 'obsFeatureColumns.anndata.zarr.zip',
|
|
@@ -107,6 +124,13 @@ export const FileType = {
|
|
|
107
124
|
OBS_LABELS_ANNDATA_ZARR_ZIP: 'obsLabels.anndata.zarr.zip',
|
|
108
125
|
FEATURE_LABELS_ANNDATA_ZARR_ZIP: 'featureLabels.anndata.zarr.zip',
|
|
109
126
|
SAMPLE_EDGES_ANNDATA_ZARR_ZIP: 'sampleEdges.anndata.zarr.zip',
|
|
127
|
+
SAMPLE_SETS_ANNDATA_ZARR_ZIP: 'sampleSets.anndata.zarr.zip',
|
|
128
|
+
|
|
129
|
+
COMPARISON_METADATA_ANNDATA_ZARR_ZIP: 'comparisonMetadata.anndata.zarr.zip',
|
|
130
|
+
COMPARATIVE_FEATURE_STATS_ANNDATA_ZARR_ZIP: 'comparativeFeatureStats.anndata.zarr.zip',
|
|
131
|
+
COMPARATIVE_FEATURE_SET_STATS_ANNDATA_ZARR_ZIP: 'comparativeFeatureSetStats.anndata.zarr.zip',
|
|
132
|
+
COMPARATIVE_OBS_SET_STATS_ANNDATA_ZARR_ZIP: 'comparativeObsSetStats.anndata.zarr.zip',
|
|
133
|
+
|
|
110
134
|
// AnnData - h5ad via reference spec
|
|
111
135
|
OBS_FEATURE_MATRIX_ANNDATA_H5AD: 'obsFeatureMatrix.anndata.h5ad',
|
|
112
136
|
OBS_FEATURE_COLUMNS_ANNDATA_H5AD: 'obsFeatureColumns.anndata.h5ad',
|
|
@@ -119,6 +143,12 @@ export const FileType = {
|
|
|
119
143
|
OBS_LABELS_ANNDATA_H5AD: 'obsLabels.anndata.h5ad',
|
|
120
144
|
FEATURE_LABELS_ANNDATA_H5AD: 'featureLabels.anndata.h5ad',
|
|
121
145
|
SAMPLE_EDGES_ANNDATA_H5AD: 'sampleEdges.anndata.h5ad',
|
|
146
|
+
SAMPLE_SETS_ANNDATA_H5AD: 'sampleSets.anndata.h5ad',
|
|
147
|
+
|
|
148
|
+
COMPARISON_METADATA_ANNDATA_H5AD: 'comparisonMetadata.anndata.h5ad',
|
|
149
|
+
COMPARATIVE_FEATURE_STATS_ANNDATA_H5AD: 'comparativeFeatureStats.anndata.h5ad',
|
|
150
|
+
COMPARATIVE_FEATURE_SET_STATS_ANNDATA_H5AD: 'comparativeFeatureSetStats.anndata.h5ad',
|
|
151
|
+
COMPARATIVE_OBS_SET_STATS_ANNDATA_H5AD: 'comparativeObsSetStats.anndata.h5ad',
|
|
122
152
|
// SpatialData
|
|
123
153
|
IMAGE_SPATIALDATA_ZARR: 'image.spatialdata.zarr',
|
|
124
154
|
LABELS_SPATIALDATA_ZARR: 'labels.spatialdata.zarr',
|
|
@@ -310,12 +340,20 @@ export const CoordinationType = {
|
|
|
310
340
|
SAMPLE_SET_FILTER: 'sampleSetFilter',
|
|
311
341
|
SAMPLE_FILTER_MODE: 'sampleFilterMode',
|
|
312
342
|
SAMPLE_SET_COLOR: 'sampleSetColor',
|
|
343
|
+
SAMPLE_HIGHLIGHT: 'sampleHighlight',
|
|
313
344
|
EMBEDDING_POINTS_VISIBLE: 'embeddingPointsVisible',
|
|
314
345
|
EMBEDDING_CONTOURS_VISIBLE: 'embeddingContoursVisible',
|
|
315
346
|
EMBEDDING_CONTOURS_FILLED: 'embeddingContoursFilled',
|
|
316
347
|
EMBEDDING_CONTOUR_PERCENTILES: 'embeddingContourPercentiles',
|
|
317
348
|
CONTOUR_COLOR_ENCODING: 'contourColorEncoding',
|
|
318
349
|
CONTOUR_COLOR: 'contourColor',
|
|
350
|
+
// For volcano plot:
|
|
351
|
+
FEATURE_POINT_SIGNIFICANCE_THRESHOLD: 'featurePointSignificanceThreshold',
|
|
352
|
+
FEATURE_LABEL_SIGNIFICANCE_THRESHOLD: 'featureLabelSignificanceThreshold',
|
|
353
|
+
FEATURE_POINT_FOLD_CHANGE_THRESHOLD: 'featurePointFoldChangeThreshold',
|
|
354
|
+
FEATURE_LABEL_FOLD_CHANGE_THRESHOLD: 'featureLabelFoldChangeThreshold',
|
|
355
|
+
// Treemap
|
|
356
|
+
HIERARCHY_LEVELS: 'hierarchyLevels',
|
|
319
357
|
};
|
|
320
358
|
|
|
321
359
|
export const STATUS = {
|
|
@@ -349,4 +387,9 @@ export const ViewHelpMapping = {
|
|
|
349
387
|
FEATURE_VALUE_HISTOGRAM: 'The feature value histogram displays the distribution of values (e.g., expression) for the selected feature (e.g., gene).',
|
|
350
388
|
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).',
|
|
351
389
|
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.',
|
|
390
|
+
NEUROGLANCER: 'The Neuroglancer view displays 3d meshes using Neuroglancer developed by Google.',
|
|
391
|
+
TREEMAP: 'The treemap provides an overview of the current state of sample-level or cell-level selection and filtering.',
|
|
392
|
+
VOLCANO_PLOT: 'The volcano plot displays differential expression results. Each data point represents a feature (as opposed to an observation).',
|
|
393
|
+
OBS_SET_COMPOSITION_BAR_PLOT: 'The set composition bar plot displays the results of a compositional analysis conducted using the scCODA method (Büttner et al. 2021 Nature Communications).',
|
|
394
|
+
FEATURE_SET_ENRICHMENT_BAR_PLOT: 'The feature set enrichment bar plot displays the results of a hypergeometric test applied to the differential expression test results to identify enriched pathway gene sets.',
|
|
352
395
|
};
|
package/src/coordination.ts
CHANGED
|
@@ -32,6 +32,9 @@ export const AUTO_INDEPENDENT_COORDINATION_TYPES = [
|
|
|
32
32
|
* Keys here are the component registry keys.
|
|
33
33
|
*/
|
|
34
34
|
export const COMPONENT_COORDINATION_TYPES = {
|
|
35
|
+
[ViewType.NEUROGLANCER]: [
|
|
36
|
+
CoordinationType.DATASET,
|
|
37
|
+
],
|
|
35
38
|
[ViewType.SCATTERPLOT]: [
|
|
36
39
|
CoordinationType.DATASET,
|
|
37
40
|
CoordinationType.OBS_TYPE,
|
|
@@ -501,8 +504,64 @@ export const COMPONENT_COORDINATION_TYPES = {
|
|
|
501
504
|
CoordinationType.OBS_COLOR_ENCODING,
|
|
502
505
|
CoordinationType.ADDITIONAL_OBS_SETS,
|
|
503
506
|
],
|
|
507
|
+
[ViewType.VOLCANO_PLOT]: [
|
|
508
|
+
CoordinationType.DATASET,
|
|
509
|
+
CoordinationType.OBS_TYPE,
|
|
510
|
+
CoordinationType.FEATURE_TYPE,
|
|
511
|
+
CoordinationType.SAMPLE_TYPE,
|
|
512
|
+
// For selection of case-control sets of samples:
|
|
513
|
+
CoordinationType.SAMPLE_SET_SELECTION,
|
|
514
|
+
// For selection of one-vs-others sets of observations:
|
|
515
|
+
CoordinationType.OBS_SET_SELECTION,
|
|
516
|
+
// TODO: CoordinationType.FEATURE_SET_SELECTION,
|
|
517
|
+
// TODO: CoordinationType.FEATURE_SET_HIGHLIGHT,
|
|
518
|
+
// TODO: CoordinationType.FEATURE_SET_COLOR,
|
|
519
|
+
CoordinationType.FEATURE_HIGHLIGHT,
|
|
520
|
+
CoordinationType.FEATURE_SELECTION,
|
|
521
|
+
CoordinationType.FEATURE_VALUE_COLORMAP,
|
|
522
|
+
CoordinationType.FEATURE_VALUE_COLORMAP_RANGE,
|
|
523
|
+
// TODO: CoordinationType.FEATURE_COLOR_ENCODING,
|
|
524
|
+
// TODO: CoordinationType.ADDITIONAL_FEATURE_SETS,
|
|
525
|
+
CoordinationType.TOOLTIPS_VISIBLE,
|
|
526
|
+
CoordinationType.ADDITIONAL_OBS_SETS,
|
|
527
|
+
CoordinationType.OBS_SET_COLOR,
|
|
528
|
+
CoordinationType.SAMPLE_SET_COLOR,
|
|
529
|
+
CoordinationType.FEATURE_POINT_SIGNIFICANCE_THRESHOLD,
|
|
530
|
+
CoordinationType.FEATURE_LABEL_SIGNIFICANCE_THRESHOLD,
|
|
531
|
+
CoordinationType.FEATURE_POINT_FOLD_CHANGE_THRESHOLD,
|
|
532
|
+
CoordinationType.FEATURE_LABEL_FOLD_CHANGE_THRESHOLD,
|
|
533
|
+
],
|
|
534
|
+
[ViewType.OBS_SET_COMPOSITION_BAR_PLOT]: [
|
|
535
|
+
CoordinationType.DATASET,
|
|
536
|
+
CoordinationType.OBS_TYPE,
|
|
537
|
+
CoordinationType.SAMPLE_TYPE,
|
|
538
|
+
// For selection of case-control sets of samples:
|
|
539
|
+
CoordinationType.SAMPLE_SET_SELECTION,
|
|
540
|
+
// For selection of one-vs-others sets of observations:
|
|
541
|
+
CoordinationType.OBS_SET_SELECTION,
|
|
542
|
+
CoordinationType.ADDITIONAL_OBS_SETS,
|
|
543
|
+
CoordinationType.OBS_SET_COLOR,
|
|
544
|
+
CoordinationType.SAMPLE_SET_COLOR,
|
|
545
|
+
],
|
|
546
|
+
[ViewType.FEATURE_SET_ENRICHMENT_BAR_PLOT]: [
|
|
547
|
+
CoordinationType.DATASET,
|
|
548
|
+
CoordinationType.OBS_TYPE,
|
|
549
|
+
CoordinationType.FEATURE_TYPE,
|
|
550
|
+
CoordinationType.SAMPLE_TYPE,
|
|
551
|
+
// For selection of case-control sets of samples:
|
|
552
|
+
CoordinationType.SAMPLE_SET_SELECTION,
|
|
553
|
+
// For selection of one-vs-others sets of observations:
|
|
554
|
+
CoordinationType.OBS_SET_SELECTION,
|
|
555
|
+
CoordinationType.ADDITIONAL_OBS_SETS,
|
|
556
|
+
CoordinationType.OBS_SET_COLOR,
|
|
557
|
+
CoordinationType.SAMPLE_SET_COLOR,
|
|
558
|
+
CoordinationType.FEATURE_SELECTION,
|
|
559
|
+
],
|
|
504
560
|
[ViewType.LINK_CONTROLLER]: [],
|
|
505
561
|
[ViewType.BIOMARKER_SELECT]: [
|
|
562
|
+
CoordinationType.DATASET,
|
|
563
|
+
CoordinationType.OBS_TYPE,
|
|
564
|
+
CoordinationType.SAMPLE_TYPE,
|
|
506
565
|
CoordinationType.FEATURE_SELECTION,
|
|
507
566
|
CoordinationType.SAMPLE_SET_SELECTION,
|
|
508
567
|
CoordinationType.SAMPLE_SET_FILTER,
|
|
@@ -510,4 +569,40 @@ export const COMPONENT_COORDINATION_TYPES = {
|
|
|
510
569
|
CoordinationType.OBS_SET_FILTER,
|
|
511
570
|
// TODO: create coordination types for internal state of the biomarker selection view?
|
|
512
571
|
],
|
|
572
|
+
[ViewType.COMPARATIVE_HEADING]: [
|
|
573
|
+
CoordinationType.DATASET,
|
|
574
|
+
CoordinationType.OBS_TYPE,
|
|
575
|
+
CoordinationType.SAMPLE_TYPE,
|
|
576
|
+
CoordinationType.FEATURE_SELECTION,
|
|
577
|
+
CoordinationType.SAMPLE_SET_SELECTION,
|
|
578
|
+
CoordinationType.SAMPLE_SET_FILTER,
|
|
579
|
+
CoordinationType.OBS_SET_SELECTION,
|
|
580
|
+
CoordinationType.OBS_SET_FILTER,
|
|
581
|
+
],
|
|
582
|
+
[ViewType.TREEMAP]: [
|
|
583
|
+
CoordinationType.DATASET,
|
|
584
|
+
CoordinationType.OBS_TYPE,
|
|
585
|
+
CoordinationType.FEATURE_TYPE,
|
|
586
|
+
CoordinationType.FEATURE_VALUE_TYPE,
|
|
587
|
+
CoordinationType.OBS_FILTER,
|
|
588
|
+
CoordinationType.OBS_HIGHLIGHT,
|
|
589
|
+
CoordinationType.OBS_SET_SELECTION,
|
|
590
|
+
CoordinationType.OBS_SET_FILTER,
|
|
591
|
+
CoordinationType.OBS_SELECTION,
|
|
592
|
+
CoordinationType.OBS_SELECTION_MODE,
|
|
593
|
+
CoordinationType.OBS_SET_HIGHLIGHT,
|
|
594
|
+
CoordinationType.OBS_SET_COLOR,
|
|
595
|
+
CoordinationType.OBS_COLOR_ENCODING,
|
|
596
|
+
CoordinationType.ADDITIONAL_OBS_SETS,
|
|
597
|
+
CoordinationType.SAMPLE_TYPE,
|
|
598
|
+
CoordinationType.SAMPLE_SET_SELECTION,
|
|
599
|
+
CoordinationType.SAMPLE_SET_FILTER,
|
|
600
|
+
CoordinationType.SAMPLE_SET_COLOR,
|
|
601
|
+
CoordinationType.SAMPLE_SELECTION,
|
|
602
|
+
CoordinationType.SAMPLE_SELECTION_MODE,
|
|
603
|
+
CoordinationType.SAMPLE_FILTER,
|
|
604
|
+
CoordinationType.SAMPLE_FILTER_MODE,
|
|
605
|
+
CoordinationType.SAMPLE_HIGHLIGHT,
|
|
606
|
+
CoordinationType.HIERARCHY_LEVELS,
|
|
607
|
+
],
|
|
513
608
|
};
|
package/src/version.json
CHANGED