@vitessce/vega 3.4.11 → 3.4.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 +25 -10
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -49717,6 +49717,9 @@ const FileType$1 = {
49717
49717
  // OME-Zarr
49718
49718
  IMAGE_OME_ZARR: "image.ome-zarr",
49719
49719
  OBS_SEGMENTATIONS_OME_ZARR: "obsSegmentations.ome-zarr",
49720
+ // OME-Zarr - Zipped
49721
+ IMAGE_OME_ZARR_ZIP: "image.ome-zarr.zip",
49722
+ OBS_SEGMENTATIONS_OME_ZARR_ZIP: "obsSegmentations.ome-zarr.zip",
49720
49723
  // AnnData
49721
49724
  OBS_FEATURE_MATRIX_ANNDATA_ZARR: "obsFeatureMatrix.anndata.zarr",
49722
49725
  OBS_FEATURE_COLUMNS_ANNDATA_ZARR: "obsFeatureColumns.anndata.zarr",
@@ -49823,6 +49826,7 @@ const CoordinationType$1 = {
49823
49826
  FEATURE_TYPE: "featureType",
49824
49827
  FEATURE_VALUE_TYPE: "featureValueType",
49825
49828
  OBS_LABELS_TYPE: "obsLabelsType",
49829
+ FEATURE_LABELS_TYPE: "featureLabelsType",
49826
49830
  // Other types
49827
49831
  EMBEDDING_TYPE: "embeddingType",
49828
49832
  EMBEDDING_ZOOM: "embeddingZoom",
@@ -50198,7 +50202,7 @@ const annDataObsSetsArr = z.array(z.object({
50198
50202
  ]),
50199
50203
  scorePath: z.string().optional().describe("The location in the AnnData store for the set confidence scores, like 'obs/celltype_prediction_score.'")
50200
50204
  }));
50201
- const annDataObsSets = z.object({
50205
+ z.object({
50202
50206
  obsSets: annDataObsSetsArr
50203
50207
  });
50204
50208
  const annDataObsFeatureColumnsArr = z.array(z.object({
@@ -50238,29 +50242,34 @@ const imageOmeZarrSchema = z.object({
50238
50242
  imageOmeZarrSchema.extend({
50239
50243
  obsTypesFromChannelNames: z.boolean().optional()
50240
50244
  });
50241
- const imageSpatialdataSchema = imageOmeZarrSchema.extend({
50242
- path: z.string()
50245
+ const imageSpatialdataSchema = z.object({
50246
+ path: z.string(),
50247
+ coordinateSystem: z.string().optional().describe('The name of a coordinate transformation output used to transform the image. If not provided, the "global" coordinate system is assumed.')
50243
50248
  });
50244
50249
  const obsSegmentationsSpatialdataSchema = z.object({
50245
- // TODO: should this also extend the imageOmeZarrSchema?
50246
50250
  // TODO: should this be renamed labelsSpatialdataSchema?
50247
50251
  // TODO: support obsTypesFromChannelNames?
50248
- path: z.string()
50252
+ path: z.string(),
50253
+ tablePath: z.string().optional().describe("The path to a table which annotates the labels. If available but not specified, the spot identifiers may not be aligned with associated tabular data as expected."),
50254
+ coordinateSystem: z.string().optional().describe('The name of a coordinate transformation output used to transform the image. If not provided, the "global" coordinate system is assumed.')
50249
50255
  });
50250
50256
  z.object({
50251
- path: z.string()
50257
+ path: z.string(),
50258
+ coordinateSystem: z.string().optional().describe('The name of a coordinate transformation output used to transform the coordinates. If not provided, the "global" coordinate system is assumed.')
50252
50259
  });
50253
50260
  const obsSpotsSpatialdataSchema = z.object({
50254
50261
  path: z.string(),
50255
- 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.")
50262
+ 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."),
50263
+ coordinateSystem: z.string().optional().describe('The name of a coordinate transformation output used to transform the coordinates and radii. If not provided, the "global" coordinate system is assumed.')
50256
50264
  });
50257
50265
  const obsFeatureMatrixSpatialdataSchema = annDataObsFeatureMatrix.extend({
50258
- region: z.string().describe("The name of a region to use to filter instances (i.e., rows) in the table").optional()
50266
+ region: z.string().describe("The name of a region to use to filter instances (i.e., rows) in the table").optional(),
50267
+ coordinateSystem: z.string().optional().describe('The name of a coordinate transformation output used to transform the image. If not provided, the "global" coordinate system is assumed.')
50259
50268
  });
50260
50269
  const obsSetsSpatialdataSchema = z.object({
50261
50270
  region: z.string().describe("The name of a region to use to filter instances (i.e., rows) in the table").optional(),
50262
50271
  tablePath: z.string().optional().describe("The path to a table which contains the index for the set values."),
50263
- obsSets: annDataObsSets
50272
+ obsSets: annDataObsSetsArr
50264
50273
  });
50265
50274
  z.object({
50266
50275
  targetX: z.number(),
@@ -50356,15 +50365,21 @@ anndataZarrSchema.extend({
50356
50365
  z.object({
50357
50366
  // TODO: should `image` be a special schema
50358
50367
  // to allow specifying fileUid (like for embeddingType)?
50368
+ // TODO: allow multiple images
50359
50369
  image: imageSpatialdataSchema,
50360
50370
  // TODO: should this be a special schema
50361
50371
  // to allow specifying fileUid (like for embeddingType)?
50372
+ // TODO: allow multiple labels
50362
50373
  labels: obsSegmentationsSpatialdataSchema,
50363
50374
  obsFeatureMatrix: obsFeatureMatrixSpatialdataSchema,
50364
50375
  obsSpots: obsSpotsSpatialdataSchema,
50365
50376
  // TODO: obsPoints
50366
50377
  // TODO: obsLocations
50367
- obsSets: obsSetsSpatialdataSchema
50378
+ obsSets: obsSetsSpatialdataSchema,
50379
+ // TODO: obsEmbedding
50380
+ // TODO: obsLabels
50381
+ // TODO: featureLabels
50382
+ coordinateSystem: z.string().optional().describe("The name of a coordinate transformation output used to transform all elements which lack a per-element coordinateSystem property.")
50368
50383
  }).partial();
50369
50384
  z.object({
50370
50385
  obsLabelsTypes: z.array(z.string()).optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/vega",
3
- "version": "3.4.11",
3
+ "version": "3.4.14",
4
4
  "author": "Gehlenborg Lab",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -22,8 +22,8 @@
22
22
  "vega": "^5.21.0",
23
23
  "vega-lite": "^5.1.1",
24
24
  "vega-tooltip": "^0.27.0",
25
- "@vitessce/tooltip": "3.4.11",
26
- "@vitessce/legend": "3.4.11"
25
+ "@vitessce/tooltip": "3.4.14",
26
+ "@vitessce/legend": "3.4.14"
27
27
  },
28
28
  "devDependencies": {
29
29
  "react": "^18.0.0",