@vitessce/sets-utils 3.3.2 → 3.3.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.
Files changed (2) hide show
  1. package/dist/index.js +29 -5
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -9045,7 +9045,9 @@ const FileType$1 = {
9045
9045
  OBS_SEGMENTATIONS_JSON: "obsSegmentations.json",
9046
9046
  OBS_SETS_CSV: "obsSets.csv",
9047
9047
  OBS_SETS_JSON: "obsSets.json",
9048
+ // OME-Zarr
9048
9049
  IMAGE_OME_ZARR: "image.ome-zarr",
9050
+ OBS_SEGMENTATIONS_OME_ZARR: "obsSegmentations.ome-zarr",
9049
9051
  // AnnData
9050
9052
  OBS_FEATURE_MATRIX_ANNDATA_ZARR: "obsFeatureMatrix.anndata.zarr",
9051
9053
  OBS_SETS_ANNDATA_ZARR: "obsSets.anndata.zarr",
@@ -9498,30 +9500,39 @@ const omeCoordinateTransformations = z.array(z.union([
9498
9500
  scale: z.array(z.number())
9499
9501
  })
9500
9502
  ]));
9501
- z.object({
9503
+ const imageOmeTiffSchema = z.object({
9502
9504
  offsetsUrl: z.string().optional(),
9503
9505
  coordinateTransformations: omeCoordinateTransformations.optional()
9504
9506
  });
9507
+ imageOmeTiffSchema.extend({
9508
+ obsTypesFromChannelNames: z.boolean().optional()
9509
+ });
9505
9510
  const imageOmeZarrSchema = z.object({
9506
9511
  coordinateTransformations: omeCoordinateTransformations.optional()
9507
9512
  });
9508
9513
  imageOmeZarrSchema.extend({
9514
+ obsTypesFromChannelNames: z.boolean().optional()
9515
+ });
9516
+ const imageSpatialdataSchema = imageOmeZarrSchema.extend({
9509
9517
  path: z.string()
9510
9518
  });
9511
- z.object({
9519
+ const obsSegmentationsSpatialdataSchema = z.object({
9520
+ // TODO: should this also extend the imageOmeZarrSchema?
9521
+ // TODO: should this be renamed labelsSpatialdataSchema?
9522
+ // TODO: support obsTypesFromChannelNames?
9512
9523
  path: z.string()
9513
9524
  });
9514
9525
  z.object({
9515
9526
  path: z.string()
9516
9527
  });
9517
- z.object({
9528
+ const obsSpotsSpatialdataSchema = z.object({
9518
9529
  path: z.string(),
9519
9530
  tablePath: z.string().optional().describe("The path to a table which annotates the spots. If available but not specified, the spot identifiers may not be aligned with associated tabular data as expected.")
9520
9531
  });
9521
- annDataObsFeatureMatrix.extend({
9532
+ const obsFeatureMatrixSpatialdataSchema = annDataObsFeatureMatrix.extend({
9522
9533
  region: z.string().describe("The name of a region to use to filter instances (i.e., rows) in the table").optional()
9523
9534
  });
9524
- z.object({
9535
+ const obsSetsSpatialdataSchema = z.object({
9525
9536
  region: z.string().describe("The name of a region to use to filter instances (i.e., rows) in the table").optional(),
9526
9537
  tablePath: z.string().optional().describe("The path to a table which contains the index for the set values."),
9527
9538
  obsSets: annDataObsSets
@@ -9584,6 +9595,19 @@ z.object({
9584
9595
  z.array(annDataConvenienceObsEmbeddingItem)
9585
9596
  ])
9586
9597
  }).partial();
9598
+ z.object({
9599
+ // TODO: should `image` be a special schema
9600
+ // to allow specifying fileUid (like for embeddingType)?
9601
+ image: imageSpatialdataSchema,
9602
+ // TODO: should this be a special schema
9603
+ // to allow specifying fileUid (like for embeddingType)?
9604
+ labels: obsSegmentationsSpatialdataSchema,
9605
+ obsFeatureMatrix: obsFeatureMatrixSpatialdataSchema,
9606
+ obsSpots: obsSpotsSpatialdataSchema,
9607
+ // TODO: obsPoints
9608
+ // TODO: obsLocations
9609
+ obsSets: obsSetsSpatialdataSchema
9610
+ }).partial();
9587
9611
  z.object({
9588
9612
  obsLabelsTypes: z.array(z.string()).optional(),
9589
9613
  embeddingTypes: z.array(z.string()).optional()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/sets-utils",
3
- "version": "3.3.2",
3
+ "version": "3.3.3",
4
4
  "author": "Gehlenborg Lab",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -25,8 +25,8 @@
25
25
  "lodash-es": "^4.17.21",
26
26
  "tinycolor2": "^1.4.1",
27
27
  "uuid": "^9.0.0",
28
- "@vitessce/utils": "3.3.2",
29
- "@vitessce/schemas": "3.3.2"
28
+ "@vitessce/utils": "3.3.3",
29
+ "@vitessce/schemas": "3.3.3"
30
30
  },
31
31
  "scripts": {
32
32
  "bundle": "pnpm exec vite build -c ../../../scripts/vite.config.js",