@vitessce/sets-utils 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 +40 -8
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -9033,6 +9033,7 @@ const DataType$1 = {
|
|
|
9033
9033
|
const FileType$1 = {
|
|
9034
9034
|
// Joint file types
|
|
9035
9035
|
ANNDATA_ZARR: "anndata.zarr",
|
|
9036
|
+
SPATIALDATA_ZARR: "spatialdata.zarr",
|
|
9036
9037
|
// Atomic file types
|
|
9037
9038
|
OBS_EMBEDDING_CSV: "obsEmbedding.csv",
|
|
9038
9039
|
OBS_SPOTS_CSV: "obsSpots.csv",
|
|
@@ -9055,6 +9056,16 @@ const FileType$1 = {
|
|
|
9055
9056
|
OBS_SEGMENTATIONS_ANNDATA_ZARR: "obsSegmentations.anndata.zarr",
|
|
9056
9057
|
OBS_LABELS_ANNDATA_ZARR: "obsLabels.anndata.zarr",
|
|
9057
9058
|
FEATURE_LABELS_ANNDATA_ZARR: "featureLabels.anndata.zarr",
|
|
9059
|
+
// SpatialData
|
|
9060
|
+
IMAGE_SPATIALDATA_ZARR: "image.spatialdata.zarr",
|
|
9061
|
+
LABELS_SPATIALDATA_ZARR: "labels.spatialdata.zarr",
|
|
9062
|
+
SHAPES_SPATIALDATA_ZARR: "shapes.spatialdata.zarr",
|
|
9063
|
+
OBS_FEATURE_MATRIX_SPATIALDATA_ZARR: "obsFeatureMatrix.spatialdata.zarr",
|
|
9064
|
+
OBS_SETS_SPATIALDATA_ZARR: "obsSets.spatialdata.zarr",
|
|
9065
|
+
OBS_SPOTS_SPATIALDATA_ZARR: "obsSpots.spatialdata.zarr",
|
|
9066
|
+
// TODO:
|
|
9067
|
+
// OBS_POINTS_SPATIALDATA_ZARR: 'obsPoints.spatialdata.zarr',
|
|
9068
|
+
// OBS_LOCATIONS_SPATIALDATA_ZARR: 'obsLocations.spatialdata.zarr',
|
|
9058
9069
|
// MuData
|
|
9059
9070
|
OBS_FEATURE_MATRIX_MUDATA_ZARR: "obsFeatureMatrix.mudata.zarr",
|
|
9060
9071
|
OBS_SETS_MUDATA_ZARR: "obsSets.mudata.zarr",
|
|
@@ -9491,9 +9502,30 @@ z.object({
|
|
|
9491
9502
|
offsetsUrl: z.string().optional(),
|
|
9492
9503
|
coordinateTransformations: omeCoordinateTransformations.optional()
|
|
9493
9504
|
});
|
|
9494
|
-
z.object({
|
|
9505
|
+
const imageOmeZarrSchema = z.object({
|
|
9495
9506
|
coordinateTransformations: omeCoordinateTransformations.optional()
|
|
9496
9507
|
});
|
|
9508
|
+
imageOmeZarrSchema.extend({
|
|
9509
|
+
path: z.string()
|
|
9510
|
+
});
|
|
9511
|
+
z.object({
|
|
9512
|
+
path: z.string()
|
|
9513
|
+
});
|
|
9514
|
+
z.object({
|
|
9515
|
+
path: z.string()
|
|
9516
|
+
});
|
|
9517
|
+
z.object({
|
|
9518
|
+
path: z.string(),
|
|
9519
|
+
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.")
|
|
9520
|
+
});
|
|
9521
|
+
annDataObsFeatureMatrix.extend({
|
|
9522
|
+
region: z.string().describe("The name of a region to use to filter instances (i.e., rows) in the table").optional()
|
|
9523
|
+
});
|
|
9524
|
+
z.object({
|
|
9525
|
+
region: z.string().describe("The name of a region to use to filter instances (i.e., rows) in the table").optional(),
|
|
9526
|
+
tablePath: z.string().optional().describe("The path to a table which contains the index for the set values."),
|
|
9527
|
+
obsSets: annDataObsSets
|
|
9528
|
+
});
|
|
9497
9529
|
z.object({
|
|
9498
9530
|
obsIndex: z.string(),
|
|
9499
9531
|
obsEmbedding: z.array(z.string()).length(2)
|
|
@@ -16227,9 +16259,9 @@ const schemePlasma = [[13, 8, 135], [16, 7, 136], [19, 7, 137], [22, 7, 138], [2
|
|
|
16227
16259
|
function rgbSpline(spline) {
|
|
16228
16260
|
return (colors) => {
|
|
16229
16261
|
const n = colors.length;
|
|
16230
|
-
|
|
16231
|
-
|
|
16232
|
-
|
|
16262
|
+
const r = new Array(n);
|
|
16263
|
+
const g = new Array(n);
|
|
16264
|
+
const b = new Array(n);
|
|
16233
16265
|
let i;
|
|
16234
16266
|
let color;
|
|
16235
16267
|
for (i = 0; i < n; ++i) {
|
|
@@ -16238,10 +16270,10 @@ function rgbSpline(spline) {
|
|
|
16238
16270
|
g[i] = color[1] || 0;
|
|
16239
16271
|
b[i] = color[2] || 0;
|
|
16240
16272
|
}
|
|
16241
|
-
|
|
16242
|
-
|
|
16243
|
-
|
|
16244
|
-
return (t2) => [
|
|
16273
|
+
const rFunc = spline(r);
|
|
16274
|
+
const gFunc = spline(g);
|
|
16275
|
+
const bFunc = spline(b);
|
|
16276
|
+
return (t2) => [rFunc(t2), gFunc(t2), bFunc(t2)];
|
|
16245
16277
|
};
|
|
16246
16278
|
}
|
|
16247
16279
|
function basis(values) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/sets-utils",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.1",
|
|
4
4
|
"author": "Gehlenborg Lab",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"lodash-es": "^4.17.21",
|
|
26
26
|
"tinycolor2": "^1.4.1",
|
|
27
27
|
"uuid": "^9.0.0",
|
|
28
|
-
"@vitessce/
|
|
29
|
-
"@vitessce/
|
|
28
|
+
"@vitessce/utils": "3.3.1",
|
|
29
|
+
"@vitessce/schemas": "3.3.1"
|
|
30
30
|
},
|
|
31
31
|
"scripts": {
|
|
32
32
|
"bundle": "pnpm exec vite build -c ../../../scripts/vite.config.js",
|