@vitessce/statistical-plots 3.4.9 → 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-ff4d0660.js";
2
+ import { B as BaseDecoder } from "./index-ce54e46a.js";
3
3
  import "react";
4
4
  import "@vitessce/vit-s";
5
5
  import "react-dom";
@@ -979,6 +979,7 @@ const FileType$1 = {
979
979
  // Joint file types
980
980
  ANNDATA_ZARR: "anndata.zarr",
981
981
  ANNDATA_ZARR_ZIP: "anndata.zarr.zip",
982
+ ANNDATA_H5AD: "anndata.h5ad",
982
983
  SPATIALDATA_ZARR: "spatialdata.zarr",
983
984
  // Atomic file types
984
985
  OBS_EMBEDDING_CSV: "obsEmbedding.csv",
@@ -1019,6 +1020,18 @@ const FileType$1 = {
1019
1020
  OBS_LABELS_ANNDATA_ZARR_ZIP: "obsLabels.anndata.zarr.zip",
1020
1021
  FEATURE_LABELS_ANNDATA_ZARR_ZIP: "featureLabels.anndata.zarr.zip",
1021
1022
  SAMPLE_EDGES_ANNDATA_ZARR_ZIP: "sampleEdges.anndata.zarr.zip",
1023
+ // AnnData - h5ad via reference spec
1024
+ OBS_FEATURE_MATRIX_ANNDATA_H5AD: "obsFeatureMatrix.anndata.h5ad",
1025
+ OBS_FEATURE_COLUMNS_ANNDATA_H5AD: "obsFeatureColumns.anndata.h5ad",
1026
+ OBS_SETS_ANNDATA_H5AD: "obsSets.anndata.h5ad",
1027
+ OBS_EMBEDDING_ANNDATA_H5AD: "obsEmbedding.anndata.h5ad",
1028
+ OBS_SPOTS_ANNDATA_H5AD: "obsSpots.anndata.h5ad",
1029
+ OBS_POINTS_ANNDATA_H5AD: "obsPoints.anndata.h5ad",
1030
+ OBS_LOCATIONS_ANNDATA_H5AD: "obsLocations.anndata.h5ad",
1031
+ OBS_SEGMENTATIONS_ANNDATA_H5AD: "obsSegmentations.anndata.h5ad",
1032
+ OBS_LABELS_ANNDATA_H5AD: "obsLabels.anndata.h5ad",
1033
+ FEATURE_LABELS_ANNDATA_H5AD: "featureLabels.anndata.h5ad",
1034
+ SAMPLE_EDGES_ANNDATA_H5AD: "sampleEdges.anndata.h5ad",
1022
1035
  // SpatialData
1023
1036
  IMAGE_SPATIALDATA_ZARR: "image.spatialdata.zarr",
1024
1037
  LABELS_SPATIALDATA_ZARR: "labels.spatialdata.zarr",
@@ -8968,6 +8981,9 @@ const configSchema1_0_16 = configSchema1_0_13.extend({
8968
8981
  coordinationScopesBy: componentCoordinationScopesBy.optional()
8969
8982
  }))
8970
8983
  });
8984
+ const configSchema1_0_17 = configSchema1_0_16.extend({
8985
+ version: z.literal("1.0.17")
8986
+ });
8971
8987
  configSchema1_0_0.shape.coordinationSpace.unwrap();
8972
8988
  configSchema1_0_0.shape.layout.element.shape.coordinationScopes.unwrap();
8973
8989
  function upgradeReplaceViewProp(prefix2, view, coordinationSpace) {
@@ -9439,7 +9455,43 @@ function upgradeFrom1_0_15(config2) {
9439
9455
  version: "1.0.16"
9440
9456
  };
9441
9457
  }
