@vitessce/constants 2.0.2 → 2.0.3
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.mjs +697 -0
- package/{dist → dist-tsc}/index.js +0 -0
- package/package.json +6 -6
- package/src/constants-merged.js +49 -0
- package/src/constants-old.js +161 -0
- package/src/index.js +3 -0
- package/dist/constants-merged.js +0 -25
- package/dist/constants-old.js +0 -157
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,697 @@
|
|
|
1
|
+
const ViewType$2 = {
|
|
2
|
+
DESCRIPTION: "description",
|
|
3
|
+
STATUS: "status",
|
|
4
|
+
SCATTERPLOT: "scatterplot",
|
|
5
|
+
SPATIAL: "spatial",
|
|
6
|
+
HEATMAP: "heatmap",
|
|
7
|
+
LAYER_CONTROLLER: "layerController",
|
|
8
|
+
GENOMIC_PROFILES: "genomicProfiles",
|
|
9
|
+
GATING: "gating",
|
|
10
|
+
FEATURE_LIST: "featureList",
|
|
11
|
+
OBS_SETS: "obsSets",
|
|
12
|
+
OBS_SET_SIZES: "obsSetSizes",
|
|
13
|
+
OBS_SET_FEATURE_VALUE_DISTRIBUTION: "obsSetFeatureValueDistribution",
|
|
14
|
+
FEATURE_VALUE_HISTOGRAM: "featureValueHistogram"
|
|
15
|
+
};
|
|
16
|
+
const DataType$2 = {
|
|
17
|
+
OBS_LABELS: "obsLabels",
|
|
18
|
+
OBS_EMBEDDING: "obsEmbedding",
|
|
19
|
+
OBS_LOCATIONS: "obsLocations",
|
|
20
|
+
OBS_FEATURE_MATRIX: "obsFeatureMatrix",
|
|
21
|
+
OBS_SETS: "obsSets",
|
|
22
|
+
FEATURE_LABELS: "featureLabels",
|
|
23
|
+
IMAGE: "image",
|
|
24
|
+
OBS_SEGMENTATIONS: "obsSegmentations",
|
|
25
|
+
NEIGHBORHOODS: "neighborhoods",
|
|
26
|
+
GENOMIC_PROFILES: "genomic-profiles"
|
|
27
|
+
};
|
|
28
|
+
const FileType$2 = {
|
|
29
|
+
ANNDATA_ZARR: "anndata.zarr",
|
|
30
|
+
OBS_EMBEDDING_CSV: "obsEmbedding.csv",
|
|
31
|
+
OBS_LOCATIONS_CSV: "obsLocations.csv",
|
|
32
|
+
OBS_LABELS_CSV: "obsLabels.csv",
|
|
33
|
+
FEATURE_LABELS_CSV: "featureLabels.csv",
|
|
34
|
+
OBS_FEATURE_MATRIX_CSV: "obsFeatureMatrix.csv",
|
|
35
|
+
OBS_SEGMENTATIONS_JSON: "obsSegmentations.json",
|
|
36
|
+
OBS_SETS_CSV: "obsSets.csv",
|
|
37
|
+
OBS_SETS_JSON: "obsSets.json",
|
|
38
|
+
IMAGE_OME_ZARR: "image.ome-zarr",
|
|
39
|
+
OBS_FEATURE_MATRIX_ANNDATA_ZARR: "obsFeatureMatrix.anndata.zarr",
|
|
40
|
+
OBS_SETS_ANNDATA_ZARR: "obsSets.anndata.zarr",
|
|
41
|
+
OBS_EMBEDDING_ANNDATA_ZARR: "obsEmbedding.anndata.zarr",
|
|
42
|
+
OBS_LOCATIONS_ANNDATA_ZARR: "obsLocations.anndata.zarr",
|
|
43
|
+
OBS_SEGMENTATIONS_ANNDATA_ZARR: "obsSegmentations.anndata.zarr",
|
|
44
|
+
OBS_LABELS_ANNDATA_ZARR: "obsLabels.anndata.zarr",
|
|
45
|
+
FEATURE_LABELS_ANNDATA_ZARR: "featureLabels.anndata.zarr",
|
|
46
|
+
OBS_FEATURE_MATRIX_MUDATA_ZARR: "obsFeatureMatrix.mudata.zarr",
|
|
47
|
+
OBS_SETS_MUDATA_ZARR: "obsSets.mudata.zarr",
|
|
48
|
+
OBS_EMBEDDING_MUDATA_ZARR: "obsEmbedding.mudata.zarr",
|
|
49
|
+
OBS_LOCATIONS_MUDATA_ZARR: "obsLocations.mudata.zarr",
|
|
50
|
+
OBS_SEGMENTATIONS_MUDATA_ZARR: "obsSegmentations.mudata.zarr",
|
|
51
|
+
OBS_LABELS_MUDATA_ZARR: "obsLabels.mudata.zarr",
|
|
52
|
+
FEATURE_LABELS_MUDATA_ZARR: "featureLabels.mudata.zarr",
|
|
53
|
+
GENOMIC_PROFILES_ZARR: "genomic-profiles.zarr",
|
|
54
|
+
NEIGHBORHOODS_JSON: "neighborhoods.json",
|
|
55
|
+
OBS_EMBEDDING_CELLS_JSON: "obsEmbedding.cells.json",
|
|
56
|
+
OBS_SEGMENTATIONS_CELLS_JSON: "obsSegmentations.cells.json",
|
|
57
|
+
OBS_LOCATIONS_CELLS_JSON: "obsLocations.cells.json",
|
|
58
|
+
OBS_LABELS_CELLS_JSON: "obsLabels.cells.json",
|
|
59
|
+
OBS_SETS_CELL_SETS_JSON: "obsSets.cell-sets.json",
|
|
60
|
+
OBS_FEATURE_MATRIX_GENES_JSON: "obsFeatureMatrix.genes.json",
|
|
61
|
+
OBS_FEATURE_MATRIX_CLUSTERS_JSON: "obsFeatureMatrix.clusters.json",
|
|
62
|
+
OBS_FEATURE_MATRIX_EXPRESSION_MATRIX_ZARR: "obsFeatureMatrix.expression-matrix.zarr",
|
|
63
|
+
IMAGE_RASTER_JSON: "image.raster.json",
|
|
64
|
+
OBS_SEGMENTATIONS_RASTER_JSON: "obsSegmentations.raster.json",
|
|
65
|
+
OBS_LOCATIONS_MOLECULES_JSON: "obsLocations.molecules.json",
|
|
66
|
+
OBS_LABELS_MOLECULES_JSON: "obsLabels.molecules.json",
|
|
67
|
+
CELLS_JSON: "cells.json",
|
|
68
|
+
CELL_SETS_JSON: "cell-sets.json",
|
|
69
|
+
ANNDATA_CELL_SETS_ZARR: "anndata-cell-sets.zarr",
|
|
70
|
+
ANNDATA_CELLS_ZARR: "anndata-cells.zarr",
|
|
71
|
+
EXPRESSION_MATRIX_ZARR: "expression-matrix.zarr",
|
|
72
|
+
MOLECULES_JSON: "molecules.json",
|
|
73
|
+
RASTER_JSON: "raster.json",
|
|
74
|
+
RASTER_OME_ZARR: "raster.ome-zarr",
|
|
75
|
+
CLUSTERS_JSON: "clusters.json",
|
|
76
|
+
GENES_JSON: "genes.json",
|
|
77
|
+
ANNDATA_EXPRESSION_MATRIX_ZARR: "anndata-expression-matrix.zarr"
|
|
78
|
+
};
|
|
79
|
+
const CoordinationType$2 = {
|
|
80
|
+
DATASET: "dataset",
|
|
81
|
+
OBS_TYPE: "obsType",
|
|
82
|
+
FEATURE_TYPE: "featureType",
|
|
83
|
+
FEATURE_VALUE_TYPE: "featureValueType",
|
|
84
|
+
OBS_LABELS_TYPE: "obsLabelsType",
|
|
85
|
+
EMBEDDING_TYPE: "embeddingType",
|
|
86
|
+
EMBEDDING_ZOOM: "embeddingZoom",
|
|
87
|
+
EMBEDDING_ROTATION: "embeddingRotation",
|
|
88
|
+
EMBEDDING_TARGET_X: "embeddingTargetX",
|
|
89
|
+
EMBEDDING_TARGET_Y: "embeddingTargetY",
|
|
90
|
+
EMBEDDING_TARGET_Z: "embeddingTargetZ",
|
|
91
|
+
EMBEDDING_OBS_SET_POLYGONS_VISIBLE: "embeddingObsSetPolygonsVisible",
|
|
92
|
+
EMBEDDING_OBS_SET_LABELS_VISIBLE: "embeddingObsSetLabelsVisible",
|
|
93
|
+
EMBEDDING_OBS_SET_LABEL_SIZE: "embeddingObsSetLabelSize",
|
|
94
|
+
EMBEDDING_OBS_RADIUS: "embeddingObsRadius",
|
|
95
|
+
EMBEDDING_OBS_RADIUS_MODE: "embeddingObsRadiusMode",
|
|
96
|
+
EMBEDDING_OBS_OPACITY: "embeddingObsOpacity",
|
|
97
|
+
EMBEDDING_OBS_OPACITY_MODE: "embeddingObsOpacityMode",
|
|
98
|
+
SPATIAL_ZOOM: "spatialZoom",
|
|
99
|
+
SPATIAL_ROTATION: "spatialRotation",
|
|
100
|
+
SPATIAL_TARGET_X: "spatialTargetX",
|
|
101
|
+
SPATIAL_TARGET_Y: "spatialTargetY",
|
|
102
|
+
SPATIAL_TARGET_Z: "spatialTargetZ",
|
|
103
|
+
SPATIAL_ROTATION_X: "spatialRotationX",
|
|
104
|
+
SPATIAL_ROTATION_Y: "spatialRotationY",
|
|
105
|
+
SPATIAL_ROTATION_Z: "spatialRotationZ",
|
|
106
|
+
SPATIAL_ROTATION_ORBIT: "spatialRotationOrbit",
|
|
107
|
+
SPATIAL_ORBIT_AXIS: "spatialOrbitAxis",
|
|
108
|
+
SPATIAL_AXIS_FIXED: "spatialAxisFixed",
|
|
109
|
+
HEATMAP_ZOOM_X: "heatmapZoomX",
|
|
110
|
+
HEATMAP_ZOOM_Y: "heatmapZoomY",
|
|
111
|
+
HEATMAP_TARGET_X: "heatmapTargetX",
|
|
112
|
+
HEATMAP_TARGET_Y: "heatmapTargetY",
|
|
113
|
+
OBS_FILTER: "obsFilter",
|
|
114
|
+
OBS_HIGHLIGHT: "obsHighlight",
|
|
115
|
+
OBS_SET_SELECTION: "obsSetSelection",
|
|
116
|
+
OBS_SET_HIGHLIGHT: "obsSetHighlight",
|
|
117
|
+
OBS_SET_COLOR: "obsSetColor",
|
|
118
|
+
FEATURE_FILTER: "featureFilter",
|
|
119
|
+
FEATURE_HIGHLIGHT: "featureHighlight",
|
|
120
|
+
FEATURE_SELECTION: "featureSelection",
|
|
121
|
+
FEATURE_VALUE_COLORMAP: "featureValueColormap",
|
|
122
|
+
FEATURE_VALUE_TRANSFORM: "featureValueTransform",
|
|
123
|
+
FEATURE_VALUE_COLORMAP_RANGE: "featureValueColormapRange",
|
|
124
|
+
OBS_COLOR_ENCODING: "obsColorEncoding",
|
|
125
|
+
SPATIAL_IMAGE_LAYER: "spatialImageLayer",
|
|
126
|
+
SPATIAL_SEGMENTATION_LAYER: "spatialSegmentationLayer",
|
|
127
|
+
SPATIAL_POINT_LAYER: "spatialPointLayer",
|
|
128
|
+
SPATIAL_NEIGHBORHOOD_LAYER: "spatialNeighborhoodLayer",
|
|
129
|
+
GENOMIC_ZOOM_X: "genomicZoomX",
|
|
130
|
+
GENOMIC_ZOOM_Y: "genomicZoomY",
|
|
131
|
+
GENOMIC_TARGET_X: "genomicTargetX",
|
|
132
|
+
GENOMIC_TARGET_Y: "genomicTargetY",
|
|
133
|
+
ADDITIONAL_OBS_SETS: "additionalObsSets",
|
|
134
|
+
MOLECULE_HIGHLIGHT: "moleculeHighlight",
|
|
135
|
+
GATING_FEATURE_SELECTION_X: "gatingFeatureSelectionX",
|
|
136
|
+
GATING_FEATURE_SELECTION_Y: "gatingFeatureSelectionY",
|
|
137
|
+
FEATURE_VALUE_TRANSFORM_COEFFICIENT: "featureValueTransformCoefficient"
|
|
138
|
+
};
|
|
139
|
+
({
|
|
140
|
+
[FileType$2.OBS_EMBEDDING_CSV]: DataType$2.OBS_EMBEDDING,
|
|
141
|
+
[FileType$2.OBS_LOCATIONS_CSV]: DataType$2.OBS_LOCATIONS,
|
|
142
|
+
[FileType$2.OBS_LABELS_CSV]: DataType$2.OBS_LABELS,
|
|
143
|
+
[FileType$2.FEATURE_LABELS_CSV]: DataType$2.FEATURE_LABELS,
|
|
144
|
+
[FileType$2.OBS_FEATURE_MATRIX_CSV]: DataType$2.OBS_FEATURE_MATRIX,
|
|
145
|
+
[FileType$2.OBS_SEGMENTATIONS_JSON]: DataType$2.OBS_SEGMENTATIONS,
|
|
146
|
+
[FileType$2.OBS_SETS_CSV]: DataType$2.OBS_SETS,
|
|
147
|
+
[FileType$2.OBS_SETS_JSON]: DataType$2.OBS_SETS,
|
|
148
|
+
[FileType$2.IMAGE_OME_ZARR]: DataType$2.IMAGE,
|
|
149
|
+
[FileType$2.OBS_FEATURE_MATRIX_ANNDATA_ZARR]: DataType$2.OBS_FEATURE_MATRIX,
|
|
150
|
+
[FileType$2.OBS_SETS_ANNDATA_ZARR]: DataType$2.OBS_SETS,
|
|
151
|
+
[FileType$2.OBS_EMBEDDING_ANNDATA_ZARR]: DataType$2.OBS_EMBEDDING,
|
|
152
|
+
[FileType$2.OBS_LOCATIONS_ANNDATA_ZARR]: DataType$2.OBS_LOCATIONS,
|
|
153
|
+
[FileType$2.OBS_SEGMENTATIONS_ANNDATA_ZARR]: DataType$2.OBS_SEGMENTATIONS,
|
|
154
|
+
[FileType$2.OBS_LABELS_ANNDATA_ZARR]: DataType$2.OBS_LABELS,
|
|
155
|
+
[FileType$2.FEATURE_LABELS_ANNDATA_ZARR]: DataType$2.FEATURE_LABELS,
|
|
156
|
+
[FileType$2.OBS_FEATURE_MATRIX_MUDATA_ZARR]: DataType$2.OBS_FEATURE_MATRIX,
|
|
157
|
+
[FileType$2.OBS_SETS_MUDATA_ZARR]: DataType$2.OBS_SETS,
|
|
158
|
+
[FileType$2.OBS_EMBEDDING_MUDATA_ZARR]: DataType$2.OBS_EMBEDDING,
|
|
159
|
+
[FileType$2.OBS_LOCATIONS_MUDATA_ZARR]: DataType$2.OBS_LOCATIONS,
|
|
160
|
+
[FileType$2.OBS_SEGMENTATIONS_MUDATA_ZARR]: DataType$2.OBS_SEGMENTATIONS,
|
|
161
|
+
[FileType$2.OBS_LABELS_MUDATA_ZARR]: DataType$2.OBS_LABELS,
|
|
162
|
+
[FileType$2.FEATURE_LABELS_MUDATA_ZARR]: DataType$2.FEATURE_LABELS,
|
|
163
|
+
[FileType$2.OBS_EMBEDDING_CELLS_JSON]: DataType$2.OBS_EMBEDDING,
|
|
164
|
+
[FileType$2.OBS_LOCATIONS_CELLS_JSON]: DataType$2.OBS_LOCATIONS,
|
|
165
|
+
[FileType$2.OBS_SEGMENTATIONS_CELLS_JSON]: DataType$2.OBS_SEGMENTATIONS,
|
|
166
|
+
[FileType$2.OBS_LABELS_CELLS_JSON]: DataType$2.OBS_LABELS,
|
|
167
|
+
[FileType$2.OBS_SETS_CELL_SETS_JSON]: DataType$2.OBS_SETS,
|
|
168
|
+
[FileType$2.OBS_FEATURE_MATRIX_GENES_JSON]: DataType$2.OBS_FEATURE_MATRIX,
|
|
169
|
+
[FileType$2.OBS_FEATURE_MATRIX_CLUSTERS_JSON]: DataType$2.OBS_FEATURE_MATRIX,
|
|
170
|
+
[FileType$2.OBS_FEATURE_MATRIX_EXPRESSION_MATRIX_ZARR]: DataType$2.OBS_FEATURE_MATRIX,
|
|
171
|
+
[FileType$2.IMAGE_RASTER_JSON]: DataType$2.IMAGE,
|
|
172
|
+
[FileType$2.OBS_SEGMENTATIONS_RASTER_JSON]: DataType$2.OBS_SEGMENTATIONS,
|
|
173
|
+
[FileType$2.OBS_LOCATIONS_MOLECULES_JSON]: DataType$2.OBS_LOCATIONS,
|
|
174
|
+
[FileType$2.OBS_LABELS_MOLECULES_JSON]: DataType$2.OBS_LABELS,
|
|
175
|
+
[FileType$2.GENOMIC_PROFILES_ZARR]: DataType$2.GENOMIC_PROFILES,
|
|
176
|
+
[FileType$2.NEIGHBORHOODS_JSON]: DataType$2.NEIGHBORHOODS
|
|
177
|
+
});
|
|
178
|
+
({
|
|
179
|
+
[DataType$2.OBS_SEGMENTATIONS]: [
|
|
180
|
+
CoordinationType$2.OBS_TYPE
|
|
181
|
+
],
|
|
182
|
+
[DataType$2.OBS_EMBEDDING]: [
|
|
183
|
+
CoordinationType$2.OBS_TYPE,
|
|
184
|
+
CoordinationType$2.EMBEDDING_TYPE
|
|
185
|
+
],
|
|
186
|
+
[DataType$2.OBS_LOCATIONS]: [
|
|
187
|
+
CoordinationType$2.OBS_TYPE
|
|
188
|
+
],
|
|
189
|
+
[DataType$2.OBS_LABELS]: [
|
|
190
|
+
CoordinationType$2.OBS_TYPE,
|
|
191
|
+
CoordinationType$2.OBS_LABELS_TYPE
|
|
192
|
+
],
|
|
193
|
+
[DataType$2.FEATURE_LABELS]: [
|
|
194
|
+
CoordinationType$2.FEATURE_TYPE
|
|
195
|
+
],
|
|
196
|
+
[DataType$2.OBS_SETS]: [
|
|
197
|
+
CoordinationType$2.OBS_TYPE
|
|
198
|
+
],
|
|
199
|
+
[DataType$2.OBS_FEATURE_MATRIX]: [
|
|
200
|
+
CoordinationType$2.OBS_TYPE,
|
|
201
|
+
CoordinationType$2.FEATURE_TYPE,
|
|
202
|
+
CoordinationType$2.FEATURE_VALUE_TYPE
|
|
203
|
+
],
|
|
204
|
+
[DataType$2.GENOMIC_PROFILES]: [],
|
|
205
|
+
[DataType$2.IMAGE]: [],
|
|
206
|
+
[DataType$2.NEIGHBORHOODS]: []
|
|
207
|
+
});
|
|
208
|
+
({
|
|
209
|
+
[CoordinationType$2.OBS_TYPE]: "cell",
|
|
210
|
+
[CoordinationType$2.FEATURE_TYPE]: "gene",
|
|
211
|
+
[CoordinationType$2.FEATURE_VALUE_TYPE]: "expression",
|
|
212
|
+
[CoordinationType$2.OBS_LABELS_TYPE]: null,
|
|
213
|
+
[CoordinationType$2.EMBEDDING_ZOOM]: null,
|
|
214
|
+
[CoordinationType$2.EMBEDDING_ROTATION]: 0,
|
|
215
|
+
[CoordinationType$2.EMBEDDING_TARGET_X]: null,
|
|
216
|
+
[CoordinationType$2.EMBEDDING_TARGET_Y]: null,
|
|
217
|
+
[CoordinationType$2.EMBEDDING_TARGET_Z]: 0,
|
|
218
|
+
[CoordinationType$2.EMBEDDING_OBS_SET_POLYGONS_VISIBLE]: false,
|
|
219
|
+
[CoordinationType$2.EMBEDDING_OBS_SET_LABELS_VISIBLE]: false,
|
|
220
|
+
[CoordinationType$2.EMBEDDING_OBS_SET_LABEL_SIZE]: 14,
|
|
221
|
+
[CoordinationType$2.EMBEDDING_OBS_RADIUS]: 1,
|
|
222
|
+
[CoordinationType$2.EMBEDDING_OBS_RADIUS_MODE]: "auto",
|
|
223
|
+
[CoordinationType$2.EMBEDDING_OBS_OPACITY]: 1,
|
|
224
|
+
[CoordinationType$2.EMBEDDING_OBS_OPACITY_MODE]: "auto",
|
|
225
|
+
[CoordinationType$2.SPATIAL_ZOOM]: null,
|
|
226
|
+
[CoordinationType$2.SPATIAL_ROTATION]: 0,
|
|
227
|
+
[CoordinationType$2.SPATIAL_TARGET_X]: null,
|
|
228
|
+
[CoordinationType$2.SPATIAL_TARGET_Y]: null,
|
|
229
|
+
[CoordinationType$2.SPATIAL_TARGET_Z]: null,
|
|
230
|
+
[CoordinationType$2.SPATIAL_ROTATION_X]: null,
|
|
231
|
+
[CoordinationType$2.SPATIAL_ROTATION_Y]: null,
|
|
232
|
+
[CoordinationType$2.SPATIAL_ROTATION_Z]: null,
|
|
233
|
+
[CoordinationType$2.SPATIAL_AXIS_FIXED]: false,
|
|
234
|
+
[CoordinationType$2.SPATIAL_ROTATION_ORBIT]: 0,
|
|
235
|
+
[CoordinationType$2.SPATIAL_ORBIT_AXIS]: "Y",
|
|
236
|
+
[CoordinationType$2.SPATIAL_IMAGE_LAYER]: null,
|
|
237
|
+
[CoordinationType$2.SPATIAL_SEGMENTATION_LAYER]: null,
|
|
238
|
+
[CoordinationType$2.SPATIAL_POINT_LAYER]: null,
|
|
239
|
+
[CoordinationType$2.SPATIAL_NEIGHBORHOOD_LAYER]: null,
|
|
240
|
+
[CoordinationType$2.HEATMAP_ZOOM_X]: 0,
|
|
241
|
+
[CoordinationType$2.HEATMAP_ZOOM_Y]: 0,
|
|
242
|
+
[CoordinationType$2.HEATMAP_TARGET_X]: 0,
|
|
243
|
+
[CoordinationType$2.HEATMAP_TARGET_Y]: 0,
|
|
244
|
+
[CoordinationType$2.FEATURE_VALUE_COLORMAP]: "plasma",
|
|
245
|
+
[CoordinationType$2.FEATURE_VALUE_COLORMAP_RANGE]: [0, 1],
|
|
246
|
+
[CoordinationType$2.FEATURE_VALUE_TRANSFORM]: null,
|
|
247
|
+
[CoordinationType$2.FEATURE_VALUE_TRANSFORM_COEFFICIENT]: 1,
|
|
248
|
+
[CoordinationType$2.FEATURE_FILTER]: null,
|
|
249
|
+
[CoordinationType$2.FEATURE_HIGHLIGHT]: null,
|
|
250
|
+
[CoordinationType$2.FEATURE_SELECTION]: null,
|
|
251
|
+
[CoordinationType$2.OBS_FILTER]: null,
|
|
252
|
+
[CoordinationType$2.OBS_HIGHLIGHT]: null,
|
|
253
|
+
[CoordinationType$2.OBS_SET_SELECTION]: null,
|
|
254
|
+
[CoordinationType$2.OBS_SET_HIGHLIGHT]: null,
|
|
255
|
+
[CoordinationType$2.OBS_SET_COLOR]: null,
|
|
256
|
+
[CoordinationType$2.OBS_COLOR_ENCODING]: "cellSetSelection",
|
|
257
|
+
[CoordinationType$2.GENOMIC_ZOOM_X]: 0,
|
|
258
|
+
[CoordinationType$2.GENOMIC_ZOOM_Y]: 0,
|
|
259
|
+
[CoordinationType$2.GENOMIC_TARGET_X]: 15499999995e-1,
|
|
260
|
+
[CoordinationType$2.GENOMIC_TARGET_Y]: 15499999995e-1,
|
|
261
|
+
[CoordinationType$2.ADDITIONAL_OBS_SETS]: null,
|
|
262
|
+
[CoordinationType$2.MOLECULE_HIGHLIGHT]: null,
|
|
263
|
+
[CoordinationType$2.GATING_FEATURE_SELECTION_X]: null,
|
|
264
|
+
[CoordinationType$2.GATING_FEATURE_SELECTION_Y]: null
|
|
265
|
+
});
|
|
266
|
+
[
|
|
267
|
+
CoordinationType$2.HEATMAP_ZOOM_X,
|
|
268
|
+
CoordinationType$2.HEATMAP_ZOOM_Y,
|
|
269
|
+
CoordinationType$2.HEATMAP_TARGET_X,
|
|
270
|
+
CoordinationType$2.HEATMAP_TARGET_Y,
|
|
271
|
+
CoordinationType$2.EMBEDDING_ZOOM,
|
|
272
|
+
CoordinationType$2.EMBEDDING_TARGET_X,
|
|
273
|
+
CoordinationType$2.EMBEDDING_TARGET_Y,
|
|
274
|
+
CoordinationType$2.EMBEDDING_TARGET_Z,
|
|
275
|
+
CoordinationType$2.EMBEDDING_OBS_SET_POLYGONS_VISIBLE,
|
|
276
|
+
CoordinationType$2.EMBEDDING_OBS_SET_LABELS_VISIBLE,
|
|
277
|
+
CoordinationType$2.EMBEDDING_OBS_SET_LABEL_SIZE,
|
|
278
|
+
CoordinationType$2.EMBEDDING_OBS_RADIUS,
|
|
279
|
+
CoordinationType$2.EMBEDDING_OBS_OPACITY
|
|
280
|
+
];
|
|
281
|
+
({
|
|
282
|
+
[ViewType$2.SCATTERPLOT]: [
|
|
283
|
+
CoordinationType$2.DATASET,
|
|
284
|
+
CoordinationType$2.OBS_TYPE,
|
|
285
|
+
CoordinationType$2.FEATURE_TYPE,
|
|
286
|
+
CoordinationType$2.FEATURE_VALUE_TYPE,
|
|
287
|
+
CoordinationType$2.OBS_LABELS_TYPE,
|
|
288
|
+
CoordinationType$2.EMBEDDING_TYPE,
|
|
289
|
+
CoordinationType$2.EMBEDDING_ZOOM,
|
|
290
|
+
CoordinationType$2.EMBEDDING_ROTATION,
|
|
291
|
+
CoordinationType$2.EMBEDDING_TARGET_X,
|
|
292
|
+
CoordinationType$2.EMBEDDING_TARGET_Y,
|
|
293
|
+
CoordinationType$2.EMBEDDING_TARGET_Z,
|
|
294
|
+
CoordinationType$2.EMBEDDING_OBS_SET_POLYGONS_VISIBLE,
|
|
295
|
+
CoordinationType$2.EMBEDDING_OBS_SET_LABELS_VISIBLE,
|
|
296
|
+
CoordinationType$2.EMBEDDING_OBS_SET_LABEL_SIZE,
|
|
297
|
+
CoordinationType$2.EMBEDDING_OBS_RADIUS,
|
|
298
|
+
CoordinationType$2.EMBEDDING_OBS_RADIUS_MODE,
|
|
299
|
+
CoordinationType$2.EMBEDDING_OBS_OPACITY,
|
|
300
|
+
CoordinationType$2.EMBEDDING_OBS_OPACITY_MODE,
|
|
301
|
+
CoordinationType$2.OBS_FILTER,
|
|
302
|
+
CoordinationType$2.OBS_HIGHLIGHT,
|
|
303
|
+
CoordinationType$2.OBS_SET_SELECTION,
|
|
304
|
+
CoordinationType$2.OBS_SET_HIGHLIGHT,
|
|
305
|
+
CoordinationType$2.OBS_SET_COLOR,
|
|
306
|
+
CoordinationType$2.FEATURE_HIGHLIGHT,
|
|
307
|
+
CoordinationType$2.FEATURE_SELECTION,
|
|
308
|
+
CoordinationType$2.FEATURE_VALUE_COLORMAP,
|
|
309
|
+
CoordinationType$2.FEATURE_VALUE_COLORMAP_RANGE,
|
|
310
|
+
CoordinationType$2.OBS_COLOR_ENCODING,
|
|
311
|
+
CoordinationType$2.ADDITIONAL_OBS_SETS
|
|
312
|
+
],
|
|
313
|
+
[ViewType$2.GATING]: [
|
|
314
|
+
CoordinationType$2.DATASET,
|
|
315
|
+
CoordinationType$2.OBS_TYPE,
|
|
316
|
+
CoordinationType$2.FEATURE_TYPE,
|
|
317
|
+
CoordinationType$2.FEATURE_VALUE_TYPE,
|
|
318
|
+
CoordinationType$2.EMBEDDING_TYPE,
|
|
319
|
+
CoordinationType$2.EMBEDDING_ZOOM,
|
|
320
|
+
CoordinationType$2.EMBEDDING_ROTATION,
|
|
321
|
+
CoordinationType$2.EMBEDDING_TARGET_X,
|
|
322
|
+
CoordinationType$2.EMBEDDING_TARGET_Y,
|
|
323
|
+
CoordinationType$2.EMBEDDING_TARGET_Z,
|
|
324
|
+
CoordinationType$2.EMBEDDING_OBS_SET_POLYGONS_VISIBLE,
|
|
325
|
+
CoordinationType$2.EMBEDDING_OBS_SET_LABELS_VISIBLE,
|
|
326
|
+
CoordinationType$2.EMBEDDING_OBS_SET_LABEL_SIZE,
|
|
327
|
+
CoordinationType$2.EMBEDDING_OBS_RADIUS,
|
|
328
|
+
CoordinationType$2.EMBEDDING_OBS_RADIUS_MODE,
|
|
329
|
+
CoordinationType$2.EMBEDDING_OBS_OPACITY,
|
|
330
|
+
CoordinationType$2.EMBEDDING_OBS_OPACITY_MODE,
|
|
331
|
+
CoordinationType$2.OBS_FILTER,
|
|
332
|
+
CoordinationType$2.OBS_HIGHLIGHT,
|
|
333
|
+
CoordinationType$2.OBS_SET_SELECTION,
|
|
334
|
+
CoordinationType$2.OBS_SET_HIGHLIGHT,
|
|
335
|
+
CoordinationType$2.OBS_SET_COLOR,
|
|
336
|
+
CoordinationType$2.FEATURE_HIGHLIGHT,
|
|
337
|
+
CoordinationType$2.FEATURE_SELECTION,
|
|
338
|
+
CoordinationType$2.FEATURE_VALUE_COLORMAP,
|
|
339
|
+
CoordinationType$2.FEATURE_VALUE_COLORMAP_RANGE,
|
|
340
|
+
CoordinationType$2.OBS_COLOR_ENCODING,
|
|
341
|
+
CoordinationType$2.ADDITIONAL_OBS_SETS,
|
|
342
|
+
CoordinationType$2.FEATURE_VALUE_TRANSFORM,
|
|
343
|
+
CoordinationType$2.FEATURE_VALUE_TRANSFORM_COEFFICIENT,
|
|
344
|
+
CoordinationType$2.GATING_FEATURE_SELECTION_X,
|
|
345
|
+
CoordinationType$2.GATING_FEATURE_SELECTION_Y
|
|
346
|
+
],
|
|
347
|
+
[ViewType$2.SPATIAL]: [
|
|
348
|
+
CoordinationType$2.DATASET,
|
|
349
|
+
CoordinationType$2.OBS_TYPE,
|
|
350
|
+
CoordinationType$2.OBS_LABELS_TYPE,
|
|
351
|
+
CoordinationType$2.FEATURE_TYPE,
|
|
352
|
+
CoordinationType$2.FEATURE_VALUE_TYPE,
|
|
353
|
+
CoordinationType$2.SPATIAL_ZOOM,
|
|
354
|
+
CoordinationType$2.SPATIAL_ROTATION,
|
|
355
|
+
CoordinationType$2.SPATIAL_IMAGE_LAYER,
|
|
356
|
+
CoordinationType$2.SPATIAL_SEGMENTATION_LAYER,
|
|
357
|
+
CoordinationType$2.SPATIAL_POINT_LAYER,
|
|
358
|
+
CoordinationType$2.SPATIAL_NEIGHBORHOOD_LAYER,
|
|
359
|
+
CoordinationType$2.SPATIAL_TARGET_X,
|
|
360
|
+
CoordinationType$2.SPATIAL_TARGET_Y,
|
|
361
|
+
CoordinationType$2.SPATIAL_TARGET_Z,
|
|
362
|
+
CoordinationType$2.SPATIAL_ROTATION_X,
|
|
363
|
+
CoordinationType$2.SPATIAL_ROTATION_Y,
|
|
364
|
+
CoordinationType$2.SPATIAL_ROTATION_Z,
|
|
365
|
+
CoordinationType$2.SPATIAL_ROTATION_ORBIT,
|
|
366
|
+
CoordinationType$2.SPATIAL_ORBIT_AXIS,
|
|
367
|
+
CoordinationType$2.SPATIAL_AXIS_FIXED,
|
|
368
|
+
CoordinationType$2.OBS_FILTER,
|
|
369
|
+
CoordinationType$2.OBS_HIGHLIGHT,
|
|
370
|
+
CoordinationType$2.OBS_SET_SELECTION,
|
|
371
|
+
CoordinationType$2.OBS_SET_HIGHLIGHT,
|
|
372
|
+
CoordinationType$2.OBS_SET_COLOR,
|
|
373
|
+
CoordinationType$2.FEATURE_HIGHLIGHT,
|
|
374
|
+
CoordinationType$2.FEATURE_SELECTION,
|
|
375
|
+
CoordinationType$2.FEATURE_VALUE_COLORMAP,
|
|
376
|
+
CoordinationType$2.FEATURE_VALUE_COLORMAP_RANGE,
|
|
377
|
+
CoordinationType$2.OBS_COLOR_ENCODING,
|
|
378
|
+
CoordinationType$2.ADDITIONAL_OBS_SETS,
|
|
379
|
+
CoordinationType$2.MOLECULE_HIGHLIGHT
|
|
380
|
+
],
|
|
381
|
+
[ViewType$2.HEATMAP]: [
|
|
382
|
+
CoordinationType$2.DATASET,
|
|
383
|
+
CoordinationType$2.OBS_TYPE,
|
|
384
|
+
CoordinationType$2.OBS_LABELS_TYPE,
|
|
385
|
+
CoordinationType$2.FEATURE_TYPE,
|
|
386
|
+
CoordinationType$2.FEATURE_VALUE_TYPE,
|
|
387
|
+
CoordinationType$2.HEATMAP_ZOOM_X,
|
|
388
|
+
CoordinationType$2.HEATMAP_ZOOM_Y,
|
|
389
|
+
CoordinationType$2.HEATMAP_TARGET_X,
|
|
390
|
+
CoordinationType$2.HEATMAP_TARGET_Y,
|
|
391
|
+
CoordinationType$2.OBS_FILTER,
|
|
392
|
+
CoordinationType$2.OBS_HIGHLIGHT,
|
|
393
|
+
CoordinationType$2.OBS_SET_SELECTION,
|
|
394
|
+
CoordinationType$2.OBS_SET_HIGHLIGHT,
|
|
395
|
+
CoordinationType$2.OBS_SET_COLOR,
|
|
396
|
+
CoordinationType$2.FEATURE_FILTER,
|
|
397
|
+
CoordinationType$2.FEATURE_HIGHLIGHT,
|
|
398
|
+
CoordinationType$2.FEATURE_SELECTION,
|
|
399
|
+
CoordinationType$2.FEATURE_VALUE_COLORMAP,
|
|
400
|
+
CoordinationType$2.FEATURE_VALUE_COLORMAP_RANGE,
|
|
401
|
+
CoordinationType$2.OBS_COLOR_ENCODING,
|
|
402
|
+
CoordinationType$2.ADDITIONAL_OBS_SETS
|
|
403
|
+
],
|
|
404
|
+
[ViewType$2.OBS_SETS]: [
|
|
405
|
+
CoordinationType$2.DATASET,
|
|
406
|
+
CoordinationType$2.OBS_TYPE,
|
|
407
|
+
CoordinationType$2.OBS_SET_SELECTION,
|
|
408
|
+
CoordinationType$2.OBS_SET_HIGHLIGHT,
|
|
409
|
+
CoordinationType$2.OBS_SET_COLOR,
|
|
410
|
+
CoordinationType$2.OBS_COLOR_ENCODING,
|
|
411
|
+
CoordinationType$2.ADDITIONAL_OBS_SETS,
|
|
412
|
+
CoordinationType$2.FEATURE_SELECTION
|
|
413
|
+
],
|
|
414
|
+
[ViewType$2.OBS_SET_SIZES]: [
|
|
415
|
+
CoordinationType$2.DATASET,
|
|
416
|
+
CoordinationType$2.OBS_TYPE,
|
|
417
|
+
CoordinationType$2.OBS_SET_SELECTION,
|
|
418
|
+
CoordinationType$2.OBS_SET_HIGHLIGHT,
|
|
419
|
+
CoordinationType$2.OBS_SET_COLOR,
|
|
420
|
+
CoordinationType$2.ADDITIONAL_OBS_SETS
|
|
421
|
+
],
|
|
422
|
+
[ViewType$2.STATUS]: [
|
|
423
|
+
CoordinationType$2.DATASET,
|
|
424
|
+
CoordinationType$2.OBS_HIGHLIGHT,
|
|
425
|
+
CoordinationType$2.FEATURE_HIGHLIGHT,
|
|
426
|
+
CoordinationType$2.OBS_SET_HIGHLIGHT,
|
|
427
|
+
CoordinationType$2.MOLECULE_HIGHLIGHT
|
|
428
|
+
],
|
|
429
|
+
[ViewType$2.FEATURE_LIST]: [
|
|
430
|
+
CoordinationType$2.DATASET,
|
|
431
|
+
CoordinationType$2.OBS_TYPE,
|
|
432
|
+
CoordinationType$2.FEATURE_TYPE,
|
|
433
|
+
CoordinationType$2.FEATURE_VALUE_TYPE,
|
|
434
|
+
CoordinationType$2.FEATURE_FILTER,
|
|
435
|
+
CoordinationType$2.FEATURE_HIGHLIGHT,
|
|
436
|
+
CoordinationType$2.FEATURE_SELECTION,
|
|
437
|
+
CoordinationType$2.OBS_COLOR_ENCODING,
|
|
438
|
+
CoordinationType$2.OBS_SET_SELECTION
|
|
439
|
+
],
|
|
440
|
+
[ViewType$2.OBS_SET_FEATURE_VALUE_DISTRIBUTION]: [
|
|
441
|
+
CoordinationType$2.DATASET,
|
|
442
|
+
CoordinationType$2.OBS_TYPE,
|
|
443
|
+
CoordinationType$2.FEATURE_TYPE,
|
|
444
|
+
CoordinationType$2.FEATURE_VALUE_TYPE,
|
|
445
|
+
CoordinationType$2.FEATURE_SELECTION,
|
|
446
|
+
CoordinationType$2.FEATURE_VALUE_TRANSFORM,
|
|
447
|
+
CoordinationType$2.FEATURE_VALUE_TRANSFORM_COEFFICIENT,
|
|
448
|
+
CoordinationType$2.OBS_SET_SELECTION,
|
|
449
|
+
CoordinationType$2.OBS_SET_HIGHLIGHT,
|
|
450
|
+
CoordinationType$2.OBS_SET_COLOR,
|
|
451
|
+
CoordinationType$2.ADDITIONAL_OBS_SETS
|
|
452
|
+
],
|
|
453
|
+
[ViewType$2.FEATURE_VALUE_HISTOGRAM]: [
|
|
454
|
+
CoordinationType$2.DATASET,
|
|
455
|
+
CoordinationType$2.OBS_TYPE,
|
|
456
|
+
CoordinationType$2.FEATURE_TYPE,
|
|
457
|
+
CoordinationType$2.FEATURE_VALUE_TYPE,
|
|
458
|
+
CoordinationType$2.FEATURE_SELECTION
|
|
459
|
+
],
|
|
460
|
+
[ViewType$2.LAYER_CONTROLLER]: [
|
|
461
|
+
CoordinationType$2.DATASET,
|
|
462
|
+
CoordinationType$2.OBS_TYPE,
|
|
463
|
+
CoordinationType$2.FEATURE_TYPE,
|
|
464
|
+
CoordinationType$2.FEATURE_VALUE_TYPE,
|
|
465
|
+
CoordinationType$2.SPATIAL_IMAGE_LAYER,
|
|
466
|
+
CoordinationType$2.SPATIAL_SEGMENTATION_LAYER,
|
|
467
|
+
CoordinationType$2.SPATIAL_POINT_LAYER,
|
|
468
|
+
CoordinationType$2.SPATIAL_NEIGHBORHOOD_LAYER,
|
|
469
|
+
CoordinationType$2.SPATIAL_ZOOM,
|
|
470
|
+
CoordinationType$2.SPATIAL_TARGET_X,
|
|
471
|
+
CoordinationType$2.SPATIAL_TARGET_Y,
|
|
472
|
+
CoordinationType$2.SPATIAL_TARGET_Z,
|
|
473
|
+
CoordinationType$2.SPATIAL_ROTATION_X,
|
|
474
|
+
CoordinationType$2.SPATIAL_ROTATION_Y,
|
|
475
|
+
CoordinationType$2.SPATIAL_ROTATION_Z,
|
|
476
|
+
CoordinationType$2.SPATIAL_ROTATION_ORBIT,
|
|
477
|
+
CoordinationType$2.SPATIAL_ORBIT_AXIS
|
|
478
|
+
],
|
|
479
|
+
[ViewType$2.GENOMIC_PROFILES]: [
|
|
480
|
+
CoordinationType$2.DATASET,
|
|
481
|
+
CoordinationType$2.OBS_TYPE,
|
|
482
|
+
CoordinationType$2.FEATURE_TYPE,
|
|
483
|
+
CoordinationType$2.FEATURE_VALUE_TYPE,
|
|
484
|
+
CoordinationType$2.GENOMIC_ZOOM_X,
|
|
485
|
+
CoordinationType$2.GENOMIC_ZOOM_Y,
|
|
486
|
+
CoordinationType$2.GENOMIC_TARGET_X,
|
|
487
|
+
CoordinationType$2.GENOMIC_TARGET_Y,
|
|
488
|
+
CoordinationType$2.FEATURE_FILTER,
|
|
489
|
+
CoordinationType$2.FEATURE_HIGHLIGHT,
|
|
490
|
+
CoordinationType$2.FEATURE_SELECTION,
|
|
491
|
+
CoordinationType$2.OBS_SET_SELECTION,
|
|
492
|
+
CoordinationType$2.OBS_SET_HIGHLIGHT,
|
|
493
|
+
CoordinationType$2.OBS_SET_COLOR,
|
|
494
|
+
CoordinationType$2.ADDITIONAL_OBS_SETS
|
|
495
|
+
],
|
|
496
|
+
[ViewType$2.DESCRIPTION]: [
|
|
497
|
+
CoordinationType$2.DATASET,
|
|
498
|
+
CoordinationType$2.SPATIAL_IMAGE_LAYER
|
|
499
|
+
],
|
|
500
|
+
higlass: [
|
|
501
|
+
CoordinationType$2.DATASET,
|
|
502
|
+
CoordinationType$2.GENOMIC_ZOOM_X,
|
|
503
|
+
CoordinationType$2.GENOMIC_ZOOM_Y,
|
|
504
|
+
CoordinationType$2.GENOMIC_TARGET_X,
|
|
505
|
+
CoordinationType$2.GENOMIC_TARGET_Y,
|
|
506
|
+
CoordinationType$2.FEATURE_FILTER,
|
|
507
|
+
CoordinationType$2.FEATURE_HIGHLIGHT,
|
|
508
|
+
CoordinationType$2.FEATURE_SELECTION
|
|
509
|
+
]
|
|
510
|
+
});
|
|
511
|
+
const ViewType$1 = {
|
|
512
|
+
GENES: [
|
|
513
|
+
"genes",
|
|
514
|
+
"This view type was renamed to featureList in schema version 1.0.15."
|
|
515
|
+
],
|
|
516
|
+
CELL_SETS: [
|
|
517
|
+
"cellSets",
|
|
518
|
+
"This view type was renamed to obsSets in schema version 1.0.15."
|
|
519
|
+
],
|
|
520
|
+
CELL_SET_SIZES: [
|
|
521
|
+
"cellSetSizes",
|
|
522
|
+
"This view type was renamed to obsSetSizes in schema version 1.0.15."
|
|
523
|
+
],
|
|
524
|
+
CELL_SET_EXPRESSION: [
|
|
525
|
+
"cellSetExpression",
|
|
526
|
+
"This view type was renamed to obsSetFeatureValueDistribution in schema version 1.0.15."
|
|
527
|
+
],
|
|
528
|
+
EXPRESSION_HISTOGRAM: [
|
|
529
|
+
"expressionHistogram",
|
|
530
|
+
"This view type was renamed to featureValueHistogram in schema version 1.0.15."
|
|
531
|
+
]
|
|
532
|
+
};
|
|
533
|
+
const DataType$1 = {
|
|
534
|
+
CELLS: [
|
|
535
|
+
"cells",
|
|
536
|
+
"This data type was removed. Associated file types were re-implemented as joint file types. See obsEmbedding instead."
|
|
537
|
+
],
|
|
538
|
+
CELL_SETS: [
|
|
539
|
+
"cell-sets",
|
|
540
|
+
"This data type was removed. Associated file types were re-implemented as joint file types. See obsSets instead."
|
|
541
|
+
],
|
|
542
|
+
EXPRESSION_MATRIX: [
|
|
543
|
+
"expression-matrix",
|
|
544
|
+
"This data type was removed. Associated file types were re-implemented as joint file types. See obsFeatureMatrix instead."
|
|
545
|
+
],
|
|
546
|
+
MOLECULES: [
|
|
547
|
+
"molecules",
|
|
548
|
+
"This data type was removed. Associated file types were re-implemented as joint file types. See obsLocations instead."
|
|
549
|
+
],
|
|
550
|
+
RASTER: [
|
|
551
|
+
"raster",
|
|
552
|
+
"This data type was removed. Associated file types were re-implemented as joint file types. See image and obsSegmentations instead."
|
|
553
|
+
]
|
|
554
|
+
};
|
|
555
|
+
const FileType$1 = {};
|
|
556
|
+
function makeChangeMessage(newTypeName, newVersion) {
|
|
557
|
+
return `This coordination type was changed to ${newTypeName} in view config schema version ${newVersion}`;
|
|
558
|
+
}
|
|
559
|
+
const CoordinationType$1 = {
|
|
560
|
+
SPATIAL_LAYERS: [
|
|
561
|
+
"spatialLayers",
|
|
562
|
+
"This coordination type was split into multiple coordination types in view config schema version 1.0.1"
|
|
563
|
+
],
|
|
564
|
+
SPATIAL_RASTER_LAYERS: [
|
|
565
|
+
"spatialRasterLayers",
|
|
566
|
+
makeChangeMessage("spatialImageLayer", "1.0.11")
|
|
567
|
+
],
|
|
568
|
+
SPATIAL_CELLS_LAYER: [
|
|
569
|
+
"spatialCellsLayer",
|
|
570
|
+
makeChangeMessage("spatialSegmentationLayer", "1.0.11")
|
|
571
|
+
],
|
|
572
|
+
SPATIAL_MOLECULES_LAYER: [
|
|
573
|
+
"spatialMoleculesLayer",
|
|
574
|
+
makeChangeMessage("spatialPointLayer", "1.0.11")
|
|
575
|
+
],
|
|
576
|
+
SPATIAL_NEIGHBORHOODS_LAYER: [
|
|
577
|
+
"spatialNeighborhoodsLayer",
|
|
578
|
+
makeChangeMessage("spatialNeighborhoodLayer", "1.0.11")
|
|
579
|
+
],
|
|
580
|
+
EMBEDDING_CELL_SET_POLYGONS_VISIBLE: [
|
|
581
|
+
"embeddingCellSetPolygonsVisible",
|
|
582
|
+
makeChangeMessage("embeddingObsSetPolygonsVisible", "1.0.11")
|
|
583
|
+
],
|
|
584
|
+
EMBEDDING_CELL_SET_LABELS_VISIBLE: [
|
|
585
|
+
"embeddingCellSetLabelsVisible",
|
|
586
|
+
makeChangeMessage("embeddingObsSetLabelsVisible", "1.0.11")
|
|
587
|
+
],
|
|
588
|
+
EMBEDDING_CELL_SET_LABEL_SIZE: [
|
|
589
|
+
"embeddingCellSetLabelSize",
|
|
590
|
+
makeChangeMessage("embeddingObsSetLabelSize", "1.0.11")
|
|
591
|
+
],
|
|
592
|
+
EMBEDDING_CELL_RADIUS: [
|
|
593
|
+
"embeddingCellRadius",
|
|
594
|
+
makeChangeMessage("embeddingObsRadius", "1.0.11")
|
|
595
|
+
],
|
|
596
|
+
EMBEDDING_CELL_RADIUS_MODE: [
|
|
597
|
+
"embeddingCellRadiusMode",
|
|
598
|
+
makeChangeMessage("embeddingObsRadiusMode", "1.0.11")
|
|
599
|
+
],
|
|
600
|
+
EMBEDDING_CELL_OPACITY: [
|
|
601
|
+
"embeddingCellOpacity",
|
|
602
|
+
makeChangeMessage("embeddingObsOpacity", "1.0.11")
|
|
603
|
+
],
|
|
604
|
+
EMBEDDING_CELL_OPACITY_MODE: [
|
|
605
|
+
"embeddingCellOpacityMode",
|
|
606
|
+
makeChangeMessage("embeddingObsOpacityMode", "1.0.11")
|
|
607
|
+
],
|
|
608
|
+
CELL_FILTER: [
|
|
609
|
+
"cellFilter",
|
|
610
|
+
makeChangeMessage("obsFilter", "1.0.11")
|
|
611
|
+
],
|
|
612
|
+
CELL_HIGHLIGHT: [
|
|
613
|
+
"cellHighlight",
|
|
614
|
+
makeChangeMessage("obsHighlight", "1.0.11")
|
|
615
|
+
],
|
|
616
|
+
CELL_SET_SELECTION: [
|
|
617
|
+
"cellSetSelection",
|
|
618
|
+
makeChangeMessage("obsSetSelection", "1.0.11")
|
|
619
|
+
],
|
|
620
|
+
CELL_SET_HIGHLIGHT: [
|
|
621
|
+
"cellSetHighlight",
|
|
622
|
+
makeChangeMessage("obsSetHighlight", "1.0.11")
|
|
623
|
+
],
|
|
624
|
+
CELL_SET_COLOR: [
|
|
625
|
+
"cellSetColor",
|
|
626
|
+
makeChangeMessage("obsSetColor", "1.0.11")
|
|
627
|
+
],
|
|
628
|
+
CELL_COLOR_ENCODING: [
|
|
629
|
+
"cellColorEncoding",
|
|
630
|
+
makeChangeMessage("obsColorEncoding", "1.0.11")
|
|
631
|
+
],
|
|
632
|
+
ADDITIONAL_CELL_SETS: [
|
|
633
|
+
"additionalCellSets",
|
|
634
|
+
makeChangeMessage("additionalObsSets", "1.0.11")
|
|
635
|
+
],
|
|
636
|
+
GENE_FILTER: [
|
|
637
|
+
"geneFilter",
|
|
638
|
+
makeChangeMessage("featureFilter", "1.0.11")
|
|
639
|
+
],
|
|
640
|
+
GENE_HIGHLIGHT: [
|
|
641
|
+
"geneHighlight",
|
|
642
|
+
makeChangeMessage("featureHighlight", "1.0.11")
|
|
643
|
+
],
|
|
644
|
+
GENE_SELECTION: [
|
|
645
|
+
"geneSelection",
|
|
646
|
+
makeChangeMessage("featureSelection", "1.0.11")
|
|
647
|
+
],
|
|
648
|
+
GENE_EXPRESSION_COLORMAP: [
|
|
649
|
+
"geneExpressionColormap",
|
|
650
|
+
makeChangeMessage("featureValueColormap", "1.0.11")
|
|
651
|
+
],
|
|
652
|
+
GENE_EXPRESSION_TRANSFORM: [
|
|
653
|
+
"geneExpressionTransform",
|
|
654
|
+
makeChangeMessage("featureValueTransform", "1.0.11")
|
|
655
|
+
],
|
|
656
|
+
GENE_EXPRESSION_COLORMAP_RANGE: [
|
|
657
|
+
"geneExpressionColormapRange",
|
|
658
|
+
makeChangeMessage("featureValueColormapRange", "1.0.11")
|
|
659
|
+
]
|
|
660
|
+
};
|
|
661
|
+
function makeConstantWithDeprecationMessage(currObj, oldObj) {
|
|
662
|
+
const handler = {
|
|
663
|
+
get(obj, prop) {
|
|
664
|
+
const oldKeys = Object.keys(oldObj);
|
|
665
|
+
if (oldKeys.includes(prop)) {
|
|
666
|
+
console.warn(`Notice about the constant mapping ${prop}: '${oldObj[prop][0]}':
|
|
667
|
+
${oldObj[prop][1]}`);
|
|
668
|
+
return oldObj[prop];
|
|
669
|
+
}
|
|
670
|
+
return obj[prop];
|
|
671
|
+
}
|
|
672
|
+
};
|
|
673
|
+
const objWithMessage = new Proxy(currObj, handler);
|
|
674
|
+
return objWithMessage;
|
|
675
|
+
}
|
|
676
|
+
const ViewType = makeConstantWithDeprecationMessage(
|
|
677
|
+
ViewType$2,
|
|
678
|
+
ViewType$1
|
|
679
|
+
);
|
|
680
|
+
const DataType = makeConstantWithDeprecationMessage(
|
|
681
|
+
DataType$2,
|
|
682
|
+
DataType$1
|
|
683
|
+
);
|
|
684
|
+
const FileType = makeConstantWithDeprecationMessage(
|
|
685
|
+
FileType$2,
|
|
686
|
+
FileType$1
|
|
687
|
+
);
|
|
688
|
+
const CoordinationType = makeConstantWithDeprecationMessage(
|
|
689
|
+
CoordinationType$2,
|
|
690
|
+
CoordinationType$1
|
|
691
|
+
);
|
|
692
|
+
export {
|
|
693
|
+
CoordinationType,
|
|
694
|
+
DataType,
|
|
695
|
+
FileType,
|
|
696
|
+
ViewType
|
|
697
|
+
};
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/constants",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"author": "Gehlenborg Lab",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -8,15 +8,15 @@
|
|
|
8
8
|
"url": "git+https://github.com/vitessce/vitessce.git"
|
|
9
9
|
},
|
|
10
10
|
"license": "MIT",
|
|
11
|
-
"main": "dist/index.
|
|
11
|
+
"main": "dist/index.mjs",
|
|
12
12
|
"files": [
|
|
13
|
-
"dist"
|
|
13
|
+
"dist",
|
|
14
|
+
"src"
|
|
14
15
|
],
|
|
15
16
|
"dependencies": {
|
|
16
|
-
"@vitessce/constants-internal": "2.0.
|
|
17
|
+
"@vitessce/constants-internal": "2.0.3"
|
|
17
18
|
},
|
|
18
19
|
"scripts": {
|
|
19
|
-
"
|
|
20
|
-
"build": "tsc"
|
|
20
|
+
"bundle": "pnpm exec vite build -c ../../scripts/vite.config.js"
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The exports from this file are not intended to be used for internal development.
|
|
3
|
+
* They are only meant to be exported from the package's main index.js to enable
|
|
4
|
+
* backwards compatibility.
|
|
5
|
+
*/
|
|
6
|
+
import {
|
|
7
|
+
ViewType as ViewTypeCurr,
|
|
8
|
+
DataType as DataTypeCurr,
|
|
9
|
+
FileType as FileTypeCurr,
|
|
10
|
+
CoordinationType as CoordinationTypeCurr,
|
|
11
|
+
} from '@vitessce/constants-internal';
|
|
12
|
+
import {
|
|
13
|
+
ViewType as ViewTypeOld,
|
|
14
|
+
DataType as DataTypeOld,
|
|
15
|
+
FileType as FileTypeOld,
|
|
16
|
+
CoordinationType as CoordinationTypeOld,
|
|
17
|
+
} from './constants-old';
|
|
18
|
+
|
|
19
|
+
function makeConstantWithDeprecationMessage(currObj, oldObj) {
|
|
20
|
+
const handler = {
|
|
21
|
+
get(obj, prop) {
|
|
22
|
+
const oldKeys = Object.keys(oldObj);
|
|
23
|
+
if (oldKeys.includes(prop)) {
|
|
24
|
+
console.warn(`Notice about the constant mapping ${prop}: '${oldObj[prop][0]}':\n${oldObj[prop][1]}`);
|
|
25
|
+
return oldObj[prop];
|
|
26
|
+
}
|
|
27
|
+
return obj[prop];
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
const objWithMessage = new Proxy(currObj, handler);
|
|
31
|
+
return objWithMessage;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export const ViewType = makeConstantWithDeprecationMessage(
|
|
35
|
+
ViewTypeCurr,
|
|
36
|
+
ViewTypeOld,
|
|
37
|
+
);
|
|
38
|
+
export const DataType = makeConstantWithDeprecationMessage(
|
|
39
|
+
DataTypeCurr,
|
|
40
|
+
DataTypeOld,
|
|
41
|
+
);
|
|
42
|
+
export const FileType = makeConstantWithDeprecationMessage(
|
|
43
|
+
FileTypeCurr,
|
|
44
|
+
FileTypeOld,
|
|
45
|
+
);
|
|
46
|
+
export const CoordinationType = makeConstantWithDeprecationMessage(
|
|
47
|
+
CoordinationTypeCurr,
|
|
48
|
+
CoordinationTypeOld,
|
|
49
|
+
);
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Old constant values with deprecation log messages.
|
|
3
|
+
* Values should be tuples like [oldValue, deprecationMessage].
|
|
4
|
+
*/
|
|
5
|
+
export const ViewType = {
|
|
6
|
+
GENES: [
|
|
7
|
+
'genes',
|
|
8
|
+
'This view type was renamed to featureList in schema version 1.0.15.',
|
|
9
|
+
],
|
|
10
|
+
CELL_SETS: [
|
|
11
|
+
'cellSets',
|
|
12
|
+
'This view type was renamed to obsSets in schema version 1.0.15.',
|
|
13
|
+
],
|
|
14
|
+
CELL_SET_SIZES: [
|
|
15
|
+
'cellSetSizes',
|
|
16
|
+
'This view type was renamed to obsSetSizes in schema version 1.0.15.',
|
|
17
|
+
],
|
|
18
|
+
CELL_SET_EXPRESSION: [
|
|
19
|
+
'cellSetExpression',
|
|
20
|
+
'This view type was renamed to obsSetFeatureValueDistribution in schema version 1.0.15.',
|
|
21
|
+
],
|
|
22
|
+
EXPRESSION_HISTOGRAM: [
|
|
23
|
+
'expressionHistogram',
|
|
24
|
+
'This view type was renamed to featureValueHistogram in schema version 1.0.15.',
|
|
25
|
+
],
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export const DataType = {
|
|
29
|
+
CELLS: [
|
|
30
|
+
'cells',
|
|
31
|
+
'This data type was removed. Associated file types were re-implemented as joint file types. See obsEmbedding instead.',
|
|
32
|
+
],
|
|
33
|
+
CELL_SETS: [
|
|
34
|
+
'cell-sets',
|
|
35
|
+
'This data type was removed. Associated file types were re-implemented as joint file types. See obsSets instead.',
|
|
36
|
+
],
|
|
37
|
+
EXPRESSION_MATRIX: [
|
|
38
|
+
'expression-matrix',
|
|
39
|
+
'This data type was removed. Associated file types were re-implemented as joint file types. See obsFeatureMatrix instead.',
|
|
40
|
+
],
|
|
41
|
+
MOLECULES: [
|
|
42
|
+
'molecules',
|
|
43
|
+
'This data type was removed. Associated file types were re-implemented as joint file types. See obsLocations instead.',
|
|
44
|
+
],
|
|
45
|
+
RASTER: [
|
|
46
|
+
'raster',
|
|
47
|
+
'This data type was removed. Associated file types were re-implemented as joint file types. See image and obsSegmentations instead.',
|
|
48
|
+
],
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
export const FileType = {};
|
|
52
|
+
|
|
53
|
+
function makeChangeMessage(newTypeName, newVersion) {
|
|
54
|
+
return `This coordination type was changed to ${newTypeName} in view config schema version ${newVersion}`;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export const CoordinationType = {
|
|
58
|
+
SPATIAL_LAYERS: [
|
|
59
|
+
'spatialLayers',
|
|
60
|
+
'This coordination type was split into multiple coordination types in view config schema version 1.0.1',
|
|
61
|
+
],
|
|
62
|
+
// Spatial layers
|
|
63
|
+
SPATIAL_RASTER_LAYERS: [
|
|
64
|
+
'spatialRasterLayers',
|
|
65
|
+
makeChangeMessage('spatialImageLayer', '1.0.11'),
|
|
66
|
+
],
|
|
67
|
+
SPATIAL_CELLS_LAYER: [
|
|
68
|
+
'spatialCellsLayer',
|
|
69
|
+
makeChangeMessage('spatialSegmentationLayer', '1.0.11'),
|
|
70
|
+
],
|
|
71
|
+
SPATIAL_MOLECULES_LAYER: [
|
|
72
|
+
'spatialMoleculesLayer',
|
|
73
|
+
makeChangeMessage('spatialPointLayer', '1.0.11'),
|
|
74
|
+
],
|
|
75
|
+
SPATIAL_NEIGHBORHOODS_LAYER: [
|
|
76
|
+
'spatialNeighborhoodsLayer',
|
|
77
|
+
makeChangeMessage('spatialNeighborhoodLayer', '1.0.11'),
|
|
78
|
+
],
|
|
79
|
+
// Cell -> Obs
|
|
80
|
+
EMBEDDING_CELL_SET_POLYGONS_VISIBLE: [
|
|
81
|
+
'embeddingCellSetPolygonsVisible',
|
|
82
|
+
makeChangeMessage('embeddingObsSetPolygonsVisible', '1.0.11'),
|
|
83
|
+
],
|
|
84
|
+
EMBEDDING_CELL_SET_LABELS_VISIBLE: [
|
|
85
|
+
'embeddingCellSetLabelsVisible',
|
|
86
|
+
makeChangeMessage('embeddingObsSetLabelsVisible', '1.0.11'),
|
|
87
|
+
],
|
|
88
|
+
EMBEDDING_CELL_SET_LABEL_SIZE: [
|
|
89
|
+
'embeddingCellSetLabelSize',
|
|
90
|
+
makeChangeMessage('embeddingObsSetLabelSize', '1.0.11'),
|
|
91
|
+
],
|
|
92
|
+
EMBEDDING_CELL_RADIUS: [
|
|
93
|
+
'embeddingCellRadius',
|
|
94
|
+
makeChangeMessage('embeddingObsRadius', '1.0.11'),
|
|
95
|
+
],
|
|
96
|
+
EMBEDDING_CELL_RADIUS_MODE: [
|
|
97
|
+
'embeddingCellRadiusMode',
|
|
98
|
+
makeChangeMessage('embeddingObsRadiusMode', '1.0.11'),
|
|
99
|
+
],
|
|
100
|
+
EMBEDDING_CELL_OPACITY: [
|
|
101
|
+
'embeddingCellOpacity',
|
|
102
|
+
makeChangeMessage('embeddingObsOpacity', '1.0.11'),
|
|
103
|
+
],
|
|
104
|
+
EMBEDDING_CELL_OPACITY_MODE: [
|
|
105
|
+
'embeddingCellOpacityMode',
|
|
106
|
+
makeChangeMessage('embeddingObsOpacityMode', '1.0.11'),
|
|
107
|
+
],
|
|
108
|
+
CELL_FILTER: [
|
|
109
|
+
'cellFilter',
|
|
110
|
+
makeChangeMessage('obsFilter', '1.0.11'),
|
|
111
|
+
],
|
|
112
|
+
CELL_HIGHLIGHT: [
|
|
113
|
+
'cellHighlight',
|
|
114
|
+
makeChangeMessage('obsHighlight', '1.0.11'),
|
|
115
|
+
],
|
|
116
|
+
CELL_SET_SELECTION: [
|
|
117
|
+
'cellSetSelection',
|
|
118
|
+
makeChangeMessage('obsSetSelection', '1.0.11'),
|
|
119
|
+
],
|
|
120
|
+
CELL_SET_HIGHLIGHT: [
|
|
121
|
+
'cellSetHighlight',
|
|
122
|
+
makeChangeMessage('obsSetHighlight', '1.0.11'),
|
|
123
|
+
],
|
|
124
|
+
CELL_SET_COLOR: [
|
|
125
|
+
'cellSetColor',
|
|
126
|
+
makeChangeMessage('obsSetColor', '1.0.11'),
|
|
127
|
+
],
|
|
128
|
+
CELL_COLOR_ENCODING: [
|
|
129
|
+
'cellColorEncoding',
|
|
130
|
+
makeChangeMessage('obsColorEncoding', '1.0.11'),
|
|
131
|
+
],
|
|
132
|
+
ADDITIONAL_CELL_SETS: [
|
|
133
|
+
'additionalCellSets',
|
|
134
|
+
makeChangeMessage('additionalObsSets', '1.0.11'),
|
|
135
|
+
],
|
|
136
|
+
// Gene -> Feature
|
|
137
|
+
GENE_FILTER: [
|
|
138
|
+
'geneFilter',
|
|
139
|
+
makeChangeMessage('featureFilter', '1.0.11'),
|
|
140
|
+
],
|
|
141
|
+
GENE_HIGHLIGHT: [
|
|
142
|
+
'geneHighlight',
|
|
143
|
+
makeChangeMessage('featureHighlight', '1.0.11'),
|
|
144
|
+
],
|
|
145
|
+
GENE_SELECTION: [
|
|
146
|
+
'geneSelection',
|
|
147
|
+
makeChangeMessage('featureSelection', '1.0.11'),
|
|
148
|
+
],
|
|
149
|
+
GENE_EXPRESSION_COLORMAP: [
|
|
150
|
+
'geneExpressionColormap',
|
|
151
|
+
makeChangeMessage('featureValueColormap', '1.0.11'),
|
|
152
|
+
],
|
|
153
|
+
GENE_EXPRESSION_TRANSFORM: [
|
|
154
|
+
'geneExpressionTransform',
|
|
155
|
+
makeChangeMessage('featureValueTransform', '1.0.11'),
|
|
156
|
+
],
|
|
157
|
+
GENE_EXPRESSION_COLORMAP_RANGE: [
|
|
158
|
+
'geneExpressionColormapRange',
|
|
159
|
+
makeChangeMessage('featureValueColormapRange', '1.0.11'),
|
|
160
|
+
],
|
|
161
|
+
};
|
package/src/index.js
ADDED
package/dist/constants-merged.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The exports from this file are not intended to be used for internal development.
|
|
3
|
-
* They are only meant to be exported from the package's main index.js to enable
|
|
4
|
-
* backwards compatibility.
|
|
5
|
-
*/
|
|
6
|
-
import { ViewType as ViewTypeCurr, DataType as DataTypeCurr, FileType as FileTypeCurr, CoordinationType as CoordinationTypeCurr, } from '@vitessce/constants-internal';
|
|
7
|
-
import { ViewType as ViewTypeOld, DataType as DataTypeOld, FileType as FileTypeOld, CoordinationType as CoordinationTypeOld, } from './constants-old';
|
|
8
|
-
function makeConstantWithDeprecationMessage(currObj, oldObj) {
|
|
9
|
-
const handler = {
|
|
10
|
-
get(obj, prop) {
|
|
11
|
-
const oldKeys = Object.keys(oldObj);
|
|
12
|
-
if (oldKeys.includes(prop)) {
|
|
13
|
-
console.warn(`Notice about the constant mapping ${prop}: '${oldObj[prop][0]}':\n${oldObj[prop][1]}`);
|
|
14
|
-
return oldObj[prop];
|
|
15
|
-
}
|
|
16
|
-
return obj[prop];
|
|
17
|
-
},
|
|
18
|
-
};
|
|
19
|
-
const objWithMessage = new Proxy(currObj, handler);
|
|
20
|
-
return objWithMessage;
|
|
21
|
-
}
|
|
22
|
-
export const ViewType = makeConstantWithDeprecationMessage(ViewTypeCurr, ViewTypeOld);
|
|
23
|
-
export const DataType = makeConstantWithDeprecationMessage(DataTypeCurr, DataTypeOld);
|
|
24
|
-
export const FileType = makeConstantWithDeprecationMessage(FileTypeCurr, FileTypeOld);
|
|
25
|
-
export const CoordinationType = makeConstantWithDeprecationMessage(CoordinationTypeCurr, CoordinationTypeOld);
|
package/dist/constants-old.js
DELETED
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Old constant values with deprecation log messages.
|
|
3
|
-
* Values should be tuples like [oldValue, deprecationMessage].
|
|
4
|
-
*/
|
|
5
|
-
export const ViewType = {
|
|
6
|
-
GENES: [
|
|
7
|
-
'genes',
|
|
8
|
-
'This view type was renamed to featureList in schema version 1.0.15.',
|
|
9
|
-
],
|
|
10
|
-
CELL_SETS: [
|
|
11
|
-
'cellSets',
|
|
12
|
-
'This view type was renamed to obsSets in schema version 1.0.15.',
|
|
13
|
-
],
|
|
14
|
-
CELL_SET_SIZES: [
|
|
15
|
-
'cellSetSizes',
|
|
16
|
-
'This view type was renamed to obsSetSizes in schema version 1.0.15.',
|
|
17
|
-
],
|
|
18
|
-
CELL_SET_EXPRESSION: [
|
|
19
|
-
'cellSetExpression',
|
|
20
|
-
'This view type was renamed to obsSetFeatureValueDistribution in schema version 1.0.15.',
|
|
21
|
-
],
|
|
22
|
-
EXPRESSION_HISTOGRAM: [
|
|
23
|
-
'expressionHistogram',
|
|
24
|
-
'This view type was renamed to featureValueHistogram in schema version 1.0.15.',
|
|
25
|
-
],
|
|
26
|
-
};
|
|
27
|
-
export const DataType = {
|
|
28
|
-
CELLS: [
|
|
29
|
-
'cells',
|
|
30
|
-
'This data type was removed. Associated file types were re-implemented as joint file types. See obsEmbedding instead.',
|
|
31
|
-
],
|
|
32
|
-
CELL_SETS: [
|
|
33
|
-
'cell-sets',
|
|
34
|
-
'This data type was removed. Associated file types were re-implemented as joint file types. See obsSets instead.',
|
|
35
|
-
],
|
|
36
|
-
EXPRESSION_MATRIX: [
|
|
37
|
-
'expression-matrix',
|
|
38
|
-
'This data type was removed. Associated file types were re-implemented as joint file types. See obsFeatureMatrix instead.',
|
|
39
|
-
],
|
|
40
|
-
MOLECULES: [
|
|
41
|
-
'molecules',
|
|
42
|
-
'This data type was removed. Associated file types were re-implemented as joint file types. See obsLocations instead.',
|
|
43
|
-
],
|
|
44
|
-
RASTER: [
|
|
45
|
-
'raster',
|
|
46
|
-
'This data type was removed. Associated file types were re-implemented as joint file types. See image and obsSegmentations instead.',
|
|
47
|
-
],
|
|
48
|
-
};
|
|
49
|
-
export const FileType = {};
|
|
50
|
-
function makeChangeMessage(newTypeName, newVersion) {
|
|
51
|
-
return `This coordination type was changed to ${newTypeName} in view config schema version ${newVersion}`;
|
|
52
|
-
}
|
|
53
|
-
export const CoordinationType = {
|
|
54
|
-
SPATIAL_LAYERS: [
|
|
55
|
-
'spatialLayers',
|
|
56
|
-
'This coordination type was split into multiple coordination types in view config schema version 1.0.1',
|
|
57
|
-
],
|
|
58
|
-
// Spatial layers
|
|
59
|
-
SPATIAL_RASTER_LAYERS: [
|
|
60
|
-
'spatialRasterLayers',
|
|
61
|
-
makeChangeMessage('spatialImageLayer', '1.0.11'),
|
|
62
|
-
],
|
|
63
|
-
SPATIAL_CELLS_LAYER: [
|
|
64
|
-
'spatialCellsLayer',
|
|
65
|
-
makeChangeMessage('spatialSegmentationLayer', '1.0.11'),
|
|
66
|
-
],
|
|
67
|
-
SPATIAL_MOLECULES_LAYER: [
|
|
68
|
-
'spatialMoleculesLayer',
|
|
69
|
-
makeChangeMessage('spatialPointLayer', '1.0.11'),
|
|
70
|
-
],
|
|
71
|
-
SPATIAL_NEIGHBORHOODS_LAYER: [
|
|
72
|
-
'spatialNeighborhoodsLayer',
|
|
73
|
-
makeChangeMessage('spatialNeighborhoodLayer', '1.0.11'),
|
|
74
|
-
],
|
|
75
|
-
// Cell -> Obs
|
|
76
|
-
EMBEDDING_CELL_SET_POLYGONS_VISIBLE: [
|
|
77
|
-
'embeddingCellSetPolygonsVisible',
|
|
78
|
-
makeChangeMessage('embeddingObsSetPolygonsVisible', '1.0.11'),
|
|
79
|
-
],
|
|
80
|
-
EMBEDDING_CELL_SET_LABELS_VISIBLE: [
|
|
81
|
-
'embeddingCellSetLabelsVisible',
|
|
82
|
-
makeChangeMessage('embeddingObsSetLabelsVisible', '1.0.11'),
|
|
83
|
-
],
|
|
84
|
-
EMBEDDING_CELL_SET_LABEL_SIZE: [
|
|
85
|
-
'embeddingCellSetLabelSize',
|
|
86
|
-
makeChangeMessage('embeddingObsSetLabelSize', '1.0.11'),
|
|
87
|
-
],
|
|
88
|
-
EMBEDDING_CELL_RADIUS: [
|
|
89
|
-
'embeddingCellRadius',
|
|
90
|
-
makeChangeMessage('embeddingObsRadius', '1.0.11'),
|
|
91
|
-
],
|
|
92
|
-
EMBEDDING_CELL_RADIUS_MODE: [
|
|
93
|
-
'embeddingCellRadiusMode',
|
|
94
|
-
makeChangeMessage('embeddingObsRadiusMode', '1.0.11'),
|
|
95
|
-
],
|
|
96
|
-
EMBEDDING_CELL_OPACITY: [
|
|
97
|
-
'embeddingCellOpacity',
|
|
98
|
-
makeChangeMessage('embeddingObsOpacity', '1.0.11'),
|
|
99
|
-
],
|
|
100
|
-
EMBEDDING_CELL_OPACITY_MODE: [
|
|
101
|
-
'embeddingCellOpacityMode',
|
|
102
|
-
makeChangeMessage('embeddingObsOpacityMode', '1.0.11'),
|
|
103
|
-
],
|
|
104
|
-
CELL_FILTER: [
|
|
105
|
-
'cellFilter',
|
|
106
|
-
makeChangeMessage('obsFilter', '1.0.11'),
|
|
107
|
-
],
|
|
108
|
-
CELL_HIGHLIGHT: [
|
|
109
|
-
'cellHighlight',
|
|
110
|
-
makeChangeMessage('obsHighlight', '1.0.11'),
|
|
111
|
-
],
|
|
112
|
-
CELL_SET_SELECTION: [
|
|
113
|
-
'cellSetSelection',
|
|
114
|
-
makeChangeMessage('obsSetSelection', '1.0.11'),
|
|
115
|
-
],
|
|
116
|
-
CELL_SET_HIGHLIGHT: [
|
|
117
|
-
'cellSetHighlight',
|
|
118
|
-
makeChangeMessage('obsSetHighlight', '1.0.11'),
|
|
119
|
-
],
|
|
120
|
-
CELL_SET_COLOR: [
|
|
121
|
-
'cellSetColor',
|
|
122
|
-
makeChangeMessage('obsSetColor', '1.0.11'),
|
|
123
|
-
],
|
|
124
|
-
CELL_COLOR_ENCODING: [
|
|
125
|
-
'cellColorEncoding',
|
|
126
|
-
makeChangeMessage('obsColorEncoding', '1.0.11'),
|
|
127
|
-
],
|
|
128
|
-
ADDITIONAL_CELL_SETS: [
|
|
129
|
-
'additionalCellSets',
|
|
130
|
-
makeChangeMessage('additionalObsSets', '1.0.11'),
|
|
131
|
-
],
|
|
132
|
-
// Gene -> Feature
|
|
133
|
-
GENE_FILTER: [
|
|
134
|
-
'geneFilter',
|
|
135
|
-
makeChangeMessage('featureFilter', '1.0.11'),
|
|
136
|
-
],
|
|
137
|
-
GENE_HIGHLIGHT: [
|
|
138
|
-
'geneHighlight',
|
|
139
|
-
makeChangeMessage('featureHighlight', '1.0.11'),
|
|
140
|
-
],
|
|
141
|
-
GENE_SELECTION: [
|
|
142
|
-
'geneSelection',
|
|
143
|
-
makeChangeMessage('featureSelection', '1.0.11'),
|
|
144
|
-
],
|
|
145
|
-
GENE_EXPRESSION_COLORMAP: [
|
|
146
|
-
'geneExpressionColormap',
|
|
147
|
-
makeChangeMessage('featureValueColormap', '1.0.11'),
|
|
148
|
-
],
|
|
149
|
-
GENE_EXPRESSION_TRANSFORM: [
|
|
150
|
-
'geneExpressionTransform',
|
|
151
|
-
makeChangeMessage('featureValueTransform', '1.0.11'),
|
|
152
|
-
],
|
|
153
|
-
GENE_EXPRESSION_COLORMAP_RANGE: [
|
|
154
|
-
'geneExpressionColormapRange',
|
|
155
|
-
makeChangeMessage('featureValueColormapRange', '1.0.11'),
|
|
156
|
-
],
|
|
157
|
-
};
|