@vitessce/zarr 3.6.12 → 3.6.14

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.
Files changed (2) hide show
  1. package/dist/index.js +18 -1
  2. package/package.json +11 -11
package/dist/index.js CHANGED
@@ -4145,6 +4145,7 @@ const FileType$1 = {
4145
4145
  OBS_SPOTS_SPATIALDATA_ZARR: "obsSpots.spatialdata.zarr",
4146
4146
  FEATURE_LABELS_SPATIALDATA_ZARR: "featureLabels.spatialdata.zarr",
4147
4147
  OBS_POINTS_SPATIALDATA_ZARR: "obsPoints.spatialdata.zarr",
4148
+ OBS_EMBEDDING_SPATIALDATA_ZARR: "obsEmbedding.spatialdata.zarr",
4148
4149
  // SpatialData - zipped
4149
4150
  IMAGE_SPATIALDATA_ZARR_ZIP: "image.spatialdata.zarr.zip",
4150
4151
  LABELS_SPATIALDATA_ZARR_ZIP: "labels.spatialdata.zarr.zip",
@@ -4154,6 +4155,7 @@ const FileType$1 = {
4154
4155
  OBS_SPOTS_SPATIALDATA_ZARR_ZIP: "obsSpots.spatialdata.zarr.zip",
4155
4156
  FEATURE_LABELS_SPATIALDATA_ZARR_ZIP: "featureLabels.spatialdata.zarr.zip",
4156
4157
  OBS_POINTS_SPATIALDATA_ZARR_ZIP: "obsPoints.spatialdata.zarr.zip",
4158
+ OBS_EMBEDDING_SPATIALDATA_ZARR_ZIP: "obsEmbedding.spatialdata.zarr.zip",
4157
4159
  // MuData
4158
4160
  OBS_FEATURE_MATRIX_MUDATA_ZARR: "obsFeatureMatrix.mudata.zarr",
4159
4161
  OBS_SETS_MUDATA_ZARR: "obsSets.mudata.zarr",
@@ -4401,6 +4403,7 @@ const CoordinationType$1 = {
4401
4403
  [FileType$1.OBS_SETS_SPATIALDATA_ZARR]: DataType$1.OBS_SETS,
4402
4404
  [FileType$1.FEATURE_LABELS_SPATIALDATA_ZARR]: DataType$1.FEATURE_LABELS,
4403
4405
  [FileType$1.OBS_POINTS_SPATIALDATA_ZARR]: DataType$1.OBS_POINTS,
4406
+ [FileType$1.OBS_EMBEDDING_SPATIALDATA_ZARR]: DataType$1.OBS_EMBEDDING,
4404
4407
  // For new file types to support old file types
4405
4408
  [FileType$1.OBS_EMBEDDING_CELLS_JSON]: DataType$1.OBS_EMBEDDING,
4406
4409
  [FileType$1.OBS_LOCATIONS_CELLS_JSON]: DataType$1.OBS_LOCATIONS,
@@ -4577,6 +4580,9 @@ const CoordinationType$1 = {
4577
4580
  },
4578
4581
  [FileType$1.OBS_POINTS_SPATIALDATA_ZARR]: {
4579
4582
  zip: FileType$1.OBS_POINTS_SPATIALDATA_ZARR_ZIP
4583
+ },
4584
+ [FileType$1.OBS_EMBEDDING_SPATIALDATA_ZARR]: {
4585
+ zip: FileType$1.OBS_EMBEDDING_SPATIALDATA_ZARR_ZIP
4580
4586
  }
4581
4587
  });
4582
4588
  [
@@ -14422,6 +14428,16 @@ const obsSetsSpatialdataSchema = z.object({
14422
14428
  tablePath: z.string().optional().describe("The path to a table which contains the index for the set values."),
14423
14429
  obsSets: annDataObsSetsArr
14424
14430
  });
14431
+ annDataObsEmbedding.extend({
14432
+ // We extend anndataObsEmbedding which already has properties like `dims` and `path`.
14433
+ region: z.string().describe("The name of a region to use to filter instances (i.e., rows) in the table").optional(),
14434
+ tablePath: z.string().optional().describe("The path to a table which contains the index for the set values.")
14435
+ });
14436
+ const obsEmbeddingSpatialdataSchemaConvenience = z.union([
14437
+ annDataObsEmbedding,
14438
+ // For convenience, allow an array of items with `embeddingType` properties.
14439
+ z.array(annDataConvenienceObsEmbeddingItem)
14440
+ ]);
14425
14441
  z.object({
14426
14442
  targetX: z.number(),
14427
14443
  targetY: z.number(),
@@ -14530,9 +14546,10 @@ z.object({
14530
14546
  // TODO: obsPoints
14531
14547
  // TODO: obsLocations
14532
14548
  obsSets: obsSetsSpatialdataSchema,
14533
- // TODO: obsEmbedding
14549
+ obsEmbedding: obsEmbeddingSpatialdataSchemaConvenience,
14534
14550
  // TODO: obsLabels
14535
14551
  // TODO: featureLabels
14552
+ // TODO: allow specifying tablePath and region at the top-level here.
14536
14553
  coordinateSystem: z.string().optional().describe("The name of a coordinate transformation output used to transform all elements which lack a per-element coordinateSystem property.")
14537
14554
  }).partial();
14538
14555
  z.object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/zarr",
3
- "version": "3.6.12",
3
+ "version": "3.6.14",
4
4
  "author": "HIDIVE Lab at HMS",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -22,18 +22,18 @@
22
22
  "apache-arrow": "^17.0.0",
23
23
  "parquet-wasm": "^0.6.1",
24
24
  "ol": "^10.2.1",
25
- "@vitessce/abstract": "3.6.12",
26
- "@vitessce/error": "3.6.12",
27
- "@vitessce/constants-internal": "3.6.12",
28
- "@vitessce/sets-utils": "3.6.12",
29
- "@vitessce/image-utils": "3.6.12",
30
- "@vitessce/utils": "3.6.12",
31
- "@vitessce/zarr-utils": "3.6.12",
32
- "@vitessce/config": "3.6.12",
33
- "@vitessce/globals": "3.6.12"
25
+ "@vitessce/abstract": "3.6.14",
26
+ "@vitessce/error": "3.6.14",
27
+ "@vitessce/constants-internal": "3.6.14",
28
+ "@vitessce/sets-utils": "3.6.14",
29
+ "@vitessce/image-utils": "3.6.14",
30
+ "@vitessce/utils": "3.6.14",
31
+ "@vitessce/zarr-utils": "3.6.14",
32
+ "@vitessce/config": "3.6.14",
33
+ "@vitessce/globals": "3.6.14"
34
34
  },
35
35
  "devDependencies": {
36
- "@vitessce/types": "3.6.12"
36
+ "@vitessce/types": "3.6.14"
37
37
  },
38
38
  "scripts": {
39
39
  "bundle": "pnpm exec vite build -c ../../../scripts/vite.config.js",