@vitessce/scatterplot-gating 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-c9b4cfce.js";
2
+ import { B as BaseDecoder } from "./index-a7052125.js";
3
3
  import "react";
4
4
  import "@vitessce/vit-s";
5
5
  import "react-dom";
@@ -11056,6 +11056,9 @@ const FileType$1 = {
11056
11056
  // OME-Zarr
11057
11057
  IMAGE_OME_ZARR: "image.ome-zarr",
11058
11058
  OBS_SEGMENTATIONS_OME_ZARR: "obsSegmentations.ome-zarr",
11059
+ // OME-Zarr - Zipped
11060
+ IMAGE_OME_ZARR_ZIP: "image.ome-zarr.zip",
11061
+ OBS_SEGMENTATIONS_OME_ZARR_ZIP: "obsSegmentations.ome-zarr.zip",
11059
11062
  // AnnData
11060
11063
  OBS_FEATURE_MATRIX_ANNDATA_ZARR: "obsFeatureMatrix.anndata.zarr",
11061
11064
  OBS_FEATURE_COLUMNS_ANNDATA_ZARR: "obsFeatureColumns.anndata.zarr",
@@ -11162,6 +11165,7 @@ const CoordinationType$1 = {
11162
11165
  FEATURE_TYPE: "featureType",
11163
11166
  FEATURE_VALUE_TYPE: "featureValueType",
11164
11167
  OBS_LABELS_TYPE: "obsLabelsType",
11168
+ FEATURE_LABELS_TYPE: "featureLabelsType",
11165
11169
  // Other types
11166
11170
  EMBEDDING_TYPE: "embeddingType",
11167
11171
  EMBEDDING_ZOOM: "embeddingZoom",
@@ -11971,7 +11975,7 @@ const annDataObsSetsArr = z.array(z.object({
11971
11975
  ]),
11972
11976
  scorePath: z.string().optional().describe("The location in the AnnData store for the set confidence scores, like 'obs/celltype_prediction_score.'")
11973
11977
  }));
