@vitessce/constants-internal 3.5.6 → 3.5.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +45 -6
- package/dist-tsc/constant-relationships.d.ts.map +1 -1
- package/dist-tsc/constant-relationships.js +5 -0
- package/dist-tsc/constants.d.ts +7 -0
- package/dist-tsc/constants.d.ts.map +1 -1
- package/dist-tsc/constants.js +8 -0
- package/dist-tsc/coordination.d.ts.map +1 -1
- package/dist-tsc/coordination.js +26 -0
- package/dist-tsc/version.json +3 -3
- package/package.json +1 -1
- package/src/constant-relationships.ts +5 -0
- package/src/constants.ts +8 -0
- package/src/coordination.ts +26 -0
- package/src/version.json +3 -3
package/dist/index.js
CHANGED
|
@@ -18,7 +18,8 @@ const ViewType = {
|
|
|
18
18
|
FEATURE_BAR_PLOT: "featureBarPlot",
|
|
19
19
|
BIOMARKER_SELECT: "biomarkerSelect",
|
|
20
20
|
LINK_CONTROLLER: "linkController",
|
|
21
|
-
DUAL_SCATTERPLOT: "dualScatterplot"
|
|
21
|
+
DUAL_SCATTERPLOT: "dualScatterplot",
|
|
22
|
+
TREEMAP: "treemap"
|
|
22
23
|
};
|
|
23
24
|
const DataType = {
|
|
24
25
|
OBS_LABELS: "obsLabels",
|
|
@@ -94,6 +95,7 @@ const FileType = {
|
|
|
94
95
|
OBS_LABELS_ANNDATA_ZARR: "obsLabels.anndata.zarr",
|
|
95
96
|
FEATURE_LABELS_ANNDATA_ZARR: "featureLabels.anndata.zarr",
|
|
96
97
|
SAMPLE_EDGES_ANNDATA_ZARR: "sampleEdges.anndata.zarr",
|
|
98
|
+
SAMPLE_SETS_ANNDATA_ZARR: "sampleSets.anndata.zarr",
|
|
97
99
|
// AnnData - zipped
|
|
98
100
|
OBS_FEATURE_MATRIX_ANNDATA_ZARR_ZIP: "obsFeatureMatrix.anndata.zarr.zip",
|
|
99
101
|
OBS_FEATURE_COLUMNS_ANNDATA_ZARR_ZIP: "obsFeatureColumns.anndata.zarr.zip",
|
|
@@ -106,6 +108,7 @@ const FileType = {
|
|
|
106
108
|
OBS_LABELS_ANNDATA_ZARR_ZIP: "obsLabels.anndata.zarr.zip",
|
|
107
109
|
FEATURE_LABELS_ANNDATA_ZARR_ZIP: "featureLabels.anndata.zarr.zip",
|
|
108
110
|
SAMPLE_EDGES_ANNDATA_ZARR_ZIP: "sampleEdges.anndata.zarr.zip",
|
|
111
|
+
SAMPLE_SETS_ANNDATA_ZARR_ZIP: "sampleSets.anndata.zarr.zip",
|
|
109
112
|
// AnnData - h5ad via reference spec
|
|
110
113
|
OBS_FEATURE_MATRIX_ANNDATA_H5AD: "obsFeatureMatrix.anndata.h5ad",
|
|
111
114
|
OBS_FEATURE_COLUMNS_ANNDATA_H5AD: "obsFeatureColumns.anndata.h5ad",
|
|
@@ -118,6 +121,7 @@ const FileType = {
|
|
|
118
121
|
OBS_LABELS_ANNDATA_H5AD: "obsLabels.anndata.h5ad",
|
|
119
122
|
FEATURE_LABELS_ANNDATA_H5AD: "featureLabels.anndata.h5ad",
|
|
120
123
|
SAMPLE_EDGES_ANNDATA_H5AD: "sampleEdges.anndata.h5ad",
|
|
124
|
+
SAMPLE_SETS_ANNDATA_H5AD: "sampleSets.anndata.h5ad",
|
|
121
125
|
// SpatialData
|
|
122
126
|
IMAGE_SPATIALDATA_ZARR: "image.spatialdata.zarr",
|
|
123
127
|
LABELS_SPATIALDATA_ZARR: "labels.spatialdata.zarr",
|
|
@@ -309,12 +313,15 @@ const CoordinationType = {
|
|
|
309
313
|
SAMPLE_SET_FILTER: "sampleSetFilter",
|
|
310
314
|
SAMPLE_FILTER_MODE: "sampleFilterMode",
|
|
311
315
|
SAMPLE_SET_COLOR: "sampleSetColor",
|
|
316
|
+
SAMPLE_HIGHLIGHT: "sampleHighlight",
|
|
312
317
|
EMBEDDING_POINTS_VISIBLE: "embeddingPointsVisible",
|
|
313
318
|
EMBEDDING_CONTOURS_VISIBLE: "embeddingContoursVisible",
|
|
314
319
|
EMBEDDING_CONTOURS_FILLED: "embeddingContoursFilled",
|
|
315
320
|
EMBEDDING_CONTOUR_PERCENTILES: "embeddingContourPercentiles",
|
|
316
321
|
CONTOUR_COLOR_ENCODING: "contourColorEncoding",
|
|
317
|
-
CONTOUR_COLOR: "contourColor"
|
|
322
|
+
CONTOUR_COLOR: "contourColor",
|
|
323
|
+
// Treemap
|
|
324
|
+
HIERARCHY_LEVELS: "hierarchyLevels"
|
|
318
325
|
};
|
|
319
326
|
const STATUS = {
|
|
320
327
|
LOADING: "loading",
|
|
@@ -340,7 +347,8 @@ const ViewHelpMapping = {
|
|
|
340
347
|
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
348
|
FEATURE_VALUE_HISTOGRAM: "The feature value histogram displays the distribution of values (e.g., expression) for the selected feature (e.g., gene).",
|
|
342
349
|
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."
|
|
350
|
+
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.",
|
|
351
|
+
TREEMAP: "The treemap provides an overview of the current state of sample-level or cell-level selection and filtering."
|
|
344
352
|
};
|
|
345
353
|
const FILE_TYPE_DATA_TYPE_MAPPING = {
|
|
346
354
|
// For new file types
|
|
@@ -368,6 +376,7 @@ const FILE_TYPE_DATA_TYPE_MAPPING = {
|
|
|
368
376
|
[FileType.OBS_LABELS_ANNDATA_ZARR]: DataType.OBS_LABELS,
|
|
369
377
|
[FileType.FEATURE_LABELS_ANNDATA_ZARR]: DataType.FEATURE_LABELS,
|
|
370
378
|
[FileType.SAMPLE_EDGES_ANNDATA_ZARR]: DataType.SAMPLE_EDGES,
|
|
379
|
+
[FileType.SAMPLE_SETS_ANNDATA_ZARR]: DataType.SAMPLE_SETS,
|
|
371
380
|
[FileType.IMAGE_OME_TIFF]: DataType.IMAGE,
|
|
372
381
|
[FileType.OBS_SEGMENTATIONS_OME_TIFF]: DataType.OBS_SEGMENTATIONS,
|
|
373
382
|
[FileType.OBS_FEATURE_MATRIX_MUDATA_ZARR]: DataType.OBS_FEATURE_MATRIX,
|
|
@@ -496,6 +505,10 @@ const ALT_ZARR_STORE_TYPES = {
|
|
|
496
505
|
zip: FileType.SAMPLE_EDGES_ANNDATA_ZARR_ZIP,
|
|
497
506
|
h5ad: FileType.SAMPLE_EDGES_ANNDATA_H5AD
|
|
498
507
|
},
|
|
508
|
+
[FileType.SAMPLE_SETS_ANNDATA_ZARR]: {
|
|
509
|
+
zip: FileType.SAMPLE_SETS_ANNDATA_ZARR_ZIP,
|
|
510
|
+
h5ad: FileType.SAMPLE_SETS_ANNDATA_H5AD
|
|
511
|
+
},
|
|
499
512
|
// For OME-Zarr:
|
|
500
513
|
[FileType.IMAGE_OME_ZARR]: {
|
|
501
514
|
zip: FileType.IMAGE_OME_ZARR_ZIP
|
|
@@ -997,13 +1010,39 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
|
997
1010
|
CoordinationType.OBS_SET_SELECTION,
|
|
998
1011
|
CoordinationType.OBS_SET_FILTER
|
|
999
1012
|
// TODO: create coordination types for internal state of the biomarker selection view?
|
|
1013
|
+
],
|
|
1014
|
+
[ViewType.TREEMAP]: [
|
|
1015
|
+
CoordinationType.DATASET,
|
|
1016
|
+
CoordinationType.OBS_TYPE,
|
|
1017
|
+
CoordinationType.FEATURE_TYPE,
|
|
1018
|
+
CoordinationType.FEATURE_VALUE_TYPE,
|
|
1019
|
+
CoordinationType.OBS_FILTER,
|
|
1020
|
+
CoordinationType.OBS_HIGHLIGHT,
|
|
1021
|
+
CoordinationType.OBS_SET_SELECTION,
|
|
1022
|
+
CoordinationType.OBS_SET_FILTER,
|
|
1023
|
+
CoordinationType.OBS_SELECTION,
|
|
1024
|
+
CoordinationType.OBS_SELECTION_MODE,
|
|
1025
|
+
CoordinationType.OBS_SET_HIGHLIGHT,
|
|
1026
|
+
CoordinationType.OBS_SET_COLOR,
|
|
1027
|
+
CoordinationType.OBS_COLOR_ENCODING,
|
|
1028
|
+
CoordinationType.ADDITIONAL_OBS_SETS,
|
|
1029
|
+
CoordinationType.SAMPLE_TYPE,
|
|
1030
|
+
CoordinationType.SAMPLE_SET_SELECTION,
|
|
1031
|
+
CoordinationType.SAMPLE_SET_FILTER,
|
|
1032
|
+
CoordinationType.SAMPLE_SET_COLOR,
|
|
1033
|
+
CoordinationType.SAMPLE_SELECTION,
|
|
1034
|
+
CoordinationType.SAMPLE_SELECTION_MODE,
|
|
1035
|
+
CoordinationType.SAMPLE_FILTER,
|
|
1036
|
+
CoordinationType.SAMPLE_FILTER_MODE,
|
|
1037
|
+
CoordinationType.SAMPLE_HIGHLIGHT,
|
|
1038
|
+
CoordinationType.HIERARCHY_LEVELS
|
|
1000
1039
|
]
|
|
1001
1040
|
};
|
|
1002
1041
|
const note = "This file is autogenerated by .changeset/post-changelog.mjs.";
|
|
1003
|
-
const version = "3.5.
|
|
1004
|
-
const date = "2025-
|
|
1042
|
+
const version = "3.5.7";
|
|
1043
|
+
const date = "2025-02-19";
|
|
1005
1044
|
const branch = "changeset-release/main";
|
|
1006
|
-
const hash = "
|
|
1045
|
+
const hash = "a4bc3a6a";
|
|
1007
1046
|
const version$1 = {
|
|
1008
1047
|
note,
|
|
1009
1048
|
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;;CAgEvC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,kCAAkC;;CA6C9C,CAAC;AAKF,eAAO,MAAM,oBAAoB;;;;;;;;CAyDhC,CAAC"}
|
|
@@ -30,6 +30,7 @@ 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,
|
|
33
34
|
[FileType.IMAGE_OME_TIFF]: DataType.IMAGE,
|
|
34
35
|
[FileType.OBS_SEGMENTATIONS_OME_TIFF]: DataType.OBS_SEGMENTATIONS,
|
|
35
36
|
[FileType.OBS_FEATURE_MATRIX_MUDATA_ZARR]: DataType.OBS_FEATURE_MATRIX,
|
|
@@ -166,6 +167,10 @@ export const ALT_ZARR_STORE_TYPES = {
|
|
|
166
167
|
zip: FileType.SAMPLE_EDGES_ANNDATA_ZARR_ZIP,
|
|
167
168
|
h5ad: FileType.SAMPLE_EDGES_ANNDATA_H5AD,
|
|
168
169
|
},
|
|
170
|
+
[FileType.SAMPLE_SETS_ANNDATA_ZARR]: {
|
|
171
|
+
zip: FileType.SAMPLE_SETS_ANNDATA_ZARR_ZIP,
|
|
172
|
+
h5ad: FileType.SAMPLE_SETS_ANNDATA_H5AD,
|
|
173
|
+
},
|
|
169
174
|
// For OME-Zarr:
|
|
170
175
|
[FileType.IMAGE_OME_ZARR]: {
|
|
171
176
|
zip: FileType.IMAGE_OME_ZARR_ZIP,
|
package/dist-tsc/constants.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ export declare const ViewType: {
|
|
|
24
24
|
BIOMARKER_SELECT: string;
|
|
25
25
|
LINK_CONTROLLER: string;
|
|
26
26
|
DUAL_SCATTERPLOT: string;
|
|
27
|
+
TREEMAP: string;
|
|
27
28
|
};
|
|
28
29
|
export declare const DataType: {
|
|
29
30
|
OBS_LABELS: string;
|
|
@@ -83,6 +84,7 @@ export declare const FileType: {
|
|
|
83
84
|
OBS_LABELS_ANNDATA_ZARR: string;
|
|
84
85
|
FEATURE_LABELS_ANNDATA_ZARR: string;
|
|
85
86
|
SAMPLE_EDGES_ANNDATA_ZARR: string;
|
|
87
|
+
SAMPLE_SETS_ANNDATA_ZARR: string;
|
|
86
88
|
OBS_FEATURE_MATRIX_ANNDATA_ZARR_ZIP: string;
|
|
87
89
|
OBS_FEATURE_COLUMNS_ANNDATA_ZARR_ZIP: string;
|
|
88
90
|
OBS_SETS_ANNDATA_ZARR_ZIP: string;
|
|
@@ -94,6 +96,7 @@ export declare const FileType: {
|
|
|
94
96
|
OBS_LABELS_ANNDATA_ZARR_ZIP: string;
|
|
95
97
|
FEATURE_LABELS_ANNDATA_ZARR_ZIP: string;
|
|
96
98
|
SAMPLE_EDGES_ANNDATA_ZARR_ZIP: string;
|
|
99
|
+
SAMPLE_SETS_ANNDATA_ZARR_ZIP: string;
|
|
97
100
|
OBS_FEATURE_MATRIX_ANNDATA_H5AD: string;
|
|
98
101
|
OBS_FEATURE_COLUMNS_ANNDATA_H5AD: string;
|
|
99
102
|
OBS_SETS_ANNDATA_H5AD: string;
|
|
@@ -105,6 +108,7 @@ export declare const FileType: {
|
|
|
105
108
|
OBS_LABELS_ANNDATA_H5AD: string;
|
|
106
109
|
FEATURE_LABELS_ANNDATA_H5AD: string;
|
|
107
110
|
SAMPLE_EDGES_ANNDATA_H5AD: string;
|
|
111
|
+
SAMPLE_SETS_ANNDATA_H5AD: string;
|
|
108
112
|
IMAGE_SPATIALDATA_ZARR: string;
|
|
109
113
|
LABELS_SPATIALDATA_ZARR: string;
|
|
110
114
|
SHAPES_SPATIALDATA_ZARR: string;
|
|
@@ -272,12 +276,14 @@ export declare const CoordinationType: {
|
|
|
272
276
|
SAMPLE_SET_FILTER: string;
|
|
273
277
|
SAMPLE_FILTER_MODE: string;
|
|
274
278
|
SAMPLE_SET_COLOR: string;
|
|
279
|
+
SAMPLE_HIGHLIGHT: string;
|
|
275
280
|
EMBEDDING_POINTS_VISIBLE: string;
|
|
276
281
|
EMBEDDING_CONTOURS_VISIBLE: string;
|
|
277
282
|
EMBEDDING_CONTOURS_FILLED: string;
|
|
278
283
|
EMBEDDING_CONTOUR_PERCENTILES: string;
|
|
279
284
|
CONTOUR_COLOR_ENCODING: string;
|
|
280
285
|
CONTOUR_COLOR: string;
|
|
286
|
+
HIERARCHY_LEVELS: string;
|
|
281
287
|
};
|
|
282
288
|
export declare const STATUS: {
|
|
283
289
|
LOADING: string;
|
|
@@ -308,5 +314,6 @@ export declare const ViewHelpMapping: {
|
|
|
308
314
|
FEATURE_VALUE_HISTOGRAM: string;
|
|
309
315
|
DOT_PLOT: string;
|
|
310
316
|
FEATURE_BAR_PLOT: string;
|
|
317
|
+
TREEMAP: string;
|
|
311
318
|
};
|
|
312
319
|
//# 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;;;;;;;;;;;;;;;;;;;;;;CAsBpB,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;CAepB,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;;CAc7B,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2HpB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsI5B,CAAC;AAEF,eAAO,MAAM,MAAM;;;;CAIlB,CAAC;AAEF,eAAO,MAAM,eAAe;;;CAG3B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;CAiB3B,CAAC"}
|
package/dist-tsc/constants.js
CHANGED
|
@@ -24,6 +24,7 @@ export const ViewType = {
|
|
|
24
24
|
BIOMARKER_SELECT: 'biomarkerSelect',
|
|
25
25
|
LINK_CONTROLLER: 'linkController',
|
|
26
26
|
DUAL_SCATTERPLOT: 'dualScatterplot',
|
|
27
|
+
TREEMAP: 'treemap',
|
|
27
28
|
};
|
|
28
29
|
export const DataType = {
|
|
29
30
|
OBS_LABELS: 'obsLabels',
|
|
@@ -90,6 +91,7 @@ export const FileType = {
|
|
|
90
91
|
OBS_LABELS_ANNDATA_ZARR: 'obsLabels.anndata.zarr',
|
|
91
92
|
FEATURE_LABELS_ANNDATA_ZARR: 'featureLabels.anndata.zarr',
|
|
92
93
|
SAMPLE_EDGES_ANNDATA_ZARR: 'sampleEdges.anndata.zarr',
|
|
94
|
+
SAMPLE_SETS_ANNDATA_ZARR: 'sampleSets.anndata.zarr',
|
|
93
95
|
// AnnData - zipped
|
|
94
96
|
OBS_FEATURE_MATRIX_ANNDATA_ZARR_ZIP: 'obsFeatureMatrix.anndata.zarr.zip',
|
|
95
97
|
OBS_FEATURE_COLUMNS_ANNDATA_ZARR_ZIP: 'obsFeatureColumns.anndata.zarr.zip',
|
|
@@ -102,6 +104,7 @@ export const FileType = {
|
|
|
102
104
|
OBS_LABELS_ANNDATA_ZARR_ZIP: 'obsLabels.anndata.zarr.zip',
|
|
103
105
|
FEATURE_LABELS_ANNDATA_ZARR_ZIP: 'featureLabels.anndata.zarr.zip',
|
|
104
106
|
SAMPLE_EDGES_ANNDATA_ZARR_ZIP: 'sampleEdges.anndata.zarr.zip',
|
|
107
|
+
SAMPLE_SETS_ANNDATA_ZARR_ZIP: 'sampleSets.anndata.zarr.zip',
|
|
105
108
|
// AnnData - h5ad via reference spec
|
|
106
109
|
OBS_FEATURE_MATRIX_ANNDATA_H5AD: 'obsFeatureMatrix.anndata.h5ad',
|
|
107
110
|
OBS_FEATURE_COLUMNS_ANNDATA_H5AD: 'obsFeatureColumns.anndata.h5ad',
|
|
@@ -114,6 +117,7 @@ export const FileType = {
|
|
|
114
117
|
OBS_LABELS_ANNDATA_H5AD: 'obsLabels.anndata.h5ad',
|
|
115
118
|
FEATURE_LABELS_ANNDATA_H5AD: 'featureLabels.anndata.h5ad',
|
|
116
119
|
SAMPLE_EDGES_ANNDATA_H5AD: 'sampleEdges.anndata.h5ad',
|
|
120
|
+
SAMPLE_SETS_ANNDATA_H5AD: 'sampleSets.anndata.h5ad',
|
|
117
121
|
// SpatialData
|
|
118
122
|
IMAGE_SPATIALDATA_ZARR: 'image.spatialdata.zarr',
|
|
119
123
|
LABELS_SPATIALDATA_ZARR: 'labels.spatialdata.zarr',
|
|
@@ -304,12 +308,15 @@ export const CoordinationType = {
|
|
|
304
308
|
SAMPLE_SET_FILTER: 'sampleSetFilter',
|
|
305
309
|
SAMPLE_FILTER_MODE: 'sampleFilterMode',
|
|
306
310
|
SAMPLE_SET_COLOR: 'sampleSetColor',
|
|
311
|
+
SAMPLE_HIGHLIGHT: 'sampleHighlight',
|
|
307
312
|
EMBEDDING_POINTS_VISIBLE: 'embeddingPointsVisible',
|
|
308
313
|
EMBEDDING_CONTOURS_VISIBLE: 'embeddingContoursVisible',
|
|
309
314
|
EMBEDDING_CONTOURS_FILLED: 'embeddingContoursFilled',
|
|
310
315
|
EMBEDDING_CONTOUR_PERCENTILES: 'embeddingContourPercentiles',
|
|
311
316
|
CONTOUR_COLOR_ENCODING: 'contourColorEncoding',
|
|
312
317
|
CONTOUR_COLOR: 'contourColor',
|
|
318
|
+
// Treemap
|
|
319
|
+
HIERARCHY_LEVELS: 'hierarchyLevels',
|
|
313
320
|
};
|
|
314
321
|
export const STATUS = {
|
|
315
322
|
LOADING: 'loading',
|
|
@@ -340,4 +347,5 @@ export const ViewHelpMapping = {
|
|
|
340
347
|
FEATURE_VALUE_HISTOGRAM: 'The feature value histogram displays the distribution of values (e.g., expression) for the selected feature (e.g., gene).',
|
|
341
348
|
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
349
|
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.',
|
|
350
|
+
TREEMAP: 'The treemap provides an overview of the current state of sample-level or cell-level selection and filtering.',
|
|
343
351
|
};
|
|
@@ -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;;;CAyfxC,CAAC"}
|
package/dist-tsc/coordination.js
CHANGED
|
@@ -508,4 +508,30 @@ export const COMPONENT_COORDINATION_TYPES = {
|
|
|
508
508
|
CoordinationType.OBS_SET_FILTER,
|
|
509
509
|
// TODO: create coordination types for internal state of the biomarker selection view?
|
|
510
510
|
],
|
|
511
|
+
[ViewType.TREEMAP]: [
|
|
512
|
+
CoordinationType.DATASET,
|
|
513
|
+
CoordinationType.OBS_TYPE,
|
|
514
|
+
CoordinationType.FEATURE_TYPE,
|
|
515
|
+
CoordinationType.FEATURE_VALUE_TYPE,
|
|
516
|
+
CoordinationType.OBS_FILTER,
|
|
517
|
+
CoordinationType.OBS_HIGHLIGHT,
|
|
518
|
+
CoordinationType.OBS_SET_SELECTION,
|
|
519
|
+
CoordinationType.OBS_SET_FILTER,
|
|
520
|
+
CoordinationType.OBS_SELECTION,
|
|
521
|
+
CoordinationType.OBS_SELECTION_MODE,
|
|
522
|
+
CoordinationType.OBS_SET_HIGHLIGHT,
|
|
523
|
+
CoordinationType.OBS_SET_COLOR,
|
|
524
|
+
CoordinationType.OBS_COLOR_ENCODING,
|
|
525
|
+
CoordinationType.ADDITIONAL_OBS_SETS,
|
|
526
|
+
CoordinationType.SAMPLE_TYPE,
|
|
527
|
+
CoordinationType.SAMPLE_SET_SELECTION,
|
|
528
|
+
CoordinationType.SAMPLE_SET_FILTER,
|
|
529
|
+
CoordinationType.SAMPLE_SET_COLOR,
|
|
530
|
+
CoordinationType.SAMPLE_SELECTION,
|
|
531
|
+
CoordinationType.SAMPLE_SELECTION_MODE,
|
|
532
|
+
CoordinationType.SAMPLE_FILTER,
|
|
533
|
+
CoordinationType.SAMPLE_FILTER_MODE,
|
|
534
|
+
CoordinationType.SAMPLE_HIGHLIGHT,
|
|
535
|
+
CoordinationType.HIERARCHY_LEVELS,
|
|
536
|
+
],
|
|
511
537
|
};
|
package/dist-tsc/version.json
CHANGED
package/package.json
CHANGED
|
@@ -31,6 +31,7 @@ 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,
|
|
34
35
|
[FileType.IMAGE_OME_TIFF]: DataType.IMAGE,
|
|
35
36
|
[FileType.OBS_SEGMENTATIONS_OME_TIFF]: DataType.OBS_SEGMENTATIONS,
|
|
36
37
|
[FileType.OBS_FEATURE_MATRIX_MUDATA_ZARR]: DataType.OBS_FEATURE_MATRIX,
|
|
@@ -171,6 +172,10 @@ export const ALT_ZARR_STORE_TYPES = {
|
|
|
171
172
|
zip: FileType.SAMPLE_EDGES_ANNDATA_ZARR_ZIP,
|
|
172
173
|
h5ad: FileType.SAMPLE_EDGES_ANNDATA_H5AD,
|
|
173
174
|
},
|
|
175
|
+
[FileType.SAMPLE_SETS_ANNDATA_ZARR]: {
|
|
176
|
+
zip: FileType.SAMPLE_SETS_ANNDATA_ZARR_ZIP,
|
|
177
|
+
h5ad: FileType.SAMPLE_SETS_ANNDATA_H5AD,
|
|
178
|
+
},
|
|
174
179
|
// For OME-Zarr:
|
|
175
180
|
[FileType.IMAGE_OME_ZARR]: {
|
|
176
181
|
zip: FileType.IMAGE_OME_ZARR_ZIP,
|
package/src/constants.ts
CHANGED
|
@@ -24,6 +24,7 @@ export const ViewType = {
|
|
|
24
24
|
BIOMARKER_SELECT: 'biomarkerSelect',
|
|
25
25
|
LINK_CONTROLLER: 'linkController',
|
|
26
26
|
DUAL_SCATTERPLOT: 'dualScatterplot',
|
|
27
|
+
TREEMAP: 'treemap',
|
|
27
28
|
};
|
|
28
29
|
|
|
29
30
|
export const DataType = {
|
|
@@ -95,6 +96,7 @@ export const FileType = {
|
|
|
95
96
|
OBS_LABELS_ANNDATA_ZARR: 'obsLabels.anndata.zarr',
|
|
96
97
|
FEATURE_LABELS_ANNDATA_ZARR: 'featureLabels.anndata.zarr',
|
|
97
98
|
SAMPLE_EDGES_ANNDATA_ZARR: 'sampleEdges.anndata.zarr',
|
|
99
|
+
SAMPLE_SETS_ANNDATA_ZARR: 'sampleSets.anndata.zarr',
|
|
98
100
|
// AnnData - zipped
|
|
99
101
|
OBS_FEATURE_MATRIX_ANNDATA_ZARR_ZIP: 'obsFeatureMatrix.anndata.zarr.zip',
|
|
100
102
|
OBS_FEATURE_COLUMNS_ANNDATA_ZARR_ZIP: 'obsFeatureColumns.anndata.zarr.zip',
|
|
@@ -107,6 +109,7 @@ export const FileType = {
|
|
|
107
109
|
OBS_LABELS_ANNDATA_ZARR_ZIP: 'obsLabels.anndata.zarr.zip',
|
|
108
110
|
FEATURE_LABELS_ANNDATA_ZARR_ZIP: 'featureLabels.anndata.zarr.zip',
|
|
109
111
|
SAMPLE_EDGES_ANNDATA_ZARR_ZIP: 'sampleEdges.anndata.zarr.zip',
|
|
112
|
+
SAMPLE_SETS_ANNDATA_ZARR_ZIP: 'sampleSets.anndata.zarr.zip',
|
|
110
113
|
// AnnData - h5ad via reference spec
|
|
111
114
|
OBS_FEATURE_MATRIX_ANNDATA_H5AD: 'obsFeatureMatrix.anndata.h5ad',
|
|
112
115
|
OBS_FEATURE_COLUMNS_ANNDATA_H5AD: 'obsFeatureColumns.anndata.h5ad',
|
|
@@ -119,6 +122,7 @@ export const FileType = {
|
|
|
119
122
|
OBS_LABELS_ANNDATA_H5AD: 'obsLabels.anndata.h5ad',
|
|
120
123
|
FEATURE_LABELS_ANNDATA_H5AD: 'featureLabels.anndata.h5ad',
|
|
121
124
|
SAMPLE_EDGES_ANNDATA_H5AD: 'sampleEdges.anndata.h5ad',
|
|
125
|
+
SAMPLE_SETS_ANNDATA_H5AD: 'sampleSets.anndata.h5ad',
|
|
122
126
|
// SpatialData
|
|
123
127
|
IMAGE_SPATIALDATA_ZARR: 'image.spatialdata.zarr',
|
|
124
128
|
LABELS_SPATIALDATA_ZARR: 'labels.spatialdata.zarr',
|
|
@@ -310,12 +314,15 @@ export const CoordinationType = {
|
|
|
310
314
|
SAMPLE_SET_FILTER: 'sampleSetFilter',
|
|
311
315
|
SAMPLE_FILTER_MODE: 'sampleFilterMode',
|
|
312
316
|
SAMPLE_SET_COLOR: 'sampleSetColor',
|
|
317
|
+
SAMPLE_HIGHLIGHT: 'sampleHighlight',
|
|
313
318
|
EMBEDDING_POINTS_VISIBLE: 'embeddingPointsVisible',
|
|
314
319
|
EMBEDDING_CONTOURS_VISIBLE: 'embeddingContoursVisible',
|
|
315
320
|
EMBEDDING_CONTOURS_FILLED: 'embeddingContoursFilled',
|
|
316
321
|
EMBEDDING_CONTOUR_PERCENTILES: 'embeddingContourPercentiles',
|
|
317
322
|
CONTOUR_COLOR_ENCODING: 'contourColorEncoding',
|
|
318
323
|
CONTOUR_COLOR: 'contourColor',
|
|
324
|
+
// Treemap
|
|
325
|
+
HIERARCHY_LEVELS: 'hierarchyLevels',
|
|
319
326
|
};
|
|
320
327
|
|
|
321
328
|
export const STATUS = {
|
|
@@ -349,4 +356,5 @@ export const ViewHelpMapping = {
|
|
|
349
356
|
FEATURE_VALUE_HISTOGRAM: 'The feature value histogram displays the distribution of values (e.g., expression) for the selected feature (e.g., gene).',
|
|
350
357
|
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
358
|
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.',
|
|
359
|
+
TREEMAP: 'The treemap provides an overview of the current state of sample-level or cell-level selection and filtering.',
|
|
352
360
|
};
|
package/src/coordination.ts
CHANGED
|
@@ -510,4 +510,30 @@ export const COMPONENT_COORDINATION_TYPES = {
|
|
|
510
510
|
CoordinationType.OBS_SET_FILTER,
|
|
511
511
|
// TODO: create coordination types for internal state of the biomarker selection view?
|
|
512
512
|
],
|
|
513
|
+
[ViewType.TREEMAP]: [
|
|
514
|
+
CoordinationType.DATASET,
|
|
515
|
+
CoordinationType.OBS_TYPE,
|
|
516
|
+
CoordinationType.FEATURE_TYPE,
|
|
517
|
+
CoordinationType.FEATURE_VALUE_TYPE,
|
|
518
|
+
CoordinationType.OBS_FILTER,
|
|
519
|
+
CoordinationType.OBS_HIGHLIGHT,
|
|
520
|
+
CoordinationType.OBS_SET_SELECTION,
|
|
521
|
+
CoordinationType.OBS_SET_FILTER,
|
|
522
|
+
CoordinationType.OBS_SELECTION,
|
|
523
|
+
CoordinationType.OBS_SELECTION_MODE,
|
|
524
|
+
CoordinationType.OBS_SET_HIGHLIGHT,
|
|
525
|
+
CoordinationType.OBS_SET_COLOR,
|
|
526
|
+
CoordinationType.OBS_COLOR_ENCODING,
|
|
527
|
+
CoordinationType.ADDITIONAL_OBS_SETS,
|
|
528
|
+
CoordinationType.SAMPLE_TYPE,
|
|
529
|
+
CoordinationType.SAMPLE_SET_SELECTION,
|
|
530
|
+
CoordinationType.SAMPLE_SET_FILTER,
|
|
531
|
+
CoordinationType.SAMPLE_SET_COLOR,
|
|
532
|
+
CoordinationType.SAMPLE_SELECTION,
|
|
533
|
+
CoordinationType.SAMPLE_SELECTION_MODE,
|
|
534
|
+
CoordinationType.SAMPLE_FILTER,
|
|
535
|
+
CoordinationType.SAMPLE_FILTER_MODE,
|
|
536
|
+
CoordinationType.SAMPLE_HIGHLIGHT,
|
|
537
|
+
CoordinationType.HIERARCHY_LEVELS,
|
|
538
|
+
],
|
|
513
539
|
};
|
package/src/version.json
CHANGED