Skip to content

Commit d3677fd

Browse files
NickAkhmetov/Update CoordinationType and FileType to match docs (#273)
* Add `tooltipsVisible` and `obsLabelsType` coordination types to enum * include `_TYPE` suffix, move to match order in docs * Fix enum value * add file types as well * Update vitessce/constants.py Co-authored-by: Mark Keller <[email protected]> --------- Co-authored-by: Mark Keller <[email protected]>
1 parent c8b0120 commit d3677fd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

vitessce/constants.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ class CoordinationType(DocEnum):
2323
OBS_TYPE = "obsType", "The type of entity represented by each observation."
2424
FEATURE_TYPE = "featureType", "The type of entity represented by each feature."
2525
FEATURE_VALUE_TYPE = "featureValueType", "The type of value stored in the observation-by-feature matrix."
26+
OBS_LABELS_TYPE = 'obsLabelsType', "Feature for displaying additional obs sets' data in heatmap/scatterplot/spatial tooltips."
2627
EMBEDDING_TYPE = "embeddingType", "The type of embedding used for a scatterplot view, such as PCA or t-SNE."
2728
EMBEDDING_ZOOM = "embeddingZoom", "The zoom level of an embedding scatterplot view."
2829
EMBEDDING_ROTATION = "embeddingRotation", "The rotation of an embedding scatterplot view."
@@ -95,6 +96,7 @@ class CoordinationType(DocEnum):
9596
GATING_FEATURE_SELECTION_X = 'gatingFeatureSelectionX', "Feature for the x-axis of the gating scatterplot."
9697
GATING_FEATURE_SELECTION_Y = 'gatingFeatureSelectionY', "Feature for the y-axis of the gating scatterplot."
9798
FEATURE_VALUE_TRANSFORM_COEFFICIENT = 'featureValueTransformCoefficient', "Coefficient to transform values in the gating scatterplot."
99+
TOOLTIPS_VISIBLE = 'tooltipsVisible', "Boolean for whether or not tooltips are visible, used by the scatterplot, spatial, and heatmap views."
98100

99101

100102
class ViewType(DocEnum):
@@ -174,3 +176,7 @@ class FileType(DocEnum):
174176
ANNDATA_CELLS_ZARR = "anndata-cells.zarr", "The Zarr-based cells file type from an anndata object."
175177
ANNDATA_CELL_SETS_ZARR = "anndata-cell-sets.zarr", "The Zarr-based cell-sets file type from an anndata object."
176178
ANNDATA_EXPRESSION_MATRIX_ZARR = "anndata-expression-matrix.zarr", "The Zarr-based expression matrix file type from an anndata object."
179+
OBS_SEGMENTATIONS_CELLS_JSON = "obsSegmentations.cells.json", "The JSON-based cells file type for obsSegmentations."
180+
OBS_LOCATIONS_CELLS_JSON = "obsLocations.cells.json", "The JSON-based cells file type for obsLocations."
181+
OBS_EMBEDDING_CELLS_JSON = "obsEmbedding.cells.json", "The JSON-based cells file type for obsEmbedding."
182+
OBS_SETS_CELL_SETS_JSON = "obsSets.cell-sets.json", "The JSON-based cell sets file type for obsSets."

0 commit comments

Comments
 (0)