@vitessce/sets-utils 3.6.3 → 3.6.5

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 +39 -2
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -9039,6 +9039,7 @@ const FileType$1 = {
9039
9039
  ANNDATA_ZARR_ZIP: "anndata.zarr.zip",
9040
9040
  ANNDATA_H5AD: "anndata.h5ad",
9041
9041
  SPATIALDATA_ZARR: "spatialdata.zarr",
9042
+ SPATIALDATA_ZARR_ZIP: "spatialdata.zarr.zip",
9042
9043
  // Atomic file types
9043
9044
  OBS_EMBEDDING_CSV: "obsEmbedding.csv",
9044
9045
  OBS_SPOTS_CSV: "obsSpots.csv",
@@ -9119,6 +9120,14 @@ const FileType$1 = {
9119
9120
  // TODO:
9120
9121
  // OBS_POINTS_SPATIALDATA_ZARR: 'obsPoints.spatialdata.zarr',
9121
9122
  // OBS_LOCATIONS_SPATIALDATA_ZARR: 'obsLocations.spatialdata.zarr',
9123
+ // SpatialData - zipped
9124
+ IMAGE_SPATIALDATA_ZARR_ZIP: "image.spatialdata.zarr.zip",
9125
+ LABELS_SPATIALDATA_ZARR_ZIP: "labels.spatialdata.zarr.zip",
9126
+ SHAPES_SPATIALDATA_ZARR_ZIP: "shapes.spatialdata.zarr.zip",
9127
+ OBS_FEATURE_MATRIX_SPATIALDATA_ZARR_ZIP: "obsFeatureMatrix.spatialdata.zarr.zip",
9128
+ OBS_SETS_SPATIALDATA_ZARR_ZIP: "obsSets.spatialdata.zarr.zip",
9129
+ OBS_SPOTS_SPATIALDATA_ZARR_ZIP: "obsSpots.spatialdata.zarr.zip",
9130
+ FEATURE_LABELS_SPATIALDATA_ZARR_ZIP: "featureLabels.spatialdata.zarr.zip",
9122
9131
  // MuData
9123
9132
  OBS_FEATURE_MATRIX_MUDATA_ZARR: "obsFeatureMatrix.mudata.zarr",
9124
9133
  OBS_SETS_MUDATA_ZARR: "obsSets.mudata.zarr",
@@ -9516,6 +9525,28 @@ const CoordinationType$1 = {
9516
9525
  },
9517
9526
  [FileType$1.OBS_SEGMENTATIONS_OME_ZARR]: {
9518
9527
  zip: FileType$1.OBS_SEGMENTATIONS_OME_ZARR_ZIP
9528
+ },
9529
+ // For SpatialData:
9530
+ [FileType$1.IMAGE_SPATIALDATA_ZARR]: {
9531
+ zip: FileType$1.IMAGE_SPATIALDATA_ZARR_ZIP
9532
+ },
9533
+ [FileType$1.LABELS_SPATIALDATA_ZARR]: {
9534
+ zip: FileType$1.LABELS_SPATIALDATA_ZARR_ZIP
9535
+ },
9536
+ [FileType$1.SHAPES_SPATIALDATA_ZARR]: {
9537
+ zip: FileType$1.SHAPES_SPATIALDATA_ZARR_ZIP
9538
+ },
9539
+ [FileType$1.OBS_FEATURE_MATRIX_SPATIALDATA_ZARR]: {
9540
+ zip: FileType$1.OBS_FEATURE_MATRIX_SPATIALDATA_ZARR_ZIP
9541
+ },
9542
+ [FileType$1.OBS_SETS_SPATIALDATA_ZARR]: {
9543
+ zip: FileType$1.OBS_SETS_SPATIALDATA_ZARR_ZIP
9544
+ },
9545
+ [FileType$1.OBS_SPOTS_SPATIALDATA_ZARR]: {
9546
+ zip: FileType$1.OBS_SPOTS_SPATIALDATA_ZARR_ZIP
9547
+ },
9548
+ [FileType$1.FEATURE_LABELS_SPATIALDATA_ZARR]: {
9549
+ zip: FileType$1.FEATURE_LABELS_SPATIALDATA_ZARR_ZIP
9519
9550
  }
9520
9551
  });
9521
9552
  [
@@ -10636,6 +10667,7 @@ const anndataZarrSchema = z.object({
10636
10667
  z.array(annDataConvenienceFeatureLabelsItem)
10637
10668
  ]),
10638
10669
  obsFeatureMatrix: annDataObsFeatureMatrix,
10670
+ obsFeatureColumns: annDataObsFeatureColumnsArr,
10639
10671
  obsSets: annDataObsSetsArr,
10640
10672
  obsSpots: annDataObsSpots,
10641
10673
  obsPoints: annDataObsPoints,
@@ -10653,12 +10685,17 @@ anndataZarrSchema.extend({
10653
10685
  z.object({
10654
10686
  // TODO: should `image` be a special schema
10655
10687
  // to allow specifying fileUid (like for embeddingType)?
10656
- // TODO: allow multiple images
10688
+ // TODO: allow multiple images?
10657
10689
  image: imageSpatialdataSchema,
10658
10690
  // TODO: should this be a special schema
10659
10691
  // to allow specifying fileUid (like for embeddingType)?
10660
- // TODO: allow multiple labels
10692
+ // TODO: allow multiple labels?
10661
10693
  labels: obsSegmentationsSpatialdataSchema,
10694
+ // TODO: allow multiple shapes?
10695
+ // TODO: unify labels and shapes to obsSegmentations,
10696
+ // then distinguish in expand function based on
10697
+ // "labels/*" vs. "shapes/*" in path?
10698
+ shapes: obsSegmentationsSpatialdataSchema,
10662
10699
  obsFeatureMatrix: obsFeatureMatrixSpatialdataSchema,
10663
10700
  obsSpots: obsSpotsSpatialdataSchema,
10664
10701
  // TODO: obsPoints
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/sets-utils",
3
- "version": "3.6.3",
3
+ "version": "3.6.5",
4
4
  "author": "HIDIVE Lab at HMS",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -25,9 +25,9 @@
25
25
  "lodash-es": "^4.17.21",
26
26
  "tinycolor2": "^1.4.1",
27
27
  "uuid": "^9.0.0",
28
- "@vitessce/schemas": "3.6.3",
29
- "@vitessce/utils": "3.6.3",
30
- "@vitessce/globals": "3.6.3"
28
+ "@vitessce/schemas": "3.6.5",
29
+ "@vitessce/utils": "3.6.5",
30
+ "@vitessce/globals": "3.6.5"
31
31
  },
32
32
  "scripts": {
33
33
  "bundle": "pnpm exec vite build -c ../../../scripts/vite.config.js",