@vitessce/scatterplot-embedding 3.3.6 → 3.3.7

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-2d8bbe0d.js";
2
+ import { B as BaseDecoder } from "./index-dd2f112e.js";
3
3
  import "react";
4
4
  import "@vitessce/vit-s";
5
5
  import "react-dom";
@@ -11024,11 +11024,14 @@ const DataType$2 = {
11024
11024
  GENOMIC_PROFILES: "genomic-profiles",
11025
11025
  OBS_SPOTS: "obsSpots",
11026
11026
  OBS_POINTS: "obsPoints",
11027
- OBS_LOCATIONS: "obsLocations"
11027
+ OBS_LOCATIONS: "obsLocations",
11028
+ SAMPLE_SETS: "sampleSets",
11029
+ SAMPLE_EDGES: "sampleEdges"
11028
11030
  };
11029
11031
  const FileType$1 = {
11030
11032
  // Joint file types
11031
11033
  ANNDATA_ZARR: "anndata.zarr",
11034
+ ANNDATA_ZARR_ZIP: "anndata.zarr.zip",
11032
11035
  SPATIALDATA_ZARR: "spatialdata.zarr",
11033
11036
  // Atomic file types
11034
11037
  OBS_EMBEDDING_CSV: "obsEmbedding.csv",
@@ -11041,6 +11044,7 @@ const FileType$1 = {
11041
11044
  OBS_SEGMENTATIONS_JSON: "obsSegmentations.json",
11042
11045
  OBS_SETS_CSV: "obsSets.csv",
11043
11046
  OBS_SETS_JSON: "obsSets.json",
11047
+ SAMPLE_SETS_CSV: "sampleSets.csv",
11044
11048
  // OME-Zarr
11045
11049
  IMAGE_OME_ZARR: "image.ome-zarr",
11046
11050
  OBS_SEGMENTATIONS_OME_ZARR: "obsSegmentations.ome-zarr",
@@ -11055,6 +11059,19 @@ const FileType$1 = {
11055
11059
  OBS_SEGMENTATIONS_ANNDATA_ZARR: "obsSegmentations.anndata.zarr",
11056
11060
  OBS_LABELS_ANNDATA_ZARR: "obsLabels.anndata.zarr",
11057
11061
  FEATURE_LABELS_ANNDATA_ZARR: "featureLabels.anndata.zarr",
11062
+ SAMPLE_EDGES_ANNDATA_ZARR: "sampleEdges.anndata.zarr",
11063
+ // AnnData - zipped
11064
+ OBS_FEATURE_MATRIX_ANNDATA_ZARR_ZIP: "obsFeatureMatrix.anndata.zarr.zip",
11065
+ OBS_FEATURE_COLUMNS_ANNDATA_ZARR_ZIP: "obsFeatureColumns.anndata.zarr.zip",
11066
+ OBS_SETS_ANNDATA_ZARR_ZIP: "obsSets.anndata.zarr.zip",
11067
+ OBS_EMBEDDING_ANNDATA_ZARR_ZIP: "obsEmbedding.anndata.zarr.zip",
11068
+ OBS_SPOTS_ANNDATA_ZARR_ZIP: "obsSpots.anndata.zarr.zip",
11069
+ OBS_POINTS_ANNDATA_ZARR_ZIP: "obsPoints.anndata.zarr.zip",
11070
+ OBS_LOCATIONS_ANNDATA_ZARR_ZIP: "obsLocations.anndata.zarr.zip",
11071
+ OBS_SEGMENTATIONS_ANNDATA_ZARR_ZIP: "obsSegmentations.anndata.zarr.zip",
11072
+ OBS_LABELS_ANNDATA_ZARR_ZIP: "obsLabels.anndata.zarr.zip",
11073
+ FEATURE_LABELS_ANNDATA_ZARR_ZIP: "featureLabels.anndata.zarr.zip",
11074
+ SAMPLE_EDGES_ANNDATA_ZARR_ZIP: "sampleEdges.anndata.zarr.zip",
11058
11075
  // SpatialData
11059
11076
  IMAGE_SPATIALDATA_ZARR: "image.spatialdata.zarr",
11060
11077
  LABELS_SPATIALDATA_ZARR: "labels.spatialdata.zarr",
@@ -11062,6 +11079,7 @@ const FileType$1 = {
11062
11079
  OBS_FEATURE_MATRIX_SPATIALDATA_ZARR: "obsFeatureMatrix.spatialdata.zarr",
11063
11080
  OBS_SETS_SPATIALDATA_ZARR: "obsSets.spatialdata.zarr",
11064
11081
  OBS_SPOTS_SPATIALDATA_ZARR: "obsSpots.spatialdata.zarr",
11082
+ FEATURE_LABELS_SPATIALDATA_ZARR: "featureLabels.spatialdata.zarr",
11065
11083
  // TODO:
11066
11084
  // OBS_POINTS_SPATIALDATA_ZARR: 'obsPoints.spatialdata.zarr',
11067
11085
  // OBS_LOCATIONS_SPATIALDATA_ZARR: 'obsLocations.spatialdata.zarr',
@@ -11218,7 +11236,10 @@ const CoordinationType$1 = {
11218
11236
  LEGEND_VISIBLE: "legendVisible",
11219
11237
  SPATIAL_CHANNEL_LABELS_VISIBLE: "spatialChannelLabelsVisible",
11220
11238
  SPATIAL_CHANNEL_LABELS_ORIENTATION: "spatialChannelLabelsOrientation",
11221
- SPATIAL_CHANNEL_LABEL_SIZE: "spatialChannelLabelSize"
11239
+ SPATIAL_CHANNEL_LABEL_SIZE: "spatialChannelLabelSize",
11240
+ // Multi-sample / comparative
11241
+ SAMPLE_TYPE: "sampleType",
11242
+ SAMPLE_SET_SELECTION: "sampleSetSelection"
11222
11243
  };
11223
11244
  const COMPONENT_COORDINATION_TYPES = {
11224
11245
  [ViewType$1.SCATTERPLOT]: [
@@ -11466,7 +11487,9 @@ const COMPONENT_COORDINATION_TYPES = {
11466
11487
  CoordinationType$1.OBS_SET_SELECTION,
11467
11488
  CoordinationType$1.OBS_SET_HIGHLIGHT,
11468
11489
  CoordinationType$1.OBS_SET_COLOR,
11469
- CoordinationType$1.ADDITIONAL_OBS_SETS
11490
+ CoordinationType$1.ADDITIONAL_OBS_SETS,
11491
+ CoordinationType$1.SAMPLE_TYPE,
11492
+ CoordinationType$1.SAMPLE_SET_SELECTION
11470
11493
  ],
11471
11494
  [ViewType$1.FEATURE_VALUE_HISTOGRAM]: [
11472
11495
  CoordinationType$1.DATASET,
@@ -11945,6 +11968,17 @@ z.object({
11945
11968
  scoreColumn: z.string().optional()
11946
11969
  }))
11947
11970
  });
11971
+ z.object({
11972
+ sampleIndex: z.string(),
11973
+ sampleSets: z.array(z.object({
11974
+ name: z.string(),
11975
+ column: z.union([
11976
+ z.string(),
11977
+ z.array(z.string())
11978
+ ]),
11979
+ scoreColumn: z.string().optional()
11980
+ }))
11981
+ });
11948
11982
  z.object({
11949
11983
  obsLabels: z.union([
11950
11984
  annDataObsLabels,
@@ -121317,16 +121351,16 @@ function addDecoder(cases, importFn) {
121317
121351
  }
121318
121352
  cases.forEach((c2) => registry$1.set(c2, importFn));
121319
121353
  }
121320
- addDecoder([void 0, 1], () => import("./raw-73814107.js").then((m2) => m2.default));
121321
- addDecoder(5, () => import("./lzw-82440e2d.js").then((m2) => m2.default));
121354
+ addDecoder([void 0, 1], () => import("./raw-4cbe3f30.js").then((m2) => m2.default));
121355
+ addDecoder(5, () => import("./lzw-26eb4bbc.js").then((m2) => m2.default));
121322
121356
  addDecoder(6, () => {
121323
121357
  throw new Error("old style JPEG compression is not supported.");
121324
121358
  });
121325
- addDecoder(7, () => import("./jpeg-a28a644a.js").then((m2) => m2.default));
121326
- addDecoder([8, 32946], () => import("./deflate-eda70ae1.js").then((m2) => m2.default));
121327
- addDecoder(32773, () => import("./packbits-0debf5b7.js").then((m2) => m2.default));
121328
- addDecoder(34887, () => import("./lerc-020b89ab.js").then((m2) => m2.default));
121329
- addDecoder(50001, () => import("./webimage-7ad8a00b.js").then((m2) => m2.default));
121359
+ addDecoder(7, () => import("./jpeg-090adc7b.js").then((m2) => m2.default));
121360
+ addDecoder([8, 32946], () => import("./deflate-9b4303c6.js").then((m2) => m2.default));
121361
+ addDecoder(32773, () => import("./packbits-1f898d8f.js").then((m2) => m2.default));
121362
+ addDecoder(34887, () => import("./lerc-d85a1773.js").then((m2) => m2.default));
121363
+ addDecoder(50001, () => import("./webimage-9ad531da.js").then((m2) => m2.default));
121330
121364
  function decodeRowAcc(row, stride) {
121331
121365
  let length2 = row.length - stride;
121332
121366
  let offset5 = 0;
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { E } from "./index-2d8bbe0d.js";
1
+ import { E } from "./index-dd2f112e.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-2d8bbe0d.js";
1
+ import { B as BaseDecoder } from "./index-dd2f112e.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-2d8bbe0d.js";
2
+ import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-dd2f112e.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-2d8bbe0d.js";
1
+ import { B as BaseDecoder } from "./index-dd2f112e.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-2d8bbe0d.js";
1
+ import { B as BaseDecoder } from "./index-dd2f112e.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-2d8bbe0d.js";
1
+ import { B as BaseDecoder } from "./index-dd2f112e.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-2d8bbe0d.js";
1
+ import { B as BaseDecoder } from "./index-dd2f112e.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-embedding",
3
- "version": "3.3.6",
3
+ "version": "3.3.7",
4
4
  "author": "Gehlenborg Lab",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -20,12 +20,12 @@
20
20
  "d3-array": "^2.4.0",
21
21
  "lodash-es": "^4.17.21",
22
22
  "react-aria": "^3.28.0",
23
- "@vitessce/scatterplot": "3.3.6",
24
- "@vitessce/utils": "3.3.6",
25
- "@vitessce/constants-internal": "3.3.6",
26
- "@vitessce/vit-s": "3.3.6",
27
- "@vitessce/legend": "3.3.6",
28
- "@vitessce/sets-utils": "3.3.6"
23
+ "@vitessce/legend": "3.3.7",
24
+ "@vitessce/constants-internal": "3.3.7",
25
+ "@vitessce/sets-utils": "3.3.7",
26
+ "@vitessce/utils": "3.3.7",
27
+ "@vitessce/scatterplot": "3.3.7",
28
+ "@vitessce/vit-s": "3.3.7"
29
29
  },
30
30
  "devDependencies": {
31
31
  "react": "^18.0.0",