@vitessce/statistical-plots 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.
@@ -1,5 +1,5 @@
1
1
  import { i as inflate_1 } from "./pako.esm-68f84e2a.js";
2
- import { B as BaseDecoder } from "./index-7aa37ee9.js";
2
+ import { B as BaseDecoder } from "./index-8fb3f92c.js";
3
3
  import "react";
4
4
  import "@vitessce/vit-s";
5
5
  import "react-dom";
@@ -996,6 +996,9 @@ const FileType$1 = {
996
996
  // OME-Zarr
997
997
  IMAGE_OME_ZARR: "image.ome-zarr",
998
998
  OBS_SEGMENTATIONS_OME_ZARR: "obsSegmentations.ome-zarr",
999
+ // OME-Zarr - Zipped
1000
+ IMAGE_OME_ZARR_ZIP: "image.ome-zarr.zip",
1001
+ OBS_SEGMENTATIONS_OME_ZARR_ZIP: "obsSegmentations.ome-zarr.zip",
999
1002
  // AnnData
1000
1003
  OBS_FEATURE_MATRIX_ANNDATA_ZARR: "obsFeatureMatrix.anndata.zarr",
1001
1004
  OBS_FEATURE_COLUMNS_ANNDATA_ZARR: "obsFeatureColumns.anndata.zarr",
@@ -1102,6 +1105,7 @@ const CoordinationType$1 = {
1102
1105
  FEATURE_TYPE: "featureType",
1103
1106
  FEATURE_VALUE_TYPE: "featureValueType",
1104
1107
  OBS_LABELS_TYPE: "obsLabelsType",
1108
+ FEATURE_LABELS_TYPE: "featureLabelsType",
1105
1109
  // Other types
1106
1110
  EMBEDDING_TYPE: "embeddingType",
1107
1111
  EMBEDDING_ZOOM: "embeddingZoom",
@@ -11895,7 +11899,7 @@ const annDataObsSetsArr = z.array(z.object({
11895
11899
  ]),
11896
11900
  scorePath: z.string().optional().describe("The location in the AnnData store for the set confidence scores, like 'obs/celltype_prediction_score.'")
11897
11901
  }));
