@vitessce/scatterplot-gating 3.4.8 → 3.4.10

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-6edd3db4.js";
2
+ import { B as BaseDecoder } from "./index-d8a3c555.js";
3
3
  import "react";
4
4
  import "@vitessce/vit-s";
5
5
  import "react-dom";
@@ -8364,6 +8364,9 @@ const configSchema1_0_16 = configSchema1_0_13.extend({
8364
8364
  coordinationScopesBy: componentCoordinationScopesBy.optional()
8365
8365
  }))
8366
8366
  });
8367
+ const configSchema1_0_17 = configSchema1_0_16.extend({
8368
+ version: z.literal("1.0.17")
8369
+ });
8367
8370
  configSchema1_0_0.shape.coordinationSpace.unwrap();
8368
8371
  configSchema1_0_0.shape.layout.element.shape.coordinationScopes.unwrap();
8369
8372
  function upgradeReplaceViewProp(prefix2, view, coordinationSpace) {
@@ -8835,7 +8838,43 @@ function upgradeFrom1_0_15(config2) {
8835
8838
  version: "1.0.16"
8836
8839
  };
8837
8840
  }
8838
- const latestConfigSchema = configSchema1_0_16;
8841
+ function upgradeFrom1_0_16(config2) {
8842
+ const newConfig = cloneDeep(config2);
8843
+ const { datasets } = newConfig;
8844
+ const newDatasets = datasets.map((datasetDef) => {
8845
+ const { files } = datasetDef;
8846
+ const newFiles = files.map((fileDef) => {
8847
+ const { fileType, options } = fileDef;
8848
+ if (fileType === "obsSets.anndata.zarr") {
8849
+ return {
8850
+ ...fileDef,
8851
+ options: {
8852
+ obsSets: options
8853
+ }
8854
+ };
8855
+ }
8856
+ if (fileType === "obsFeatureColumns.anndata.zarr") {
8857
+ return {
8858
+ ...fileDef,
8859
+ options: {
8860
+ obsFeatureColumns: options
8861
+ }
8862
+ };
8863
+ }
8864
+ return fileDef;
8865
+ });
8866
+ return {
8867
+ ...datasetDef,
8868
+ files: newFiles
8869
+ };
8870
+ });
8871
+ return {
8872
+ ...newConfig,
8873
+ datasets: newDatasets,
8874
+ version: "1.0.17"
8875
+ };
8876
+ }
8877
+ const latestConfigSchema = configSchema1_0_17;
8839
8878
  const SCHEMA_HANDLERS = [
8840
8879
  [configSchema0_1_0, upgradeFrom0_1_0],
8841
8880
  [configSchema1_0_0, upgradeFrom1_0_0],
@@ -8853,7 +8892,8 @@ const SCHEMA_HANDLERS = [
8853
8892
  [configSchema1_0_12, upgradeFrom1_0_12],
8854
8893
  [configSchema1_0_13, upgradeFrom1_0_13],
8855
8894
  [configSchema1_0_14, upgradeFrom1_0_14],
8856
- [configSchema1_0_15, upgradeFrom1_0_15]
8895
+ [configSchema1_0_15, upgradeFrom1_0_15],
8896
+ [configSchema1_0_16, upgradeFrom1_0_16]
8857
8897
  ];
8858
8898
  var re$3 = { exports: {} };
8859
8899
  const SEMVER_SPEC_VERSION = "2.0.0";
@@ -10999,6 +11039,7 @@ const FileType$1 = {
10999
11039
  // Joint file types
11000
11040
  ANNDATA_ZARR: "anndata.zarr",
11001
11041
  ANNDATA_ZARR_ZIP: "anndata.zarr.zip",
11042
+ ANNDATA_H5AD: "anndata.h5ad",
11002
11043
  SPATIALDATA_ZARR: "spatialdata.zarr",
11003
11044
  // Atomic file types
11004
11045
  OBS_EMBEDDING_CSV: "obsEmbedding.csv",
@@ -11039,6 +11080,18 @@ const FileType$1 = {
11039
11080
  OBS_LABELS_ANNDATA_ZARR_ZIP: "obsLabels.anndata.zarr.zip",
11040
11081
  FEATURE_LABELS_ANNDATA_ZARR_ZIP: "featureLabels.anndata.zarr.zip",
11041
11082
  SAMPLE_EDGES_ANNDATA_ZARR_ZIP: "sampleEdges.anndata.zarr.zip",
11083
+ // AnnData - h5ad via reference spec
11084
+ OBS_FEATURE_MATRIX_ANNDATA_H5AD: "obsFeatureMatrix.anndata.h5ad",
11085
+ OBS_FEATURE_COLUMNS_ANNDATA_H5AD: "obsFeatureColumns.anndata.h5ad",
11086
+ OBS_SETS_ANNDATA_H5AD: "obsSets.anndata.h5ad",
11087
+ OBS_EMBEDDING_ANNDATA_H5AD: "obsEmbedding.anndata.h5ad",
11088
+ OBS_SPOTS_ANNDATA_H5AD: "obsSpots.anndata.h5ad",
11089
+ OBS_POINTS_ANNDATA_H5AD: "obsPoints.anndata.h5ad",
11090
+ OBS_LOCATIONS_ANNDATA_H5AD: "obsLocations.anndata.h5ad",
11091
+ OBS_SEGMENTATIONS_ANNDATA_H5AD: "obsSegmentations.anndata.h5ad",
11092
+ OBS_LABELS_ANNDATA_H5AD: "obsLabels.anndata.h5ad",
11093
+ FEATURE_LABELS_ANNDATA_H5AD: "featureLabels.anndata.h5ad",
11094
+ SAMPLE_EDGES_ANNDATA_H5AD: "sampleEdges.anndata.h5ad",
11042
11095
  // SpatialData
11043
11096
  IMAGE_SPATIALDATA_ZARR: "image.spatialdata.zarr",
11044
11097
  LABELS_SPATIALDATA_ZARR: "labels.spatialdata.zarr",
@@ -11804,10 +11857,11 @@ function makeConstantWithDeprecationMessage(currObj, oldObj) {
11804
11857
  const handler = {
11805
11858
  get(obj, prop) {
11806
11859
  const oldKeys = Object.keys(oldObj);
11807
- if (oldKeys.includes(prop)) {
11808
- console.warn(`Notice about the constant mapping ${prop}: '${oldObj[prop][0]}':
11809
- ${oldObj[prop][1]}`);
11810
- return oldObj[prop];
11860
+ const propKey = String(prop);
11861
+ if (oldKeys.includes(propKey)) {
11862
+ console.warn(`Notice about the constant mapping ${propKey}: '${oldObj[propKey][0]}':
11863
+ ${oldObj[propKey][1]}`);
11864
+ return oldObj[propKey];
11811
11865
  }
11812
11866
  return obj[prop];
11813
11867
  }
@@ -11892,7 +11946,7 @@ const annDataObsFeatureMatrix = z.object({
11892
11946
  featureFilterPath: z.string().optional().describe("If the feature index should be filtered, put a boolean column here (analogous to the previous geneFilter option). e.g., var/in_obsm_X_small_matrix"),
11893
11947
  initialFeatureFilterPath: z.string().optional().describe("If only a subset of the matrix should be loaded initially, put a boolean column along the feature axis here (analogous to the previous matrixGeneFilter option). e.g., var/highly_variable")
11894
11948
  });
11895
- const annDataObsSets = z.array(z.object({
11949
+ const annDataObsSetsArr = z.array(z.object({
11896
11950
  name: z.string().describe("The display name for the set, like 'Cell Type' or 'Louvain.'"),
11897
11951
  path: z.union([
11898
11952
  z.string().describe("The location in the AnnData store for the set, like 'obs/louvain' or 'obs/celltype.'"),
@@ -11900,9 +11954,15 @@ const annDataObsSets = z.array(z.object({
11900
11954
  ]),
11901
11955
  scorePath: z.string().optional().describe("The location in the AnnData store for the set confidence scores, like 'obs/celltype_prediction_score.'")
11902
11956
  }));
11903
- z.array(z.object({
11957
+ const annDataObsSets = z.object({
11958
+ obsSets: annDataObsSetsArr
11959
+ });
11960
+ const annDataObsFeatureColumnsArr = z.array(z.object({
11904
11961
  path: z.string()
11905
11962
  }));
11963
+ z.object({
11964
+ obsFeatureColumns: annDataObsFeatureColumnsArr
11965
+ });
11906
11966
  const annDataObsSpots = annDataObsm;
11907
11967
  const annDataObsPoints = annDataObsm;
11908
11968
  const annDataObsLocations = annDataObsm;
@@ -12025,7 +12085,7 @@ z.object({
12025
12085
  scoreColumn: z.string().optional()
12026
12086
  }))
12027
12087
  });
12028
- z.object({
12088
+ const anndataZarrSchema = z.object({
12029
12089
  obsLabels: z.union([
12030
12090
  annDataObsLabels,
12031
12091
  z.array(annDataConvenienceObsLabelsItem)
@@ -12035,7 +12095,7 @@ z.object({
12035
12095
  z.array(annDataConvenienceFeatureLabelsItem)
12036
12096
  ]),
12037
12097
  obsFeatureMatrix: annDataObsFeatureMatrix,
12038
- obsSets: annDataObsSets,
12098
+ obsSets: annDataObsSetsArr,
12039
12099
  obsSpots: annDataObsSpots,
12040
12100
  obsPoints: annDataObsPoints,
12041
12101
  obsLocations: annDataObsLocations,
@@ -12046,6 +12106,9 @@ z.object({
12046
12106
  ]),
12047
12107
  sampleEdges: annDataSampleEdges
12048
12108
  }).partial();
12109
+ anndataZarrSchema.extend({
12110
+ refSpecUrl: z.string()
12111
+ });
12049
12112
  z.object({
12050
12113
  // TODO: should `image` be a special schema
12051
12114
  // to allow specifying fileUid (like for embeddingType)?
@@ -123730,16 +123793,16 @@ function addDecoder(cases, importFn) {
123730
123793
  }
123731
123794
  cases.forEach((c2) => registry$1.set(c2, importFn));
123732
123795
  }
123733
- addDecoder([void 0, 1], () => import("./raw-f1ddc9ae.js").then((m2) => m2.default));
123734
- addDecoder(5, () => import("./lzw-2d69878c.js").then((m2) => m2.default));
123796
+ addDecoder([void 0, 1], () => import("./raw-be8b369a.js").then((m2) => m2.default));
123797
+ addDecoder(5, () => import("./lzw-80267e13.js").then((m2) => m2.default));
123735
123798
  addDecoder(6, () => {
123736
123799
  throw new Error("old style JPEG compression is not supported.");
123737
123800
  });
123738
- addDecoder(7, () => import("./jpeg-c53fe29a.js").then((m2) => m2.default));
123739
- addDecoder([8, 32946], () => import("./deflate-dfc7825e.js").then((m2) => m2.default));
123740
- addDecoder(32773, () => import("./packbits-c3306762.js").then((m2) => m2.default));
123741
- addDecoder(34887, () => import("./lerc-57032696.js").then((m2) => m2.default));
123742
- addDecoder(50001, () => import("./webimage-03920c71.js").then((m2) => m2.default));
123801
+ addDecoder(7, () => import("./jpeg-1af419b8.js").then((m2) => m2.default));
123802
+ addDecoder([8, 32946], () => import("./deflate-c70054b2.js").then((m2) => m2.default));
123803
+ addDecoder(32773, () => import("./packbits-a7eab764.js").then((m2) => m2.default));
123804
+ addDecoder(34887, () => import("./lerc-408b2bde.js").then((m2) => m2.default));
123805
+ addDecoder(50001, () => import("./webimage-61be8bd4.js").then((m2) => m2.default));
123743
123806
  function decodeRowAcc(row, stride) {
123744
123807
  let length2 = row.length - stride;
123745
123808
  let offset5 = 0;
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { G } from "./index-6edd3db4.js";
1
+ import { G } from "./index-d8a3c555.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-6edd3db4.js";
1
+ import { B as BaseDecoder } from "./index-d8a3c555.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-6edd3db4.js";
2
+ import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-d8a3c555.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-6edd3db4.js";
1
+ import { B as BaseDecoder } from "./index-d8a3c555.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-6edd3db4.js";
1
+ import { B as BaseDecoder } from "./index-d8a3c555.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-6edd3db4.js";
1
+ import { B as BaseDecoder } from "./index-d8a3c555.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-6edd3db4.js";
1
+ import { B as BaseDecoder } from "./index-d8a3c555.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.8",
3
+ "version": "3.4.10",
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.8",
24
- "@vitessce/scatterplot": "3.4.8",
25
- "@vitessce/sets-utils": "3.4.8",
26
- "@vitessce/utils": "3.4.8",
27
- "@vitessce/vit-s": "3.4.8"
23
+ "@vitessce/constants-internal": "3.4.10",
24
+ "@vitessce/scatterplot": "3.4.10",
25
+ "@vitessce/sets-utils": "3.4.10",
26
+ "@vitessce/utils": "3.4.10",
27
+ "@vitessce/vit-s": "3.4.10"
28
28
  },
29
29
  "devDependencies": {
30
30
  "react": "^18.0.0",