@vitessce/zarr 3.9.5 → 3.9.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.
package/dist/index.js CHANGED
@@ -4212,6 +4212,7 @@ const FileType$1 = {
4212
4212
  // Neuroglancer
4213
4213
  // Precomputed (mesh) format
4214
4214
  OBS_SEGMENTATIONS_NG_PRECOMPUTED: "obsSegmentations.ng-precomputed",
4215
+ OBS_POINTS_NG_ANNOTATIONS: "obsPoints.ng-annotations",
4215
4216
  // New file types to support old file types:
4216
4217
  // - cells.json
4217
4218
  OBS_EMBEDDING_CELLS_JSON: "obsEmbedding.cells.json",
@@ -4440,6 +4441,7 @@ const CoordinationType$1 = {
4440
4441
  [FileType$1.FEATURE_LABELS_MUDATA_ZARR]: DataType$1.FEATURE_LABELS,
4441
4442
  [FileType$1.OBS_SEGMENTATIONS_GLB]: DataType$1.OBS_SEGMENTATIONS,
4442
4443
  [FileType$1.OBS_SEGMENTATIONS_NG_PRECOMPUTED]: DataType$1.OBS_SEGMENTATIONS,
4444
+ [FileType$1.OBS_POINTS_NG_ANNOTATIONS]: DataType$1.OBS_POINTS,
4443
4445
  [FileType$1.IMAGE_SPATIALDATA_ZARR]: DataType$1.IMAGE,
4444
4446
  [FileType$1.LABELS_SPATIALDATA_ZARR]: DataType$1.OBS_SEGMENTATIONS,
4445
4447
  [FileType$1.SHAPES_SPATIALDATA_ZARR]: DataType$1.OBS_SEGMENTATIONS,
@@ -4659,6 +4661,8 @@ const CoordinationType$1 = {
4659
4661
  ];
4660
4662
  ({
4661
4663
  [ViewType$1.NEUROGLANCER]: [
4664
+ CoordinationType$1.META_COORDINATION_SCOPES,
4665
+ CoordinationType$1.META_COORDINATION_SCOPES_BY,
4662
4666
  CoordinationType$1.DATASET,
4663
4667
  CoordinationType$1.SPATIAL_TARGET_X,
4664
4668
  CoordinationType$1.SPATIAL_TARGET_Y,
@@ -4680,7 +4684,26 @@ const CoordinationType$1 = {
4680
4684
  CoordinationType$1.OBS_COLOR_ENCODING,
4681
4685
  CoordinationType$1.EMBEDDING_TYPE,
4682
4686
  CoordinationType$1.ADDITIONAL_OBS_SETS,
4683
- CoordinationType$1.TOOLTIPS_VISIBLE
4687
+ CoordinationType$1.TOOLTIPS_VISIBLE,
4688
+ CoordinationType$1.FILE_UID,
4689
+ CoordinationType$1.IMAGE_LAYER,
4690
+ CoordinationType$1.SEGMENTATION_LAYER,
4691
+ CoordinationType$1.IMAGE_CHANNEL,
4692
+ CoordinationType$1.SEGMENTATION_CHANNEL,
4693
+ CoordinationType$1.POINT_LAYER,
4694
+ CoordinationType$1.FEATURE_COLOR,
4695
+ CoordinationType$1.FEATURE_FILTER_MODE,
4696
+ CoordinationType$1.FEATURE_HIGHLIGHT,
4697
+ CoordinationType$1.FEATURE_SELECTION,
4698
+ CoordinationType$1.FEATURE_VALUE_COLORMAP,
4699
+ CoordinationType$1.FEATURE_VALUE_COLORMAP_RANGE,
4700
+ CoordinationType$1.SPATIAL_LAYER_COLOR,
4701
+ CoordinationType$1.SPATIAL_LAYER_OPACITY,
4702
+ CoordinationType$1.SPATIAL_LAYER_VISIBLE,
4703
+ CoordinationType$1.SPATIAL_CHANNEL_COLOR,
4704
+ CoordinationType$1.SPATIAL_CHANNEL_OPACITY,
4705
+ CoordinationType$1.SPATIAL_CHANNEL_VISIBLE,
4706
+ CoordinationType$1.LEGEND_VISIBLE
4684
4707
  ],
4685
4708
  [ViewType$1.SCATTERPLOT]: [
4686
4709
  CoordinationType$1.DATASET,
@@ -5988,7 +6011,7 @@ class ObsSpotsAnndataLoader extends AbstractTwoStepLoader {
5988
6011
  const { path } = this.options;
5989
6012
  const coordinationValues = {
5990
6013
  spotLayer: CL({
5991
- obsType: "spot",
6014
+ obsType: this.coordinationValues?.obsType ?? "spot",
5992
6015
  // obsColorEncoding: 'spatialLayerColor',
5993
6016
  // spatialLayerColor: [255, 255, 255],
5994
6017
  spatialLayerVisible: true,
@@ -6036,7 +6059,7 @@ class ObsPointsAnndataLoader extends AbstractTwoStepLoader {
6036
6059
  const { path } = this.options;
6037
6060
  const coordinationValues = {
6038
6061
  pointLayer: CL({
6039
- obsType: "point",
6062
+ obsType: this.coordinationValues?.obsType ?? "point",
6040
6063
  // obsColorEncoding: 'spatialLayerColor',
6041
6064
  // spatialLayerColor: [255, 255, 255],
6042
6065
  spatialLayerVisible: true,
@@ -14740,14 +14763,23 @@ z.object({
14740
14763
  z.object({
14741
14764
  // TODO: Should this explicitly specify sharded vs. unsharded?
14742
14765
  // Or can/should that be inferred from the data?
14743
- dimensionX: z.number(),
14744
- dimensionY: z.number(),
14745
- dimensionZ: z.number(),
14746
- dimensionUnit: z.enum(["nm", "um", "µm", "mm", "cm", "m"]),
14766
+ // Note: None of these make sense to specify at the file level, since they
14767
+ // are global camera settings that would apply to all layers.
14768
+ // Intead, initial values should be set via the usual coordination space mechanism,
14769
+ // and the NeuroglancerSubscriber should handle conversion into values to pass to Neuroglancer.
14770
+ // dimensionX: z.number(),
14771
+ // dimensionY: z.number(),
14772
+ // dimensionZ: z.number(),
14773
+ // dimensionUnit: z.enum(['nm', 'um', 'µm', 'mm', 'cm', 'm']),
14747
14774
  // TODO: should the following be passed via coordination types instead?
14748
- projectionScale: z.number(),
14749
- position: z.array(z.number()).length(3),
14750
- projectionOrientation: z.array(z.number()).length(4)
14775
+ // projectionScale: z.number(),
14776
+ // position: z.array(z.number()).length(3),
14777
+ // projectionOrientation: z.array(z.number()).length(4),
14778
+ }).partial().nullable();
14779
+ z.object({
14780
+ projectionAnnotationSpacing: z.number(),
14781
+ featureIndexProp: z.string().optional().describe("The name of the Neuroglancer AnnotationProperty containing feature IDs. For example, specify 'gene' to use prop_gene() in the Neuroglancer shader code."),
14782
+ pointIndexProp: z.string().optional().describe("The name of the Neuroglancer AnnotationProperty containing point IDs. For example, specify 'point_id' to use prop_point_id() in the Neuroglancer shader code.")
14751
14783
  }).partial().nullable();
14752
14784
  z.object({
14753
14785
  obsIndex: z.string(),
@@ -24,7 +24,7 @@ export default class ObsPointsAnndataLoader extends AbstractTwoStepLoader {
24
24
  const { path } = this.options;
25
25
  const coordinationValues = {
26
26
  pointLayer: CL({
27
- obsType: 'point',
27
+ obsType: this.coordinationValues?.obsType ?? 'point',
28
28
  // obsColorEncoding: 'spatialLayerColor',
29
29
  // spatialLayerColor: [255, 255, 255],
30
30
  spatialLayerVisible: true,
@@ -24,7 +24,7 @@ export default class ObsSpotsAnndataLoader extends AbstractTwoStepLoader {
24
24
  const { path } = this.options;
25
25
  const coordinationValues = {
26
26
  spotLayer: CL({
27
- obsType: 'spot',
27
+ obsType: this.coordinationValues?.obsType ?? 'spot',
28
28
  // obsColorEncoding: 'spatialLayerColor',
29
29
  // spatialLayerColor: [255, 255, 255],
30
30
  spatialLayerVisible: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/zarr",
3
- "version": "3.9.5",
3
+ "version": "3.9.7",
4
4
  "author": "HIDIVE Lab at HMS",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -22,18 +22,18 @@
22
22
  "apache-arrow": "^17.0.0",
23
23
  "parquet-wasm": "^0.6.1",
24
24
  "ol": "^10.2.1",
25
- "@vitessce/error": "3.9.5",
26
- "@vitessce/abstract": "3.9.5",
27
- "@vitessce/constants-internal": "3.9.5",
28
- "@vitessce/sets-utils": "3.9.5",
29
- "@vitessce/image-utils": "3.9.5",
30
- "@vitessce/utils": "3.9.5",
31
- "@vitessce/config": "3.9.5",
32
- "@vitessce/zarr-utils": "3.9.5",
33
- "@vitessce/globals": "3.9.5"
25
+ "@vitessce/abstract": "3.9.7",
26
+ "@vitessce/error": "3.9.7",
27
+ "@vitessce/sets-utils": "3.9.7",
28
+ "@vitessce/image-utils": "3.9.7",
29
+ "@vitessce/utils": "3.9.7",
30
+ "@vitessce/constants-internal": "3.9.7",
31
+ "@vitessce/zarr-utils": "3.9.7",
32
+ "@vitessce/config": "3.9.7",
33
+ "@vitessce/globals": "3.9.7"
34
34
  },
35
35
  "devDependencies": {
36
- "@vitessce/types": "3.9.5"
36
+ "@vitessce/types": "3.9.7"
37
37
  },
38
38
  "scripts": {
39
39
  "bundle": "pnpm exec vite build -c ../../../scripts/vite.config.mjs",
@@ -26,7 +26,7 @@ export default class ObsPointsAnndataLoader extends AbstractTwoStepLoader {
26
26
  const { path } = this.options;
27
27
  const coordinationValues = {
28
28
  pointLayer: CL({
29
- obsType: 'point',
29
+ obsType: this.coordinationValues?.obsType ?? 'point',
30
30
  // obsColorEncoding: 'spatialLayerColor',
31
31
  // spatialLayerColor: [255, 255, 255],
32
32
  spatialLayerVisible: true,
@@ -26,7 +26,7 @@ export default class ObsSpotsAnndataLoader extends AbstractTwoStepLoader {
26
26
  const { path } = this.options;
27
27
  const coordinationValues = {
28
28
  spotLayer: CL({
29
- obsType: 'spot',
29
+ obsType: this.coordinationValues?.obsType ?? 'spot',
30
30
  // obsColorEncoding: 'spatialLayerColor',
31
31
  // spatialLayerColor: [255, 255, 255],
32
32
  spatialLayerVisible: true,