@vitessce/csv 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 +5 -5
package/dist/index.js
CHANGED
|
@@ -303,6 +303,9 @@ const FileType$1 = {
|
|
|
303
303
|
// OME-Zarr
|
|
304
304
|
IMAGE_OME_ZARR: "image.ome-zarr",
|
|
305
305
|
OBS_SEGMENTATIONS_OME_ZARR: "obsSegmentations.ome-zarr",
|
|
306
|
+
// OME-Zarr - Zipped
|
|
307
|
+
IMAGE_OME_ZARR_ZIP: "image.ome-zarr.zip",
|
|
308
|
+
OBS_SEGMENTATIONS_OME_ZARR_ZIP: "obsSegmentations.ome-zarr.zip",
|
|
306
309
|
// AnnData
|
|
307
310
|
OBS_FEATURE_MATRIX_ANNDATA_ZARR: "obsFeatureMatrix.anndata.zarr",
|
|
308
311
|
OBS_FEATURE_COLUMNS_ANNDATA_ZARR: "obsFeatureColumns.anndata.zarr",
|
|
@@ -409,6 +412,7 @@ const CoordinationType$1 = {
|
|
|
409
412
|
FEATURE_TYPE: "featureType",
|
|
410
413
|
FEATURE_VALUE_TYPE: "featureValueType",
|
|
411
414
|
OBS_LABELS_TYPE: "obsLabelsType",
|
|
415
|
+
FEATURE_LABELS_TYPE: "featureLabelsType",
|
|
412
416
|
// Other types
|
|
413
417
|
EMBEDDING_TYPE: "embeddingType",
|
|
414
418
|
EMBEDDING_ZOOM: "embeddingZoom",
|
|
@@ -9820,7 +9824,7 @@ const annDataObsSetsArr = z.array(z.object({
|
|
|
9820
9824
|
]),
|
|
9821
9825
|
scorePath: z.string().optional().describe("The location in the AnnData store for the set confidence scores, like 'obs/celltype_prediction_score.'")
|
|
9822
9826
|
}));
|
|
9823
|
-
|
|
9827
|
+
z.object({
|
|
9824
9828
|
obsSets: annDataObsSetsArr
|
|
9825
9829
|
});
|
|
9826
9830
|
const annDataObsFeatureColumnsArr = z.array(z.object({
|
|
@@ -9860,29 +9864,34 @@ const imageOmeZarrSchema = z.object({
|
|
|
9860
9864
|
imageOmeZarrSchema.extend({
|
|
9861
9865
|
obsTypesFromChannelNames: z.boolean().optional()
|
|
9862
9866
|
});
|
|
9863
|
-
const imageSpatialdataSchema =
|
|
9864
|
-
path: z.string()
|
|
9867
|
+
const imageSpatialdataSchema = z.object({
|
|
9868
|
+
path: z.string(),
|
|
9869
|
+
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.')
|
|
9865
9870
|
});
|
|
9866
9871
|
const obsSegmentationsSpatialdataSchema = z.object({
|
|
9867
|
-
// TODO: should this also extend the imageOmeZarrSchema?
|
|
9868
9872
|
// TODO: should this be renamed labelsSpatialdataSchema?
|
|
9869
9873
|
// TODO: support obsTypesFromChannelNames?
|
|
9870
|
-
path: z.string()
|
|
9874
|
+
path: z.string(),
|
|
9875
|
+
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."),
|
|
9876
|
+
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.')
|
|
9871
9877
|
});
|
|
9872
9878
|
z.object({
|
|
9873
|
-
path: z.string()
|
|
9879
|
+
path: z.string(),
|
|
9880
|
+
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.')
|
|
9874
9881
|
});
|
|
9875
9882
|
const obsSpotsSpatialdataSchema = z.object({
|
|
9876
9883
|
path: z.string(),
|
|
9877
|
-
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.")
|
|
9884
|
+
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."),
|
|
9885
|
+
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.')
|
|
9878
9886
|
});
|
|
9879
9887
|
const obsFeatureMatrixSpatialdataSchema = annDataObsFeatureMatrix.extend({
|
|
9880
|
-
region: z.string().describe("The name of a region to use to filter instances (i.e., rows) in the table").optional()
|
|
9888
|
+
region: z.string().describe("The name of a region to use to filter instances (i.e., rows) in the table").optional(),
|
|
9889
|
+
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.')
|
|
9881
9890
|
});
|
|
9882
9891
|
const obsSetsSpatialdataSchema = z.object({
|
|
9883
9892
|
region: z.string().describe("The name of a region to use to filter instances (i.e., rows) in the table").optional(),
|
|
9884
9893
|
tablePath: z.string().optional().describe("The path to a table which contains the index for the set values."),
|
|
9885
|
-
obsSets:
|
|
9894
|
+
obsSets: annDataObsSetsArr
|
|
9886
9895
|
});
|
|
9887
9896
|
z.object({
|
|
9888
9897
|
targetX: z.number(),
|
|
@@ -9978,15 +9987,21 @@ anndataZarrSchema.extend({
|
|
|
9978
9987
|
z.object({
|
|
9979
9988
|
// TODO: should `image` be a special schema
|
|
9980
9989
|
// to allow specifying fileUid (like for embeddingType)?
|
|
9990
|
+
// TODO: allow multiple images
|
|
9981
9991
|
image: imageSpatialdataSchema,
|
|
9982
9992
|
// TODO: should this be a special schema
|
|
9983
9993
|
// to allow specifying fileUid (like for embeddingType)?
|
|
9994
|
+
// TODO: allow multiple labels
|
|
9984
9995
|
labels: obsSegmentationsSpatialdataSchema,
|
|
9985
9996
|
obsFeatureMatrix: obsFeatureMatrixSpatialdataSchema,
|
|
9986
9997
|
obsSpots: obsSpotsSpatialdataSchema,
|
|
9987
9998
|
// TODO: obsPoints
|
|
9988
9999
|
// TODO: obsLocations
|
|
9989
|
-
obsSets: obsSetsSpatialdataSchema
|
|
10000
|
+
obsSets: obsSetsSpatialdataSchema,
|
|
10001
|
+
// TODO: obsEmbedding
|
|
10002
|
+
// TODO: obsLabels
|
|
10003
|
+
// TODO: featureLabels
|
|
10004
|
+
coordinateSystem: z.string().optional().describe("The name of a coordinate transformation output used to transform all elements which lack a per-element coordinateSystem property.")
|
|
9990
10005
|
}).partial();
|
|
9991
10006
|
z.object({
|
|
9992
10007
|
obsLabelsTypes: z.array(z.string()).optional(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/csv",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.14",
|
|
4
4
|
"author": "Gehlenborg Lab",
|
|
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.4.
|
|
22
|
-
"@vitessce/sets-utils": "3.4.
|
|
23
|
-
"@vitessce/vit-s": "3.4.
|
|
24
|
-
"@vitessce/config": "3.4.
|
|
21
|
+
"@vitessce/constants-internal": "3.4.14",
|
|
22
|
+
"@vitessce/sets-utils": "3.4.14",
|
|
23
|
+
"@vitessce/vit-s": "3.4.14",
|
|
24
|
+
"@vitessce/config": "3.4.14"
|
|
25
25
|
},
|
|
26
26
|
"scripts": {
|
|
27
27
|
"bundle": "pnpm exec vite build -c ../../../scripts/vite.config.js",
|