@vitessce/csv 3.4.12 → 3.5.0

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 +24 -9
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -264,7 +264,8 @@ const ViewType$1 = {
264
264
  OBS_SET_FEATURE_VALUE_DISTRIBUTION: "obsSetFeatureValueDistribution",
265
265
  FEATURE_VALUE_HISTOGRAM: "featureValueHistogram",
266
266
  DOT_PLOT: "dotPlot",
267
- FEATURE_BAR_PLOT: "featureBarPlot"
267
+ FEATURE_BAR_PLOT: "featureBarPlot",
268
+ BIOMARKER_SELECT: "biomarkerSelect"
268
269
  };
269
270
  const DataType$1 = {
270
271
  OBS_LABELS: "obsLabels",
@@ -303,6 +304,9 @@ const FileType$1 = {
303
304
  // OME-Zarr
304
305
  IMAGE_OME_ZARR: "image.ome-zarr",
305
306
  OBS_SEGMENTATIONS_OME_ZARR: "obsSegmentations.ome-zarr",
307
+ // OME-Zarr - Zipped
308
+ IMAGE_OME_ZARR_ZIP: "image.ome-zarr.zip",
309
+ OBS_SEGMENTATIONS_OME_ZARR_ZIP: "obsSegmentations.ome-zarr.zip",
306
310
  // AnnData
307
311
  OBS_FEATURE_MATRIX_ANNDATA_ZARR: "obsFeatureMatrix.anndata.zarr",
308
312
  OBS_FEATURE_COLUMNS_ANNDATA_ZARR: "obsFeatureColumns.anndata.zarr",
@@ -9861,24 +9865,29 @@ const imageOmeZarrSchema = z.object({
9861
9865
  imageOmeZarrSchema.extend({
9862
9866
  obsTypesFromChannelNames: z.boolean().optional()
9863
9867
  });
9864
- const imageSpatialdataSchema = imageOmeZarrSchema.extend({
9865
- path: z.string()
9868
+ const imageSpatialdataSchema = z.object({
9869
+ path: z.string(),
9870
+ 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.')
9866
9871
  });
9867
9872
  const obsSegmentationsSpatialdataSchema = z.object({
9868
- // TODO: should this also extend the imageOmeZarrSchema?
9869
9873
  // TODO: should this be renamed labelsSpatialdataSchema?
9870
9874
  // TODO: support obsTypesFromChannelNames?
9871
- path: z.string()
9875
+ path: z.string(),
9876
+ 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."),
9877
+ 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.')
9872
9878
  });
9873
9879
  z.object({
9874
- path: z.string()
9880
+ path: z.string(),
9881
+ 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.')
9875
9882
  });
9876
9883
  const obsSpotsSpatialdataSchema = z.object({
9877
9884
  path: z.string(),
9878
- 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.")
9885
+ 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."),
9886
+ 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.')
9879
9887
  });
9880
9888
  const obsFeatureMatrixSpatialdataSchema = annDataObsFeatureMatrix.extend({
9881
- region: z.string().describe("The name of a region to use to filter instances (i.e., rows) in the table").optional()
9889
+ region: z.string().describe("The name of a region to use to filter instances (i.e., rows) in the table").optional(),
9890
+ 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.')
9882
9891
  });
9883
9892
  const obsSetsSpatialdataSchema = z.object({
9884
9893
  region: z.string().describe("The name of a region to use to filter instances (i.e., rows) in the table").optional(),
@@ -9979,15 +9988,21 @@ anndataZarrSchema.extend({
9979
9988
  z.object({
9980
9989
  // TODO: should `image` be a special schema
9981
9990
  // to allow specifying fileUid (like for embeddingType)?
9991
+ // TODO: allow multiple images
9982
9992
  image: imageSpatialdataSchema,
9983
9993
  // TODO: should this be a special schema
9984
9994
  // to allow specifying fileUid (like for embeddingType)?
9995
+ // TODO: allow multiple labels
9985
9996
  labels: obsSegmentationsSpatialdataSchema,
9986
9997
  obsFeatureMatrix: obsFeatureMatrixSpatialdataSchema,
9987
9998
  obsSpots: obsSpotsSpatialdataSchema,
9988
9999
  // TODO: obsPoints
9989
10000
  // TODO: obsLocations
9990
- obsSets: obsSetsSpatialdataSchema
10001
+ obsSets: obsSetsSpatialdataSchema,
10002
+ // TODO: obsEmbedding
10003
+ // TODO: obsLabels
10004
+ // TODO: featureLabels
10005
+ coordinateSystem: z.string().optional().describe("The name of a coordinate transformation output used to transform all elements which lack a per-element coordinateSystem property.")
9991
10006
  }).partial();
9992
10007
  z.object({
9993
10008
  obsLabelsTypes: z.array(z.string()).optional(),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vitessce/csv",
3
- "version": "3.4.12",
4
- "author": "Gehlenborg Lab",
3
+ "version": "3.5.0",
4
+ "author": "HIDIVE Lab at HMS",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
7
7
  "type": "git",
@@ -18,10 +18,10 @@
18
18
  "dependencies": {
19
19
  "d3-array": "^2.4.0",
20
20
  "d3-dsv": "^1.1.1",
21
- "@vitessce/constants-internal": "3.4.12",
22
- "@vitessce/sets-utils": "3.4.12",
23
- "@vitessce/vit-s": "3.4.12",
24
- "@vitessce/config": "3.4.12"
21
+ "@vitessce/constants-internal": "3.5.0",
22
+ "@vitessce/sets-utils": "3.5.0",
23
+ "@vitessce/vit-s": "3.5.0",
24
+ "@vitessce/config": "3.5.0"
25
25
  },
26
26
  "scripts": {
27
27
  "bundle": "pnpm exec vite build -c ../../../scripts/vite.config.js",