@vitessce/sets-utils 3.3.5 → 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.
Files changed (2) hide show
  1. package/dist/index.js +36 -3
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -2460,8 +2460,9 @@ function getNextScope(prevScopes) {
2460
2460
  }
2461
2461
  const DEFAULT_DARK_COLOR = [50, 50, 50];
2462
2462
  const DEFAULT_LIGHT_COLOR = [200, 200, 200];
2463
+ const DEFAULT_LIGHT2_COLOR = [235, 235, 235];
2463
2464
  function getDefaultColor(theme) {
2464
- return theme === "dark" ? DEFAULT_DARK_COLOR : DEFAULT_LIGHT_COLOR;
2465
+ return theme === "dark" ? DEFAULT_DARK_COLOR : theme === "light" ? DEFAULT_LIGHT_COLOR : DEFAULT_LIGHT2_COLOR;
2465
2466
  }
2466
2467
  const PALETTE = [
2467
2468
  [68, 119, 170],
@@ -9025,11 +9026,14 @@ const DataType$1 = {
9025
9026
  GENOMIC_PROFILES: "genomic-profiles",
9026
9027
  OBS_SPOTS: "obsSpots",
9027
9028
  OBS_POINTS: "obsPoints",
9028
- OBS_LOCATIONS: "obsLocations"
9029
+ OBS_LOCATIONS: "obsLocations",
9030
+ SAMPLE_SETS: "sampleSets",
9031
+ SAMPLE_EDGES: "sampleEdges"
9029
9032
  };
9030
9033
  const FileType$1 = {
9031
9034
  // Joint file types
9032
9035
  ANNDATA_ZARR: "anndata.zarr",
9036
+ ANNDATA_ZARR_ZIP: "anndata.zarr.zip",
9033
9037
  SPATIALDATA_ZARR: "spatialdata.zarr",
9034
9038
  // Atomic file types
9035
9039
  OBS_EMBEDDING_CSV: "obsEmbedding.csv",
@@ -9042,6 +9046,7 @@ const FileType$1 = {
9042
9046
  OBS_SEGMENTATIONS_JSON: "obsSegmentations.json",
9043
9047
  OBS_SETS_CSV: "obsSets.csv",
9044
9048
  OBS_SETS_JSON: "obsSets.json",
9049
+ SAMPLE_SETS_CSV: "sampleSets.csv",
9045
9050
  // OME-Zarr
9046
9051
  IMAGE_OME_ZARR: "image.ome-zarr",
9047
9052
  OBS_SEGMENTATIONS_OME_ZARR: "obsSegmentations.ome-zarr",
@@ -9056,6 +9061,19 @@ const FileType$1 = {
9056
9061
  OBS_SEGMENTATIONS_ANNDATA_ZARR: "obsSegmentations.anndata.zarr",
9057
9062
  OBS_LABELS_ANNDATA_ZARR: "obsLabels.anndata.zarr",
9058
9063
  FEATURE_LABELS_ANNDATA_ZARR: "featureLabels.anndata.zarr",
9064
+ SAMPLE_EDGES_ANNDATA_ZARR: "sampleEdges.anndata.zarr",
9065
+ // AnnData - zipped
9066
+ OBS_FEATURE_MATRIX_ANNDATA_ZARR_ZIP: "obsFeatureMatrix.anndata.zarr.zip",
9067
+ OBS_FEATURE_COLUMNS_ANNDATA_ZARR_ZIP: "obsFeatureColumns.anndata.zarr.zip",
9068
+ OBS_SETS_ANNDATA_ZARR_ZIP: "obsSets.anndata.zarr.zip",
9069
+ OBS_EMBEDDING_ANNDATA_ZARR_ZIP: "obsEmbedding.anndata.zarr.zip",
9070
+ OBS_SPOTS_ANNDATA_ZARR_ZIP: "obsSpots.anndata.zarr.zip",
9071
+ OBS_POINTS_ANNDATA_ZARR_ZIP: "obsPoints.anndata.zarr.zip",
9072
+ OBS_LOCATIONS_ANNDATA_ZARR_ZIP: "obsLocations.anndata.zarr.zip",
9073
+ OBS_SEGMENTATIONS_ANNDATA_ZARR_ZIP: "obsSegmentations.anndata.zarr.zip",
9074
+ OBS_LABELS_ANNDATA_ZARR_ZIP: "obsLabels.anndata.zarr.zip",
9075
+ FEATURE_LABELS_ANNDATA_ZARR_ZIP: "featureLabels.anndata.zarr.zip",
9076
+ SAMPLE_EDGES_ANNDATA_ZARR_ZIP: "sampleEdges.anndata.zarr.zip",
9059
9077
  // SpatialData
9060
9078
  IMAGE_SPATIALDATA_ZARR: "image.spatialdata.zarr",
9061
9079
  LABELS_SPATIALDATA_ZARR: "labels.spatialdata.zarr",
@@ -9063,6 +9081,7 @@ const FileType$1 = {
9063
9081
  OBS_FEATURE_MATRIX_SPATIALDATA_ZARR: "obsFeatureMatrix.spatialdata.zarr",
9064
9082
  OBS_SETS_SPATIALDATA_ZARR: "obsSets.spatialdata.zarr",
9065
9083
  OBS_SPOTS_SPATIALDATA_ZARR: "obsSpots.spatialdata.zarr",
9084
+ FEATURE_LABELS_SPATIALDATA_ZARR: "featureLabels.spatialdata.zarr",
9066
9085
  // TODO:
9067
9086
  // OBS_POINTS_SPATIALDATA_ZARR: 'obsPoints.spatialdata.zarr',
9068
9087
  // OBS_LOCATIONS_SPATIALDATA_ZARR: 'obsLocations.spatialdata.zarr',
@@ -9219,7 +9238,10 @@ const CoordinationType$1 = {
9219
9238
  LEGEND_VISIBLE: "legendVisible",
9220
9239
  SPATIAL_CHANNEL_LABELS_VISIBLE: "spatialChannelLabelsVisible",
9221
9240
  SPATIAL_CHANNEL_LABELS_ORIENTATION: "spatialChannelLabelsOrientation",
9222
- SPATIAL_CHANNEL_LABEL_SIZE: "spatialChannelLabelSize"
9241
+ SPATIAL_CHANNEL_LABEL_SIZE: "spatialChannelLabelSize",
9242
+ // Multi-sample / comparative
9243
+ SAMPLE_TYPE: "sampleType",
9244
+ SAMPLE_SET_SELECTION: "sampleSetSelection"
9223
9245
  };
9224
9246
  const ViewType = {
9225
9247
  GENES: [
@@ -9576,6 +9598,17 @@ z.object({
9576
9598
  scoreColumn: z.string().optional()
9577
9599
  }))
9578
9600
  });
9601
+ z.object({
9602
+ sampleIndex: z.string(),
9603
+ sampleSets: z.array(z.object({
9604
+ name: z.string(),
9605
+ column: z.union([
9606
+ z.string(),
9607
+ z.array(z.string())
9608
+ ]),
9609
+ scoreColumn: z.string().optional()
9610
+ }))
9611
+ });
9579
9612
  z.object({
9580
9613
  obsLabels: z.union([
9581
9614
  annDataObsLabels,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/sets-utils",
3
- "version": "3.3.5",
3
+ "version": "3.3.7",
4
4
  "author": "Gehlenborg Lab",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -25,8 +25,8 @@
25
25
  "lodash-es": "^4.17.21",
26
26
  "tinycolor2": "^1.4.1",
27
27
  "uuid": "^9.0.0",
28
- "@vitessce/schemas": "3.3.5",
29
- "@vitessce/utils": "3.3.5"
28
+ "@vitessce/utils": "3.3.7",
29
+ "@vitessce/schemas": "3.3.7"
30
30
  },
31
31
  "scripts": {
32
32
  "bundle": "pnpm exec vite build -c ../../../scripts/vite.config.js",