@vitessce/schemas 3.1.3 → 3.2.1
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 +89 -5
- package/dist-tsc/file-def-options.d.ts +76 -0
- package/dist-tsc/file-def-options.d.ts.map +1 -1
- package/dist-tsc/file-def-options.js +16 -2
- package/dist-tsc/index.d.ts +1 -1
- package/dist-tsc/index.d.ts.map +1 -1
- package/dist-tsc/index.js +1 -1
- package/package.json +5 -5
- package/src/file-def-options.ts +16 -2
- package/src/index.ts +4 -0
package/dist/index.js
CHANGED
|
@@ -8496,8 +8496,10 @@ const ViewType$1 = {
|
|
|
8496
8496
|
STATUS: "status",
|
|
8497
8497
|
SCATTERPLOT: "scatterplot",
|
|
8498
8498
|
SPATIAL: "spatial",
|
|
8499
|
+
SPATIAL_BETA: "spatialBeta",
|
|
8499
8500
|
HEATMAP: "heatmap",
|
|
8500
8501
|
LAYER_CONTROLLER: "layerController",
|
|
8502
|
+
LAYER_CONTROLLER_BETA: "layerControllerBeta",
|
|
8501
8503
|
GENOMIC_PROFILES: "genomicProfiles",
|
|
8502
8504
|
GATING: "gating",
|
|
8503
8505
|
FEATURE_LIST: "featureList",
|
|
@@ -8509,20 +8511,24 @@ const ViewType$1 = {
|
|
|
8509
8511
|
const DataType$1 = {
|
|
8510
8512
|
OBS_LABELS: "obsLabels",
|
|
8511
8513
|
OBS_EMBEDDING: "obsEmbedding",
|
|
8512
|
-
OBS_LOCATIONS: "obsLocations",
|
|
8513
8514
|
OBS_FEATURE_MATRIX: "obsFeatureMatrix",
|
|
8514
8515
|
OBS_SETS: "obsSets",
|
|
8515
8516
|
FEATURE_LABELS: "featureLabels",
|
|
8516
8517
|
IMAGE: "image",
|
|
8517
8518
|
OBS_SEGMENTATIONS: "obsSegmentations",
|
|
8518
8519
|
NEIGHBORHOODS: "neighborhoods",
|
|
8519
|
-
GENOMIC_PROFILES: "genomic-profiles"
|
|
8520
|
+
GENOMIC_PROFILES: "genomic-profiles",
|
|
8521
|
+
OBS_SPOTS: "obsSpots",
|
|
8522
|
+
OBS_POINTS: "obsPoints",
|
|
8523
|
+
OBS_LOCATIONS: "obsLocations"
|
|
8520
8524
|
};
|
|
8521
8525
|
const FileType$1 = {
|
|
8522
8526
|
// Joint file types
|
|
8523
8527
|
ANNDATA_ZARR: "anndata.zarr",
|
|
8524
8528
|
// Atomic file types
|
|
8525
8529
|
OBS_EMBEDDING_CSV: "obsEmbedding.csv",
|
|
8530
|
+
OBS_SPOTS_CSV: "obsSpots.csv",
|
|
8531
|
+
OBS_POINTS_CSV: "obsPoints.csv",
|
|
8526
8532
|
OBS_LOCATIONS_CSV: "obsLocations.csv",
|
|
8527
8533
|
OBS_LABELS_CSV: "obsLabels.csv",
|
|
8528
8534
|
FEATURE_LABELS_CSV: "featureLabels.csv",
|
|
@@ -8535,6 +8541,8 @@ const FileType$1 = {
|
|
|
8535
8541
|
OBS_FEATURE_MATRIX_ANNDATA_ZARR: "obsFeatureMatrix.anndata.zarr",
|
|
8536
8542
|
OBS_SETS_ANNDATA_ZARR: "obsSets.anndata.zarr",
|
|
8537
8543
|
OBS_EMBEDDING_ANNDATA_ZARR: "obsEmbedding.anndata.zarr",
|
|
8544
|
+
OBS_SPOTS_ANNDATA_ZARR: "obsSpots.anndata.zarr",
|
|
8545
|
+
OBS_POINTS_ANNDATA_ZARR: "obsPoints.anndata.zarr",
|
|
8538
8546
|
OBS_LOCATIONS_ANNDATA_ZARR: "obsLocations.anndata.zarr",
|
|
8539
8547
|
OBS_SEGMENTATIONS_ANNDATA_ZARR: "obsSegmentations.anndata.zarr",
|
|
8540
8548
|
OBS_LABELS_ANNDATA_ZARR: "obsLabels.anndata.zarr",
|
|
@@ -8543,6 +8551,8 @@ const FileType$1 = {
|
|
|
8543
8551
|
OBS_FEATURE_MATRIX_MUDATA_ZARR: "obsFeatureMatrix.mudata.zarr",
|
|
8544
8552
|
OBS_SETS_MUDATA_ZARR: "obsSets.mudata.zarr",
|
|
8545
8553
|
OBS_EMBEDDING_MUDATA_ZARR: "obsEmbedding.mudata.zarr",
|
|
8554
|
+
OBS_SPOTS_MUDATA_ZARR: "obsSpots.mudata.zarr",
|
|
8555
|
+
OBS_POINTS_MUDATA_ZARR: "obsPoints.mudata.zarr",
|
|
8546
8556
|
OBS_LOCATIONS_MUDATA_ZARR: "obsLocations.mudata.zarr",
|
|
8547
8557
|
OBS_SEGMENTATIONS_MUDATA_ZARR: "obsSegmentations.mudata.zarr",
|
|
8548
8558
|
OBS_LABELS_MUDATA_ZARR: "obsLabels.mudata.zarr",
|
|
@@ -8586,10 +8596,8 @@ const FileType$1 = {
|
|
|
8586
8596
|
ANNDATA_EXPRESSION_MATRIX_ZARR: "anndata-expression-matrix.zarr"
|
|
8587
8597
|
};
|
|
8588
8598
|
const CoordinationType$1 = {
|
|
8589
|
-
// Meta coordination scopes
|
|
8590
8599
|
META_COORDINATION_SCOPES: "metaCoordinationScopes",
|
|
8591
8600
|
META_COORDINATION_SCOPES_BY: "metaCoordinationScopesBy",
|
|
8592
|
-
// Other coordination scopes
|
|
8593
8601
|
DATASET: "dataset",
|
|
8594
8602
|
// Entity types
|
|
8595
8603
|
OBS_TYPE: "obsType",
|
|
@@ -8615,6 +8623,7 @@ const CoordinationType$1 = {
|
|
|
8615
8623
|
SPATIAL_TARGET_X: "spatialTargetX",
|
|
8616
8624
|
SPATIAL_TARGET_Y: "spatialTargetY",
|
|
8617
8625
|
SPATIAL_TARGET_Z: "spatialTargetZ",
|
|
8626
|
+
SPATIAL_TARGET_T: "spatialTargetT",
|
|
8618
8627
|
SPATIAL_ROTATION_X: "spatialRotationX",
|
|
8619
8628
|
SPATIAL_ROTATION_Y: "spatialRotationY",
|
|
8620
8629
|
SPATIAL_ROTATION_Z: "spatialRotationZ",
|
|
@@ -8652,7 +8661,46 @@ const CoordinationType$1 = {
|
|
|
8652
8661
|
GATING_FEATURE_SELECTION_X: "gatingFeatureSelectionX",
|
|
8653
8662
|
GATING_FEATURE_SELECTION_Y: "gatingFeatureSelectionY",
|
|
8654
8663
|
FEATURE_VALUE_TRANSFORM_COEFFICIENT: "featureValueTransformCoefficient",
|
|
8655
|
-
TOOLTIPS_VISIBLE: "tooltipsVisible"
|
|
8664
|
+
TOOLTIPS_VISIBLE: "tooltipsVisible",
|
|
8665
|
+
FILE_UID: "fileUid",
|
|
8666
|
+
IMAGE_LAYER: "imageLayer",
|
|
8667
|
+
IMAGE_CHANNEL: "imageChannel",
|
|
8668
|
+
SEGMENTATION_LAYER: "segmentationLayer",
|
|
8669
|
+
SEGMENTATION_CHANNEL: "segmentationChannel",
|
|
8670
|
+
SPATIAL_TARGET_C: "spatialTargetC",
|
|
8671
|
+
SPATIAL_LAYER_VISIBLE: "spatialLayerVisible",
|
|
8672
|
+
SPATIAL_LAYER_OPACITY: "spatialLayerOpacity",
|
|
8673
|
+
SPATIAL_LAYER_COLORMAP: "spatialLayerColormap",
|
|
8674
|
+
SPATIAL_LAYER_TRANSPARENT_COLOR: "spatialLayerTransparentColor",
|
|
8675
|
+
SPATIAL_LAYER_MODEL_MATRIX: "spatialLayerModelMatrix",
|
|
8676
|
+
SPATIAL_SEGMENTATION_FILLED: "spatialSegmentationFilled",
|
|
8677
|
+
SPATIAL_SEGMENTATION_STROKE_WIDTH: "spatialSegmentationStrokeWidth",
|
|
8678
|
+
SPATIAL_CHANNEL_COLOR: "spatialChannelColor",
|
|
8679
|
+
SPATIAL_CHANNEL_VISIBLE: "spatialChannelVisible",
|
|
8680
|
+
SPATIAL_CHANNEL_OPACITY: "spatialChannelOpacity",
|
|
8681
|
+
SPATIAL_CHANNEL_WINDOW: "spatialChannelWindow",
|
|
8682
|
+
PHOTOMETRIC_INTERPRETATION: "photometricInterpretation",
|
|
8683
|
+
// For 3D volume rendering
|
|
8684
|
+
SPATIAL_RENDERING_MODE: "spatialRenderingMode",
|
|
8685
|
+
VOLUMETRIC_RENDERING_ALGORITHM: "volumetricRenderingAlgorithm",
|
|
8686
|
+
SPATIAL_TARGET_RESOLUTION: "spatialTargetResolution",
|
|
8687
|
+
// For clipping plane sliders
|
|
8688
|
+
SPATIAL_SLICE_X: "spatialSliceX",
|
|
8689
|
+
SPATIAL_SLICE_Y: "spatialSliceY",
|
|
8690
|
+
SPATIAL_SLICE_Z: "spatialSliceZ",
|
|
8691
|
+
// For spatial spot and point layers
|
|
8692
|
+
SPOT_LAYER: "spotLayer",
|
|
8693
|
+
POINT_LAYER: "pointLayer",
|
|
8694
|
+
SPATIAL_SPOT_RADIUS: "spatialSpotRadius",
|
|
8695
|
+
SPATIAL_SPOT_FILLED: "spatialSpotFilled",
|
|
8696
|
+
SPATIAL_SPOT_STROKE_WIDTH: "spatialSpotStrokeWidth",
|
|
8697
|
+
SPATIAL_LAYER_COLOR: "spatialLayerColor",
|
|
8698
|
+
PIXEL_HIGHLIGHT: "pixelHighlight",
|
|
8699
|
+
TOOLTIP_CROSSHAIRS_VISIBLE: "tooltipCrosshairsVisible",
|
|
8700
|
+
LEGEND_VISIBLE: "legendVisible",
|
|
8701
|
+
SPATIAL_CHANNEL_LABELS_VISIBLE: "spatialChannelLabelsVisible",
|
|
8702
|
+
SPATIAL_CHANNEL_LABELS_ORIENTATION: "spatialChannelLabelsOrientation",
|
|
8703
|
+
SPATIAL_CHANNEL_LABEL_SIZE: "spatialChannelLabelSize"
|
|
8656
8704
|
};
|
|
8657
8705
|
const ViewType = {
|
|
8658
8706
|
GENES: [
|
|
@@ -8913,6 +8961,8 @@ const annDataObsSets$1 = z.array(z.object({
|
|
|
8913
8961
|
]),
|
|
8914
8962
|
scorePath: z.string().optional().describe("The location in the AnnData store for the set confidence scores, like 'obs/celltype_prediction_score.'")
|
|
8915
8963
|
}));
|
|
8964
|
+
const annDataObsSpots$1 = annDataObsm$1;
|
|
8965
|
+
const annDataObsPoints$1 = annDataObsm$1;
|
|
8916
8966
|
const annDataObsLocations$1 = annDataObsm$1;
|
|
8917
8967
|
const annDataObsEmbedding$1 = annDataObsm$1;
|
|
8918
8968
|
const annDataObsSegmentations$1 = annDataObs$1;
|
|
@@ -8939,10 +8989,21 @@ z.object({
|
|
|
8939
8989
|
z.object({
|
|
8940
8990
|
obsIndex: z.string(),
|
|
8941
8991
|
obsEmbedding: z.array(z.string()).length(2)
|
|
8992
|
+
// TODO: support 3D?
|
|
8993
|
+
});
|
|
8994
|
+
z.object({
|
|
8995
|
+
obsIndex: z.string(),
|
|
8996
|
+
obsSpots: z.array(z.string()).length(2)
|
|
8997
|
+
// TODO: support 3D?
|
|
8998
|
+
});
|
|
8999
|
+
z.object({
|
|
9000
|
+
obsIndex: z.string(),
|
|
9001
|
+
obsPoints: z.array(z.string()).length(3)
|
|
8942
9002
|
});
|
|
8943
9003
|
z.object({
|
|
8944
9004
|
obsIndex: z.string(),
|
|
8945
9005
|
obsLocations: z.array(z.string()).length(2)
|
|
9006
|
+
// TODO: support 3D?
|
|
8946
9007
|
});
|
|
8947
9008
|
z.object({
|
|
8948
9009
|
obsIndex: z.string(),
|
|
@@ -8974,6 +9035,8 @@ z.object({
|
|
|
8974
9035
|
]),
|
|
8975
9036
|
obsFeatureMatrix: annDataObsFeatureMatrix$1,
|
|
8976
9037
|
obsSets: annDataObsSets$1,
|
|
9038
|
+
obsSpots: annDataObsSpots$1,
|
|
9039
|
+
obsPoints: annDataObsPoints$1,
|
|
8977
9040
|
obsLocations: annDataObsLocations$1,
|
|
8978
9041
|
obsSegmentations: annDataObsSegmentations$1,
|
|
8979
9042
|
obsEmbedding: z.union([
|
|
@@ -16526,6 +16589,8 @@ const annDataObsSets = z.array(
|
|
|
16526
16589
|
scorePath: z.string().optional().describe("The location in the AnnData store for the set confidence scores, like 'obs/celltype_prediction_score.'")
|
|
16527
16590
|
})
|
|
16528
16591
|
);
|
|
16592
|
+
const annDataObsSpots = annDataObsm;
|
|
16593
|
+
const annDataObsPoints = annDataObsm;
|
|
16529
16594
|
const annDataObsLocations = annDataObsm;
|
|
16530
16595
|
const annDataObsEmbedding = annDataObsm;
|
|
16531
16596
|
const annDataObsSegmentations = annDataObs;
|
|
@@ -16550,6 +16615,8 @@ const imageOmeZarrSchema = z.object({
|
|
|
16550
16615
|
coordinateTransformations: omeCoordinateTransformations.optional()
|
|
16551
16616
|
});
|
|
16552
16617
|
const obsEmbeddingAnndataSchema = annDataObsEmbedding;
|
|
16618
|
+
const obsSpotsAnndataSchema = annDataObsLocations;
|
|
16619
|
+
const obsPointsAnndataSchema = annDataObsLocations;
|
|
16553
16620
|
const obsLocationsAnndataSchema = annDataObsLocations;
|
|
16554
16621
|
const obsSegmentationsAnndataSchema = annDataObsSegmentations;
|
|
16555
16622
|
const obsSetsAnndataSchema = annDataObsSets;
|
|
@@ -16559,10 +16626,21 @@ const featureLabelsAnndataSchema = annDataFeatureLabels;
|
|
|
16559
16626
|
const obsEmbeddingCsvSchema = z.object({
|
|
16560
16627
|
obsIndex: z.string(),
|
|
16561
16628
|
obsEmbedding: z.array(z.string()).length(2)
|
|
16629
|
+
// TODO: support 3D?
|
|
16630
|
+
});
|
|
16631
|
+
const obsSpotsCsvSchema = z.object({
|
|
16632
|
+
obsIndex: z.string(),
|
|
16633
|
+
obsSpots: z.array(z.string()).length(2)
|
|
16634
|
+
// TODO: support 3D?
|
|
16635
|
+
});
|
|
16636
|
+
const obsPointsCsvSchema = z.object({
|
|
16637
|
+
obsIndex: z.string(),
|
|
16638
|
+
obsPoints: z.array(z.string()).length(3)
|
|
16562
16639
|
});
|
|
16563
16640
|
const obsLocationsCsvSchema = z.object({
|
|
16564
16641
|
obsIndex: z.string(),
|
|
16565
16642
|
obsLocations: z.array(z.string()).length(2)
|
|
16643
|
+
// TODO: support 3D?
|
|
16566
16644
|
});
|
|
16567
16645
|
const obsLabelsCsvSchema = z.object({
|
|
16568
16646
|
obsIndex: z.string(),
|
|
@@ -16596,6 +16674,8 @@ const anndataZarrSchema = z.object({
|
|
|
16596
16674
|
]),
|
|
16597
16675
|
obsFeatureMatrix: annDataObsFeatureMatrix,
|
|
16598
16676
|
obsSets: annDataObsSets,
|
|
16677
|
+
obsSpots: annDataObsSpots,
|
|
16678
|
+
obsPoints: annDataObsPoints,
|
|
16599
16679
|
obsLocations: annDataObsLocations,
|
|
16600
16680
|
obsSegmentations: annDataObsSegmentations,
|
|
16601
16681
|
obsEmbedding: z.union([
|
|
@@ -16711,12 +16791,16 @@ export {
|
|
|
16711
16791
|
obsLabelsCsvSchema,
|
|
16712
16792
|
obsLocationsAnndataSchema,
|
|
16713
16793
|
obsLocationsCsvSchema,
|
|
16794
|
+
obsPointsAnndataSchema,
|
|
16795
|
+
obsPointsCsvSchema,
|
|
16714
16796
|
obsSegmentationsAnndataSchema,
|
|
16715
16797
|
obsSetPath,
|
|
16716
16798
|
obsSetsAnndataSchema,
|
|
16717
16799
|
obsSetsCsvSchema,
|
|
16718
16800
|
obsSetsSchema,
|
|
16719
16801
|
obsSetsTabularSchema,
|
|
16802
|
+
obsSpotsAnndataSchema,
|
|
16803
|
+
obsSpotsCsvSchema,
|
|
16720
16804
|
rasterJsonSchema,
|
|
16721
16805
|
rgbArray,
|
|
16722
16806
|
upgradeAndParse,
|
|
@@ -109,6 +109,26 @@ export declare const obsEmbeddingAnndataSchema: z.ZodObject<{
|
|
|
109
109
|
path: string;
|
|
110
110
|
dims?: number[] | undefined;
|
|
111
111
|
}>;
|
|
112
|
+
export declare const obsSpotsAnndataSchema: z.ZodObject<{
|
|
113
|
+
path: z.ZodString;
|
|
114
|
+
dims: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
115
|
+
}, "strip", z.ZodTypeAny, {
|
|
116
|
+
path: string;
|
|
117
|
+
dims?: number[] | undefined;
|
|
118
|
+
}, {
|
|
119
|
+
path: string;
|
|
120
|
+
dims?: number[] | undefined;
|
|
121
|
+
}>;
|
|
122
|
+
export declare const obsPointsAnndataSchema: z.ZodObject<{
|
|
123
|
+
path: z.ZodString;
|
|
124
|
+
dims: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
125
|
+
}, "strip", z.ZodTypeAny, {
|
|
126
|
+
path: string;
|
|
127
|
+
dims?: number[] | undefined;
|
|
128
|
+
}, {
|
|
129
|
+
path: string;
|
|
130
|
+
dims?: number[] | undefined;
|
|
131
|
+
}>;
|
|
112
132
|
export declare const obsLocationsAnndataSchema: z.ZodObject<{
|
|
113
133
|
path: z.ZodString;
|
|
114
134
|
dims: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
@@ -176,6 +196,26 @@ export declare const obsEmbeddingCsvSchema: z.ZodObject<{
|
|
|
176
196
|
obsIndex: string;
|
|
177
197
|
obsEmbedding: string[];
|
|
178
198
|
}>;
|
|
199
|
+
export declare const obsSpotsCsvSchema: z.ZodObject<{
|
|
200
|
+
obsIndex: z.ZodString;
|
|
201
|
+
obsSpots: z.ZodArray<z.ZodString, "many">;
|
|
202
|
+
}, "strip", z.ZodTypeAny, {
|
|
203
|
+
obsIndex: string;
|
|
204
|
+
obsSpots: string[];
|
|
205
|
+
}, {
|
|
206
|
+
obsIndex: string;
|
|
207
|
+
obsSpots: string[];
|
|
208
|
+
}>;
|
|
209
|
+
export declare const obsPointsCsvSchema: z.ZodObject<{
|
|
210
|
+
obsIndex: z.ZodString;
|
|
211
|
+
obsPoints: z.ZodArray<z.ZodString, "many">;
|
|
212
|
+
}, "strip", z.ZodTypeAny, {
|
|
213
|
+
obsIndex: string;
|
|
214
|
+
obsPoints: string[];
|
|
215
|
+
}, {
|
|
216
|
+
obsIndex: string;
|
|
217
|
+
obsPoints: string[];
|
|
218
|
+
}>;
|
|
179
219
|
export declare const obsLocationsCsvSchema: z.ZodObject<{
|
|
180
220
|
obsIndex: z.ZodString;
|
|
181
221
|
obsLocations: z.ZodArray<z.ZodString, "many">;
|
|
@@ -298,6 +338,26 @@ export declare const anndataZarrSchema: z.ZodObject<{
|
|
|
298
338
|
name: string;
|
|
299
339
|
scorePath?: string | undefined;
|
|
300
340
|
}>, "many">>;
|
|
341
|
+
obsSpots: z.ZodOptional<z.ZodObject<{
|
|
342
|
+
path: z.ZodString;
|
|
343
|
+
dims: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
344
|
+
}, "strip", z.ZodTypeAny, {
|
|
345
|
+
path: string;
|
|
346
|
+
dims?: number[] | undefined;
|
|
347
|
+
}, {
|
|
348
|
+
path: string;
|
|
349
|
+
dims?: number[] | undefined;
|
|
350
|
+
}>>;
|
|
351
|
+
obsPoints: z.ZodOptional<z.ZodObject<{
|
|
352
|
+
path: z.ZodString;
|
|
353
|
+
dims: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
354
|
+
}, "strip", z.ZodTypeAny, {
|
|
355
|
+
path: string;
|
|
356
|
+
dims?: number[] | undefined;
|
|
357
|
+
}, {
|
|
358
|
+
path: string;
|
|
359
|
+
dims?: number[] | undefined;
|
|
360
|
+
}>>;
|
|
301
361
|
obsLocations: z.ZodOptional<z.ZodObject<{
|
|
302
362
|
path: z.ZodString;
|
|
303
363
|
dims: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
@@ -360,6 +420,14 @@ export declare const anndataZarrSchema: z.ZodObject<{
|
|
|
360
420
|
name: string;
|
|
361
421
|
scorePath?: string | undefined;
|
|
362
422
|
}[] | undefined;
|
|
423
|
+
obsSpots?: {
|
|
424
|
+
path: string;
|
|
425
|
+
dims?: number[] | undefined;
|
|
426
|
+
} | undefined;
|
|
427
|
+
obsPoints?: {
|
|
428
|
+
path: string;
|
|
429
|
+
dims?: number[] | undefined;
|
|
430
|
+
} | undefined;
|
|
363
431
|
obsLocations?: {
|
|
364
432
|
path: string;
|
|
365
433
|
dims?: number[] | undefined;
|
|
@@ -398,6 +466,14 @@ export declare const anndataZarrSchema: z.ZodObject<{
|
|
|
398
466
|
name: string;
|
|
399
467
|
scorePath?: string | undefined;
|
|
400
468
|
}[] | undefined;
|
|
469
|
+
obsSpots?: {
|
|
470
|
+
path: string;
|
|
471
|
+
dims?: number[] | undefined;
|
|
472
|
+
} | undefined;
|
|
473
|
+
obsPoints?: {
|
|
474
|
+
path: string;
|
|
475
|
+
dims?: number[] | undefined;
|
|
476
|
+
} | undefined;
|
|
401
477
|
obsLocations?: {
|
|
402
478
|
path: string;
|
|
403
479
|
dims?: number[] | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-def-options.d.ts","sourceRoot":"","sources":["../src/file-def-options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"file-def-options.d.ts","sourceRoot":"","sources":["../src/file-def-options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAkFxB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK7B,CAAC;AAGH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG7B,CAAC;AAGH;;GAEG;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;EAAsB,CAAC;AAC7D,eAAO,MAAM,qBAAqB;;;;;;;;;EAAsB,CAAC;AACzD,eAAO,MAAM,sBAAsB;;;;;;;;;EAAsB,CAAC;AAC1D,eAAO,MAAM,yBAAyB;;;;;;;;;EAAsB,CAAC;AAC7D,eAAO,MAAM,6BAA6B;;;;;;EAA0B,CAAC;AACrE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;WAAiB,CAAC;AACnD,eAAO,MAAM,6BAA6B;;;;;;;;;;;;EAA0B,CAAC;AACrE,eAAO,MAAM,sBAAsB;;;;;;EAAmB,CAAC;AACvD,eAAO,MAAM,0BAA0B;;;;;;EAAuB,CAAC;AAG/D,eAAO,MAAM,qBAAqB;;;;;;;;;EAGhC,CAAC;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;EAG5B,CAAC;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;EAG7B,CAAC;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;EAGhC,CAAC;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;EAG7B,CAAC;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;EAGjC,CAAC;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAY3B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmBlB,CAAC"}
|
|
@@ -46,6 +46,8 @@ const annDataObsSets = z.array(z.object({
|
|
|
46
46
|
.optional()
|
|
47
47
|
.describe("The location in the AnnData store for the set confidence scores, like 'obs/celltype_prediction_score.'"),
|
|
48
48
|
}));
|
|
49
|
+
const annDataObsSpots = annDataObsm;
|
|
50
|
+
const annDataObsPoints = annDataObsm;
|
|
49
51
|
const annDataObsLocations = annDataObsm;
|
|
50
52
|
const annDataObsEmbedding = annDataObsm;
|
|
51
53
|
const annDataObsSegmentations = annDataObs;
|
|
@@ -82,6 +84,8 @@ export const imageOmeZarrSchema = z.object({
|
|
|
82
84
|
*/
|
|
83
85
|
// AnnData
|
|
84
86
|
export const obsEmbeddingAnndataSchema = annDataObsEmbedding;
|
|
87
|
+
export const obsSpotsAnndataSchema = annDataObsLocations;
|
|
88
|
+
export const obsPointsAnndataSchema = annDataObsLocations;
|
|
85
89
|
export const obsLocationsAnndataSchema = annDataObsLocations;
|
|
86
90
|
export const obsSegmentationsAnndataSchema = annDataObsSegmentations;
|
|
87
91
|
export const obsSetsAnndataSchema = annDataObsSets;
|
|
@@ -91,11 +95,19 @@ export const featureLabelsAnndataSchema = annDataFeatureLabels;
|
|
|
91
95
|
// CSV
|
|
92
96
|
export const obsEmbeddingCsvSchema = z.object({
|
|
93
97
|
obsIndex: z.string(),
|
|
94
|
-
obsEmbedding: z.array(z.string()).length(2),
|
|
98
|
+
obsEmbedding: z.array(z.string()).length(2), // TODO: support 3D?
|
|
99
|
+
});
|
|
100
|
+
export const obsSpotsCsvSchema = z.object({
|
|
101
|
+
obsIndex: z.string(),
|
|
102
|
+
obsSpots: z.array(z.string()).length(2), // TODO: support 3D?
|
|
103
|
+
});
|
|
104
|
+
export const obsPointsCsvSchema = z.object({
|
|
105
|
+
obsIndex: z.string(),
|
|
106
|
+
obsPoints: z.array(z.string()).length(3),
|
|
95
107
|
});
|
|
96
108
|
export const obsLocationsCsvSchema = z.object({
|
|
97
109
|
obsIndex: z.string(),
|
|
98
|
-
obsLocations: z.array(z.string()).length(2),
|
|
110
|
+
obsLocations: z.array(z.string()).length(2), // TODO: support 3D?
|
|
99
111
|
});
|
|
100
112
|
export const obsLabelsCsvSchema = z.object({
|
|
101
113
|
obsIndex: z.string(),
|
|
@@ -130,6 +142,8 @@ export const anndataZarrSchema = z.object({
|
|
|
130
142
|
]),
|
|
131
143
|
obsFeatureMatrix: annDataObsFeatureMatrix,
|
|
132
144
|
obsSets: annDataObsSets,
|
|
145
|
+
obsSpots: annDataObsSpots,
|
|
146
|
+
obsPoints: annDataObsPoints,
|
|
133
147
|
obsLocations: annDataObsLocations,
|
|
134
148
|
obsSegmentations: annDataObsSegmentations,
|
|
135
149
|
obsEmbedding: z.union([
|
package/dist-tsc/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export { latestConfigSchema } from './previous-config-meta.js';
|
|
|
3
3
|
export { latestFileDefSchema } from './previous-config-schemas.js';
|
|
4
4
|
export { upgradeAndParse, VERSIONED_CONFIG_SCHEMAS } from './view-config-versions.js';
|
|
5
5
|
export { rasterJsonSchema } from './raster-json.js';
|
|
6
|
-
export { obsEmbeddingCsvSchema, obsSetsCsvSchema, obsLocationsCsvSchema, obsLabelsCsvSchema, featureLabelsCsvSchema, obsSetsAnndataSchema, obsEmbeddingAnndataSchema, obsLocationsAnndataSchema, obsLabelsAnndataSchema, obsFeatureMatrixAnndataSchema, obsSegmentationsAnndataSchema, featureLabelsAnndataSchema, anndataZarrSchema, imageOmeZarrSchema, imageOmeTiffSchema, } from './file-def-options.js';
|
|
6
|
+
export { obsEmbeddingCsvSchema, obsSetsCsvSchema, obsSpotsCsvSchema, obsPointsCsvSchema, obsLocationsCsvSchema, obsLabelsCsvSchema, featureLabelsCsvSchema, obsSetsAnndataSchema, obsEmbeddingAnndataSchema, obsSpotsAnndataSchema, obsPointsAnndataSchema, obsLocationsAnndataSchema, obsLabelsAnndataSchema, obsFeatureMatrixAnndataSchema, obsSegmentationsAnndataSchema, featureLabelsAnndataSchema, anndataZarrSchema, imageOmeZarrSchema, imageOmeTiffSchema, } from './file-def-options.js';
|
|
7
7
|
export { anndataCellsZarrSchema, anndataCellSetsZarrSchema, anndataExpressionMatrixZarrSchema, cellsJsonSchema, } from './file-def-options-legacy.js';
|
|
8
8
|
export { obsSetPath, rgbArray, obsSetsSchema, obsSetsTabularSchema, } from './shared.js';
|
|
9
9
|
export { imageLayerObj, cellsLayerObj, neighborhoodsLayerObj, moleculesLayerObj, } from './spatial-layers.js';
|
package/dist-tsc/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AACtF,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EACL,qBAAqB,EACrB,gBAAgB,EAChB,qBAAqB,EACrB,kBAAkB,EAClB,sBAAsB,EACtB,oBAAoB,EACpB,yBAAyB,EACzB,yBAAyB,EACzB,sBAAsB,EACtB,6BAA6B,EAC7B,6BAA6B,EAC7B,0BAA0B,EAC1B,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EACtB,yBAAyB,EACzB,iCAAiC,EACjC,eAAe,GAChB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,UAAU,EACV,QAAQ,EACR,aAAa,EACb,oBAAoB,GACrB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,aAAa,EACb,aAAa,EACb,qBAAqB,EACrB,iBAAiB,GAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AACtF,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EACL,qBAAqB,EACrB,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,qBAAqB,EACrB,kBAAkB,EAClB,sBAAsB,EACtB,oBAAoB,EACpB,yBAAyB,EACzB,qBAAqB,EACrB,sBAAsB,EACtB,yBAAyB,EACzB,sBAAsB,EACtB,6BAA6B,EAC7B,6BAA6B,EAC7B,0BAA0B,EAC1B,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EACtB,yBAAyB,EACzB,iCAAiC,EACjC,eAAe,GAChB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,UAAU,EACV,QAAQ,EACR,aAAa,EACb,oBAAoB,GACrB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,aAAa,EACb,aAAa,EACb,qBAAqB,EACrB,iBAAiB,GAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC"}
|
package/dist-tsc/index.js
CHANGED
|
@@ -3,7 +3,7 @@ export { latestConfigSchema } from './previous-config-meta.js';
|
|
|
3
3
|
export { latestFileDefSchema } from './previous-config-schemas.js';
|
|
4
4
|
export { upgradeAndParse, VERSIONED_CONFIG_SCHEMAS } from './view-config-versions.js';
|
|
5
5
|
export { rasterJsonSchema } from './raster-json.js';
|
|
6
|
-
export { obsEmbeddingCsvSchema, obsSetsCsvSchema, obsLocationsCsvSchema, obsLabelsCsvSchema, featureLabelsCsvSchema, obsSetsAnndataSchema, obsEmbeddingAnndataSchema, obsLocationsAnndataSchema, obsLabelsAnndataSchema, obsFeatureMatrixAnndataSchema, obsSegmentationsAnndataSchema, featureLabelsAnndataSchema, anndataZarrSchema, imageOmeZarrSchema, imageOmeTiffSchema, } from './file-def-options.js';
|
|
6
|
+
export { obsEmbeddingCsvSchema, obsSetsCsvSchema, obsSpotsCsvSchema, obsPointsCsvSchema, obsLocationsCsvSchema, obsLabelsCsvSchema, featureLabelsCsvSchema, obsSetsAnndataSchema, obsEmbeddingAnndataSchema, obsSpotsAnndataSchema, obsPointsAnndataSchema, obsLocationsAnndataSchema, obsLabelsAnndataSchema, obsFeatureMatrixAnndataSchema, obsSegmentationsAnndataSchema, featureLabelsAnndataSchema, anndataZarrSchema, imageOmeZarrSchema, imageOmeTiffSchema, } from './file-def-options.js';
|
|
7
7
|
export { anndataCellsZarrSchema, anndataCellSetsZarrSchema, anndataExpressionMatrixZarrSchema, cellsJsonSchema, } from './file-def-options-legacy.js';
|
|
8
8
|
export { obsSetPath, rgbArray, obsSetsSchema, obsSetsTabularSchema, } from './shared.js';
|
|
9
9
|
export { imageLayerObj, cellsLayerObj, neighborhoodsLayerObj, moleculesLayerObj, } from './spatial-layers.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/schemas",
|
|
3
|
-
"version": "3.1
|
|
3
|
+
"version": "3.2.1",
|
|
4
4
|
"author": "Gehlenborg Lab",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
"semver": "^7.3.8",
|
|
25
25
|
"uuid": "^9.0.0",
|
|
26
26
|
"zod": "^3.21.4",
|
|
27
|
-
"@vitessce/constants": "3.1
|
|
28
|
-
"@vitessce/constants-internal": "3.1
|
|
29
|
-
"@vitessce/plugins": "3.1
|
|
30
|
-
"@vitessce/utils": "3.1
|
|
27
|
+
"@vitessce/constants": "3.2.1",
|
|
28
|
+
"@vitessce/constants-internal": "3.2.1",
|
|
29
|
+
"@vitessce/plugins": "3.2.1",
|
|
30
|
+
"@vitessce/utils": "3.2.1"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"json-schema-to-zod": "^0.6.3",
|
package/src/file-def-options.ts
CHANGED
|
@@ -56,6 +56,8 @@ const annDataObsSets = z.array(
|
|
|
56
56
|
}),
|
|
57
57
|
);
|
|
58
58
|
|
|
59
|
+
const annDataObsSpots = annDataObsm;
|
|
60
|
+
const annDataObsPoints = annDataObsm;
|
|
59
61
|
const annDataObsLocations = annDataObsm;
|
|
60
62
|
const annDataObsEmbedding = annDataObsm;
|
|
61
63
|
const annDataObsSegmentations = annDataObs;
|
|
@@ -97,6 +99,8 @@ export const imageOmeZarrSchema = z.object({
|
|
|
97
99
|
*/
|
|
98
100
|
// AnnData
|
|
99
101
|
export const obsEmbeddingAnndataSchema = annDataObsEmbedding;
|
|
102
|
+
export const obsSpotsAnndataSchema = annDataObsLocations;
|
|
103
|
+
export const obsPointsAnndataSchema = annDataObsLocations;
|
|
100
104
|
export const obsLocationsAnndataSchema = annDataObsLocations;
|
|
101
105
|
export const obsSegmentationsAnndataSchema = annDataObsSegmentations;
|
|
102
106
|
export const obsSetsAnndataSchema = annDataObsSets;
|
|
@@ -107,11 +111,19 @@ export const featureLabelsAnndataSchema = annDataFeatureLabels;
|
|
|
107
111
|
// CSV
|
|
108
112
|
export const obsEmbeddingCsvSchema = z.object({
|
|
109
113
|
obsIndex: z.string(),
|
|
110
|
-
obsEmbedding: z.array(z.string()).length(2),
|
|
114
|
+
obsEmbedding: z.array(z.string()).length(2), // TODO: support 3D?
|
|
115
|
+
});
|
|
116
|
+
export const obsSpotsCsvSchema = z.object({
|
|
117
|
+
obsIndex: z.string(),
|
|
118
|
+
obsSpots: z.array(z.string()).length(2), // TODO: support 3D?
|
|
119
|
+
});
|
|
120
|
+
export const obsPointsCsvSchema = z.object({
|
|
121
|
+
obsIndex: z.string(),
|
|
122
|
+
obsPoints: z.array(z.string()).length(3),
|
|
111
123
|
});
|
|
112
124
|
export const obsLocationsCsvSchema = z.object({
|
|
113
125
|
obsIndex: z.string(),
|
|
114
|
-
obsLocations: z.array(z.string()).length(2),
|
|
126
|
+
obsLocations: z.array(z.string()).length(2), // TODO: support 3D?
|
|
115
127
|
});
|
|
116
128
|
export const obsLabelsCsvSchema = z.object({
|
|
117
129
|
obsIndex: z.string(),
|
|
@@ -149,6 +161,8 @@ export const anndataZarrSchema = z.object({
|
|
|
149
161
|
]),
|
|
150
162
|
obsFeatureMatrix: annDataObsFeatureMatrix,
|
|
151
163
|
obsSets: annDataObsSets,
|
|
164
|
+
obsSpots: annDataObsSpots,
|
|
165
|
+
obsPoints: annDataObsPoints,
|
|
152
166
|
obsLocations: annDataObsLocations,
|
|
153
167
|
obsSegmentations: annDataObsSegmentations,
|
|
154
168
|
obsEmbedding: z.union([
|
package/src/index.ts
CHANGED
|
@@ -6,11 +6,15 @@ export { rasterJsonSchema } from './raster-json.js';
|
|
|
6
6
|
export {
|
|
7
7
|
obsEmbeddingCsvSchema,
|
|
8
8
|
obsSetsCsvSchema,
|
|
9
|
+
obsSpotsCsvSchema,
|
|
10
|
+
obsPointsCsvSchema,
|
|
9
11
|
obsLocationsCsvSchema,
|
|
10
12
|
obsLabelsCsvSchema,
|
|
11
13
|
featureLabelsCsvSchema,
|
|
12
14
|
obsSetsAnndataSchema,
|
|
13
15
|
obsEmbeddingAnndataSchema,
|
|
16
|
+
obsSpotsAnndataSchema,
|
|
17
|
+
obsPointsAnndataSchema,
|
|
14
18
|
obsLocationsAnndataSchema,
|
|
15
19
|
obsLabelsAnndataSchema,
|
|
16
20
|
obsFeatureMatrixAnndataSchema,
|