9442
- const latestConfigSchema = configSchema1_0_16;
9458
+ function upgradeFrom1_0_16(config2) {
9459
+ const newConfig = cloneDeep(config2);
9460
+ const { datasets } = newConfig;
9461
+ const newDatasets = datasets.map((datasetDef) => {
9462
+ const { files: files2 } = datasetDef;
9463
+ const newFiles = files2.map((fileDef) => {
9464
+ const { fileType, options } = fileDef;
9465
+ if (fileType === "obsSets.anndata.zarr") {
9466
+ return {
9467
+ ...fileDef,
9468
+ options: {
9469
+ obsSets: options
9470
+ }
9471
+ };
9472
+ }
9473
+ if (fileType === "obsFeatureColumns.anndata.zarr") {
9474
+ return {
9475
+ ...fileDef,
9476
+ options: {
9477
+ obsFeatureColumns: options
9478
+ }
9479
+ };
9480
+ }
9481
+ return fileDef;
9482
+ });
9483
+ return {
9484
+ ...datasetDef,
9485
+ files: newFiles
9486
+ };
9487
+ });
9488
+ return {
9489
+ ...newConfig,
9490
+ datasets: newDatasets,
9491
+ version: "1.0.17"
9492
+ };
9493
+ }
9494
+ const latestConfigSchema = configSchema1_0_17;
9443
9495
  const SCHEMA_HANDLERS = [
9444
9496
  [configSchema0_1_0, upgradeFrom0_1_0],
9445
9497
  [configSchema1_0_0, upgradeFrom1_0_0],
@@ -9457,7 +9509,8 @@ const SCHEMA_HANDLERS = [
9457
9509
  [configSchema1_0_12, upgradeFrom1_0_12],
9458
9510
  [configSchema1_0_13, upgradeFrom1_0_13],
9459
9511
  [configSchema1_0_14, upgradeFrom1_0_14],
9460
- [configSchema1_0_15, upgradeFrom1_0_15]
9512
+ [configSchema1_0_15, upgradeFrom1_0_15],
9513
+ [configSchema1_0_16, upgradeFrom1_0_16]
9461
9514
  ];
9462
9515
  var re$7 = { exports: {} };
9463
9516
  const SEMVER_SPEC_VERSION$1 = "2.0.0";
@@ -11728,10 +11781,11 @@ function makeConstantWithDeprecationMessage(currObj, oldObj) {
11728
11781
  const handler = {
11729
11782
  get(obj, prop) {
11730
11783
  const oldKeys = Object.keys(oldObj);
11731
- if (oldKeys.includes(prop)) {
11732
- console.warn(`Notice about the constant mapping ${prop}: '${oldObj[prop][0]}':
11733
- ${oldObj[prop][1]}`);
11734
- return oldObj[prop];
11784
+ const propKey = String(prop);
11785
+ if (oldKeys.includes(propKey)) {
11786
+ console.warn(`Notice about the constant mapping ${propKey}: '${oldObj[propKey][0]}':
11787
+ ${oldObj[propKey][1]}`);
11788
+ return oldObj[propKey];
11735
11789
  }
11736
11790
  return obj[prop];
11737
11791
  }
@@ -11816,7 +11870,7 @@ const annDataObsFeatureMatrix = z.object({
11816
11870
  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"),
11817
11871
  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")
11818
11872
  });
11819
- const annDataObsSets = z.array(z.object({
11873
+ const annDataObsSetsArr = z.array(z.object({
11820
11874
  name: z.string().describe("The display name for the set, like 'Cell Type' or 'Louvain.'"),
11821
11875
  path: z.union([
11822
11876
  z.string().describe("The location in the AnnData store for the set, like 'obs/louvain' or 'obs/celltype.'"),
@@ -11824,9 +11878,15 @@ const annDataObsSets = z.array(z.object({
11824
11878
  ]),
11825
11879
  scorePath: z.string().optional().describe("The location in the AnnData store for the set confidence scores, like 'obs/celltype_prediction_score.'")
11826
11880
  }));
11827
- z.array(z.object({
11881
+ const annDataObsSets = z.object({
11882
+ obsSets: annDataObsSetsArr
11883
+ });
11884
+ const annDataObsFeatureColumnsArr = z.array(z.object({
11828
11885
  path: z.string()
11829
11886
  }));
11887
+ z.object({
11888
+ obsFeatureColumns: annDataObsFeatureColumnsArr
11889
+ });
11830
11890
  const annDataObsSpots = annDataObsm;
11831
11891
  const annDataObsPoints = annDataObsm;
11832
11892
  const annDataObsLocations = annDataObsm;
@@ -11949,7 +12009,7 @@ z.object({
11949
12009
  scoreColumn: z.string().optional()
11950
12010
  }))
11951
12011
  });
11952
- z.object({
12012
+ const anndataZarrSchema = z.object({
11953
12013
  obsLabels: z.union([
11954
12014
  annDataObsLabels,
11955
12015
  z.array(annDataConvenienceObsLabelsItem)
@@ -11959,7 +12019,7 @@ z.object({
11959
12019
  z.array(annDataConvenienceFeatureLabelsItem)
11960
12020
  ]),
11961
12021
  obsFeatureMatrix: annDataObsFeatureMatrix,
11962
- obsSets: annDataObsSets,
12022
+ obsSets: annDataObsSetsArr,
11963
12023
  obsSpots: annDataObsSpots,
11964
12024
  obsPoints: annDataObsPoints,
11965
12025
  obsLocations: annDataObsLocations,
@@ -11970,6 +12030,9 @@ z.object({
11970
12030
  ]),
11971
12031
  sampleEdges: annDataSampleEdges
11972
12032
  }).partial();
12033
+ anndataZarrSchema.extend({
12034
+ refSpecUrl: z.string()
12035
+ });
11973
12036
  z.object({
11974
12037
  // TODO: should `image` be a special schema
11975
12038
  // to allow specifying fileUid (like for embeddingType)?
@@ -133128,16 +133191,16 @@ function addDecoder(cases2, importFn) {
133128
133191
  }
133129
133192
  cases2.forEach((c2) => registry$1.set(c2, importFn));
133130
133193
  }
133131
- addDecoder([void 0, 1], () => import("./raw-18214a1e.js").then((m2) => m2.default));
133132
- addDecoder(5, () => import("./lzw-f9f89edb.js").then((m2) => m2.default));
133194
+ addDecoder([void 0, 1], () => import("./raw-57e07f3f.js").then((m2) => m2.default));
133195
+ addDecoder(5, () => import("./lzw-a4e25d69.js").then((m2) => m2.default));
133133
133196
  addDecoder(6, () => {
133134
133197
  throw new Error("old style JPEG compression is not supported.");
133135
133198
  });
133136
- addDecoder(7, () => import("./jpeg-9d65dc0f.js").then((m2) => m2.default));
133137
- addDecoder([8, 32946], () => import("./deflate-9b949812.js").then((m2) => m2.default));
133138
- addDecoder(32773, () => import("./packbits-92275192.js").then((m2) => m2.default));
133139
- addDecoder(34887, () => import("./lerc-5d951898.js").then((m2) => m2.default));
133140
- addDecoder(50001, () => import("./webimage-6f128314.js").then((m2) => m2.default));
133199
+ addDecoder(7, () => import("./jpeg-0907c241.js").then((m2) => m2.default));
133200
+ addDecoder([8, 32946], () => import("./deflate-0e765bf3.js").then((m2) => m2.default));
133201
+ addDecoder(32773, () => import("./packbits-b0989382.js").then((m2) => m2.default));
133202
+ addDecoder(34887, () => import("./lerc-28ed0c74.js").then((m2) => m2.default));
133203
+ addDecoder(50001, () => import("./webimage-21c51b36.js").then((m2) => m2.default));
133141
133204
  function decodeRowAcc(row, stride) {
133142
133205
  let length2 = row.length - stride;
133143
133206
  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-ff4d0660.js";
1
+ import { c, C, b, a, e, D, d, E, F } from "./index-ce54e46a.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-ff4d0660.js";
1
+ import { B as BaseDecoder } from "./index-ce54e46a.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-ff4d0660.js";
2
+ import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-ce54e46a.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-ff4d0660.js";
1
+ import { B as BaseDecoder } from "./index-ce54e46a.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-ff4d0660.js";
1
+ import { B as BaseDecoder } from "./index-ce54e46a.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-ff4d0660.js";
1
+ import { B as BaseDecoder } from "./index-ce54e46a.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-ff4d0660.js";
1
+ import { B as BaseDecoder } from "./index-ce54e46a.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.9",
3
+ "version": "3.4.10",
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.9",
32
- "@vitessce/sets-utils": "3.4.9",
33
- "@vitessce/utils": "3.4.9",
34
- "@vitessce/vega": "3.4.9",
35
- "@vitessce/vit-s": "3.4.9",
36
- "@vitessce/gl": "3.4.9"
31
+ "@vitessce/constants-internal": "3.4.10",
32
+ "@vitessce/sets-utils": "3.4.10",
33
+ "@vitessce/utils": "3.4.10",
34
+ "@vitessce/vega": "3.4.10",
35
+ "@vitessce/vit-s": "3.4.10",
36
+ "@vitessce/gl": "3.4.10"
37
37
  },
38
38
  "devDependencies": {
39
39
  "react": "^18.0.0",