@vitessce/sets-utils 3.6.13 → 3.6.15
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.
- package/dist/index.js +18 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -9169,6 +9169,7 @@ const FileType$1 = {
|
|
|
9169
9169
|
OBS_SPOTS_SPATIALDATA_ZARR: "obsSpots.spatialdata.zarr",
|
|
9170
9170
|
FEATURE_LABELS_SPATIALDATA_ZARR: "featureLabels.spatialdata.zarr",
|
|
9171
9171
|
OBS_POINTS_SPATIALDATA_ZARR: "obsPoints.spatialdata.zarr",
|
|
9172
|
+
OBS_EMBEDDING_SPATIALDATA_ZARR: "obsEmbedding.spatialdata.zarr",
|
|
9172
9173
|
// SpatialData - zipped
|
|
9173
9174
|
IMAGE_SPATIALDATA_ZARR_ZIP: "image.spatialdata.zarr.zip",
|
|
9174
9175
|
LABELS_SPATIALDATA_ZARR_ZIP: "labels.spatialdata.zarr.zip",
|
|
@@ -9178,6 +9179,7 @@ const FileType$1 = {
|
|
|
9178
9179
|
OBS_SPOTS_SPATIALDATA_ZARR_ZIP: "obsSpots.spatialdata.zarr.zip",
|
|
9179
9180
|
FEATURE_LABELS_SPATIALDATA_ZARR_ZIP: "featureLabels.spatialdata.zarr.zip",
|
|
9180
9181
|
OBS_POINTS_SPATIALDATA_ZARR_ZIP: "obsPoints.spatialdata.zarr.zip",
|
|
9182
|
+
OBS_EMBEDDING_SPATIALDATA_ZARR_ZIP: "obsEmbedding.spatialdata.zarr.zip",
|
|
9181
9183
|
// MuData
|
|
9182
9184
|
OBS_FEATURE_MATRIX_MUDATA_ZARR: "obsFeatureMatrix.mudata.zarr",
|
|
9183
9185
|
OBS_SETS_MUDATA_ZARR: "obsSets.mudata.zarr",
|
|
@@ -9425,6 +9427,7 @@ const CoordinationType$1 = {
|
|
|
9425
9427
|
[FileType$1.OBS_SETS_SPATIALDATA_ZARR]: DataType$1.OBS_SETS,
|
|
9426
9428
|
[FileType$1.FEATURE_LABELS_SPATIALDATA_ZARR]: DataType$1.FEATURE_LABELS,
|
|
9427
9429
|
[FileType$1.OBS_POINTS_SPATIALDATA_ZARR]: DataType$1.OBS_POINTS,
|
|
9430
|
+
[FileType$1.OBS_EMBEDDING_SPATIALDATA_ZARR]: DataType$1.OBS_EMBEDDING,
|
|
9428
9431
|
// For new file types to support old file types
|
|
9429
9432
|
[FileType$1.OBS_EMBEDDING_CELLS_JSON]: DataType$1.OBS_EMBEDDING,
|
|
9430
9433
|
[FileType$1.OBS_LOCATIONS_CELLS_JSON]: DataType$1.OBS_LOCATIONS,
|
|
@@ -9601,6 +9604,9 @@ const CoordinationType$1 = {
|
|
|
9601
9604
|
},
|
|
9602
9605
|
[FileType$1.OBS_POINTS_SPATIALDATA_ZARR]: {
|
|
9603
9606
|
zip: FileType$1.OBS_POINTS_SPATIALDATA_ZARR_ZIP
|
|
9607
|
+
},
|
|
9608
|
+
[FileType$1.OBS_EMBEDDING_SPATIALDATA_ZARR]: {
|
|
9609
|
+
zip: FileType$1.OBS_EMBEDDING_SPATIALDATA_ZARR_ZIP
|
|
9604
9610
|
}
|
|
9605
9611
|
});
|
|
9606
9612
|
[
|
|
@@ -10648,6 +10654,16 @@ const obsSetsSpatialdataSchema = z.object({
|
|
|
10648
10654
|
tablePath: z.string().optional().describe("The path to a table which contains the index for the set values."),
|
|
10649
10655
|
obsSets: annDataObsSetsArr
|
|
10650
10656
|
});
|
|
10657
|
+
annDataObsEmbedding.extend({
|
|
10658
|
+
// We extend anndataObsEmbedding which already has properties like `dims` and `path`.
|
|
10659
|
+
region: z.string().describe("The name of a region to use to filter instances (i.e., rows) in the table").optional(),
|
|
10660
|
+
tablePath: z.string().optional().describe("The path to a table which contains the index for the set values.")
|
|
10661
|
+
});
|
|
10662
|
+
const obsEmbeddingSpatialdataSchemaConvenience = z.union([
|
|
10663
|
+
annDataObsEmbedding,
|
|
10664
|
+
// For convenience, allow an array of items with `embeddingType` properties.
|
|
10665
|
+
z.array(annDataConvenienceObsEmbeddingItem)
|
|
10666
|
+
]);
|
|
10651
10667
|
z.object({
|
|
10652
10668
|
targetX: z.number(),
|
|
10653
10669
|
targetY: z.number(),
|
|
@@ -10756,9 +10772,10 @@ z.object({
|
|
|
10756
10772
|
// TODO: obsPoints
|
|
10757
10773
|
// TODO: obsLocations
|
|
10758
10774
|
obsSets: obsSetsSpatialdataSchema,
|
|
10759
|
-
|
|
10775
|
+
obsEmbedding: obsEmbeddingSpatialdataSchemaConvenience,
|
|
10760
10776
|
// TODO: obsLabels
|
|
10761
10777
|
// TODO: featureLabels
|
|
10778
|
+
// TODO: allow specifying tablePath and region at the top-level here.
|
|
10762
10779
|
coordinateSystem: z.string().optional().describe("The name of a coordinate transformation output used to transform all elements which lack a per-element coordinateSystem property.")
|
|
10763
10780
|
}).partial();
|
|
10764
10781
|
z.object({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/sets-utils",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.15",
|
|
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.
|
|
29
|
-
"@vitessce/utils": "3.6.
|
|
30
|
-
"@vitessce/globals": "3.6.
|
|
28
|
+
"@vitessce/schemas": "3.6.15",
|
|
29
|
+
"@vitessce/utils": "3.6.15",
|
|
30
|
+
"@vitessce/globals": "3.6.15"
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
33
33
|
"bundle": "pnpm exec vite build -c ../../../scripts/vite.config.js",
|