@vitessce/feature-list 3.2.1 → 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 +4 -4
package/dist/index.js CHANGED
@@ -10168,6 +10168,7 @@ const DataType$1 = {
10168
10168
  const FileType$1 = {
10169
10169
  // Joint file types
10170
10170
  ANNDATA_ZARR: "anndata.zarr",
10171
+ SPATIALDATA_ZARR: "spatialdata.zarr",
10171
10172
  // Atomic file types
10172
10173
  OBS_EMBEDDING_CSV: "obsEmbedding.csv",
10173
10174
  OBS_SPOTS_CSV: "obsSpots.csv",
@@ -10190,6 +10191,16 @@ const FileType$1 = {
10190
10191
  OBS_SEGMENTATIONS_ANNDATA_ZARR: "obsSegmentations.anndata.zarr",
10191
10192
  OBS_LABELS_ANNDATA_ZARR: "obsLabels.anndata.zarr",
10192
10193
  FEATURE_LABELS_ANNDATA_ZARR: "featureLabels.anndata.zarr",
10194
+ // SpatialData
10195
+ IMAGE_SPATIALDATA_ZARR: "image.spatialdata.zarr",
10196
+ LABELS_SPATIALDATA_ZARR: "labels.spatialdata.zarr",
10197
+ SHAPES_SPATIALDATA_ZARR: "shapes.spatialdata.zarr",
10198
+ OBS_FEATURE_MATRIX_SPATIALDATA_ZARR: "obsFeatureMatrix.spatialdata.zarr",
10199
+ OBS_SETS_SPATIALDATA_ZARR: "obsSets.spatialdata.zarr",
10200
+ OBS_SPOTS_SPATIALDATA_ZARR: "obsSpots.spatialdata.zarr",
10201
+ // TODO:
10202
+ // OBS_POINTS_SPATIALDATA_ZARR: 'obsPoints.spatialdata.zarr',
10203
+ // OBS_LOCATIONS_SPATIALDATA_ZARR: 'obsLocations.spatialdata.zarr',
10193
10204
  // MuData
10194
10205
  OBS_FEATURE_MATRIX_MUDATA_ZARR: "obsFeatureMatrix.mudata.zarr",
10195
10206
  OBS_SETS_MUDATA_ZARR: "obsSets.mudata.zarr",
@@ -10991,9 +11002,30 @@ z.object({
10991
11002
  offsetsUrl: z.string().optional(),
10992
11003
  coordinateTransformations: omeCoordinateTransformations.optional()
10993
11004
  });
10994
- z.object({
11005
+ const imageOmeZarrSchema = z.object({
10995
11006
  coordinateTransformations: omeCoordinateTransformations.optional()
10996
11007
  });
11008
+ imageOmeZarrSchema.extend({
11009
+ path: z.string()
11010
+ });
11011
+ z.object({
11012
+ path: z.string()
11013
+ });
11014
+ z.object({
11015
+ path: z.string()
11016
+ });
11017
+ z.object({
11018
+ path: z.string(),
11019
+ 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.")
11020
+ });
11021
+ annDataObsFeatureMatrix.extend({
11022
+ region: z.string().describe("The name of a region to use to filter instances (i.e., rows) in the table").optional()
11023
+ });
11024
+ z.object({
11025
+ region: z.string().describe("The name of a region to use to filter instances (i.e., rows) in the table").optional(),
11026
+ tablePath: z.string().optional().describe("The path to a table which contains the index for the set values."),
11027
+ obsSets: annDataObsSets
11028
+ });
10997
11029
  z.object({
10998
11030
  obsIndex: z.string(),
10999
11031
  obsEmbedding: z.array(z.string()).length(2)
@@ -17551,9 +17583,9 @@ const schemePlasma = [[13, 8, 135], [16, 7, 136], [19, 7, 137], [22, 7, 138], [2
17551
17583
  function rgbSpline(spline) {
17552
17584
  return (colors) => {
17553
17585
  const n = colors.length;
17554
- let r2 = new Array(n);
17555
- let g = new Array(n);
17556
- let b = new Array(n);
17586
+ const r2 = new Array(n);
17587
+ const g = new Array(n);
17588
+ const b = new Array(n);
17557
17589
  let i;
17558
17590
  let color;
17559
17591
  for (i = 0; i < n; ++i) {
@@ -17562,10 +17594,10 @@ function rgbSpline(spline) {
17562
17594
  g[i] = color[1] || 0;
17563
17595
  b[i] = color[2] || 0;
17564
17596
  }
17565
- r2 = spline(r2);
17566
- g = spline(g);
17567
- b = spline(b);
17568
- return (t2) => [r2(t2), g(t2), b(t2)];
17597
+ const rFunc = spline(r2);
17598
+ const gFunc = spline(g);
17599
+ const bFunc = spline(b);
17600
+ return (t2) => [rFunc(t2), gFunc(t2), bFunc(t2)];
17569
17601
  };
17570
17602
  }
17571
17603
  function basis(values2) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/feature-list",
3
- "version": "3.2.1",
3
+ "version": "3.3.0",
4
4
  "author": "Gehlenborg Lab",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -22,9 +22,9 @@
22
22
  "react-virtualized": "^9.22.2",
23
23
  "uuid": "^9.0.0",
24
24
  "react-aria": "^3.28.0",
25
- "@vitessce/constants-internal": "3.2.1",
26
- "@vitessce/utils": "3.2.1",
27
- "@vitessce/vit-s": "3.2.1"
25
+ "@vitessce/constants-internal": "3.3.0",
26
+ "@vitessce/utils": "3.3.0",
27
+ "@vitessce/vit-s": "3.3.0"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@testing-library/jest-dom": "^5.16.4",