@vitessce/json 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-e57214db.js";
2
+ import { B as BaseDecoder } from "./index-b9583b8b.js";
3
3
  import "@vitessce/vit-s";
4
4
  import "react";
5
5
  class DeflateDecoder extends BaseDecoder {
@@ -121,6 +121,9 @@ const FileType$1 = {
121
121
  // OME-Zarr
122
122
  IMAGE_OME_ZARR: "image.ome-zarr",
123
123
  OBS_SEGMENTATIONS_OME_ZARR: "obsSegmentations.ome-zarr",
124
+ // OME-Zarr - Zipped
125
+ IMAGE_OME_ZARR_ZIP: "image.ome-zarr.zip",
126
+ OBS_SEGMENTATIONS_OME_ZARR_ZIP: "obsSegmentations.ome-zarr.zip",
124
127
  // AnnData
125
128
  OBS_FEATURE_MATRIX_ANNDATA_ZARR: "obsFeatureMatrix.anndata.zarr",
126
129
  OBS_FEATURE_COLUMNS_ANNDATA_ZARR: "obsFeatureColumns.anndata.zarr",
@@ -227,6 +230,7 @@ const CoordinationType$1 = {
227
230
  FEATURE_TYPE: "featureType",
228
231
  FEATURE_VALUE_TYPE: "featureValueType",
229
232
  OBS_LABELS_TYPE: "obsLabelsType",
233
+ FEATURE_LABELS_TYPE: "featureLabelsType",
230
234
  // Other types
231
235
  EMBEDDING_TYPE: "embeddingType",
232
236
  EMBEDDING_ZOOM: "embeddingZoom",
@@ -8827,7 +8831,7 @@ const annDataObsSetsArr = z.array(z.object({
8827
8831
  ]),
8828
8832
  scorePath: z.string().optional().describe("The location in the AnnData store for the set confidence scores, like 'obs/celltype_prediction_score.'")
8829
8833
  }));
8830
- const annDataObsSets = z.object({
8834
+ z.object({
8831
8835
  obsSets: annDataObsSetsArr
8832
8836
  });
8833
8837
  const annDataObsFeatureColumnsArr = z.array(z.object({
@@ -8867,29 +8871,34 @@ const imageOmeZarrSchema = z.object({
8867
8871
  imageOmeZarrSchema.extend({
8868
8872
  obsTypesFromChannelNames: z.boolean().optional()
8869
8873
  });
8870
- const imageSpatialdataSchema = imageOmeZarrSchema.extend({
8871
- path: z.string()
8874
+ const imageSpatialdataSchema = z.object({
8875
+ path: z.string(),
8876
+ 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.')
8872
8877
  });
8873
8878
  const obsSegmentationsSpatialdataSchema = z.object({
8874
- // TODO: should this also extend the imageOmeZarrSchema?
8875
8879
  // TODO: should this be renamed labelsSpatialdataSchema?
8876
8880
  // TODO: support obsTypesFromChannelNames?
8877
- path: z.string()
8881
+ path: z.string(),
8882
+ 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."),
8883
+ 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.')
8878
8884
  });
8879
8885
  z.object({
8880
- path: z.string()
8886
+ path: z.string(),
8887
+ 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.')
8881
8888
  });
8882
8889
  const obsSpotsSpatialdataSchema = z.object({
8883
8890
  path: z.string(),
8884
- 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.")
8891
+ 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."),
8892
+ 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.')
8885
8893
  });
8886
8894
  const obsFeatureMatrixSpatialdataSchema = annDataObsFeatureMatrix.extend({
8887
- region: z.string().describe("The name of a region to use to filter instances (i.e., rows) in the table").optional()
8895
+ region: z.string().describe("The name of a region to use to filter instances (i.e., rows) in the table").optional(),
8896
+ 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.')
8888
8897
  });
8889
8898
  const obsSetsSpatialdataSchema = z.object({
8890
8899
  region: z.string().describe("The name of a region to use to filter instances (i.e., rows) in the table").optional(),
8891
8900
  tablePath: z.string().optional().describe("The path to a table which contains the index for the set values."),
8892
- obsSets: annDataObsSets
8901
+ obsSets: annDataObsSetsArr
8893
8902
  });
8894
8903
  z.object({
8895
8904
  targetX: z.number(),
@@ -8985,15 +8994,21 @@ anndataZarrSchema.extend({
8985
8994
  z.object({
8986
8995
  // TODO: should `image` be a special schema
8987
8996
  // to allow specifying fileUid (like for embeddingType)?
8997
+ // TODO: allow multiple images
8988
8998
  image: imageSpatialdataSchema,
8989
8999
  // TODO: should this be a special schema
8990
9000
  // to allow specifying fileUid (like for embeddingType)?
9001
+ // TODO: allow multiple labels
8991
9002
  labels: obsSegmentationsSpatialdataSchema,
8992
9003
  obsFeatureMatrix: obsFeatureMatrixSpatialdataSchema,
8993
9004
  obsSpots: obsSpotsSpatialdataSchema,
8994
9005
  // TODO: obsPoints
8995
9006
  // TODO: obsLocations
8996
- obsSets: obsSetsSpatialdataSchema
9007
+ obsSets: obsSetsSpatialdataSchema,
9008
+ // TODO: obsEmbedding
9009
+ // TODO: obsLabels
9010
+ // TODO: featureLabels
9011
+ coordinateSystem: z.string().optional().describe("The name of a coordinate transformation output used to transform all elements which lack a per-element coordinateSystem property.")
8997
9012
  }).partial();
8998
9013
  z.object({
8999
9014
  obsLabelsTypes: z.array(z.string()).optional(),
@@ -135065,16 +135080,16 @@ async function getDecoder(fileDirectory) {
135065
135080
  const Decoder = await importFn();
135066
135081
  return new Decoder(fileDirectory);
135067
135082
  }
135068
- addDecoder([void 0, 1], () => import("./raw-0a868094.js").then((m) => m.default));
135069
- addDecoder(5, () => import("./lzw-138e1cde.js").then((m) => m.default));
135083
+ addDecoder([void 0, 1], () => import("./raw-decbdf5c.js").then((m) => m.default));
135084
+ addDecoder(5, () => import("./lzw-075f5e38.js").then((m) => m.default));
135070
135085
  addDecoder(6, () => {
135071
135086
  throw new Error("old style JPEG compression is not supported.");
135072
135087
  });
135073
- addDecoder(7, () => import("./jpeg-66ca148e.js").then((m) => m.default));
135074
- addDecoder([8, 32946], () => import("./deflate-ae673a66.js").then((m) => m.default));
135075
- addDecoder(32773, () => import("./packbits-8ad74a5e.js").then((m) => m.default));
135076
- addDecoder(34887, () => import("./lerc-5bb256f6.js").then((m) => m.default));
135077
- addDecoder(50001, () => import("./webimage-bc6cbf52.js").then((m) => m.default));
135088
+ addDecoder(7, () => import("./jpeg-d1c37d52.js").then((m) => m.default));
135089
+ addDecoder([8, 32946], () => import("./deflate-b240049e.js").then((m) => m.default));
135090
+ addDecoder(32773, () => import("./packbits-135befe2.js").then((m) => m.default));
135091
+ addDecoder(34887, () => import("./lerc-3106f6b1.js").then((m) => m.default));
135092
+ addDecoder(50001, () => import("./webimage-d7a7fdd3.js").then((m) => m.default));
135078
135093
  function copyNewSize(array, width, height, samplesPerPixel = 1) {
135079
135094
  return new (Object.getPrototypeOf(array)).constructor(width * height * samplesPerPixel);
135080
135095
  }
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C, d, e, f, h, G, b, J, M, i, O, c, R, j } from "./index-e57214db.js";
1
+ import { C, d, e, f, h, G, b, J, M, i, O, c, R, j } from "./index-b9583b8b.js";
2
2
  import "@vitessce/vit-s";
3
3
  import "react";
4
4
  export {
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-e57214db.js";
1
+ import { B as BaseDecoder } from "./index-b9583b8b.js";
2
2
  import "@vitessce/vit-s";
3
3
  import "react";
4
4
  const dctZigZag = new Int32Array([
@@ -1,5 +1,5 @@
1
1
  import { i as inflate_1 } from "./pako.esm-68f84e2a.js";
2
- import { g as getDefaultExportFromCjs, B as BaseDecoder, L as LercParameters, a as LercAddCompression } from "./index-e57214db.js";
2
+ import { g as getDefaultExportFromCjs, B as BaseDecoder, L as LercParameters, a as LercAddCompression } from "./index-b9583b8b.js";
3
3
  import "@vitessce/vit-s";
4
4
  import "react";
5
5
  var LercDecode = { exports: {} };
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-e57214db.js";
1
+ import { B as BaseDecoder } from "./index-b9583b8b.js";
2
2
  import "@vitessce/vit-s";
3
3
  import "react";
4
4
  const MIN_BITS = 9;
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-e57214db.js";
1
+ import { B as BaseDecoder } from "./index-b9583b8b.js";
2
2
  import "@vitessce/vit-s";
3
3
  import "react";
4
4
  class PackbitsDecoder extends BaseDecoder {
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-e57214db.js";
1
+ import { B as BaseDecoder } from "./index-b9583b8b.js";
2
2
  import "@vitessce/vit-s";
3
3
  import "react";
4
4
  class RawDecoder extends BaseDecoder {
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-e57214db.js";
1
+ import { B as BaseDecoder } from "./index-b9583b8b.js";
2
2
  import "@vitessce/vit-s";
3
3
  import "react";
4
4
  class WebImageDecoder extends BaseDecoder {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/json",
3
- "version": "3.4.11",
3
+ "version": "3.4.14",
4
4
  "author": "Gehlenborg Lab",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -20,15 +20,15 @@
20
20
  "lodash-es": "^4.17.21",
21
21
  "zarrita": "0.4.0-next.16",
22
22
  "zod": "^3.21.4",
23
- "@vitessce/constants-internal": "3.4.11",
24
- "@vitessce/gl": "3.4.11",
25
- "@vitessce/schemas": "3.4.11",
26
- "@vitessce/sets-utils": "3.4.11",
27
- "@vitessce/spatial-utils": "3.4.11",
28
- "@vitessce/utils": "3.4.11",
29
- "@vitessce/vit-s": "3.4.11",
30
- "@vitessce/zarr-utils": "3.4.11",
31
- "@vitessce/config": "3.4.11"
23
+ "@vitessce/constants-internal": "3.4.14",
24
+ "@vitessce/gl": "3.4.14",
25
+ "@vitessce/schemas": "3.4.14",
26
+ "@vitessce/sets-utils": "3.4.14",
27
+ "@vitessce/spatial-utils": "3.4.14",
28
+ "@vitessce/utils": "3.4.14",
29
+ "@vitessce/vit-s": "3.4.14",
30
+ "@vitessce/zarr-utils": "3.4.14",
31
+ "@vitessce/config": "3.4.14"
32
32
  },
33
33
  "scripts": {
34
34
  "bundle": "pnpm exec vite build -c ../../../scripts/vite.config.js",