@vitessce/sets-utils 3.4.11 → 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 +25 -10
- 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",
|
|
@@ -9264,6 +9267,7 @@ const CoordinationType$1 = {
|
|
|
9264
9267
|
FEATURE_TYPE: "featureType",
|
|
9265
9268
|
FEATURE_VALUE_TYPE: "featureValueType",
|
|
9266
9269
|
OBS_LABELS_TYPE: "obsLabelsType",
|
|
9270
|
+
FEATURE_LABELS_TYPE: "featureLabelsType",
|
|
9267
9271
|
// Other types
|
|
9268
9272
|
EMBEDDING_TYPE: "embeddingType",
|
|
9269
9273
|
EMBEDDING_ZOOM: "embeddingZoom",
|
|
@@ -9639,7 +9643,7 @@ const annDataObsSetsArr = z.array(z.object({
|
|
|
9639
9643
|
]),
|
|
9640
9644
|
scorePath: z.string().optional().describe("The location in the AnnData store for the set confidence scores, like 'obs/celltype_prediction_score.'")
|
|
9641
9645
|
}));
|
|
9642
|
-
|
|
9646
|
+
z.object({
|
|
9643
9647
|
obsSets: annDataObsSetsArr
|
|
9644
9648
|
});
|
|
9645
9649
|
const annDataObsFeatureColumnsArr = z.array(z.object({
|
|
@@ -9679,29 +9683,34 @@ const imageOmeZarrSchema = z.object({
|
|
|
9679
9683
|
imageOmeZarrSchema.extend({
|
|
9680
9684
|
obsTypesFromChannelNames: z.boolean().optional()
|
|
9681
9685
|
});
|
|
9682
|
-
const imageSpatialdataSchema =
|
|
9683
|
-
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.')
|
|
9684
9689
|
});
|
|
9685
9690
|
const obsSegmentationsSpatialdataSchema = z.object({
|
|
9686
|
-
// TODO: should this also extend the imageOmeZarrSchema?
|
|
9687
9691
|
// TODO: should this be renamed labelsSpatialdataSchema?
|
|
9688
9692
|
// TODO: support obsTypesFromChannelNames?
|
|
9689
|
-
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.')
|
|
9690
9696
|
});
|
|
9691
9697
|
z.object({
|
|
9692
|
-
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.')
|
|
9693
9700
|
});
|
|
9694
9701
|
const obsSpotsSpatialdataSchema = z.object({
|
|
9695
9702
|
path: z.string(),
|
|
9696
|
-
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.')
|
|
9697
9705
|
});
|
|
9698
9706
|
const obsFeatureMatrixSpatialdataSchema = annDataObsFeatureMatrix.extend({
|
|
9699
|
-
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.')
|
|
9700
9709
|
});
|
|
9701
9710
|
const obsSetsSpatialdataSchema = z.object({
|
|
9702
9711
|
region: z.string().describe("The name of a region to use to filter instances (i.e., rows) in the table").optional(),
|
|
9703
9712
|
tablePath: z.string().optional().describe("The path to a table which contains the index for the set values."),
|
|
9704
|
-
obsSets:
|
|
9713
|
+
obsSets: annDataObsSetsArr
|
|
9705
9714
|
});
|
|
9706
9715
|
z.object({
|
|
9707
9716
|
targetX: z.number(),
|
|
@@ -9797,15 +9806,21 @@ anndataZarrSchema.extend({
|
|
|
9797
9806
|
z.object({
|
|
9798
9807
|
// TODO: should `image` be a special schema
|
|
9799
9808
|
// to allow specifying fileUid (like for embeddingType)?
|
|
9809
|
+
// TODO: allow multiple images
|
|
9800
9810
|
image: imageSpatialdataSchema,
|
|
9801
9811
|
// TODO: should this be a special schema
|
|
9802
9812
|
// to allow specifying fileUid (like for embeddingType)?
|
|
9813
|
+
// TODO: allow multiple labels
|
|
9803
9814
|
labels: obsSegmentationsSpatialdataSchema,
|
|
9804
9815
|
obsFeatureMatrix: obsFeatureMatrixSpatialdataSchema,
|
|
9805
9816
|
obsSpots: obsSpotsSpatialdataSchema,
|
|
9806
9817
|
// TODO: obsPoints
|
|
9807
9818
|
// TODO: obsLocations
|
|
9808
|
-
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.")
|
|
9809
9824
|
}).partial();
|
|
9810
9825
|
z.object({
|
|
9811
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",
|