11974
- const annDataObsSets = z.object({
11978
+ z.object({
11975
11979
  obsSets: annDataObsSetsArr
11976
11980
  });
11977
11981
  const annDataObsFeatureColumnsArr = z.array(z.object({
@@ -12011,29 +12015,34 @@ const imageOmeZarrSchema = z.object({
12011
12015
  imageOmeZarrSchema.extend({
12012
12016
  obsTypesFromChannelNames: z.boolean().optional()
12013
12017
  });
12014
- const imageSpatialdataSchema = imageOmeZarrSchema.extend({
12015
- path: z.string()
12018
+ const imageSpatialdataSchema = z.object({
12019
+ path: z.string(),
12020
+ 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.')
12016
12021
  });
12017
12022
  const obsSegmentationsSpatialdataSchema = z.object({
12018
- // TODO: should this also extend the imageOmeZarrSchema?
12019
12023
  // TODO: should this be renamed labelsSpatialdataSchema?
12020
12024
  // TODO: support obsTypesFromChannelNames?
12021
- path: z.string()
12025
+ path: z.string(),
12026
+ 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."),
12027
+ 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.')
12022
12028
  });
12023
12029
  z.object({
12024
- path: z.string()
12030
+ path: z.string(),
12031
+ 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.')
12025
12032
  });
12026
12033
  const obsSpotsSpatialdataSchema = z.object({
12027
12034
  path: z.string(),
12028
- 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.")
12035
+ 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."),
12036
+ 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.')
12029
12037
  });
12030
12038
  const obsFeatureMatrixSpatialdataSchema = annDataObsFeatureMatrix.extend({
12031
- region: z.string().describe("The name of a region to use to filter instances (i.e., rows) in the table").optional()
12039
+ region: z.string().describe("The name of a region to use to filter instances (i.e., rows) in the table").optional(),
12040
+ 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.')
12032
12041
  });
12033
12042
  const obsSetsSpatialdataSchema = z.object({
12034
12043
  region: z.string().describe("The name of a region to use to filter instances (i.e., rows) in the table").optional(),
12035
12044
  tablePath: z.string().optional().describe("The path to a table which contains the index for the set values."),
12036
- obsSets: annDataObsSets
12045
+ obsSets: annDataObsSetsArr
12037
12046
  });
12038
12047
  z.object({
12039
12048
  targetX: z.number(),
@@ -12129,15 +12138,21 @@ anndataZarrSchema.extend({
12129
12138
  z.object({
12130
12139
  // TODO: should `image` be a special schema
12131
12140
  // to allow specifying fileUid (like for embeddingType)?
12141
+ // TODO: allow multiple images
12132
12142
  image: imageSpatialdataSchema,
12133
12143
  // TODO: should this be a special schema
12134
12144
  // to allow specifying fileUid (like for embeddingType)?
12145
+ // TODO: allow multiple labels
12135
12146
  labels: obsSegmentationsSpatialdataSchema,
12136
12147
  obsFeatureMatrix: obsFeatureMatrixSpatialdataSchema,
12137
12148
  obsSpots: obsSpotsSpatialdataSchema,
12138
12149
  // TODO: obsPoints
12139
12150
  // TODO: obsLocations
12140
- obsSets: obsSetsSpatialdataSchema
12151
+ obsSets: obsSetsSpatialdataSchema,
12152
+ // TODO: obsEmbedding
12153
+ // TODO: obsLabels
12154
+ // TODO: featureLabels
12155
+ coordinateSystem: z.string().optional().describe("The name of a coordinate transformation output used to transform all elements which lack a per-element coordinateSystem property.")
12141
12156
  }).partial();
12142
12157
  z.object({
12143
12158
  obsLabelsTypes: z.array(z.string()).optional(),
@@ -123810,16 +123825,16 @@ function addDecoder(cases, importFn) {
123810
123825
  }
123811
123826
  cases.forEach((c2) => registry$1.set(c2, importFn));
123812
123827
  }
123813
- addDecoder([void 0, 1], () => import("./raw-0f8b8d67.js").then((m2) => m2.default));
123814
- addDecoder(5, () => import("./lzw-ca6c4d78.js").then((m2) => m2.default));
123828
+ addDecoder([void 0, 1], () => import("./raw-a4debd6c.js").then((m2) => m2.default));
123829
+ addDecoder(5, () => import("./lzw-9f52473a.js").then((m2) => m2.default));
123815
123830
  addDecoder(6, () => {
123816
123831
  throw new Error("old style JPEG compression is not supported.");
123817
123832
  });
123818
- addDecoder(7, () => import("./jpeg-53a949c9.js").then((m2) => m2.default));
123819
- addDecoder([8, 32946], () => import("./deflate-d789a72d.js").then((m2) => m2.default));
123820
- addDecoder(32773, () => import("./packbits-c55021ab.js").then((m2) => m2.default));
123821
- addDecoder(34887, () => import("./lerc-40717afa.js").then((m2) => m2.default));
123822
- addDecoder(50001, () => import("./webimage-b3e420b5.js").then((m2) => m2.default));
123833
+ addDecoder(7, () => import("./jpeg-d0bd0dbe.js").then((m2) => m2.default));
123834
+ addDecoder([8, 32946], () => import("./deflate-cf02d134.js").then((m2) => m2.default));
123835
+ addDecoder(32773, () => import("./packbits-88231270.js").then((m2) => m2.default));
123836
+ addDecoder(34887, () => import("./lerc-776d0184.js").then((m2) => m2.default));
123837
+ addDecoder(50001, () => import("./webimage-8270872a.js").then((m2) => m2.default));
123823
123838
  function decodeRowAcc(row, stride) {
123824
123839
  let length2 = row.length - stride;
123825
123840
  let offset5 = 0;
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { G } from "./index-c9b4cfce.js";
1
+ import { G } from "./index-a7052125.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-c9b4cfce.js";
1
+ import { B as BaseDecoder } from "./index-a7052125.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-c9b4cfce.js";
2
+ import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-a7052125.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-c9b4cfce.js";
1
+ import { B as BaseDecoder } from "./index-a7052125.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-c9b4cfce.js";
1
+ import { B as BaseDecoder } from "./index-a7052125.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-c9b4cfce.js";
1
+ import { B as BaseDecoder } from "./index-a7052125.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-c9b4cfce.js";
1
+ import { B as BaseDecoder } from "./index-a7052125.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/scatterplot-gating",
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,11 +20,11 @@
20
20
  "d3-array": "^2.4.0",
21
21
  "lodash-es": "^4.17.21",
22
22
  "react-aria": "^3.28.0",
23
- "@vitessce/constants-internal": "3.4.11",
24
- "@vitessce/scatterplot": "3.4.11",
25
- "@vitessce/sets-utils": "3.4.11",
26
- "@vitessce/utils": "3.4.11",
27
- "@vitessce/vit-s": "3.4.11"
23
+ "@vitessce/constants-internal": "3.4.14",
24
+ "@vitessce/scatterplot": "3.4.14",
25
+ "@vitessce/sets-utils": "3.4.14",
26
+ "@vitessce/utils": "3.4.14",
27
+ "@vitessce/vit-s": "3.4.14"
28
28
  },
29
29
  "devDependencies": {
30
30
  "react": "^18.0.0",