@vitessce/zarr 3.6.4 → 3.6.6

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
@@ -14461,12 +14461,17 @@ anndataZarrSchema.extend({
14461
14461
  z.object({
14462
14462
  // TODO: should `image` be a special schema
14463
14463
  // to allow specifying fileUid (like for embeddingType)?
14464
- // TODO: allow multiple images
14464
+ // TODO: allow multiple images?
14465
14465
  image: imageSpatialdataSchema,
14466
14466
  // TODO: should this be a special schema
14467
14467
  // to allow specifying fileUid (like for embeddingType)?
14468
- // TODO: allow multiple labels
14468
+ // TODO: allow multiple labels?
14469
14469
  labels: obsSegmentationsSpatialdataSchema,
14470
+ // TODO: allow multiple shapes?
14471
+ // TODO: unify labels and shapes to obsSegmentations,
14472
+ // then distinguish in expand function based on
14473
+ // "labels/*" vs. "shapes/*" in path?
14474
+ shapes: obsSegmentationsSpatialdataSchema,
14470
14475
  obsFeatureMatrix: obsFeatureMatrixSpatialdataSchema,
14471
14476
  obsSpots: obsSpotsSpatialdataSchema,
14472
14477
  // TODO: obsPoints
@@ -21675,8 +21680,14 @@ class GenomicProfilesZarrLoader extends AbstractTwoStepLoader {
21675
21680
  }
21676
21681
  load() {
21677
21682
  const { url, requestInit: requestInit2 } = this;
21683
+ const storeRoot = this.dataSource.getStoreRoot("/");
21678
21684
  return this.loadAttrs().then((attrs) => Promise.resolve(new LoaderResult(
21679
- attrs,
21685
+ {
21686
+ genomicProfiles: {
21687
+ storeRoot,
21688
+ attrs
21689
+ }
21690
+ },
21680
21691
  url,
21681
21692
  null,
21682
21693
  requestInit2
@@ -1 +1 @@
1
- {"version":3,"file":"GenomicProfilesZarrLoader.d.ts","sourceRoot":"","sources":["../../src/genomic-loaders/GenomicProfilesZarrLoader.js"],"names":[],"mappings":"AAEA;;IACE,iBAMC;IAFC,WAA+C;IAIjD,YASC;CACF;sCArBmD,oBAAoB"}
1
+ {"version":3,"file":"GenomicProfilesZarrLoader.d.ts","sourceRoot":"","sources":["../../src/genomic-loaders/GenomicProfilesZarrLoader.js"],"names":[],"mappings":"AAEA;;IACE,iBAMC;IAFC,WAA+C;IAIjD,YAeC;CACF;sCA3BmD,oBAAoB"}
@@ -9,7 +9,13 @@ export default class GenomicProfilesZarrLoader extends AbstractTwoStepLoader {
9
9
  }
10
10
  load() {
11
11
  const { url, requestInit } = this;
12
+ const storeRoot = this.dataSource.getStoreRoot('/');
12
13
  return this.loadAttrs()
13
- .then(attrs => Promise.resolve(new LoaderResult(attrs, url, null, requestInit)));
14
+ .then(attrs => Promise.resolve(new LoaderResult({
15
+ genomicProfiles: {
16
+ storeRoot,
17
+ attrs,
18
+ },
19
+ }, url, null, requestInit)));
14
20
  }
15
21
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/zarr",
3
- "version": "3.6.4",
3
+ "version": "3.6.6",
4
4
  "author": "HIDIVE Lab at HMS",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -22,17 +22,17 @@
22
22
  "apache-arrow": "^17.0.0",
23
23
  "parquet-wasm": "^0.6.1",
24
24
  "ol": "^10.2.1",
25
- "@vitessce/abstract": "3.6.4",
26
- "@vitessce/constants-internal": "3.6.4",
27
- "@vitessce/sets-utils": "3.6.4",
28
- "@vitessce/image-utils": "3.6.4",
29
- "@vitessce/utils": "3.6.4",
30
- "@vitessce/zarr-utils": "3.6.4",
31
- "@vitessce/config": "3.6.4",
32
- "@vitessce/globals": "3.6.4"
25
+ "@vitessce/abstract": "3.6.6",
26
+ "@vitessce/constants-internal": "3.6.6",
27
+ "@vitessce/sets-utils": "3.6.6",
28
+ "@vitessce/image-utils": "3.6.6",
29
+ "@vitessce/utils": "3.6.6",
30
+ "@vitessce/zarr-utils": "3.6.6",
31
+ "@vitessce/config": "3.6.6",
32
+ "@vitessce/globals": "3.6.6"
33
33
  },
34
34
  "devDependencies": {
35
- "@vitessce/types": "3.6.4"
35
+ "@vitessce/types": "3.6.6"
36
36
  },
37
37
  "scripts": {
38
38
  "bundle": "pnpm exec vite build -c ../../../scripts/vite.config.js",
@@ -11,9 +11,15 @@ export default class GenomicProfilesZarrLoader extends AbstractTwoStepLoader {
11
11
 
12
12
  load() {
13
13
  const { url, requestInit } = this;
14
+ const storeRoot = this.dataSource.getStoreRoot('/');
14
15
  return this.loadAttrs()
15
16
  .then(attrs => Promise.resolve(new LoaderResult(
16
- attrs,
17
+ {
18
+ genomicProfiles: {
19
+ storeRoot,
20
+ attrs,
21
+ },
22
+ },
17
23
  url,
18
24
  null,
19
25
  requestInit,