@vitessce/schemas 3.3.2 → 3.3.4
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 +1759 -9930
- package/dist-tsc/file-def-options.d.ts +291 -0
- package/dist-tsc/file-def-options.d.ts.map +1 -1
- package/dist-tsc/file-def-options.js +24 -0
- 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 +27 -0
- package/src/index.ts +3 -0
|
@@ -49,6 +49,59 @@ export declare const imageOmeTiffSchema: z.ZodObject<{
|
|
|
49
49
|
scale: number[];
|
|
50
50
|
})[] | undefined;
|
|
51
51
|
}>;
|
|
52
|
+
export declare const obsSegmentationsOmeTiffSchema: z.ZodObject<{
|
|
53
|
+
offsetsUrl: z.ZodOptional<z.ZodString>;
|
|
54
|
+
coordinateTransformations: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
55
|
+
type: z.ZodLiteral<"identity">;
|
|
56
|
+
}, "strip", z.ZodTypeAny, {
|
|
57
|
+
type: "identity";
|
|
58
|
+
}, {
|
|
59
|
+
type: "identity";
|
|
60
|
+
}>, z.ZodObject<{
|
|
61
|
+
type: z.ZodLiteral<"translation">;
|
|
62
|
+
translation: z.ZodArray<z.ZodNumber, "many">;
|
|
63
|
+
}, "strip", z.ZodTypeAny, {
|
|
64
|
+
type: "translation";
|
|
65
|
+
translation: number[];
|
|
66
|
+
}, {
|
|
67
|
+
type: "translation";
|
|
68
|
+
translation: number[];
|
|
69
|
+
}>, z.ZodObject<{
|
|
70
|
+
type: z.ZodLiteral<"scale">;
|
|
71
|
+
scale: z.ZodArray<z.ZodNumber, "many">;
|
|
72
|
+
}, "strip", z.ZodTypeAny, {
|
|
73
|
+
type: "scale";
|
|
74
|
+
scale: number[];
|
|
75
|
+
}, {
|
|
76
|
+
type: "scale";
|
|
77
|
+
scale: number[];
|
|
78
|
+
}>]>, "many">>;
|
|
79
|
+
obsTypesFromChannelNames: z.ZodOptional<z.ZodBoolean>;
|
|
80
|
+
}, "strip", z.ZodTypeAny, {
|
|
81
|
+
offsetsUrl?: string | undefined;
|
|
82
|
+
coordinateTransformations?: ({
|
|
83
|
+
type: "identity";
|
|
84
|
+
} | {
|
|
85
|
+
type: "translation";
|
|
86
|
+
translation: number[];
|
|
87
|
+
} | {
|
|
88
|
+
type: "scale";
|
|
89
|
+
scale: number[];
|
|
90
|
+
})[] | undefined;
|
|
91
|
+
obsTypesFromChannelNames?: boolean | undefined;
|
|
92
|
+
}, {
|
|
93
|
+
offsetsUrl?: string | undefined;
|
|
94
|
+
coordinateTransformations?: ({
|
|
95
|
+
type: "identity";
|
|
96
|
+
} | {
|
|
97
|
+
type: "translation";
|
|
98
|
+
translation: number[];
|
|
99
|
+
} | {
|
|
100
|
+
type: "scale";
|
|
101
|
+
scale: number[];
|
|
102
|
+
})[] | undefined;
|
|
103
|
+
obsTypesFromChannelNames?: boolean | undefined;
|
|
104
|
+
}>;
|
|
52
105
|
export declare const imageOmeZarrSchema: z.ZodObject<{
|
|
53
106
|
coordinateTransformations: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
54
107
|
type: z.ZodLiteral<"identity">;
|
|
@@ -96,6 +149,56 @@ export declare const imageOmeZarrSchema: z.ZodObject<{
|
|
|
96
149
|
scale: number[];
|
|
97
150
|
})[] | undefined;
|
|
98
151
|
}>;
|
|
152
|
+
export declare const obsSegmentationsOmeZarrSchema: z.ZodObject<{
|
|
153
|
+
coordinateTransformations: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
154
|
+
type: z.ZodLiteral<"identity">;
|
|
155
|
+
}, "strip", z.ZodTypeAny, {
|
|
156
|
+
type: "identity";
|
|
157
|
+
}, {
|
|
158
|
+
type: "identity";
|
|
159
|
+
}>, z.ZodObject<{
|
|
160
|
+
type: z.ZodLiteral<"translation">;
|
|
161
|
+
translation: z.ZodArray<z.ZodNumber, "many">;
|
|
162
|
+
}, "strip", z.ZodTypeAny, {
|
|
163
|
+
type: "translation";
|
|
164
|
+
translation: number[];
|
|
165
|
+
}, {
|
|
166
|
+
type: "translation";
|
|
167
|
+
translation: number[];
|
|
168
|
+
}>, z.ZodObject<{
|
|
169
|
+
type: z.ZodLiteral<"scale">;
|
|
170
|
+
scale: z.ZodArray<z.ZodNumber, "many">;
|
|
171
|
+
}, "strip", z.ZodTypeAny, {
|
|
172
|
+
type: "scale";
|
|
173
|
+
scale: number[];
|
|
174
|
+
}, {
|
|
175
|
+
type: "scale";
|
|
176
|
+
scale: number[];
|
|
177
|
+
}>]>, "many">>;
|
|
178
|
+
obsTypesFromChannelNames: z.ZodOptional<z.ZodBoolean>;
|
|
179
|
+
}, "strip", z.ZodTypeAny, {
|
|
180
|
+
coordinateTransformations?: ({
|
|
181
|
+
type: "identity";
|
|
182
|
+
} | {
|
|
183
|
+
type: "translation";
|
|
184
|
+
translation: number[];
|
|
185
|
+
} | {
|
|
186
|
+
type: "scale";
|
|
187
|
+
scale: number[];
|
|
188
|
+
})[] | undefined;
|
|
189
|
+
obsTypesFromChannelNames?: boolean | undefined;
|
|
190
|
+
}, {
|
|
191
|
+
coordinateTransformations?: ({
|
|
192
|
+
type: "identity";
|
|
193
|
+
} | {
|
|
194
|
+
type: "translation";
|
|
195
|
+
translation: number[];
|
|
196
|
+
} | {
|
|
197
|
+
type: "scale";
|
|
198
|
+
scale: number[];
|
|
199
|
+
})[] | undefined;
|
|
200
|
+
obsTypesFromChannelNames?: boolean | undefined;
|
|
201
|
+
}>;
|
|
99
202
|
export declare const imageSpatialdataSchema: z.ZodObject<{
|
|
100
203
|
coordinateTransformations: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
101
204
|
type: z.ZodLiteral<"identity">;
|
|
@@ -613,4 +716,192 @@ export declare const anndataZarrSchema: z.ZodObject<{
|
|
|
613
716
|
dims?: number[] | undefined;
|
|
614
717
|
}[] | undefined;
|
|
615
718
|
}>;
|
|
719
|
+
export declare const spatialdataZarrSchema: z.ZodObject<{
|
|
720
|
+
image: z.ZodOptional<z.ZodObject<{
|
|
721
|
+
coordinateTransformations: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
722
|
+
type: z.ZodLiteral<"identity">;
|
|
723
|
+
}, "strip", z.ZodTypeAny, {
|
|
724
|
+
type: "identity";
|
|
725
|
+
}, {
|
|
726
|
+
type: "identity";
|
|
727
|
+
}>, z.ZodObject<{
|
|
728
|
+
type: z.ZodLiteral<"translation">;
|
|
729
|
+
translation: z.ZodArray<z.ZodNumber, "many">;
|
|
730
|
+
}, "strip", z.ZodTypeAny, {
|
|
731
|
+
type: "translation";
|
|
732
|
+
translation: number[];
|
|
733
|
+
}, {
|
|
734
|
+
type: "translation";
|
|
735
|
+
translation: number[];
|
|
736
|
+
}>, z.ZodObject<{
|
|
737
|
+
type: z.ZodLiteral<"scale">;
|
|
738
|
+
scale: z.ZodArray<z.ZodNumber, "many">;
|
|
739
|
+
}, "strip", z.ZodTypeAny, {
|
|
740
|
+
type: "scale";
|
|
741
|
+
scale: number[];
|
|
742
|
+
}, {
|
|
743
|
+
type: "scale";
|
|
744
|
+
scale: number[];
|
|
745
|
+
}>]>, "many">>;
|
|
746
|
+
path: z.ZodString;
|
|
747
|
+
}, "strip", z.ZodTypeAny, {
|
|
748
|
+
path: string;
|
|
749
|
+
coordinateTransformations?: ({
|
|
750
|
+
type: "identity";
|
|
751
|
+
} | {
|
|
752
|
+
type: "translation";
|
|
753
|
+
translation: number[];
|
|
754
|
+
} | {
|
|
755
|
+
type: "scale";
|
|
756
|
+
scale: number[];
|
|
757
|
+
})[] | undefined;
|
|
758
|
+
}, {
|
|
759
|
+
path: string;
|
|
760
|
+
coordinateTransformations?: ({
|
|
761
|
+
type: "identity";
|
|
762
|
+
} | {
|
|
763
|
+
type: "translation";
|
|
764
|
+
translation: number[];
|
|
765
|
+
} | {
|
|
766
|
+
type: "scale";
|
|
767
|
+
scale: number[];
|
|
768
|
+
})[] | undefined;
|
|
769
|
+
}>>;
|
|
770
|
+
labels: z.ZodOptional<z.ZodObject<{
|
|
771
|
+
path: z.ZodString;
|
|
772
|
+
}, "strip", z.ZodTypeAny, {
|
|
773
|
+
path: string;
|
|
774
|
+
}, {
|
|
775
|
+
path: string;
|
|
776
|
+
}>>;
|
|
777
|
+
obsFeatureMatrix: z.ZodOptional<z.ZodObject<{
|
|
778
|
+
path: z.ZodString;
|
|
779
|
+
featureFilterPath: z.ZodOptional<z.ZodString>;
|
|
780
|
+
initialFeatureFilterPath: z.ZodOptional<z.ZodString>;
|
|
781
|
+
region: z.ZodOptional<z.ZodString>;
|
|
782
|
+
}, "strip", z.ZodTypeAny, {
|
|
783
|
+
path: string;
|
|
784
|
+
featureFilterPath?: string | undefined;
|
|
785
|
+
initialFeatureFilterPath?: string | undefined;
|
|
786
|
+
region?: string | undefined;
|
|
787
|
+
}, {
|
|
788
|
+
path: string;
|
|
789
|
+
featureFilterPath?: string | undefined;
|
|
790
|
+
initialFeatureFilterPath?: string | undefined;
|
|
791
|
+
region?: string | undefined;
|
|
792
|
+
}>>;
|
|
793
|
+
obsSpots: z.ZodOptional<z.ZodObject<{
|
|
794
|
+
path: z.ZodString;
|
|
795
|
+
tablePath: z.ZodOptional<z.ZodString>;
|
|
796
|
+
}, "strip", z.ZodTypeAny, {
|
|
797
|
+
path: string;
|
|
798
|
+
tablePath?: string | undefined;
|
|
799
|
+
}, {
|
|
800
|
+
path: string;
|
|
801
|
+
tablePath?: string | undefined;
|
|
802
|
+
}>>;
|
|
803
|
+
obsSets: z.ZodOptional<z.ZodObject<{
|
|
804
|
+
region: z.ZodOptional<z.ZodString>;
|
|
805
|
+
tablePath: z.ZodOptional<z.ZodString>;
|
|
806
|
+
obsSets: z.ZodArray<z.ZodObject<{
|
|
807
|
+
name: z.ZodString;
|
|
808
|
+
path: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
809
|
+
scorePath: z.ZodOptional<z.ZodString>;
|
|
810
|
+
}, "strip", z.ZodTypeAny, {
|
|
811
|
+
path: (string | string[]) & (string | string[] | undefined);
|
|
812
|
+
name: string;
|
|
813
|
+
scorePath?: string | undefined;
|
|
814
|
+
}, {
|
|
815
|
+
path: (string | string[]) & (string | string[] | undefined);
|
|
816
|
+
name: string;
|
|
817
|
+
scorePath?: string | undefined;
|
|
818
|
+
}>, "many">;
|
|
819
|
+
}, "strip", z.ZodTypeAny, {
|
|
820
|
+
obsSets: {
|
|
821
|
+
path: (string | string[]) & (string | string[] | undefined);
|
|
822
|
+
name: string;
|
|
823
|
+
scorePath?: string | undefined;
|
|
824
|
+
}[];
|
|
825
|
+
region?: string | undefined;
|
|
826
|
+
tablePath?: string | undefined;
|
|
827
|
+
}, {
|
|
828
|
+
obsSets: {
|
|
829
|
+
path: (string | string[]) & (string | string[] | undefined);
|
|
830
|
+
name: string;
|
|
831
|
+
scorePath?: string | undefined;
|
|
832
|
+
}[];
|
|
833
|
+
region?: string | undefined;
|
|
834
|
+
tablePath?: string | undefined;
|
|
835
|
+
}>>;
|
|
836
|
+
}, "strip", z.ZodTypeAny, {
|
|
837
|
+
image?: {
|
|
838
|
+
path: string;
|
|
839
|
+
coordinateTransformations?: ({
|
|
840
|
+
type: "identity";
|
|
841
|
+
} | {
|
|
842
|
+
type: "translation";
|
|
843
|
+
translation: number[];
|
|
844
|
+
} | {
|
|
845
|
+
type: "scale";
|
|
846
|
+
scale: number[];
|
|
847
|
+
})[] | undefined;
|
|
848
|
+
} | undefined;
|
|
849
|
+
labels?: {
|
|
850
|
+
path: string;
|
|
851
|
+
} | undefined;
|
|
852
|
+
obsFeatureMatrix?: {
|
|
853
|
+
path: string;
|
|
854
|
+
featureFilterPath?: string | undefined;
|
|
855
|
+
initialFeatureFilterPath?: string | undefined;
|
|
856
|
+
region?: string | undefined;
|
|
857
|
+
} | undefined;
|
|
858
|
+
obsSpots?: {
|
|
859
|
+
path: string;
|
|
860
|
+
tablePath?: string | undefined;
|
|
861
|
+
} | undefined;
|
|
862
|
+
obsSets?: {
|
|
863
|
+
obsSets: {
|
|
864
|
+
path: (string | string[]) & (string | string[] | undefined);
|
|
865
|
+
name: string;
|
|
866
|
+
scorePath?: string | undefined;
|
|
867
|
+
}[];
|
|
868
|
+
region?: string | undefined;
|
|
869
|
+
tablePath?: string | undefined;
|
|
870
|
+
} | undefined;
|
|
871
|
+
}, {
|
|
872
|
+
image?: {
|
|
873
|
+
path: string;
|
|
874
|
+
coordinateTransformations?: ({
|
|
875
|
+
type: "identity";
|
|
876
|
+
} | {
|
|
877
|
+
type: "translation";
|
|
878
|
+
translation: number[];
|
|
879
|
+
} | {
|
|
880
|
+
type: "scale";
|
|
881
|
+
scale: number[];
|
|
882
|
+
})[] | undefined;
|
|
883
|
+
} | undefined;
|
|
884
|
+
labels?: {
|
|
885
|
+
path: string;
|
|
886
|
+
} | undefined;
|
|
887
|
+
obsFeatureMatrix?: {
|
|
888
|
+
path: string;
|
|
889
|
+
featureFilterPath?: string | undefined;
|
|
890
|
+
initialFeatureFilterPath?: string | undefined;
|
|
891
|
+
region?: string | undefined;
|
|
892
|
+
} | undefined;
|
|
893
|
+
obsSpots?: {
|
|
894
|
+
path: string;
|
|
895
|
+
tablePath?: string | undefined;
|
|
896
|
+
} | undefined;
|
|
897
|
+
obsSets?: {
|
|
898
|
+
obsSets: {
|
|
899
|
+
path: (string | string[]) & (string | string[] | undefined);
|
|
900
|
+
name: string;
|
|
901
|
+
scorePath?: string | undefined;
|
|
902
|
+
}[];
|
|
903
|
+
region?: string | undefined;
|
|
904
|
+
tablePath?: string | undefined;
|
|
905
|
+
} | undefined;
|
|
906
|
+
}>;
|
|
616
907
|
//# sourceMappingURL=file-def-options.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-def-options.d.ts","sourceRoot":"","sources":["../src/file-def-options.ts"],"names":[],"mappings":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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYtB,CAAC"}
|
|
@@ -74,17 +74,28 @@ export const imageOmeTiffSchema = z.object({
|
|
|
74
74
|
coordinateTransformations: omeCoordinateTransformations
|
|
75
75
|
.optional(),
|
|
76
76
|
});
|
|
77
|
+
export const obsSegmentationsOmeTiffSchema = imageOmeTiffSchema.extend({
|
|
78
|
+
obsTypesFromChannelNames: z.boolean()
|
|
79
|
+
.optional(),
|
|
80
|
+
});
|
|
77
81
|
// OME-Zarr (NGFF)
|
|
78
82
|
export const imageOmeZarrSchema = z.object({
|
|
79
83
|
coordinateTransformations: omeCoordinateTransformations
|
|
80
84
|
.optional(),
|
|
81
85
|
});
|
|
86
|
+
export const obsSegmentationsOmeZarrSchema = imageOmeZarrSchema.extend({
|
|
87
|
+
obsTypesFromChannelNames: z.boolean()
|
|
88
|
+
.optional(),
|
|
89
|
+
});
|
|
82
90
|
// SpatialData
|
|
83
91
|
// TODO: properties to specify target coordinate system name?
|
|
84
92
|
export const imageSpatialdataSchema = imageOmeZarrSchema.extend({
|
|
85
93
|
path: z.string(),
|
|
86
94
|
});
|
|
87
95
|
export const obsSegmentationsSpatialdataSchema = z.object({
|
|
96
|
+
// TODO: should this also extend the imageOmeZarrSchema?
|
|
97
|
+
// TODO: should this be renamed labelsSpatialdataSchema?
|
|
98
|
+
// TODO: support obsTypesFromChannelNames?
|
|
88
99
|
path: z.string(),
|
|
89
100
|
});
|
|
90
101
|
export const obsLocationsSpatialdataSchema = z.object({
|
|
@@ -182,3 +193,16 @@ export const anndataZarrSchema = z.object({
|
|
|
182
193
|
z.array(annDataConvenienceObsEmbeddingItem),
|
|
183
194
|
]),
|
|
184
195
|
}).partial();
|
|
196
|
+
export const spatialdataZarrSchema = z.object({
|
|
197
|
+
// TODO: should `image` be a special schema
|
|
198
|
+
// to allow specifying fileUid (like for embeddingType)?
|
|
199
|
+
image: imageSpatialdataSchema,
|
|
200
|
+
// TODO: should this be a special schema
|
|
201
|
+
// to allow specifying fileUid (like for embeddingType)?
|
|
202
|
+
labels: obsSegmentationsSpatialdataSchema,
|
|
203
|
+
obsFeatureMatrix: obsFeatureMatrixSpatialdataSchema,
|
|
204
|
+
obsSpots: obsSpotsSpatialdataSchema,
|
|
205
|
+
// TODO: obsPoints
|
|
206
|
+
// TODO: obsLocations
|
|
207
|
+
obsSets: obsSetsSpatialdataSchema,
|
|
208
|
+
}).partial();
|
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, obsSpotsCsvSchema, obsPointsCsvSchema, obsLocationsCsvSchema, obsLabelsCsvSchema, featureLabelsCsvSchema, obsSetsAnndataSchema, obsEmbeddingAnndataSchema, obsSpotsAnndataSchema, obsPointsAnndataSchema, obsLocationsAnndataSchema, obsLabelsAnndataSchema, obsFeatureMatrixAnndataSchema, obsSegmentationsAnndataSchema, featureLabelsAnndataSchema, anndataZarrSchema, imageOmeZarrSchema, imageOmeTiffSchema, imageSpatialdataSchema, obsSegmentationsSpatialdataSchema, obsFeatureMatrixSpatialdataSchema, obsSpotsSpatialdataSchema, obsLocationsSpatialdataSchema, obsSetsSpatialdataSchema, } from './file-def-options.js';
|
|
6
|
+
export { obsEmbeddingCsvSchema, obsSetsCsvSchema, obsSpotsCsvSchema, obsPointsCsvSchema, obsLocationsCsvSchema, obsLabelsCsvSchema, featureLabelsCsvSchema, obsSetsAnndataSchema, obsEmbeddingAnndataSchema, obsSpotsAnndataSchema, obsPointsAnndataSchema, obsLocationsAnndataSchema, obsLabelsAnndataSchema, obsFeatureMatrixAnndataSchema, obsSegmentationsAnndataSchema, featureLabelsAnndataSchema, anndataZarrSchema, spatialdataZarrSchema, imageOmeZarrSchema, imageOmeTiffSchema, imageSpatialdataSchema, obsSegmentationsOmeTiffSchema, obsSegmentationsOmeZarrSchema, obsSegmentationsSpatialdataSchema, obsFeatureMatrixSpatialdataSchema, obsSpotsSpatialdataSchema, obsLocationsSpatialdataSchema, obsSetsSpatialdataSchema, } 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,iBAAiB,EACjB,kBAAkB,EAClB,qBAAqB,EACrB,kBAAkB,EAClB,sBAAsB,EACtB,oBAAoB,EACpB,yBAAyB,EACzB,qBAAqB,EACrB,sBAAsB,EACtB,yBAAyB,EACzB,sBAAsB,EACtB,6BAA6B,EAC7B,6BAA6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yB,EACzB,6BAA6B,EAC7B,wBAAwB,GACzB,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, obsSpotsCsvSchema, obsPointsCsvSchema, obsLocationsCsvSchema, obsLabelsCsvSchema, featureLabelsCsvSchema, obsSetsAnndataSchema, obsEmbeddingAnndataSchema, obsSpotsAnndataSchema, obsPointsAnndataSchema, obsLocationsAnndataSchema, obsLabelsAnndataSchema, obsFeatureMatrixAnndataSchema, obsSegmentationsAnndataSchema, featureLabelsAnndataSchema, anndataZarrSchema, imageOmeZarrSchema, imageOmeTiffSchema, imageSpatialdataSchema, obsSegmentationsSpatialdataSchema, obsFeatureMatrixSpatialdataSchema, obsSpotsSpatialdataSchema, obsLocationsSpatialdataSchema, obsSetsSpatialdataSchema, } from './file-def-options.js';
|
|
6
|
+
export { obsEmbeddingCsvSchema, obsSetsCsvSchema, obsSpotsCsvSchema, obsPointsCsvSchema, obsLocationsCsvSchema, obsLabelsCsvSchema, featureLabelsCsvSchema, obsSetsAnndataSchema, obsEmbeddingAnndataSchema, obsSpotsAnndataSchema, obsPointsAnndataSchema, obsLocationsAnndataSchema, obsLabelsAnndataSchema, obsFeatureMatrixAnndataSchema, obsSegmentationsAnndataSchema, featureLabelsAnndataSchema, anndataZarrSchema, spatialdataZarrSchema, imageOmeZarrSchema, imageOmeTiffSchema, imageSpatialdataSchema, obsSegmentationsOmeTiffSchema, obsSegmentationsOmeZarrSchema, obsSegmentationsSpatialdataSchema, obsFeatureMatrixSpatialdataSchema, obsSpotsSpatialdataSchema, obsLocationsSpatialdataSchema, obsSetsSpatialdataSchema, } 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.3.
|
|
3
|
+
"version": "3.3.4",
|
|
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.3.
|
|
28
|
-
"@vitessce/constants-internal": "3.3.
|
|
29
|
-
"@vitessce/
|
|
30
|
-
"@vitessce/
|
|
27
|
+
"@vitessce/constants": "3.3.4",
|
|
28
|
+
"@vitessce/constants-internal": "3.3.4",
|
|
29
|
+
"@vitessce/utils": "3.3.4",
|
|
30
|
+
"@vitessce/plugins": "3.3.4"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"json-schema-to-zod": "^0.6.3",
|
package/src/file-def-options.ts
CHANGED
|
@@ -87,18 +87,31 @@ export const imageOmeTiffSchema = z.object({
|
|
|
87
87
|
.optional(),
|
|
88
88
|
});
|
|
89
89
|
|
|
90
|
+
export const obsSegmentationsOmeTiffSchema = imageOmeTiffSchema.extend({
|
|
91
|
+
obsTypesFromChannelNames: z.boolean()
|
|
92
|
+
.optional(),
|
|
93
|
+
});
|
|
94
|
+
|
|
90
95
|
// OME-Zarr (NGFF)
|
|
91
96
|
export const imageOmeZarrSchema = z.object({
|
|
92
97
|
coordinateTransformations: omeCoordinateTransformations
|
|
93
98
|
.optional(),
|
|
94
99
|
});
|
|
95
100
|
|
|
101
|
+
export const obsSegmentationsOmeZarrSchema = imageOmeZarrSchema.extend({
|
|
102
|
+
obsTypesFromChannelNames: z.boolean()
|
|
103
|
+
.optional(),
|
|
104
|
+
});
|
|
105
|
+
|
|
96
106
|
// SpatialData
|
|
97
107
|
// TODO: properties to specify target coordinate system name?
|
|
98
108
|
export const imageSpatialdataSchema = imageOmeZarrSchema.extend({
|
|
99
109
|
path: z.string(),
|
|
100
110
|
});
|
|
101
111
|
export const obsSegmentationsSpatialdataSchema = z.object({
|
|
112
|
+
// TODO: should this also extend the imageOmeZarrSchema?
|
|
113
|
+
// TODO: should this be renamed labelsSpatialdataSchema?
|
|
114
|
+
// TODO: support obsTypesFromChannelNames?
|
|
102
115
|
path: z.string(),
|
|
103
116
|
});
|
|
104
117
|
export const obsLocationsSpatialdataSchema = z.object({
|
|
@@ -201,3 +214,17 @@ export const anndataZarrSchema = z.object({
|
|
|
201
214
|
z.array(annDataConvenienceObsEmbeddingItem),
|
|
202
215
|
]),
|
|
203
216
|
}).partial();
|
|
217
|
+
|
|
218
|
+
export const spatialdataZarrSchema = z.object({
|
|
219
|
+
// TODO: should `image` be a special schema
|
|
220
|
+
// to allow specifying fileUid (like for embeddingType)?
|
|
221
|
+
image: imageSpatialdataSchema,
|
|
222
|
+
// TODO: should this be a special schema
|
|
223
|
+
// to allow specifying fileUid (like for embeddingType)?
|
|
224
|
+
labels: obsSegmentationsSpatialdataSchema,
|
|
225
|
+
obsFeatureMatrix: obsFeatureMatrixSpatialdataSchema,
|
|
226
|
+
obsSpots: obsSpotsSpatialdataSchema,
|
|
227
|
+
// TODO: obsPoints
|
|
228
|
+
// TODO: obsLocations
|
|
229
|
+
obsSets: obsSetsSpatialdataSchema,
|
|
230
|
+
}).partial();
|
package/src/index.ts
CHANGED
|
@@ -21,9 +21,12 @@ export {
|
|
|
21
21
|
obsSegmentationsAnndataSchema,
|
|
22
22
|
featureLabelsAnndataSchema,
|
|
23
23
|
anndataZarrSchema,
|
|
24
|
+
spatialdataZarrSchema,
|
|
24
25
|
imageOmeZarrSchema,
|
|
25
26
|
imageOmeTiffSchema,
|
|
26
27
|
imageSpatialdataSchema,
|
|
28
|
+
obsSegmentationsOmeTiffSchema,
|
|
29
|
+
obsSegmentationsOmeZarrSchema,
|
|
27
30
|
obsSegmentationsSpatialdataSchema,
|
|
28
31
|
obsFeatureMatrixSpatialdataSchema,
|
|
29
32
|
obsSpotsSpatialdataSchema,
|