@vitessce/schemas 3.4.12 → 3.5.0
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 +24 -9
- package/dist-tsc/file-def-options.d.ts +46 -104
- package/dist-tsc/file-def-options.d.ts.map +1 -1
- package/dist-tsc/file-def-options.js +27 -2
- package/package.json +6 -6
- package/src/file-def-options.ts +27 -2
package/dist/index.js
CHANGED
|
@@ -7911,7 +7911,8 @@ const ViewType$1 = {
|
|
|
7911
7911
|
OBS_SET_FEATURE_VALUE_DISTRIBUTION: "obsSetFeatureValueDistribution",
|
|
7912
7912
|
FEATURE_VALUE_HISTOGRAM: "featureValueHistogram",
|
|
7913
7913
|
DOT_PLOT: "dotPlot",
|
|
7914
|
-
FEATURE_BAR_PLOT: "featureBarPlot"
|
|
7914
|
+
FEATURE_BAR_PLOT: "featureBarPlot",
|
|
7915
|
+
BIOMARKER_SELECT: "biomarkerSelect"
|
|
7915
7916
|
};
|
|
7916
7917
|
const DataType$1 = {
|
|
7917
7918
|
OBS_LABELS: "obsLabels",
|
|
@@ -7950,6 +7951,9 @@ const FileType$1 = {
|
|
|
7950
7951
|
// OME-Zarr
|
|
7951
7952
|
IMAGE_OME_ZARR: "image.ome-zarr",
|
|
7952
7953
|
OBS_SEGMENTATIONS_OME_ZARR: "obsSegmentations.ome-zarr",
|
|
7954
|
+
// OME-Zarr - Zipped
|
|
7955
|
+
IMAGE_OME_ZARR_ZIP: "image.ome-zarr.zip",
|
|
7956
|
+
OBS_SEGMENTATIONS_OME_ZARR_ZIP: "obsSegmentations.ome-zarr.zip",
|
|
7953
7957
|
// AnnData
|
|
7954
7958
|
OBS_FEATURE_MATRIX_ANNDATA_ZARR: "obsFeatureMatrix.anndata.zarr",
|
|
7955
7959
|
OBS_FEATURE_COLUMNS_ANNDATA_ZARR: "obsFeatureColumns.anndata.zarr",
|
|
@@ -8613,24 +8617,29 @@ const imageOmeZarrSchema = z.object({
|
|
|
8613
8617
|
const obsSegmentationsOmeZarrSchema = imageOmeZarrSchema.extend({
|
|
8614
8618
|
obsTypesFromChannelNames: z.boolean().optional()
|
|
8615
8619
|
});
|
|
8616
|
-
const imageSpatialdataSchema =
|
|
8617
|
-
path: z.string()
|
|
8620
|
+
const imageSpatialdataSchema = z.object({
|
|
8621
|
+
path: z.string(),
|
|
8622
|
+
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.')
|
|
8618
8623
|
});
|
|
8619
8624
|
const obsSegmentationsSpatialdataSchema = z.object({
|
|
8620
|
-
// TODO: should this also extend the imageOmeZarrSchema?
|
|
8621
8625
|
// TODO: should this be renamed labelsSpatialdataSchema?
|
|
8622
8626
|
// TODO: support obsTypesFromChannelNames?
|
|
8623
|
-
path: z.string()
|
|
8627
|
+
path: z.string(),
|
|
8628
|
+
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."),
|
|
8629
|
+
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.')
|
|
8624
8630
|
});
|
|
8625
8631
|
const obsLocationsSpatialdataSchema = z.object({
|
|
8626
|
-
path: z.string()
|
|
8632
|
+
path: z.string(),
|
|
8633
|
+
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.')
|
|
8627
8634
|
});
|
|
8628
8635
|
const obsSpotsSpatialdataSchema = z.object({
|
|
8629
8636
|
path: z.string(),
|
|
8630
|
-
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.")
|
|
8637
|
+
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."),
|
|
8638
|
+
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.')
|
|
8631
8639
|
});
|
|
8632
8640
|
const obsFeatureMatrixSpatialdataSchema = annDataObsFeatureMatrix.extend({
|
|
8633
|
-
region: z.string().describe("The name of a region to use to filter instances (i.e., rows) in the table").optional()
|
|
8641
|
+
region: z.string().describe("The name of a region to use to filter instances (i.e., rows) in the table").optional(),
|
|
8642
|
+
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.')
|
|
8634
8643
|
});
|
|
8635
8644
|
const obsSetsSpatialdataSchema = z.object({
|
|
8636
8645
|
region: z.string().describe("The name of a region to use to filter instances (i.e., rows) in the table").optional(),
|
|
@@ -8746,15 +8755,21 @@ const anndataH5adSchema = anndataZarrSchema.extend({
|
|
|
8746
8755
|
const spatialdataZarrSchema = z.object({
|
|
8747
8756
|
// TODO: should `image` be a special schema
|
|
8748
8757
|
// to allow specifying fileUid (like for embeddingType)?
|
|
8758
|
+
// TODO: allow multiple images
|
|
8749
8759
|
image: imageSpatialdataSchema,
|
|
8750
8760
|
// TODO: should this be a special schema
|
|
8751
8761
|
// to allow specifying fileUid (like for embeddingType)?
|
|
8762
|
+
// TODO: allow multiple labels
|
|
8752
8763
|
labels: obsSegmentationsSpatialdataSchema,
|
|
8753
8764
|
obsFeatureMatrix: obsFeatureMatrixSpatialdataSchema,
|
|
8754
8765
|
obsSpots: obsSpotsSpatialdataSchema,
|
|
8755
8766
|
// TODO: obsPoints
|
|
8756
8767
|
// TODO: obsLocations
|
|
8757
|
-
obsSets: obsSetsSpatialdataSchema
|
|
8768
|
+
obsSets: obsSetsSpatialdataSchema,
|
|
8769
|
+
// TODO: obsEmbedding
|
|
8770
|
+
// TODO: obsLabels
|
|
8771
|
+
// TODO: featureLabels
|
|
8772
|
+
coordinateSystem: z.string().optional().describe("The name of a coordinate transformation output used to transform all elements which lack a per-element coordinateSystem property.")
|
|
8758
8773
|
}).partial();
|
|
8759
8774
|
const cellsJsonSchema = z.object({
|
|
8760
8775
|
obsLabelsTypes: z.array(z.string()).optional(),
|
|
@@ -200,94 +200,69 @@ export declare const obsSegmentationsOmeZarrSchema: z.ZodObject<{
|
|
|
200
200
|
obsTypesFromChannelNames?: boolean | undefined;
|
|
201
201
|
}>;
|
|
202
202
|
export declare const imageSpatialdataSchema: z.ZodObject<{
|
|
203
|
-
coordinateTransformations: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
204
|
-
type: z.ZodLiteral<"identity">;
|
|
205
|
-
}, "strip", z.ZodTypeAny, {
|
|
206
|
-
type: "identity";
|
|
207
|
-
}, {
|
|
208
|
-
type: "identity";
|
|
209
|
-
}>, z.ZodObject<{
|
|
210
|
-
type: z.ZodLiteral<"translation">;
|
|
211
|
-
translation: z.ZodArray<z.ZodNumber, "many">;
|
|
212
|
-
}, "strip", z.ZodTypeAny, {
|
|
213
|
-
type: "translation";
|
|
214
|
-
translation: number[];
|
|
215
|
-
}, {
|
|
216
|
-
type: "translation";
|
|
217
|
-
translation: number[];
|
|
218
|
-
}>, z.ZodObject<{
|
|
219
|
-
type: z.ZodLiteral<"scale">;
|
|
220
|
-
scale: z.ZodArray<z.ZodNumber, "many">;
|
|
221
|
-
}, "strip", z.ZodTypeAny, {
|
|
222
|
-
type: "scale";
|
|
223
|
-
scale: number[];
|
|
224
|
-
}, {
|
|
225
|
-
type: "scale";
|
|
226
|
-
scale: number[];
|
|
227
|
-
}>]>, "many">>;
|
|
228
203
|
path: z.ZodString;
|
|
204
|
+
coordinateSystem: z.ZodOptional<z.ZodString>;
|
|
229
205
|
}, "strip", z.ZodTypeAny, {
|
|
230
206
|
path: string;
|
|
231
|
-
|
|
232
|
-
type: "identity";
|
|
233
|
-
} | {
|
|
234
|
-
type: "translation";
|
|
235
|
-
translation: number[];
|
|
236
|
-
} | {
|
|
237
|
-
type: "scale";
|
|
238
|
-
scale: number[];
|
|
239
|
-
})[] | undefined;
|
|
207
|
+
coordinateSystem?: string | undefined;
|
|
240
208
|
}, {
|
|
241
209
|
path: string;
|
|
242
|
-
|
|
243
|
-
type: "identity";
|
|
244
|
-
} | {
|
|
245
|
-
type: "translation";
|
|
246
|
-
translation: number[];
|
|
247
|
-
} | {
|
|
248
|
-
type: "scale";
|
|
249
|
-
scale: number[];
|
|
250
|
-
})[] | undefined;
|
|
210
|
+
coordinateSystem?: string | undefined;
|
|
251
211
|
}>;
|
|
252
212
|
export declare const obsSegmentationsSpatialdataSchema: z.ZodObject<{
|
|
253
213
|
path: z.ZodString;
|
|
214
|
+
tablePath: z.ZodOptional<z.ZodString>;
|
|
215
|
+
coordinateSystem: z.ZodOptional<z.ZodString>;
|
|
254
216
|
}, "strip", z.ZodTypeAny, {
|
|
255
217
|
path: string;
|
|
218
|
+
tablePath?: string | undefined;
|
|
219
|
+
coordinateSystem?: string | undefined;
|
|
256
220
|
}, {
|
|
257
221
|
path: string;
|
|
222
|
+
tablePath?: string | undefined;
|
|
223
|
+
coordinateSystem?: string | undefined;
|
|
258
224
|
}>;
|
|
259
225
|
export declare const obsLocationsSpatialdataSchema: z.ZodObject<{
|
|
260
226
|
path: z.ZodString;
|
|
227
|
+
coordinateSystem: z.ZodOptional<z.ZodString>;
|
|
261
228
|
}, "strip", z.ZodTypeAny, {
|
|
262
229
|
path: string;
|
|
230
|
+
coordinateSystem?: string | undefined;
|
|
263
231
|
}, {
|
|
264
232
|
path: string;
|
|
233
|
+
coordinateSystem?: string | undefined;
|
|
265
234
|
}>;
|
|
266
235
|
export declare const obsSpotsSpatialdataSchema: z.ZodObject<{
|
|
267
236
|
path: z.ZodString;
|
|
268
237
|
tablePath: z.ZodOptional<z.ZodString>;
|
|
238
|
+
coordinateSystem: z.ZodOptional<z.ZodString>;
|
|
269
239
|
}, "strip", z.ZodTypeAny, {
|
|
270
240
|
path: string;
|
|
271
241
|
tablePath?: string | undefined;
|
|
242
|
+
coordinateSystem?: string | undefined;
|
|
272
243
|
}, {
|
|
273
244
|
path: string;
|
|
274
245
|
tablePath?: string | undefined;
|
|
246
|
+
coordinateSystem?: string | undefined;
|
|
275
247
|
}>;
|
|
276
248
|
export declare const obsFeatureMatrixSpatialdataSchema: z.ZodObject<{
|
|
277
249
|
path: z.ZodString;
|
|
278
250
|
featureFilterPath: z.ZodOptional<z.ZodString>;
|
|
279
251
|
initialFeatureFilterPath: z.ZodOptional<z.ZodString>;
|
|
280
252
|
region: z.ZodOptional<z.ZodString>;
|
|
253
|
+
coordinateSystem: z.ZodOptional<z.ZodString>;
|
|
281
254
|
}, "strip", z.ZodTypeAny, {
|
|
282
255
|
path: string;
|
|
283
256
|
featureFilterPath?: string | undefined;
|
|
284
257
|
initialFeatureFilterPath?: string | undefined;
|
|
285
258
|
region?: string | undefined;
|
|
259
|
+
coordinateSystem?: string | undefined;
|
|
286
260
|
}, {
|
|
287
261
|
path: string;
|
|
288
262
|
featureFilterPath?: string | undefined;
|
|
289
263
|
initialFeatureFilterPath?: string | undefined;
|
|
290
264
|
region?: string | undefined;
|
|
265
|
+
coordinateSystem?: string | undefined;
|
|
291
266
|
}>;
|
|
292
267
|
export declare const obsSetsSpatialdataSchema: z.ZodObject<{
|
|
293
268
|
region: z.ZodOptional<z.ZodString>;
|
|
@@ -1078,87 +1053,59 @@ export declare const anndataH5adSchema: z.ZodObject<{
|
|
|
1078
1053
|
}>;
|
|
1079
1054
|
export declare const spatialdataZarrSchema: z.ZodObject<{
|
|
1080
1055
|
image: z.ZodOptional<z.ZodObject<{
|
|
1081
|
-
coordinateTransformations: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
1082
|
-
type: z.ZodLiteral<"identity">;
|
|
1083
|
-
}, "strip", z.ZodTypeAny, {
|
|
1084
|
-
type: "identity";
|
|
1085
|
-
}, {
|
|
1086
|
-
type: "identity";
|
|
1087
|
-
}>, z.ZodObject<{
|
|
1088
|
-
type: z.ZodLiteral<"translation">;
|
|
1089
|
-
translation: z.ZodArray<z.ZodNumber, "many">;
|
|
1090
|
-
}, "strip", z.ZodTypeAny, {
|
|
1091
|
-
type: "translation";
|
|
1092
|
-
translation: number[];
|
|
1093
|
-
}, {
|
|
1094
|
-
type: "translation";
|
|
1095
|
-
translation: number[];
|
|
1096
|
-
}>, z.ZodObject<{
|
|
1097
|
-
type: z.ZodLiteral<"scale">;
|
|
1098
|
-
scale: z.ZodArray<z.ZodNumber, "many">;
|
|
1099
|
-
}, "strip", z.ZodTypeAny, {
|
|
1100
|
-
type: "scale";
|
|
1101
|
-
scale: number[];
|
|
1102
|
-
}, {
|
|
1103
|
-
type: "scale";
|
|
1104
|
-
scale: number[];
|
|
1105
|
-
}>]>, "many">>;
|
|
1106
1056
|
path: z.ZodString;
|
|
1057
|
+
coordinateSystem: z.ZodOptional<z.ZodString>;
|
|
1107
1058
|
}, "strip", z.ZodTypeAny, {
|
|
1108
1059
|
path: string;
|
|
1109
|
-
|
|
1110
|
-
type: "identity";
|
|
1111
|
-
} | {
|
|
1112
|
-
type: "translation";
|
|
1113
|
-
translation: number[];
|
|
1114
|
-
} | {
|
|
1115
|
-
type: "scale";
|
|
1116
|
-
scale: number[];
|
|
1117
|
-
})[] | undefined;
|
|
1060
|
+
coordinateSystem?: string | undefined;
|
|
1118
1061
|
}, {
|
|
1119
1062
|
path: string;
|
|
1120
|
-
|
|
1121
|
-
type: "identity";
|
|
1122
|
-
} | {
|
|
1123
|
-
type: "translation";
|
|
1124
|
-
translation: number[];
|
|
1125
|
-
} | {
|
|
1126
|
-
type: "scale";
|
|
1127
|
-
scale: number[];
|
|
1128
|
-
})[] | undefined;
|
|
1063
|
+
coordinateSystem?: string | undefined;
|
|
1129
1064
|
}>>;
|
|
1130
1065
|
labels: z.ZodOptional<z.ZodObject<{
|
|
1131
1066
|
path: z.ZodString;
|
|
1067
|
+
tablePath: z.ZodOptional<z.ZodString>;
|
|
1068
|
+
coordinateSystem: z.ZodOptional<z.ZodString>;
|
|
1132
1069
|
}, "strip", z.ZodTypeAny, {
|
|
1133
1070
|
path: string;
|
|
1071
|
+
tablePath?: string | undefined;
|
|
1072
|
+
coordinateSystem?: string | undefined;
|
|
1134
1073
|
}, {
|
|
1135
1074
|
path: string;
|
|
1075
|
+
tablePath?: string | undefined;
|
|
1076
|
+
coordinateSystem?: string | undefined;
|
|
1136
1077
|
}>>;
|
|
1137
1078
|
obsFeatureMatrix: z.ZodOptional<z.ZodObject<{
|
|
1138
1079
|
path: z.ZodString;
|
|
1139
1080
|
featureFilterPath: z.ZodOptional<z.ZodString>;
|
|
1140
1081
|
initialFeatureFilterPath: z.ZodOptional<z.ZodString>;
|
|
1141
1082
|
region: z.ZodOptional<z.ZodString>;
|
|
1083
|
+
coordinateSystem: z.ZodOptional<z.ZodString>;
|
|
1142
1084
|
}, "strip", z.ZodTypeAny, {
|
|
1143
1085
|
path: string;
|
|
1144
1086
|
featureFilterPath?: string | undefined;
|
|
1145
1087
|
initialFeatureFilterPath?: string | undefined;
|
|
1146
1088
|
region?: string | undefined;
|
|
1089
|
+
coordinateSystem?: string | undefined;
|
|
1147
1090
|
}, {
|
|
1148
1091
|
path: string;
|
|
1149
1092
|
featureFilterPath?: string | undefined;
|
|
1150
1093
|
initialFeatureFilterPath?: string | undefined;
|
|
1151
1094
|
region?: string | undefined;
|
|
1095
|
+
coordinateSystem?: string | undefined;
|
|
1152
1096
|
}>>;
|
|
1153
1097
|
obsSpots: z.ZodOptional<z.ZodObject<{
|
|
1154
1098
|
path: z.ZodString;
|
|
1155
1099
|
tablePath: z.ZodOptional<z.ZodString>;
|
|
1100
|
+
coordinateSystem: z.ZodOptional<z.ZodString>;
|
|
1156
1101
|
}, "strip", z.ZodTypeAny, {
|
|
1157
1102
|
path: string;
|
|
1158
1103
|
tablePath?: string | undefined;
|
|
1104
|
+
coordinateSystem?: string | undefined;
|
|
1159
1105
|
}, {
|
|
1160
1106
|
path: string;
|
|
1161
1107
|
tablePath?: string | undefined;
|
|
1108
|
+
coordinateSystem?: string | undefined;
|
|
1162
1109
|
}>>;
|
|
1163
1110
|
obsSets: z.ZodOptional<z.ZodObject<{
|
|
1164
1111
|
region: z.ZodOptional<z.ZodString>;
|
|
@@ -1193,31 +1140,28 @@ export declare const spatialdataZarrSchema: z.ZodObject<{
|
|
|
1193
1140
|
region?: string | undefined;
|
|
1194
1141
|
tablePath?: string | undefined;
|
|
1195
1142
|
}>>;
|
|
1143
|
+
coordinateSystem: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1196
1144
|
}, "strip", z.ZodTypeAny, {
|
|
1197
1145
|
image?: {
|
|
1198
1146
|
path: string;
|
|
1199
|
-
|
|
1200
|
-
type: "identity";
|
|
1201
|
-
} | {
|
|
1202
|
-
type: "translation";
|
|
1203
|
-
translation: number[];
|
|
1204
|
-
} | {
|
|
1205
|
-
type: "scale";
|
|
1206
|
-
scale: number[];
|
|
1207
|
-
})[] | undefined;
|
|
1147
|
+
coordinateSystem?: string | undefined;
|
|
1208
1148
|
} | undefined;
|
|
1209
1149
|
labels?: {
|
|
1210
1150
|
path: string;
|
|
1151
|
+
tablePath?: string | undefined;
|
|
1152
|
+
coordinateSystem?: string | undefined;
|
|
1211
1153
|
} | undefined;
|
|
1212
1154
|
obsFeatureMatrix?: {
|
|
1213
1155
|
path: string;
|
|
1214
1156
|
featureFilterPath?: string | undefined;
|
|
1215
1157
|
initialFeatureFilterPath?: string | undefined;
|
|
1216
1158
|
region?: string | undefined;
|
|
1159
|
+
coordinateSystem?: string | undefined;
|
|
1217
1160
|
} | undefined;
|
|
1218
1161
|
obsSpots?: {
|
|
1219
1162
|
path: string;
|
|
1220
1163
|
tablePath?: string | undefined;
|
|
1164
|
+
coordinateSystem?: string | undefined;
|
|
1221
1165
|
} | undefined;
|
|
1222
1166
|
obsSets?: {
|
|
1223
1167
|
obsSets: {
|
|
@@ -1228,31 +1172,28 @@ export declare const spatialdataZarrSchema: z.ZodObject<{
|
|
|
1228
1172
|
region?: string | undefined;
|
|
1229
1173
|
tablePath?: string | undefined;
|
|
1230
1174
|
} | undefined;
|
|
1175
|
+
coordinateSystem?: string | undefined;
|
|
1231
1176
|
}, {
|
|
1232
1177
|
image?: {
|
|
1233
1178
|
path: string;
|
|
1234
|
-
|
|
1235
|
-
type: "identity";
|
|
1236
|
-
} | {
|
|
1237
|
-
type: "translation";
|
|
1238
|
-
translation: number[];
|
|
1239
|
-
} | {
|
|
1240
|
-
type: "scale";
|
|
1241
|
-
scale: number[];
|
|
1242
|
-
})[] | undefined;
|
|
1179
|
+
coordinateSystem?: string | undefined;
|
|
1243
1180
|
} | undefined;
|
|
1244
1181
|
labels?: {
|
|
1245
1182
|
path: string;
|
|
1183
|
+
tablePath?: string | undefined;
|
|
1184
|
+
coordinateSystem?: string | undefined;
|
|
1246
1185
|
} | undefined;
|
|
1247
1186
|
obsFeatureMatrix?: {
|
|
1248
1187
|
path: string;
|
|
1249
1188
|
featureFilterPath?: string | undefined;
|
|
1250
1189
|
initialFeatureFilterPath?: string | undefined;
|
|
1251
1190
|
region?: string | undefined;
|
|
1191
|
+
coordinateSystem?: string | undefined;
|
|
1252
1192
|
} | undefined;
|
|
1253
1193
|
obsSpots?: {
|
|
1254
1194
|
path: string;
|
|
1255
1195
|
tablePath?: string | undefined;
|
|
1196
|
+
coordinateSystem?: string | undefined;
|
|
1256
1197
|
} | undefined;
|
|
1257
1198
|
obsSets?: {
|
|
1258
1199
|
obsSets: {
|
|
@@ -1263,5 +1204,6 @@ export declare const spatialdataZarrSchema: z.ZodObject<{
|
|
|
1263
1204
|
region?: string | undefined;
|
|
1264
1205
|
tablePath?: string | undefined;
|
|
1265
1206
|
} | undefined;
|
|
1207
|
+
coordinateSystem?: string | undefined;
|
|
1266
1208
|
}>;
|
|
1267
1209
|
//# 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":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAqGxB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoBlB,CAAC;AAEb,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE5B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoBtB,CAAC"}
|
|
@@ -103,28 +103,45 @@ export const obsSegmentationsOmeZarrSchema = imageOmeZarrSchema.extend({
|
|
|
103
103
|
});
|
|
104
104
|
// SpatialData
|
|
105
105
|
// TODO: properties to specify target coordinate system name?
|
|
106
|
-
export const imageSpatialdataSchema =
|
|
106
|
+
export const imageSpatialdataSchema = z.object({
|
|
107
107
|
path: z.string(),
|
|
108
|
+
coordinateSystem: z.string()
|
|
109
|
+
.optional()
|
|
110
|
+
.describe('The name of a coordinate transformation output used to transform the image. If not provided, the "global" coordinate system is assumed.'),
|
|
108
111
|
});
|
|
109
112
|
export const obsSegmentationsSpatialdataSchema = z.object({
|
|
110
|
-
// TODO: should this also extend the imageOmeZarrSchema?
|
|
111
113
|
// TODO: should this be renamed labelsSpatialdataSchema?
|
|
112
114
|
// TODO: support obsTypesFromChannelNames?
|
|
113
115
|
path: z.string(),
|
|
116
|
+
tablePath: z.string()
|
|
117
|
+
.optional()
|
|
118
|
+
.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.'),
|
|
119
|
+
coordinateSystem: z.string()
|
|
120
|
+
.optional()
|
|
121
|
+
.describe('The name of a coordinate transformation output used to transform the image. If not provided, the "global" coordinate system is assumed.'),
|
|
114
122
|
});
|
|
115
123
|
export const obsLocationsSpatialdataSchema = z.object({
|
|
116
124
|
path: z.string(),
|
|
125
|
+
coordinateSystem: z.string()
|
|
126
|
+
.optional()
|
|
127
|
+
.describe('The name of a coordinate transformation output used to transform the coordinates. If not provided, the "global" coordinate system is assumed.'),
|
|
117
128
|
});
|
|
118
129
|
export const obsSpotsSpatialdataSchema = z.object({
|
|
119
130
|
path: z.string(),
|
|
120
131
|
tablePath: z.string()
|
|
121
132
|
.optional()
|
|
122
133
|
.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.'),
|
|
134
|
+
coordinateSystem: z.string()
|
|
135
|
+
.optional()
|
|
136
|
+
.describe('The name of a coordinate transformation output used to transform the coordinates and radii. If not provided, the "global" coordinate system is assumed.'),
|
|
123
137
|
});
|
|
124
138
|
export const obsFeatureMatrixSpatialdataSchema = annDataObsFeatureMatrix.extend({
|
|
125
139
|
region: z.string()
|
|
126
140
|
.describe('The name of a region to use to filter instances (i.e., rows) in the table')
|
|
127
141
|
.optional(),
|
|
142
|
+
coordinateSystem: z.string()
|
|
143
|
+
.optional()
|
|
144
|
+
.describe('The name of a coordinate transformation output used to transform the image. If not provided, the "global" coordinate system is assumed.'),
|
|
128
145
|
});
|
|
129
146
|
export const obsSetsSpatialdataSchema = z.object({
|
|
130
147
|
region: z.string()
|
|
@@ -246,13 +263,21 @@ export const anndataH5adSchema = anndataZarrSchema.extend({
|
|
|
246
263
|
export const spatialdataZarrSchema = z.object({
|
|
247
264
|
// TODO: should `image` be a special schema
|
|
248
265
|
// to allow specifying fileUid (like for embeddingType)?
|
|
266
|
+
// TODO: allow multiple images
|
|
249
267
|
image: imageSpatialdataSchema,
|
|
250
268
|
// TODO: should this be a special schema
|
|
251
269
|
// to allow specifying fileUid (like for embeddingType)?
|
|
270
|
+
// TODO: allow multiple labels
|
|
252
271
|
labels: obsSegmentationsSpatialdataSchema,
|
|
253
272
|
obsFeatureMatrix: obsFeatureMatrixSpatialdataSchema,
|
|
254
273
|
obsSpots: obsSpotsSpatialdataSchema,
|
|
255
274
|
// TODO: obsPoints
|
|
256
275
|
// TODO: obsLocations
|
|
257
276
|
obsSets: obsSetsSpatialdataSchema,
|
|
277
|
+
// TODO: obsEmbedding
|
|
278
|
+
// TODO: obsLabels
|
|
279
|
+
// TODO: featureLabels
|
|
280
|
+
coordinateSystem: z.string()
|
|
281
|
+
.optional()
|
|
282
|
+
.describe('The name of a coordinate transformation output used to transform all elements which lack a per-element coordinateSystem property.'),
|
|
258
283
|
}).partial();
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/schemas",
|
|
3
|
-
"version": "3.
|
|
4
|
-
"author": "
|
|
3
|
+
"version": "3.5.0",
|
|
4
|
+
"author": "HIDIVE Lab at HMS",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -23,10 +23,10 @@
|
|
|
23
23
|
"semver": "^7.3.8",
|
|
24
24
|
"uuid": "^9.0.0",
|
|
25
25
|
"zod": "^3.21.4",
|
|
26
|
-
"@vitessce/constants": "3.
|
|
27
|
-
"@vitessce/constants-internal": "3.
|
|
28
|
-
"@vitessce/plugins": "3.
|
|
29
|
-
"@vitessce/utils": "3.
|
|
26
|
+
"@vitessce/constants": "3.5.0",
|
|
27
|
+
"@vitessce/constants-internal": "3.5.0",
|
|
28
|
+
"@vitessce/plugins": "3.5.0",
|
|
29
|
+
"@vitessce/utils": "3.5.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"json-schema-to-zod": "^0.6.3",
|
package/src/file-def-options.ts
CHANGED
|
@@ -124,28 +124,45 @@ export const obsSegmentationsOmeZarrSchema = imageOmeZarrSchema.extend({
|
|
|
124
124
|
|
|
125
125
|
// SpatialData
|
|
126
126
|
// TODO: properties to specify target coordinate system name?
|
|
127
|
-
export const imageSpatialdataSchema =
|
|
127
|
+
export const imageSpatialdataSchema = z.object({
|
|
128
128
|
path: z.string(),
|
|
129
|
+
coordinateSystem: z.string()
|
|
130
|
+
.optional()
|
|
131
|
+
.describe('The name of a coordinate transformation output used to transform the image. If not provided, the "global" coordinate system is assumed.'),
|
|
129
132
|
});
|
|
130
133
|
export const obsSegmentationsSpatialdataSchema = z.object({
|
|
131
|
-
// TODO: should this also extend the imageOmeZarrSchema?
|
|
132
134
|
// TODO: should this be renamed labelsSpatialdataSchema?
|
|
133
135
|
// TODO: support obsTypesFromChannelNames?
|
|
134
136
|
path: z.string(),
|
|
137
|
+
tablePath: z.string()
|
|
138
|
+
.optional()
|
|
139
|
+
.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.'),
|
|
140
|
+
coordinateSystem: z.string()
|
|
141
|
+
.optional()
|
|
142
|
+
.describe('The name of a coordinate transformation output used to transform the image. If not provided, the "global" coordinate system is assumed.'),
|
|
135
143
|
});
|
|
136
144
|
export const obsLocationsSpatialdataSchema = z.object({
|
|
137
145
|
path: z.string(),
|
|
146
|
+
coordinateSystem: z.string()
|
|
147
|
+
.optional()
|
|
148
|
+
.describe('The name of a coordinate transformation output used to transform the coordinates. If not provided, the "global" coordinate system is assumed.'),
|
|
138
149
|
});
|
|
139
150
|
export const obsSpotsSpatialdataSchema = z.object({
|
|
140
151
|
path: z.string(),
|
|
141
152
|
tablePath: z.string()
|
|
142
153
|
.optional()
|
|
143
154
|
.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.'),
|
|
155
|
+
coordinateSystem: z.string()
|
|
156
|
+
.optional()
|
|
157
|
+
.describe('The name of a coordinate transformation output used to transform the coordinates and radii. If not provided, the "global" coordinate system is assumed.'),
|
|
144
158
|
});
|
|
145
159
|
export const obsFeatureMatrixSpatialdataSchema = annDataObsFeatureMatrix.extend({
|
|
146
160
|
region: z.string()
|
|
147
161
|
.describe('The name of a region to use to filter instances (i.e., rows) in the table')
|
|
148
162
|
.optional(),
|
|
163
|
+
coordinateSystem: z.string()
|
|
164
|
+
.optional()
|
|
165
|
+
.describe('The name of a coordinate transformation output used to transform the image. If not provided, the "global" coordinate system is assumed.'),
|
|
149
166
|
});
|
|
150
167
|
export const obsSetsSpatialdataSchema = z.object({
|
|
151
168
|
region: z.string()
|
|
@@ -277,13 +294,21 @@ export const anndataH5adSchema = anndataZarrSchema.extend({
|
|
|
277
294
|
export const spatialdataZarrSchema = z.object({
|
|
278
295
|
// TODO: should `image` be a special schema
|
|
279
296
|
// to allow specifying fileUid (like for embeddingType)?
|
|
297
|
+
// TODO: allow multiple images
|
|
280
298
|
image: imageSpatialdataSchema,
|
|
281
299
|
// TODO: should this be a special schema
|
|
282
300
|
// to allow specifying fileUid (like for embeddingType)?
|
|
301
|
+
// TODO: allow multiple labels
|
|
283
302
|
labels: obsSegmentationsSpatialdataSchema,
|
|
284
303
|
obsFeatureMatrix: obsFeatureMatrixSpatialdataSchema,
|
|
285
304
|
obsSpots: obsSpotsSpatialdataSchema,
|
|
286
305
|
// TODO: obsPoints
|
|
287
306
|
// TODO: obsLocations
|
|
288
307
|
obsSets: obsSetsSpatialdataSchema,
|
|
308
|
+
// TODO: obsEmbedding
|
|
309
|
+
// TODO: obsLabels
|
|
310
|
+
// TODO: featureLabels
|
|
311
|
+
coordinateSystem: z.string()
|
|
312
|
+
.optional()
|
|
313
|
+
.describe('The name of a coordinate transformation output used to transform all elements which lack a per-element coordinateSystem property.'),
|
|
289
314
|
}).partial();
|