11898
- const annDataObsSets = z.object({
11902
+ z.object({
11899
11903
  obsSets: annDataObsSetsArr
11900
11904
  });
11901
11905
  const annDataObsFeatureColumnsArr = z.array(z.object({
@@ -11935,29 +11939,34 @@ const imageOmeZarrSchema = z.object({
11935
11939
  imageOmeZarrSchema.extend({
11936
11940
  obsTypesFromChannelNames: z.boolean().optional()
11937
11941
  });
11938
- const imageSpatialdataSchema = imageOmeZarrSchema.extend({
11939
- path: z.string()
11942
+ const imageSpatialdataSchema = z.object({
11943
+ path: z.string(),
11944
+ 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.')
11940
11945
  });
11941
11946
  const obsSegmentationsSpatialdataSchema = z.object({
11942
- // TODO: should this also extend the imageOmeZarrSchema?
11943
11947
  // TODO: should this be renamed labelsSpatialdataSchema?
11944
11948
  // TODO: support obsTypesFromChannelNames?
11945
- path: z.string()
11949
+ path: z.string(),
11950
+ 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."),
11951
+ 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.')
11946
11952
  });
11947
11953
  z.object({
11948
- path: z.string()
11954
+ path: z.string(),
11955
+ 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.')
11949
11956
  });
11950
11957
  const obsSpotsSpatialdataSchema = z.object({
11951
11958
  path: z.string(),
11952
- 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.")
11959
+ 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."),
11960
+ 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.')
11953
11961
  });
11954
11962
  const obsFeatureMatrixSpatialdataSchema = annDataObsFeatureMatrix.extend({
11955
- region: z.string().describe("The name of a region to use to filter instances (i.e., rows) in the table").optional()
11963
+ region: z.string().describe("The name of a region to use to filter instances (i.e., rows) in the table").optional(),
11964
+ 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.')
11956
11965
  });
11957
11966
  const obsSetsSpatialdataSchema = z.object({
11958
11967
  region: z.string().describe("The name of a region to use to filter instances (i.e., rows) in the table").optional(),
11959
11968
  tablePath: z.string().optional().describe("The path to a table which contains the index for the set values."),
11960
- obsSets: annDataObsSets
11969
+ obsSets: annDataObsSetsArr
11961
11970
  });
11962
11971
  z.object({
11963
11972
  targetX: z.number(),
@@ -12053,15 +12062,21 @@ anndataZarrSchema.extend({
12053
12062
  z.object({
12054
12063
  // TODO: should `image` be a special schema
12055
12064
  // to allow specifying fileUid (like for embeddingType)?
12065
+ // TODO: allow multiple images
12056
12066
  image: imageSpatialdataSchema,
12057
12067
  // TODO: should this be a special schema
12058
12068
  // to allow specifying fileUid (like for embeddingType)?
12069
+ // TODO: allow multiple labels
12059
12070
  labels: obsSegmentationsSpatialdataSchema,
12060
12071
  obsFeatureMatrix: obsFeatureMatrixSpatialdataSchema,
12061
12072
  obsSpots: obsSpotsSpatialdataSchema,
12062
12073
  // TODO: obsPoints
12063
12074
  // TODO: obsLocations
12064
- obsSets: obsSetsSpatialdataSchema
12075
+ obsSets: obsSetsSpatialdataSchema,
12076
+ // TODO: obsEmbedding
12077
+ // TODO: obsLabels
12078
+ // TODO: featureLabels
12079
+ coordinateSystem: z.string().optional().describe("The name of a coordinate transformation output used to transform all elements which lack a per-element coordinateSystem property.")
12065
12080
  }).partial();
12066
12081
  z.object({
12067
12082
  obsLabelsTypes: z.array(z.string()).optional(),
@@ -133208,16 +133223,16 @@ function addDecoder(cases2, importFn) {
133208
133223
  }
133209
133224
  cases2.forEach((c2) => registry$1.set(c2, importFn));
133210
133225
  }
133211
- addDecoder([void 0, 1], () => import("./raw-2c83cfa0.js").then((m2) => m2.default));
133212
- addDecoder(5, () => import("./lzw-d8b09410.js").then((m2) => m2.default));
133226
+ addDecoder([void 0, 1], () => import("./raw-a6544f4b.js").then((m2) => m2.default));
133227
+ addDecoder(5, () => import("./lzw-a7fe4b6d.js").then((m2) => m2.default));
133213
133228
  addDecoder(6, () => {
133214
133229
  throw new Error("old style JPEG compression is not supported.");
133215
133230
  });
133216
- addDecoder(7, () => import("./jpeg-ba7bae31.js").then((m2) => m2.default));
133217
- addDecoder([8, 32946], () => import("./deflate-49ab3d32.js").then((m2) => m2.default));
133218
- addDecoder(32773, () => import("./packbits-937f8889.js").then((m2) => m2.default));
133219
- addDecoder(34887, () => import("./lerc-2c40d55c.js").then((m2) => m2.default));
133220
- addDecoder(50001, () => import("./webimage-bffbce5c.js").then((m2) => m2.default));
133231
+ addDecoder(7, () => import("./jpeg-b5458646.js").then((m2) => m2.default));
133232
+ addDecoder([8, 32946], () => import("./deflate-1b022792.js").then((m2) => m2.default));
133233
+ addDecoder(32773, () => import("./packbits-d87185df.js").then((m2) => m2.default));
133234
+ addDecoder(34887, () => import("./lerc-021481cc.js").then((m2) => m2.default));
133235
+ addDecoder(50001, () => import("./webimage-cca79872.js").then((m2) => m2.default));
133221
133236
  function decodeRowAcc(row, stride) {
133222
133237
  let length2 = row.length - stride;
133223
133238
  let offset5 = 0;
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { c, C, b, a, e, D, d, E, F } from "./index-7aa37ee9.js";
1
+ import { c, C, b, a, e, D, d, E, F } from "./index-8fb3f92c.js";
2
2
  import "react";
3
3
  import "@vitessce/vit-s";
4
4
  import "react-dom";
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-7aa37ee9.js";
1
+ import { B as BaseDecoder } from "./index-8fb3f92c.js";
2
2
  import "react";
3
3
  import "@vitessce/vit-s";
4
4
  import "react-dom";
@@ -1,5 +1,5 @@
1
1
  import { i as inflate_1 } from "./pako.esm-68f84e2a.js";
2
- import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-7aa37ee9.js";
2
+ import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-8fb3f92c.js";
3
3
  import "react";
4
4
  import "@vitessce/vit-s";
5
5
  import "react-dom";
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-7aa37ee9.js";
1
+ import { B as BaseDecoder } from "./index-8fb3f92c.js";
2
2
  import "react";
3
3
  import "@vitessce/vit-s";
4
4
  import "react-dom";
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-7aa37ee9.js";
1
+ import { B as BaseDecoder } from "./index-8fb3f92c.js";
2
2
  import "react";
3
3
  import "@vitessce/vit-s";
4
4
  import "react-dom";
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-7aa37ee9.js";
1
+ import { B as BaseDecoder } from "./index-8fb3f92c.js";
2
2
  import "react";
3
3
  import "@vitessce/vit-s";
4
4
  import "react-dom";
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-7aa37ee9.js";
1
+ import { B as BaseDecoder } from "./index-8fb3f92c.js";
2
2
  import "react";
3
3
  import "@vitessce/vit-s";
4
4
  import "react-dom";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/statistical-plots",
3
- "version": "3.4.11",
3
+ "version": "3.4.14",
4
4
  "author": "Gehlenborg Lab",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -28,12 +28,12 @@
28
28
  "react-aria": "^3.28.0",
29
29
  "internmap": "^2.0.3",
30
30
  "uuid": "^9.0.0",
31
- "@vitessce/constants-internal": "3.4.11",
32
- "@vitessce/sets-utils": "3.4.11",
33
- "@vitessce/utils": "3.4.11",
34
- "@vitessce/vega": "3.4.11",
35
- "@vitessce/vit-s": "3.4.11",
36
- "@vitessce/gl": "3.4.11"
31
+ "@vitessce/constants-internal": "3.4.14",
32
+ "@vitessce/sets-utils": "3.4.14",
33
+ "@vitessce/utils": "3.4.14",
34
+ "@vitessce/vega": "3.4.14",
35
+ "@vitessce/vit-s": "3.4.14",
36
+ "@vitessce/gl": "3.4.14"
37
37
  },
38
38
  "devDependencies": {
39
39
  "react": "^18.0.0",