@vitessce/schemas 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 CHANGED
@@ -7950,6 +7950,9 @@ const FileType$1 = {
7950
7950
  // OME-Zarr
7951
7951
  IMAGE_OME_ZARR: "image.ome-zarr",
7952
7952
  OBS_SEGMENTATIONS_OME_ZARR: "obsSegmentations.ome-zarr",
7953
+ // OME-Zarr - Zipped
7954
+ IMAGE_OME_ZARR_ZIP: "image.ome-zarr.zip",
7955
+ OBS_SEGMENTATIONS_OME_ZARR_ZIP: "obsSegmentations.ome-zarr.zip",
7953
7956
  // AnnData
7954
7957
  OBS_FEATURE_MATRIX_ANNDATA_ZARR: "obsFeatureMatrix.anndata.zarr",
7955
7958
  OBS_FEATURE_COLUMNS_ANNDATA_ZARR: "obsFeatureColumns.anndata.zarr",
@@ -8056,6 +8059,7 @@ const CoordinationType$1 = {
8056
8059
  FEATURE_TYPE: "featureType",
8057
8060
  FEATURE_VALUE_TYPE: "featureValueType",
8058
8061
  OBS_LABELS_TYPE: "obsLabelsType",
8062
+ FEATURE_LABELS_TYPE: "featureLabelsType",
8059
8063
  // Other types
8060
8064
  EMBEDDING_TYPE: "embeddingType",
8061
8065
  EMBEDDING_ZOOM: "embeddingZoom",
@@ -8612,29 +8616,34 @@ const imageOmeZarrSchema = z.object({
8612
8616
  const obsSegmentationsOmeZarrSchema = imageOmeZarrSchema.extend({
8613
8617
  obsTypesFromChannelNames: z.boolean().optional()
8614
8618
  });
8615
- const imageSpatialdataSchema = imageOmeZarrSchema.extend({
8616
- path: z.string()
8619
+ const imageSpatialdataSchema = z.object({
8620
+ path: z.string(),
8621
+ 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.')
8617
8622
  });
8618
8623
  const obsSegmentationsSpatialdataSchema = z.object({
8619
- // TODO: should this also extend the imageOmeZarrSchema?
8620
8624
  // TODO: should this be renamed labelsSpatialdataSchema?
8621
8625
  // TODO: support obsTypesFromChannelNames?
8622
- path: z.string()
8626
+ path: z.string(),
8627
+ 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."),
8628
+ 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.')
8623
8629
  });
8624
8630
  const obsLocationsSpatialdataSchema = z.object({
8625
- path: z.string()
8631
+ path: z.string(),
8632
+ 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.')
8626
8633
  });
8627
8634
  const obsSpotsSpatialdataSchema = z.object({
8628
8635
  path: z.string(),
8629
- 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.")
8636
+ 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
+ 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.')
8630
8638
  });
8631
8639
  const obsFeatureMatrixSpatialdataSchema = annDataObsFeatureMatrix.extend({
8632
- region: z.string().describe("The name of a region to use to filter instances (i.e., rows) in the table").optional()
8640
+ region: z.string().describe("The name of a region to use to filter instances (i.e., rows) in the table").optional(),
8641
+ 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.')
8633
8642
  });
8634
8643
  const obsSetsSpatialdataSchema = z.object({
8635
8644
  region: z.string().describe("The name of a region to use to filter instances (i.e., rows) in the table").optional(),
8636
8645
  tablePath: z.string().optional().describe("The path to a table which contains the index for the set values."),
8637
- obsSets: annDataObsSets
8646
+ obsSets: annDataObsSetsArr
8638
8647
  });
8639
8648
  const meshGlbSchema = z.object({
8640
8649
  targetX: z.number(),
@@ -8745,15 +8754,21 @@ const anndataH5adSchema = anndataZarrSchema.extend({
8745
8754
  const spatialdataZarrSchema = z.object({
8746
8755
  // TODO: should `image` be a special schema
8747
8756
  // to allow specifying fileUid (like for embeddingType)?
8757
+ // TODO: allow multiple images
8748
8758
  image: imageSpatialdataSchema,
8749
8759
  // TODO: should this be a special schema
8750
8760
  // to allow specifying fileUid (like for embeddingType)?
8761
+ // TODO: allow multiple labels
8751
8762
  labels: obsSegmentationsSpatialdataSchema,
8752
8763
  obsFeatureMatrix: obsFeatureMatrixSpatialdataSchema,
8753
8764
  obsSpots: obsSpotsSpatialdataSchema,
8754
8765
  // TODO: obsPoints
8755
8766
  // TODO: obsLocations
8756
- obsSets: obsSetsSpatialdataSchema
8767
+ obsSets: obsSetsSpatialdataSchema,
8768
+ // TODO: obsEmbedding
8769
+ // TODO: obsLabels
8770
+ // TODO: featureLabels
8771
+ coordinateSystem: z.string().optional().describe("The name of a coordinate transformation output used to transform all elements which lack a per-element coordinateSystem property.")
8757
8772
  }).partial();
8758
8773
  const cellsJsonSchema = z.object({
8759
8774
  obsLabelsTypes: z.array(z.string()).optional(),
@@ -200,143 +200,100 @@ 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
- coordinateTransformations?: ({
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
- coordinateTransformations?: ({
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>;
294
269
  tablePath: z.ZodOptional<z.ZodString>;
295
- obsSets: z.ZodObject<{
296
- obsSets: z.ZodArray<z.ZodObject<{
297
- name: z.ZodString;
298
- path: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
299
- scorePath: z.ZodOptional<z.ZodString>;
300
- }, "strip", z.ZodTypeAny, {
301
- path: (string | string[]) & (string | string[] | undefined);
302
- name: string;
303
- scorePath?: string | undefined;
304
- }, {
305
- path: (string | string[]) & (string | string[] | undefined);
306
- name: string;
307
- scorePath?: string | undefined;
308
- }>, "many">;
270
+ obsSets: z.ZodArray<z.ZodObject<{
271
+ name: z.ZodString;
272
+ path: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
273
+ scorePath: z.ZodOptional<z.ZodString>;
309
274
  }, "strip", z.ZodTypeAny, {
310
- obsSets: {
311
- path: (string | string[]) & (string | string[] | undefined);
312
- name: string;
313
- scorePath?: string | undefined;
314
- }[];
275
+ path: (string | string[]) & (string | string[] | undefined);
276
+ name: string;
277
+ scorePath?: string | undefined;
315
278
  }, {
316
- obsSets: {
317
- path: (string | string[]) & (string | string[] | undefined);
318
- name: string;
319
- scorePath?: string | undefined;
320
- }[];
321
- }>;
279
+ path: (string | string[]) & (string | string[] | undefined);
280
+ name: string;
281
+ scorePath?: string | undefined;
282
+ }>, "many">;
322
283
  }, "strip", z.ZodTypeAny, {
323
284
  obsSets: {
324
- obsSets: {
325
- path: (string | string[]) & (string | string[] | undefined);
326
- name: string;
327
- scorePath?: string | undefined;
328
- }[];
329
- };
285
+ path: (string | string[]) & (string | string[] | undefined);
286
+ name: string;
287
+ scorePath?: string | undefined;
288
+ }[];
330
289
  region?: string | undefined;
331
290
  tablePath?: string | undefined;
332
291
  }, {
333
292
  obsSets: {
334
- obsSets: {
335
- path: (string | string[]) & (string | string[] | undefined);
336
- name: string;
337
- scorePath?: string | undefined;
338
- }[];
339
- };
293
+ path: (string | string[]) & (string | string[] | undefined);
294
+ name: string;
295
+ scorePath?: string | undefined;
296
+ }[];
340
297
  region?: string | undefined;
341
298
  tablePath?: string | undefined;
342
299
  }>;
@@ -1096,212 +1053,157 @@ export declare const anndataH5adSchema: z.ZodObject<{
1096
1053
  }>;
1097
1054
  export declare const spatialdataZarrSchema: z.ZodObject<{
1098
1055
  image: z.ZodOptional<z.ZodObject<{
1099
- coordinateTransformations: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
1100
- type: z.ZodLiteral<"identity">;
1101
- }, "strip", z.ZodTypeAny, {
1102
- type: "identity";
1103
- }, {
1104
- type: "identity";
1105
- }>, z.ZodObject<{
1106
- type: z.ZodLiteral<"translation">;
1107
- translation: z.ZodArray<z.ZodNumber, "many">;
1108
- }, "strip", z.ZodTypeAny, {
1109
- type: "translation";
1110
- translation: number[];
1111
- }, {
1112
- type: "translation";
1113
- translation: number[];
1114
- }>, z.ZodObject<{
1115
- type: z.ZodLiteral<"scale">;
1116
- scale: z.ZodArray<z.ZodNumber, "many">;
1117
- }, "strip", z.ZodTypeAny, {
1118
- type: "scale";
1119
- scale: number[];
1120
- }, {
1121
- type: "scale";
1122
- scale: number[];
1123
- }>]>, "many">>;
1124
1056
  path: z.ZodString;
1057
+ coordinateSystem: z.ZodOptional<z.ZodString>;
1125
1058
  }, "strip", z.ZodTypeAny, {
1126
1059
  path: string;
1127
- coordinateTransformations?: ({
1128
- type: "identity";
1129
- } | {
1130
- type: "translation";
1131
- translation: number[];
1132
- } | {
1133
- type: "scale";
1134
- scale: number[];
1135
- })[] | undefined;
1060
+ coordinateSystem?: string | undefined;
1136
1061
  }, {
1137
1062
  path: string;
1138
- coordinateTransformations?: ({
1139
- type: "identity";
1140
- } | {
1141
- type: "translation";
1142
- translation: number[];
1143
- } | {
1144
- type: "scale";
1145
- scale: number[];
1146
- })[] | undefined;
1063
+ coordinateSystem?: string | undefined;
1147
1064
  }>>;
1148
1065
  labels: z.ZodOptional<z.ZodObject<{
1149
1066
  path: z.ZodString;
1067
+ tablePath: z.ZodOptional<z.ZodString>;
1068
+ coordinateSystem: z.ZodOptional<z.ZodString>;
1150
1069
  }, "strip", z.ZodTypeAny, {
1151
1070
  path: string;
1071
+ tablePath?: string | undefined;
1072
+ coordinateSystem?: string | undefined;
1152
1073
  }, {
1153
1074
  path: string;
1075
+ tablePath?: string | undefined;
1076
+ coordinateSystem?: string | undefined;
1154
1077
  }>>;
1155
1078
  obsFeatureMatrix: z.ZodOptional<z.ZodObject<{
1156
1079
  path: z.ZodString;
1157
1080
  featureFilterPath: z.ZodOptional<z.ZodString>;
1158
1081
  initialFeatureFilterPath: z.ZodOptional<z.ZodString>;
1159
1082
  region: z.ZodOptional<z.ZodString>;
1083
+ coordinateSystem: z.ZodOptional<z.ZodString>;
1160
1084
  }, "strip", z.ZodTypeAny, {
1161
1085
  path: string;
1162
1086
  featureFilterPath?: string | undefined;
1163
1087
  initialFeatureFilterPath?: string | undefined;
1164
1088
  region?: string | undefined;
1089
+ coordinateSystem?: string | undefined;
1165
1090
  }, {
1166
1091
  path: string;
1167
1092
  featureFilterPath?: string | undefined;
1168
1093
  initialFeatureFilterPath?: string | undefined;
1169
1094
  region?: string | undefined;
1095
+ coordinateSystem?: string | undefined;
1170
1096
  }>>;
1171
1097
  obsSpots: z.ZodOptional<z.ZodObject<{
1172
1098
  path: z.ZodString;
1173
1099
  tablePath: z.ZodOptional<z.ZodString>;
1100
+ coordinateSystem: z.ZodOptional<z.ZodString>;
1174
1101
  }, "strip", z.ZodTypeAny, {
1175
1102
  path: string;
1176
1103
  tablePath?: string | undefined;
1104
+ coordinateSystem?: string | undefined;
1177
1105
  }, {
1178
1106
  path: string;
1179
1107
  tablePath?: string | undefined;
1108
+ coordinateSystem?: string | undefined;
1180
1109
  }>>;
1181
1110
  obsSets: z.ZodOptional<z.ZodObject<{
1182
1111
  region: z.ZodOptional<z.ZodString>;
1183
1112
  tablePath: z.ZodOptional<z.ZodString>;
1184
- obsSets: z.ZodObject<{
1185
- obsSets: z.ZodArray<z.ZodObject<{
1186
- name: z.ZodString;
1187
- path: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
1188
- scorePath: z.ZodOptional<z.ZodString>;
1189
- }, "strip", z.ZodTypeAny, {
1190
- path: (string | string[]) & (string | string[] | undefined);
1191
- name: string;
1192
- scorePath?: string | undefined;
1193
- }, {
1194
- path: (string | string[]) & (string | string[] | undefined);
1195
- name: string;
1196
- scorePath?: string | undefined;
1197
- }>, "many">;
1113
+ obsSets: z.ZodArray<z.ZodObject<{
1114
+ name: z.ZodString;
1115
+ path: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
1116
+ scorePath: z.ZodOptional<z.ZodString>;
1198
1117
  }, "strip", z.ZodTypeAny, {
1199
- obsSets: {
1200
- path: (string | string[]) & (string | string[] | undefined);
1201
- name: string;
1202
- scorePath?: string | undefined;
1203
- }[];
1118
+ path: (string | string[]) & (string | string[] | undefined);
1119
+ name: string;
1120
+ scorePath?: string | undefined;
1204
1121
  }, {
1205
- obsSets: {
1206
- path: (string | string[]) & (string | string[] | undefined);
1207
- name: string;
1208
- scorePath?: string | undefined;
1209
- }[];
1210
- }>;
1122
+ path: (string | string[]) & (string | string[] | undefined);
1123
+ name: string;
1124
+ scorePath?: string | undefined;
1125
+ }>, "many">;
1211
1126
  }, "strip", z.ZodTypeAny, {
1212
1127
  obsSets: {
1213
- obsSets: {
1214
- path: (string | string[]) & (string | string[] | undefined);
1215
- name: string;
1216
- scorePath?: string | undefined;
1217
- }[];
1218
- };
1128
+ path: (string | string[]) & (string | string[] | undefined);
1129
+ name: string;
1130
+ scorePath?: string | undefined;
1131
+ }[];
1219
1132
  region?: string | undefined;
1220
1133
  tablePath?: string | undefined;
1221
1134
  }, {
1222
1135
  obsSets: {
1223
- obsSets: {
1224
- path: (string | string[]) & (string | string[] | undefined);
1225
- name: string;
1226
- scorePath?: string | undefined;
1227
- }[];
1228
- };
1136
+ path: (string | string[]) & (string | string[] | undefined);
1137
+ name: string;
1138
+ scorePath?: string | undefined;
1139
+ }[];
1229
1140
  region?: string | undefined;
1230
1141
  tablePath?: string | undefined;
1231
1142
  }>>;
1143
+ coordinateSystem: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1232
1144
  }, "strip", z.ZodTypeAny, {
1233
1145
  image?: {
1234
1146
  path: string;
1235
- coordinateTransformations?: ({
1236
- type: "identity";
1237
- } | {
1238
- type: "translation";
1239
- translation: number[];
1240
- } | {
1241
- type: "scale";
1242
- scale: number[];
1243
- })[] | undefined;
1147
+ coordinateSystem?: string | undefined;
1244
1148
  } | undefined;
1245
1149
  labels?: {
1246
1150
  path: string;
1151
+ tablePath?: string | undefined;
1152
+ coordinateSystem?: string | undefined;
1247
1153
  } | undefined;
1248
1154
  obsFeatureMatrix?: {
1249
1155
  path: string;
1250
1156
  featureFilterPath?: string | undefined;
1251
1157
  initialFeatureFilterPath?: string | undefined;
1252
1158
  region?: string | undefined;
1159
+ coordinateSystem?: string | undefined;
1253
1160
  } | undefined;
1254
1161
  obsSpots?: {
1255
1162
  path: string;
1256
1163
  tablePath?: string | undefined;
1164
+ coordinateSystem?: string | undefined;
1257
1165
  } | undefined;
1258
1166
  obsSets?: {
1259
1167
  obsSets: {
1260
- obsSets: {
1261
- path: (string | string[]) & (string | string[] | undefined);
1262
- name: string;
1263
- scorePath?: string | undefined;
1264
- }[];
1265
- };
1168
+ path: (string | string[]) & (string | string[] | undefined);
1169
+ name: string;
1170
+ scorePath?: string | undefined;
1171
+ }[];
1266
1172
  region?: string | undefined;
1267
1173
  tablePath?: string | undefined;
1268
1174
  } | undefined;
1175
+ coordinateSystem?: string | undefined;
1269
1176
  }, {
1270
1177
  image?: {
1271
1178
  path: string;
1272
- coordinateTransformations?: ({
1273
- type: "identity";
1274
- } | {
1275
- type: "translation";
1276
- translation: number[];
1277
- } | {
1278
- type: "scale";
1279
- scale: number[];
1280
- })[] | undefined;
1179
+ coordinateSystem?: string | undefined;
1281
1180
  } | undefined;
1282
1181
  labels?: {
1283
1182
  path: string;
1183
+ tablePath?: string | undefined;
1184
+ coordinateSystem?: string | undefined;
1284
1185
  } | undefined;
1285
1186
  obsFeatureMatrix?: {
1286
1187
  path: string;
1287
1188
  featureFilterPath?: string | undefined;
1288
1189
  initialFeatureFilterPath?: string | undefined;
1289
1190
  region?: string | undefined;
1191
+ coordinateSystem?: string | undefined;
1290
1192
  } | undefined;
1291
1193
  obsSpots?: {
1292
1194
  path: string;
1293
1195
  tablePath?: string | undefined;
1196
+ coordinateSystem?: string | undefined;
1294
1197
  } | undefined;
1295
1198
  obsSets?: {
1296
1199
  obsSets: {
1297
- obsSets: {
1298
- path: (string | string[]) & (string | string[] | undefined);
1299
- name: string;
1300
- scorePath?: string | undefined;
1301
- }[];
1302
- };
1200
+ path: (string | string[]) & (string | string[] | undefined);
1201
+ name: string;
1202
+ scorePath?: string | undefined;
1203
+ }[];
1303
1204
  region?: string | undefined;
1304
1205
  tablePath?: string | undefined;
1305
1206
  } | undefined;
1207
+ coordinateSystem?: string | undefined;
1306
1208
  }>;
1307
1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;;EAY9B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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 = imageOmeZarrSchema.extend({
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()
@@ -133,7 +150,7 @@ export const obsSetsSpatialdataSchema = z.object({
133
150
  tablePath: z.string()
134
151
  .optional()
135
152
  .describe('The path to a table which contains the index for the set values.'),
136
- obsSets: annDataObsSets,
153
+ obsSets: annDataObsSetsArr,
137
154
  });
138
155
  // GLB
139
156
  export const meshGlbSchema = z.object({
@@ -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,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/schemas",
3
- "version": "3.4.11",
3
+ "version": "3.4.14",
4
4
  "author": "Gehlenborg Lab",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -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.4.11",
27
- "@vitessce/constants-internal": "3.4.11",
28
- "@vitessce/plugins": "3.4.11",
29
- "@vitessce/utils": "3.4.11"
26
+ "@vitessce/constants": "3.4.14",
27
+ "@vitessce/constants-internal": "3.4.14",
28
+ "@vitessce/plugins": "3.4.14",
29
+ "@vitessce/utils": "3.4.14"
30
30
  },
31
31
  "devDependencies": {
32
32
  "json-schema-to-zod": "^0.6.3",
@@ -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 = imageOmeZarrSchema.extend({
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()
@@ -154,7 +171,7 @@ export const obsSetsSpatialdataSchema = z.object({
154
171
  tablePath: z.string()
155
172
  .optional()
156
173
  .describe('The path to a table which contains the index for the set values.'),
157
- obsSets: annDataObsSets,
174
+ obsSets: annDataObsSetsArr,
158
175
  });
159
176
 
160
177
  // GLB
@@ -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();