@vitessce/sets-utils 3.4.12 → 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.
- package/dist/index.js +22 -8
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -9158,6 +9158,9 @@ const FileType$1 = {
|
|
|
9158
9158
|
// OME-Zarr
|
|
9159
9159
|
IMAGE_OME_ZARR: "image.ome-zarr",
|
|
9160
9160
|
OBS_SEGMENTATIONS_OME_ZARR: "obsSegmentations.ome-zarr",
|
|
9161
|
+
// OME-Zarr - Zipped
|
|
9162
|
+
IMAGE_OME_ZARR_ZIP: "image.ome-zarr.zip",
|
|
9163
|
+
OBS_SEGMENTATIONS_OME_ZARR_ZIP: "obsSegmentations.ome-zarr.zip",
|
|
9161
9164
|
// AnnData
|
|
9162
9165
|
OBS_FEATURE_MATRIX_ANNDATA_ZARR: "obsFeatureMatrix.anndata.zarr",
|
|
9163
9166
|
OBS_FEATURE_COLUMNS_ANNDATA_ZARR: "obsFeatureColumns.anndata.zarr",
|
|
@@ -9680,24 +9683,29 @@ const imageOmeZarrSchema = z.object({
|
|
|
9680
9683
|
imageOmeZarrSchema.extend({
|
|
9681
9684
|
obsTypesFromChannelNames: z.boolean().optional()
|
|
9682
9685
|
});
|
|
9683
|
-
const imageSpatialdataSchema =
|
|
9684
|
-
path: z.string()
|
|
9686
|
+
const imageSpatialdataSchema = z.object({
|
|
9687
|
+
path: z.string(),
|
|
9688
|
+
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.')
|
|
9685
9689
|
});
|
|
9686
9690
|
const obsSegmentationsSpatialdataSchema = z.object({
|
|
9687
|
-
// TODO: should this also extend the imageOmeZarrSchema?
|
|
9688
9691
|
// TODO: should this be renamed labelsSpatialdataSchema?
|
|
9689
9692
|
// TODO: support obsTypesFromChannelNames?
|
|
9690
|
-
path: z.string()
|
|
9693
|
+
path: z.string(),
|
|
9694
|
+
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."),
|
|
9695
|
+
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.')
|
|
9691
9696
|
});
|
|
9692
9697
|
z.object({
|
|
9693
|
-
path: z.string()
|
|
9698
|
+
path: z.string(),
|
|
9699
|
+
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.')
|
|
9694
9700
|
});
|
|
9695
9701
|
const obsSpotsSpatialdataSchema = z.object({
|
|
9696
9702
|
path: z.string(),
|
|
9697
|
-
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.")
|
|
9703
|
+
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."),
|
|
9704
|
+
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.')
|
|
9698
9705
|
});
|
|
9699
9706
|
const obsFeatureMatrixSpatialdataSchema = annDataObsFeatureMatrix.extend({
|
|
9700
|
-
region: z.string().describe("The name of a region to use to filter instances (i.e., rows) in the table").optional()
|
|
9707
|
+
region: z.string().describe("The name of a region to use to filter instances (i.e., rows) in the table").optional(),
|
|
9708
|
+
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.')
|
|
9701
9709
|
});
|
|
9702
9710
|
const obsSetsSpatialdataSchema = z.object({
|
|
9703
9711
|
region: z.string().describe("The name of a region to use to filter instances (i.e., rows) in the table").optional(),
|
|
@@ -9798,15 +9806,21 @@ anndataZarrSchema.extend({
|
|
|
9798
9806
|
z.object({
|
|
9799
9807
|
// TODO: should `image` be a special schema
|
|
9800
9808
|
// to allow specifying fileUid (like for embeddingType)?
|
|
9809
|
+
// TODO: allow multiple images
|
|
9801
9810
|
image: imageSpatialdataSchema,
|
|
9802
9811
|
// TODO: should this be a special schema
|
|
9803
9812
|
// to allow specifying fileUid (like for embeddingType)?
|
|
9813
|
+
// TODO: allow multiple labels
|
|
9804
9814
|
labels: obsSegmentationsSpatialdataSchema,
|
|
9805
9815
|
obsFeatureMatrix: obsFeatureMatrixSpatialdataSchema,
|
|
9806
9816
|
obsSpots: obsSpotsSpatialdataSchema,
|
|
9807
9817
|
// TODO: obsPoints
|
|
9808
9818
|
// TODO: obsLocations
|
|
9809
|
-
obsSets: obsSetsSpatialdataSchema
|
|
9819
|
+
obsSets: obsSetsSpatialdataSchema,
|
|
9820
|
+
// TODO: obsEmbedding
|
|
9821
|
+
// TODO: obsLabels
|
|
9822
|
+
// TODO: featureLabels
|
|
9823
|
+
coordinateSystem: z.string().optional().describe("The name of a coordinate transformation output used to transform all elements which lack a per-element coordinateSystem property.")
|
|
9810
9824
|
}).partial();
|
|
9811
9825
|
z.object({
|
|
9812
9826
|
obsLabelsTypes: z.array(z.string()).optional(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/sets-utils",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.14",
|
|
4
4
|
"author": "Gehlenborg Lab",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"lodash-es": "^4.17.21",
|
|
26
26
|
"tinycolor2": "^1.4.1",
|
|
27
27
|
"uuid": "^9.0.0",
|
|
28
|
-
"@vitessce/schemas": "3.4.
|
|
29
|
-
"@vitessce/utils": "3.4.
|
|
28
|
+
"@vitessce/schemas": "3.4.14",
|
|
29
|
+
"@vitessce/utils": "3.4.14"
|
|
30
30
|
},
|
|
31
31
|
"scripts": {
|
|
32
32
|
"bundle": "pnpm exec vite build -c ../../../scripts/vite.config.js",
|