@vitessce/csv 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 +5 -5
package/dist/index.js CHANGED
@@ -637,6 +637,7 @@ const FileType$1 = {
637
637
  ANNDATA_ZARR_ZIP: "anndata.zarr.zip",
638
638
  ANNDATA_H5AD: "anndata.h5ad",
639
639
  SPATIALDATA_ZARR: "spatialdata.zarr",
640
+ SPATIALDATA_ZARR_ZIP: "spatialdata.zarr.zip",
640
641
  // Atomic file types
641
642
  OBS_EMBEDDING_CSV: "obsEmbedding.csv",
642
643
  OBS_SPOTS_CSV: "obsSpots.csv",
@@ -717,6 +718,14 @@ const FileType$1 = {
717
718
  // TODO:
718
719
  // OBS_POINTS_SPATIALDATA_ZARR: 'obsPoints.spatialdata.zarr',
719
720
  // OBS_LOCATIONS_SPATIALDATA_ZARR: 'obsLocations.spatialdata.zarr',
721
+ // SpatialData - zipped
722
+ IMAGE_SPATIALDATA_ZARR_ZIP: "image.spatialdata.zarr.zip",
723
+ LABELS_SPATIALDATA_ZARR_ZIP: "labels.spatialdata.zarr.zip",
724
+ SHAPES_SPATIALDATA_ZARR_ZIP: "shapes.spatialdata.zarr.zip",
725
+ OBS_FEATURE_MATRIX_SPATIALDATA_ZARR_ZIP: "obsFeatureMatrix.spatialdata.zarr.zip",
726
+ OBS_SETS_SPATIALDATA_ZARR_ZIP: "obsSets.spatialdata.zarr.zip",
727
+ OBS_SPOTS_SPATIALDATA_ZARR_ZIP: "obsSpots.spatialdata.zarr.zip",
728
+ FEATURE_LABELS_SPATIALDATA_ZARR_ZIP: "featureLabels.spatialdata.zarr.zip",
720
729
  // MuData
721
730
  OBS_FEATURE_MATRIX_MUDATA_ZARR: "obsFeatureMatrix.mudata.zarr",
722
731
  OBS_SETS_MUDATA_ZARR: "obsSets.mudata.zarr",
@@ -1114,6 +1123,28 @@ const CoordinationType$1 = {
1114
1123
  },
1115
1124
  [FileType$1.OBS_SEGMENTATIONS_OME_ZARR]: {
1116
1125
  zip: FileType$1.OBS_SEGMENTATIONS_OME_ZARR_ZIP
1126
+ },
1127
+ // For SpatialData:
1128
+ [FileType$1.IMAGE_SPATIALDATA_ZARR]: {
1129
+ zip: FileType$1.IMAGE_SPATIALDATA_ZARR_ZIP
1130
+ },
1131
+ [FileType$1.LABELS_SPATIALDATA_ZARR]: {
1132
+ zip: FileType$1.LABELS_SPATIALDATA_ZARR_ZIP
1133
+ },
1134
+ [FileType$1.SHAPES_SPATIALDATA_ZARR]: {
1135
+ zip: FileType$1.SHAPES_SPATIALDATA_ZARR_ZIP
1136
+ },
1137
+ [FileType$1.OBS_FEATURE_MATRIX_SPATIALDATA_ZARR]: {
1138
+ zip: FileType$1.OBS_FEATURE_MATRIX_SPATIALDATA_ZARR_ZIP
1139
+ },
1140
+ [FileType$1.OBS_SETS_SPATIALDATA_ZARR]: {
1141
+ zip: FileType$1.OBS_SETS_SPATIALDATA_ZARR_ZIP
1142
+ },
1143
+ [FileType$1.OBS_SPOTS_SPATIALDATA_ZARR]: {
1144
+ zip: FileType$1.OBS_SPOTS_SPATIALDATA_ZARR_ZIP
1145
+ },
1146
+ [FileType$1.FEATURE_LABELS_SPATIALDATA_ZARR]: {
1147
+ zip: FileType$1.FEATURE_LABELS_SPATIALDATA_ZARR_ZIP
1117
1148
  }
1118
1149
  });
1119
1150
  [
@@ -10885,6 +10916,7 @@ const anndataZarrSchema = z.object({
10885
10916
  z.array(annDataConvenienceFeatureLabelsItem)
10886
10917
  ]),
10887
10918
  obsFeatureMatrix: annDataObsFeatureMatrix,
10919
+ obsFeatureColumns: annDataObsFeatureColumnsArr,
10888
10920
  obsSets: annDataObsSetsArr,
10889
10921
  obsSpots: annDataObsSpots,
10890
10922
  obsPoints: annDataObsPoints,
@@ -10902,12 +10934,17 @@ anndataZarrSchema.extend({
10902
10934
  z.object({
10903
10935
  // TODO: should `image` be a special schema
10904
10936
  // to allow specifying fileUid (like for embeddingType)?
10905
- // TODO: allow multiple images
10937
+ // TODO: allow multiple images?
10906
10938
  image: imageSpatialdataSchema,
10907
10939
  // TODO: should this be a special schema
10908
10940
  // to allow specifying fileUid (like for embeddingType)?
10909
- // TODO: allow multiple labels
10941
+ // TODO: allow multiple labels?
10910
10942
  labels: obsSegmentationsSpatialdataSchema,
10943
+ // TODO: allow multiple shapes?
10944
+ // TODO: unify labels and shapes to obsSegmentations,
10945
+ // then distinguish in expand function based on
10946
+ // "labels/*" vs. "shapes/*" in path?
10947
+ shapes: obsSegmentationsSpatialdataSchema,
10911
10948
  obsFeatureMatrix: obsFeatureMatrixSpatialdataSchema,
10912
10949
  obsSpots: obsSpotsSpatialdataSchema,
10913
10950
  // TODO: obsPoints
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/csv",
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": {
@@ -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.6.3",
22
- "@vitessce/sets-utils": "3.6.3",
23
- "@vitessce/abstract": "3.6.3",
24
- "@vitessce/config": "3.6.3"
21
+ "@vitessce/constants-internal": "3.6.5",
22
+ "@vitessce/sets-utils": "3.6.5",
23
+ "@vitessce/abstract": "3.6.5",
24
+ "@vitessce/config": "3.6.5"
25
25
  },
26
26
  "scripts": {
27
27
  "bundle": "pnpm exec vite build -c ../../../scripts/vite.config.js",