@vitessce/config 3.2.2 → 3.3.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.
Files changed (2) hide show
  1. package/dist/index.js +40 -8
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -32,6 +32,7 @@ const DataType$1 = {
32
32
  const FileType$1 = {
33
33
  // Joint file types
34
34
  ANNDATA_ZARR: "anndata.zarr",
35
+ SPATIALDATA_ZARR: "spatialdata.zarr",
35
36
  // Atomic file types
36
37
  OBS_EMBEDDING_CSV: "obsEmbedding.csv",
37
38
  OBS_SPOTS_CSV: "obsSpots.csv",
@@ -54,6 +55,16 @@ const FileType$1 = {
54
55
  OBS_SEGMENTATIONS_ANNDATA_ZARR: "obsSegmentations.anndata.zarr",
55
56
  OBS_LABELS_ANNDATA_ZARR: "obsLabels.anndata.zarr",
56
57
  FEATURE_LABELS_ANNDATA_ZARR: "featureLabels.anndata.zarr",
58
+ // SpatialData
59
+ IMAGE_SPATIALDATA_ZARR: "image.spatialdata.zarr",
60
+ LABELS_SPATIALDATA_ZARR: "labels.spatialdata.zarr",
61
+ SHAPES_SPATIALDATA_ZARR: "shapes.spatialdata.zarr",
62
+ OBS_FEATURE_MATRIX_SPATIALDATA_ZARR: "obsFeatureMatrix.spatialdata.zarr",
63
+ OBS_SETS_SPATIALDATA_ZARR: "obsSets.spatialdata.zarr",
64
+ OBS_SPOTS_SPATIALDATA_ZARR: "obsSpots.spatialdata.zarr",
65
+ // TODO:
66
+ // OBS_POINTS_SPATIALDATA_ZARR: 'obsPoints.spatialdata.zarr',
67
+ // OBS_LOCATIONS_SPATIALDATA_ZARR: 'obsLocations.spatialdata.zarr',
57
68
  // MuData
58
69
  OBS_FEATURE_MATRIX_MUDATA_ZARR: "obsFeatureMatrix.mudata.zarr",
59
70
  OBS_SETS_MUDATA_ZARR: "obsSets.mudata.zarr",
@@ -8983,9 +8994,30 @@ z.object({
8983
8994
  offsetsUrl: z.string().optional(),
8984
8995
  coordinateTransformations: omeCoordinateTransformations.optional()
8985
8996
  });
8986
- z.object({
8997
+ const imageOmeZarrSchema = z.object({
8987
8998
  coordinateTransformations: omeCoordinateTransformations.optional()
8988
8999
  });
9000
+ imageOmeZarrSchema.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.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
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
- let r = new Array(n);
15547
- let g = new Array(n);
15548
- let b = new Array(n);
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
- r = spline(r);
15558
- g = spline(g);
15559
- b = spline(b);
15560
- return (t2) => [r(t2), g(t2), b(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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/config",
3
- "version": "3.2.2",
3
+ "version": "3.3.0",
4
4
  "author": "Gehlenborg Lab",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -16,8 +16,8 @@
16
16
  "dist-tsc"
17
17
  ],
18
18
  "dependencies": {
19
- "@vitessce/constants-internal": "3.2.2",
20
- "@vitessce/utils": "3.2.2"
19
+ "@vitessce/constants-internal": "3.3.0",
20
+ "@vitessce/utils": "3.3.0"
21
21
  },
22
22
  "scripts": {
23
23
  "bundle": "pnpm exec vite build -c ../../scripts/vite.config.js",