@vitessce/schemas 3.2.2 → 3.3.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 +67 -8
- package/dist-tsc/file-def-options.d.ts +125 -2
- package/dist-tsc/file-def-options.d.ts.map +1 -1
- package/dist-tsc/file-def-options.js +31 -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/dist-tsc/schema-builders.d.ts +3 -1
- package/dist-tsc/schema-builders.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/file-def-options.ts +31 -0
- package/src/index.ts +6 -0
- package/src/missing-types.d.ts +0 -1
package/dist/index.js
CHANGED
|
@@ -8525,6 +8525,7 @@ const DataType$1 = {
|
|
|
8525
8525
|
const FileType$1 = {
|
|
8526
8526
|
// Joint file types
|
|
8527
8527
|
ANNDATA_ZARR: "anndata.zarr",
|
|
8528
|
+
SPATIALDATA_ZARR: "spatialdata.zarr",
|
|
8528
8529
|
// Atomic file types
|
|
8529
8530
|
OBS_EMBEDDING_CSV: "obsEmbedding.csv",
|
|
8530
8531
|
OBS_SPOTS_CSV: "obsSpots.csv",
|
|
@@ -8547,6 +8548,16 @@ const FileType$1 = {
|
|
|
8547
8548
|
OBS_SEGMENTATIONS_ANNDATA_ZARR: "obsSegmentations.anndata.zarr",
|
|
8548
8549
|
OBS_LABELS_ANNDATA_ZARR: "obsLabels.anndata.zarr",
|
|
8549
8550
|
FEATURE_LABELS_ANNDATA_ZARR: "featureLabels.anndata.zarr",
|
|
8551
|
+
// SpatialData
|
|
8552
|
+
IMAGE_SPATIALDATA_ZARR: "image.spatialdata.zarr",
|
|
8553
|
+
LABELS_SPATIALDATA_ZARR: "labels.spatialdata.zarr",
|
|
8554
|
+
SHAPES_SPATIALDATA_ZARR: "shapes.spatialdata.zarr",
|
|
8555
|
+
OBS_FEATURE_MATRIX_SPATIALDATA_ZARR: "obsFeatureMatrix.spatialdata.zarr",
|
|
8556
|
+
OBS_SETS_SPATIALDATA_ZARR: "obsSets.spatialdata.zarr",
|
|
8557
|
+
OBS_SPOTS_SPATIALDATA_ZARR: "obsSpots.spatialdata.zarr",
|
|
8558
|
+
// TODO:
|
|
8559
|
+
// OBS_POINTS_SPATIALDATA_ZARR: 'obsPoints.spatialdata.zarr',
|
|
8560
|
+
// OBS_LOCATIONS_SPATIALDATA_ZARR: 'obsLocations.spatialdata.zarr',
|
|
8550
8561
|
// MuData
|
|
8551
8562
|
OBS_FEATURE_MATRIX_MUDATA_ZARR: "obsFeatureMatrix.mudata.zarr",
|
|
8552
8563
|
OBS_SETS_MUDATA_ZARR: "obsSets.mudata.zarr",
|
|
@@ -8983,9 +8994,30 @@ z.object({
|
|
|
8983
8994
|
offsetsUrl: z.string().optional(),
|
|
8984
8995
|
coordinateTransformations: omeCoordinateTransformations$1.optional()
|
|
8985
8996
|
});
|
|
8986
|
-
z.object({
|
|
8997
|
+
const imageOmeZarrSchema$1 = z.object({
|
|
8987
8998
|
coordinateTransformations: omeCoordinateTransformations$1.optional()
|
|
8988
8999
|
});
|
|
9000
|
+
imageOmeZarrSchema$1.extend({
|
|
9001
|
+
path: z.string()
|
|
9002
|
+
});
|
|
9003
|
+
z.object({
|
|
9004
|
+
path: z.string()
|
|
9005
|
+
});
|
|
9006
|
+
z.object({
|
|
9007
|
+
path: z.string()
|
|
9008
|
+
});
|
|
9009
|
+
z.object({
|
|
9010
|
+
path: z.string(),
|
|
9011
|
+
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.")
|
|
9012
|
+
});
|
|
9013
|
+
annDataObsFeatureMatrix$1.extend({
|
|
9014
|
+
region: z.string().describe("The name of a region to use to filter instances (i.e., rows) in the table").optional()
|
|
9015
|
+
});
|
|
9016
|
+
z.object({
|
|
9017
|
+
region: z.string().describe("The name of a region to use to filter instances (i.e., rows) in the table").optional(),
|
|
9018
|
+
tablePath: z.string().optional().describe("The path to a table which contains the index for the set values."),
|
|
9019
|
+
obsSets: annDataObsSets$1
|
|
9020
|
+
});
|
|
8989
9021
|
z.object({
|
|
8990
9022
|
obsIndex: z.string(),
|
|
8991
9023
|
obsEmbedding: z.array(z.string()).length(2)
|
|
@@ -15543,9 +15575,9 @@ const schemePlasma = [[13, 8, 135], [16, 7, 136], [19, 7, 137], [22, 7, 138], [2
|
|
|
15543
15575
|
function rgbSpline(spline) {
|
|
15544
15576
|
return (colors) => {
|
|
15545
15577
|
const n = colors.length;
|
|
15546
|
-
|
|
15547
|
-
|
|
15548
|
-
|
|
15578
|
+
const r = new Array(n);
|
|
15579
|
+
const g = new Array(n);
|
|
15580
|
+
const b = new Array(n);
|
|
15549
15581
|
let i;
|
|
15550
15582
|
let color;
|
|
15551
15583
|
for (i = 0; i < n; ++i) {
|
|
@@ -15554,10 +15586,10 @@ function rgbSpline(spline) {
|
|
|
15554
15586
|
g[i] = color[1] || 0;
|
|
15555
15587
|
b[i] = color[2] || 0;
|
|
15556
15588
|
}
|
|
15557
|
-
|
|
15558
|
-
|
|
15559
|
-
|
|
15560
|
-
return (t2) => [
|
|
15589
|
+
const rFunc = spline(r);
|
|
15590
|
+
const gFunc = spline(g);
|
|
15591
|
+
const bFunc = spline(b);
|
|
15592
|
+
return (t2) => [rFunc(t2), gFunc(t2), bFunc(t2)];
|
|
15561
15593
|
};
|
|
15562
15594
|
}
|
|
15563
15595
|
function basis(values) {
|
|
@@ -16617,6 +16649,27 @@ const imageOmeTiffSchema = z.object({
|
|
|
16617
16649
|
const imageOmeZarrSchema = z.object({
|
|
16618
16650
|
coordinateTransformations: omeCoordinateTransformations.optional()
|
|
16619
16651
|
});
|
|
16652
|
+
const imageSpatialdataSchema = imageOmeZarrSchema.extend({
|
|
16653
|
+
path: z.string()
|
|
16654
|
+
});
|
|
16655
|
+
const obsSegmentationsSpatialdataSchema = z.object({
|
|
16656
|
+
path: z.string()
|
|
16657
|
+
});
|
|
16658
|
+
const obsLocationsSpatialdataSchema = z.object({
|
|
16659
|
+
path: z.string()
|
|
16660
|
+
});
|
|
16661
|
+
const obsSpotsSpatialdataSchema = z.object({
|
|
16662
|
+
path: z.string(),
|
|
16663
|
+
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.")
|
|
16664
|
+
});
|
|
16665
|
+
const obsFeatureMatrixSpatialdataSchema = annDataObsFeatureMatrix.extend({
|
|
16666
|
+
region: z.string().describe("The name of a region to use to filter instances (i.e., rows) in the table").optional()
|
|
16667
|
+
});
|
|
16668
|
+
const obsSetsSpatialdataSchema = z.object({
|
|
16669
|
+
region: z.string().describe("The name of a region to use to filter instances (i.e., rows) in the table").optional(),
|
|
16670
|
+
tablePath: z.string().optional().describe("The path to a table which contains the index for the set values."),
|
|
16671
|
+
obsSets: annDataObsSets
|
|
16672
|
+
});
|
|
16620
16673
|
const obsEmbeddingAnndataSchema = annDataObsEmbedding;
|
|
16621
16674
|
const obsSpotsAnndataSchema = annDataObsLocations;
|
|
16622
16675
|
const obsPointsAnndataSchema = annDataObsLocations;
|
|
@@ -16783,6 +16836,7 @@ export {
|
|
|
16783
16836
|
imageLayerObj,
|
|
16784
16837
|
imageOmeTiffSchema,
|
|
16785
16838
|
imageOmeZarrSchema,
|
|
16839
|
+
imageSpatialdataSchema,
|
|
16786
16840
|
latestConfigSchema,
|
|
16787
16841
|
latestFileDefSchema,
|
|
16788
16842
|
moleculesLayerObj,
|
|
@@ -16790,20 +16844,25 @@ export {
|
|
|
16790
16844
|
obsEmbeddingAnndataSchema,
|
|
16791
16845
|
obsEmbeddingCsvSchema,
|
|
16792
16846
|
obsFeatureMatrixAnndataSchema,
|
|
16847
|
+
obsFeatureMatrixSpatialdataSchema,
|
|
16793
16848
|
obsLabelsAnndataSchema,
|
|
16794
16849
|
obsLabelsCsvSchema,
|
|
16795
16850
|
obsLocationsAnndataSchema,
|
|
16796
16851
|
obsLocationsCsvSchema,
|
|
16852
|
+
obsLocationsSpatialdataSchema,
|
|
16797
16853
|
obsPointsAnndataSchema,
|
|
16798
16854
|
obsPointsCsvSchema,
|
|
16799
16855
|
obsSegmentationsAnndataSchema,
|
|
16856
|
+
obsSegmentationsSpatialdataSchema,
|
|
16800
16857
|
obsSetPath,
|
|
16801
16858
|
obsSetsAnndataSchema,
|
|
16802
16859
|
obsSetsCsvSchema,
|
|
16803
16860
|
obsSetsSchema,
|
|
16861
|
+
obsSetsSpatialdataSchema,
|
|
16804
16862
|
obsSetsTabularSchema,
|
|
16805
16863
|
obsSpotsAnndataSchema,
|
|
16806
16864
|
obsSpotsCsvSchema,
|
|
16865
|
+
obsSpotsSpatialdataSchema,
|
|
16807
16866
|
rasterJsonSchema,
|
|
16808
16867
|
rgbArray,
|
|
16809
16868
|
upgradeAndParse,
|
|
@@ -96,6 +96,129 @@ export declare const imageOmeZarrSchema: z.ZodObject<{
|
|
|
96
96
|
scale: number[];
|
|
97
97
|
})[] | undefined;
|
|
98
98
|
}>;
|
|
99
|
+
export declare const imageSpatialdataSchema: z.ZodObject<{
|
|
100
|
+
coordinateTransformations: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
101
|
+
type: z.ZodLiteral<"identity">;
|
|
102
|
+
}, "strip", z.ZodTypeAny, {
|
|
103
|
+
type: "identity";
|
|
104
|
+
}, {
|
|
105
|
+
type: "identity";
|
|
106
|
+
}>, z.ZodObject<{
|
|
107
|
+
type: z.ZodLiteral<"translation">;
|
|
108
|
+
translation: z.ZodArray<z.ZodNumber, "many">;
|
|
109
|
+
}, "strip", z.ZodTypeAny, {
|
|
110
|
+
type: "translation";
|
|
111
|
+
translation: number[];
|
|
112
|
+
}, {
|
|
113
|
+
type: "translation";
|
|
114
|
+
translation: number[];
|
|
115
|
+
}>, z.ZodObject<{
|
|
116
|
+
type: z.ZodLiteral<"scale">;
|
|
117
|
+
scale: z.ZodArray<z.ZodNumber, "many">;
|
|
118
|
+
}, "strip", z.ZodTypeAny, {
|
|
119
|
+
type: "scale";
|
|
120
|
+
scale: number[];
|
|
121
|
+
}, {
|
|
122
|
+
type: "scale";
|
|
123
|
+
scale: number[];
|
|
124
|
+
}>]>, "many">>;
|
|
125
|
+
path: z.ZodString;
|
|
126
|
+
}, "strip", z.ZodTypeAny, {
|
|
127
|
+
path: string;
|
|
128
|
+
coordinateTransformations?: ({
|
|
129
|
+
type: "identity";
|
|
130
|
+
} | {
|
|
131
|
+
type: "translation";
|
|
132
|
+
translation: number[];
|
|
133
|
+
} | {
|
|
134
|
+
type: "scale";
|
|
135
|
+
scale: number[];
|
|
136
|
+
})[] | undefined;
|
|
137
|
+
}, {
|
|
138
|
+
path: string;
|
|
139
|
+
coordinateTransformations?: ({
|
|
140
|
+
type: "identity";
|
|
141
|
+
} | {
|
|
142
|
+
type: "translation";
|
|
143
|
+
translation: number[];
|
|
144
|
+
} | {
|
|
145
|
+
type: "scale";
|
|
146
|
+
scale: number[];
|
|
147
|
+
})[] | undefined;
|
|
148
|
+
}>;
|
|
149
|
+
export declare const obsSegmentationsSpatialdataSchema: z.ZodObject<{
|
|
150
|
+
path: z.ZodString;
|
|
151
|
+
}, "strip", z.ZodTypeAny, {
|
|
152
|
+
path: string;
|
|
153
|
+
}, {
|
|
154
|
+
path: string;
|
|
155
|
+
}>;
|
|
156
|
+
export declare const obsLocationsSpatialdataSchema: z.ZodObject<{
|
|
157
|
+
path: z.ZodString;
|
|
158
|
+
}, "strip", z.ZodTypeAny, {
|
|
159
|
+
path: string;
|
|
160
|
+
}, {
|
|
161
|
+
path: string;
|
|
162
|
+
}>;
|
|
163
|
+
export declare const obsSpotsSpatialdataSchema: z.ZodObject<{
|
|
164
|
+
path: z.ZodString;
|
|
165
|
+
tablePath: z.ZodOptional<z.ZodString>;
|
|
166
|
+
}, "strip", z.ZodTypeAny, {
|
|
167
|
+
path: string;
|
|
168
|
+
tablePath?: string | undefined;
|
|
169
|
+
}, {
|
|
170
|
+
path: string;
|
|
171
|
+
tablePath?: string | undefined;
|
|
172
|
+
}>;
|
|
173
|
+
export declare const obsFeatureMatrixSpatialdataSchema: z.ZodObject<{
|
|
174
|
+
path: z.ZodString;
|
|
175
|
+
featureFilterPath: z.ZodOptional<z.ZodString>;
|
|
176
|
+
initialFeatureFilterPath: z.ZodOptional<z.ZodString>;
|
|
177
|
+
region: z.ZodOptional<z.ZodString>;
|
|
178
|
+
}, "strip", z.ZodTypeAny, {
|
|
179
|
+
path: string;
|
|
180
|
+
featureFilterPath?: string | undefined;
|
|
181
|
+
initialFeatureFilterPath?: string | undefined;
|
|
182
|
+
region?: string | undefined;
|
|
183
|
+
}, {
|
|
184
|
+
path: string;
|
|
185
|
+
featureFilterPath?: string | undefined;
|
|
186
|
+
initialFeatureFilterPath?: string | undefined;
|
|
187
|
+
region?: string | undefined;
|
|
188
|
+
}>;
|
|
189
|
+
export declare const obsSetsSpatialdataSchema: z.ZodObject<{
|
|
190
|
+
region: z.ZodOptional<z.ZodString>;
|
|
191
|
+
tablePath: z.ZodOptional<z.ZodString>;
|
|
192
|
+
obsSets: z.ZodArray<z.ZodObject<{
|
|
193
|
+
name: z.ZodString;
|
|
194
|
+
path: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
195
|
+
scorePath: z.ZodOptional<z.ZodString>;
|
|
196
|
+
}, "strip", z.ZodTypeAny, {
|
|
197
|
+
path: (string | string[]) & (string | string[] | undefined);
|
|
198
|
+
name: string;
|
|
199
|
+
scorePath?: string | undefined;
|
|
200
|
+
}, {
|
|
201
|
+
path: (string | string[]) & (string | string[] | undefined);
|
|
202
|
+
name: string;
|
|
203
|
+
scorePath?: string | undefined;
|
|
204
|
+
}>, "many">;
|
|
205
|
+
}, "strip", z.ZodTypeAny, {
|
|
206
|
+
obsSets: {
|
|
207
|
+
path: (string | string[]) & (string | string[] | undefined);
|
|
208
|
+
name: string;
|
|
209
|
+
scorePath?: string | undefined;
|
|
210
|
+
}[];
|
|
211
|
+
region?: string | undefined;
|
|
212
|
+
tablePath?: string | undefined;
|
|
213
|
+
}, {
|
|
214
|
+
obsSets: {
|
|
215
|
+
path: (string | string[]) & (string | string[] | undefined);
|
|
216
|
+
name: string;
|
|
217
|
+
scorePath?: string | undefined;
|
|
218
|
+
}[];
|
|
219
|
+
region?: string | undefined;
|
|
220
|
+
tablePath?: string | undefined;
|
|
221
|
+
}>;
|
|
99
222
|
/**
|
|
100
223
|
* Options schemas for atomic file types.
|
|
101
224
|
*/
|
|
@@ -262,19 +385,19 @@ export declare const obsSetsCsvSchema: z.ZodObject<{
|
|
|
262
385
|
scoreColumn?: string | undefined;
|
|
263
386
|
}>, "many">;
|
|
264
387
|
}, "strip", z.ZodTypeAny, {
|
|
265
|
-
obsIndex: string;
|
|
266
388
|
obsSets: {
|
|
267
389
|
name: string;
|
|
268
390
|
column: (string | string[]) & (string | string[] | undefined);
|
|
269
391
|
scoreColumn?: string | undefined;
|
|
270
392
|
}[];
|
|
271
|
-
}, {
|
|
272
393
|
obsIndex: string;
|
|
394
|
+
}, {
|
|
273
395
|
obsSets: {
|
|
274
396
|
name: string;
|
|
275
397
|
column: (string | string[]) & (string | string[] | undefined);
|
|
276
398
|
scoreColumn?: string | undefined;
|
|
277
399
|
}[];
|
|
400
|
+
obsIndex: string;
|
|
278
401
|
}>;
|
|
279
402
|
/**
|
|
280
403
|
* Options schemas for joint file types.
|
|
@@ -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;AAkFxB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK7B,CAAC;AAGH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG7B,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;AAIH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEjC,CAAC;AACH,eAAO,MAAM,iCAAiC;;;;;;EAE5C,CAAC;AACH,eAAO,MAAM,6BAA6B;;;;;;EAExC,CAAC;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;EAKpC,CAAC;AACH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;EAI5C,CAAC;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQnC,CAAC;AAEH;;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"}
|
|
@@ -79,6 +79,37 @@ export const imageOmeZarrSchema = z.object({
|
|
|
79
79
|
coordinateTransformations: omeCoordinateTransformations
|
|
80
80
|
.optional(),
|
|
81
81
|
});
|
|
82
|
+
// SpatialData
|
|
83
|
+
// TODO: properties to specify target coordinate system name?
|
|
84
|
+
export const imageSpatialdataSchema = imageOmeZarrSchema.extend({
|
|
85
|
+
path: z.string(),
|
|
86
|
+
});
|
|
87
|
+
export const obsSegmentationsSpatialdataSchema = z.object({
|
|
88
|
+
path: z.string(),
|
|
89
|
+
});
|
|
90
|
+
export const obsLocationsSpatialdataSchema = z.object({
|
|
91
|
+
path: z.string(),
|
|
92
|
+
});
|
|
93
|
+
export const obsSpotsSpatialdataSchema = z.object({
|
|
94
|
+
path: z.string(),
|
|
95
|
+
tablePath: z.string()
|
|
96
|
+
.optional()
|
|
97
|
+
.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.'),
|
|
98
|
+
});
|
|
99
|
+
export const obsFeatureMatrixSpatialdataSchema = annDataObsFeatureMatrix.extend({
|
|
100
|
+
region: z.string()
|
|
101
|
+
.describe('The name of a region to use to filter instances (i.e., rows) in the table')
|
|
102
|
+
.optional(),
|
|
103
|
+
});
|
|
104
|
+
export const obsSetsSpatialdataSchema = z.object({
|
|
105
|
+
region: z.string()
|
|
106
|
+
.describe('The name of a region to use to filter instances (i.e., rows) in the table')
|
|
107
|
+
.optional(),
|
|
108
|
+
tablePath: z.string()
|
|
109
|
+
.optional()
|
|
110
|
+
.describe('The path to a table which contains the index for the set values.'),
|
|
111
|
+
obsSets: annDataObsSets,
|
|
112
|
+
});
|
|
82
113
|
/**
|
|
83
114
|
* Options schemas for atomic file types.
|
|
84
115
|
*/
|
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, } 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, imageSpatialdataSchema, 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,6BAA6B,EAC7B,0BAA0B,EAC1B,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,
|
|
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,EAClB,sBAAsB,EACtB,iCAAiC,EACjC,iCAAiC,EACjC,yBAAyB,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, } 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, imageSpatialdataSchema, 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';
|
|
@@ -338,7 +338,9 @@ export declare function buildConfigSchema<T1 extends PluginFileType<any, any, z.
|
|
|
338
338
|
name?: string | undefined;
|
|
339
339
|
description?: string | undefined;
|
|
340
340
|
}>, "many">;
|
|
341
|
-
coordinationSpace: z.ZodOptional<z.ZodObject<
|
|
341
|
+
coordinationSpace: z.ZodOptional<z.ZodObject<{
|
|
342
|
+
[key: string]: any;
|
|
343
|
+
}, "strict", z.ZodTypeAny, {
|
|
342
344
|
[x: string]: any;
|
|
343
345
|
}, {
|
|
344
346
|
[x: string]: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-builders.d.ts","sourceRoot":"","sources":["../src/schema-builders.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,cAAc,EACd,sBAAsB,EACtB,cAAc,EACd,mBAAmB,EACpB,MAAM,mBAAmB,CAAC;AAsE3B;;;;;;;;;;;GAWG;AACH,wBAAgB,iBAAiB,CAC/B,EAAE,SAAS,cAAc,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,UAAU,CAAC,EACjD,EAAE,SAAS,mBAAmB,CAAC,CAAC,CAAC,UAAU,CAAC,EAC5C,EAAE,SAAS,sBAAsB,CAAC,CAAC,CAAC,UAAU,CAAC,EAE/C,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,EAC1B,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,EAC/B,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,EAClC,eAAe,EAAE,KAAK,CAAC,cAAc,CAAC
|
|
1
|
+
{"version":3,"file":"schema-builders.d.ts","sourceRoot":"","sources":["../src/schema-builders.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,cAAc,EACd,sBAAsB,EACtB,cAAc,EACd,mBAAmB,EACpB,MAAM,mBAAmB,CAAC;AAsE3B;;;;;;;;;;;GAWG;AACH,wBAAgB,iBAAiB,CAC/B,EAAE,SAAS,cAAc,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,UAAU,CAAC,EACjD,EAAE,SAAS,mBAAmB,CAAC,CAAC,CAAC,UAAU,CAAC,EAC5C,EAAE,SAAS,sBAAsB,CAAC,CAAC,CAAC,UAAU,CAAC,EAE/C,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,EAC1B,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,EAC/B,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,EAClC,eAAe,EAAE,KAAK,CAAC,cAAc,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFvC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/schemas",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.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.
|
|
28
|
-
"@vitessce/constants-internal": "3.
|
|
29
|
-
"@vitessce/
|
|
30
|
-
"@vitessce/
|
|
27
|
+
"@vitessce/constants": "3.3.1",
|
|
28
|
+
"@vitessce/constants-internal": "3.3.1",
|
|
29
|
+
"@vitessce/utils": "3.3.1",
|
|
30
|
+
"@vitessce/plugins": "3.3.1"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"json-schema-to-zod": "^0.6.3",
|
package/src/file-def-options.ts
CHANGED
|
@@ -93,6 +93,37 @@ export const imageOmeZarrSchema = z.object({
|
|
|
93
93
|
.optional(),
|
|
94
94
|
});
|
|
95
95
|
|
|
96
|
+
// SpatialData
|
|
97
|
+
// TODO: properties to specify target coordinate system name?
|
|
98
|
+
export const imageSpatialdataSchema = imageOmeZarrSchema.extend({
|
|
99
|
+
path: z.string(),
|
|
100
|
+
});
|
|
101
|
+
export const obsSegmentationsSpatialdataSchema = z.object({
|
|
102
|
+
path: z.string(),
|
|
103
|
+
});
|
|
104
|
+
export const obsLocationsSpatialdataSchema = z.object({
|
|
105
|
+
path: z.string(),
|
|
106
|
+
});
|
|
107
|
+
export const obsSpotsSpatialdataSchema = z.object({
|
|
108
|
+
path: z.string(),
|
|
109
|
+
tablePath: z.string()
|
|
110
|
+
.optional()
|
|
111
|
+
.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.'),
|
|
112
|
+
});
|
|
113
|
+
export const obsFeatureMatrixSpatialdataSchema = annDataObsFeatureMatrix.extend({
|
|
114
|
+
region: z.string()
|
|
115
|
+
.describe('The name of a region to use to filter instances (i.e., rows) in the table')
|
|
116
|
+
.optional(),
|
|
117
|
+
});
|
|
118
|
+
export const obsSetsSpatialdataSchema = z.object({
|
|
119
|
+
region: z.string()
|
|
120
|
+
.describe('The name of a region to use to filter instances (i.e., rows) in the table')
|
|
121
|
+
.optional(),
|
|
122
|
+
tablePath: z.string()
|
|
123
|
+
.optional()
|
|
124
|
+
.describe('The path to a table which contains the index for the set values.'),
|
|
125
|
+
obsSets: annDataObsSets,
|
|
126
|
+
});
|
|
96
127
|
|
|
97
128
|
/**
|
|
98
129
|
* Options schemas for atomic file types.
|
package/src/index.ts
CHANGED
|
@@ -23,6 +23,12 @@ export {
|
|
|
23
23
|
anndataZarrSchema,
|
|
24
24
|
imageOmeZarrSchema,
|
|
25
25
|
imageOmeTiffSchema,
|
|
26
|
+
imageSpatialdataSchema,
|
|
27
|
+
obsSegmentationsSpatialdataSchema,
|
|
28
|
+
obsFeatureMatrixSpatialdataSchema,
|
|
29
|
+
obsSpotsSpatialdataSchema,
|
|
30
|
+
obsLocationsSpatialdataSchema,
|
|
31
|
+
obsSetsSpatialdataSchema,
|
|
26
32
|
} from './file-def-options.js';
|
|
27
33
|
export {
|
|
28
34
|
anndataCellsZarrSchema,
|
package/src/missing-types.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
declare module '@vitessce/utils';
|