@vitessce/zarr 3.4.14 → 3.5.0
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/{deflate-b2db2606.js → deflate-e0025ccc.js} +1 -1
- package/dist/{index-40df751d.js → index-a1019708.js} +174 -197
- package/dist/index.js +1 -1
- package/dist/{jpeg-4eb208e2.js → jpeg-54659e84.js} +1 -1
- package/dist/{lerc-488045ad.js → lerc-4e84f820.js} +1 -1
- package/dist/{lzw-7dbd05ec.js → lzw-40048bd4.js} +1 -1
- package/dist/{packbits-86870a09.js → packbits-bf37d3f7.js} +1 -1
- package/dist/{raw-997b5663.js → raw-f9274a13.js} +1 -1
- package/dist/{webimage-fc1b5b38.js → webimage-88b1773f.js} +1 -1
- package/dist-tsc/AnnDataSource.test.js +1 -1
- package/dist-tsc/SpatialDataShapesSource.d.ts.map +1 -1
- package/dist-tsc/SpatialDataShapesSource.js +1 -6
- package/dist-tsc/anndata-loaders/ObsEmbeddingAnndataLoader.test.js +1 -1
- package/dist-tsc/json-fixtures/anndata-0.10/anndata-csc.json +1 -1
- package/dist-tsc/json-fixtures/anndata-0.10/anndata-csr.adata.json +1 -1
- package/dist-tsc/json-fixtures/anndata-0.10/anndata-dense.json +1 -1
- package/dist-tsc/json-fixtures/anndata-0.7/anndata-csc.json +1 -1
- package/dist-tsc/json-fixtures/anndata-0.7/anndata-csr.json +1 -1
- package/dist-tsc/json-fixtures/anndata-0.7/anndata-dense.json +1 -1
- package/dist-tsc/json-fixtures/anndata-0.8/anndata-csc.json +1 -1
- package/dist-tsc/json-fixtures/anndata-0.8/anndata-csr.adata.json +1 -1
- package/dist-tsc/json-fixtures/anndata-0.8/anndata-dense.json +1 -1
- package/dist-tsc/json-fixtures/anndata-0.9/anndata-csc.json +1 -1
- package/dist-tsc/json-fixtures/anndata-0.9/anndata-csr.adata.json +1 -1
- package/dist-tsc/json-fixtures/anndata-0.9/anndata-dense.json +1 -1
- package/package.json +12 -13
- package/src/AnnDataSource.test.js +1 -1
- package/src/SpatialDataShapesSource.js +1 -7
- package/src/anndata-loaders/ObsEmbeddingAnndataLoader.test.js +1 -1
- package/src/json-fixtures/anndata-0.10/anndata-csc.json +1 -1
- package/src/json-fixtures/anndata-0.10/anndata-csr.adata.json +1 -1
- package/src/json-fixtures/anndata-0.10/anndata-dense.json +1 -1
- package/src/json-fixtures/anndata-0.7/anndata-csc.json +1 -1
- package/src/json-fixtures/anndata-0.7/anndata-csr.json +1 -1
- package/src/json-fixtures/anndata-0.7/anndata-dense.json +1 -1
- package/src/json-fixtures/anndata-0.8/anndata-csc.json +1 -1
- package/src/json-fixtures/anndata-0.8/anndata-csr.adata.json +1 -1
- package/src/json-fixtures/anndata-0.8/anndata-dense.json +1 -1
- package/src/json-fixtures/anndata-0.9/anndata-csc.json +1 -1
- package/src/json-fixtures/anndata-0.9/anndata-csr.adata.json +1 -1
- package/src/json-fixtures/anndata-0.9/anndata-dense.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A, F, G, b, M, c, k, O, j, f, e, h, i, d, n, m, l, o, p, r, q, a, S, Z } from "./index-
|
|
1
|
+
import { A, F, G, b, M, c, k, O, j, f, e, h, i, d, n, m, l, o, p, r, q, a, S, Z } from "./index-a1019708.js";
|
|
2
2
|
import "@vitessce/vit-s";
|
|
3
3
|
import "react";
|
|
4
4
|
export {
|
|
@@ -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-
|
|
2
|
+
import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-a1019708.js";
|
|
3
3
|
import "@vitessce/vit-s";
|
|
4
4
|
import "react";
|
|
5
5
|
const LercParameters = {
|
|
@@ -36,7 +36,7 @@ describe('sources/AnnDataSource', () => {
|
|
|
36
36
|
store: createStoreFromMapContents(fixture),
|
|
37
37
|
});
|
|
38
38
|
const names = await dataSource.loadObsIndex();
|
|
39
|
-
expect(names).toEqual(['CTG', 'GCA', '
|
|
39
|
+
expect(names).toEqual(['CTG', 'GCA', 'ACG']);
|
|
40
40
|
});
|
|
41
41
|
});
|
|
42
42
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpatialDataShapesSource.d.ts","sourceRoot":"","sources":["../src/SpatialDataShapesSource.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SpatialDataShapesSource.d.ts","sourceRoot":"","sources":["../src/SpatialDataShapesSource.js"],"names":[],"mappings":"AAyDA;;;;GAIG;AACH,sCAHW,MAAM,GAAC,SAAS,UAK1B;AAED;;;;GAIG;AACH,oCAHW,MAAM,GAAC,SAAS,UAK1B;AAED;;;;GAIG;AACH,wCAHW,MAAM,GAAC,SAAS,UAK1B;AAED;;;;GAIG;AACH,sCAHW,MAAM,GAAC,SAAS,UAK1B;AAGD;IAOI,iDAAiD;IACjD,YADW;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAAA;KAAE,CACzB;IACpB,iDAAiD;IACjD,YADW;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAAA;KAAE,CACzB;IACpB,wCAAwC;IACxC,YADW;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;KAAE,CAChB;IAGtB;;;;OAIG;IACH,gCAHW,MAAM;;OAKhB;IAED;;;;OAIG;IACH,uBAHW,MAAM,GACJ,OAAO,CAAC,KAAK,GAAC,KAAK,CAAC,CAWhC;IAED;;;;OAIG;IACH,uBAHW,MAAM,8CAmBhB;IAFC,4DAA8B;IAIhC;;;;;OAKG;IACH,oBAJW,MAAM,GAAC,SAAS,cAChB,MAAM,GAAC,SAAS,GACd,OAAO,CAAC,MAAM,EAAE,CAAC,CA2B7B;IAqFD;;;;;OAKG;IACH,sBAJW,MAAM,cACN,MAAM,GACJ,OAAO,CAAC,MAAM,EAAE,CAAC,CAa7B;CACF;0BA7RyB,oBAAoB"}
|
|
@@ -2,22 +2,17 @@
|
|
|
2
2
|
/* eslint-disable no-underscore-dangle */
|
|
3
3
|
/* eslint-disable import/no-unresolved */
|
|
4
4
|
/* eslint-disable no-undef */
|
|
5
|
-
import dynamicImportPolyfill from 'dynamic-import-polyfill';
|
|
6
5
|
import { tableFromIPC } from 'apache-arrow';
|
|
7
6
|
import WKB from 'ol/format/WKB.js';
|
|
8
7
|
import AnnDataSource from './AnnDataSource.js';
|
|
9
8
|
import { basename } from './utils.js';
|
|
10
9
|
/** @import { DataSourceParams } from '@vitessce/types' */
|
|
11
10
|
/** @import { TypedArray as ZarrTypedArray, Chunk } from '@zarrita/core' */
|
|
12
|
-
// Initialize the dynamic __import__() function.
|
|
13
|
-
if (dynamicImportPolyfill) {
|
|
14
|
-
dynamicImportPolyfill.initialize();
|
|
15
|
-
}
|
|
16
11
|
async function getReadParquet() {
|
|
17
12
|
// Reference: https://observablehq.com/@kylebarron/geoparquet-on-the-web
|
|
18
13
|
// TODO: host somewhere we control, like cdn.vitessce.io?
|
|
19
14
|
// @ts-ignore
|
|
20
|
-
const module = await
|
|
15
|
+
const module = await import(/* webpackIgnore: true */ 'https://unpkg.com/parquet-wasm@0.6.1/esm/parquet_wasm.js');
|
|
21
16
|
await module.default();
|
|
22
17
|
// We cannot use regulary dynamic import here because it breaks NextJS builds
|
|
23
18
|
// due to pointing to a remote URL.
|
|
@@ -45,7 +45,7 @@ describe('loaders/ObsEmbeddingAnndataLoader for AnnData', () => {
|
|
|
45
45
|
expect(result).toBeInstanceOf(LoaderResult);
|
|
46
46
|
const payload = result.data;
|
|
47
47
|
expect(Object.keys(payload)).toEqual(['obsIndex', 'obsEmbedding']);
|
|
48
|
-
expect(payload.obsIndex).toEqual(['CTG', 'GCA', '
|
|
48
|
+
expect(payload.obsIndex).toEqual(['CTG', 'GCA', 'ACG']);
|
|
49
49
|
expect(payload.obsEmbedding.shape).toEqual([2, 3]);
|
|
50
50
|
expect(Array.from(payload.obsEmbedding.data[0])).toEqual([-1, 0, 1]);
|
|
51
51
|
expect(Array.from(payload.obsEmbedding.data[1])).toEqual([-1, 0, 1]);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/zarr",
|
|
3
|
-
"version": "3.
|
|
4
|
-
"author": "
|
|
3
|
+
"version": "3.5.0",
|
|
4
|
+
"author": "HIDIVE Lab at HMS",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -22,22 +22,21 @@
|
|
|
22
22
|
"apache-arrow": "^17.0.0",
|
|
23
23
|
"parquet-wasm": "^0.6.1",
|
|
24
24
|
"ol": "^10.2.1",
|
|
25
|
-
"
|
|
26
|
-
"@vitessce/
|
|
27
|
-
"@vitessce/
|
|
28
|
-
"@vitessce/
|
|
29
|
-
"@vitessce/
|
|
30
|
-
"@vitessce/
|
|
31
|
-
"@vitessce/
|
|
32
|
-
"@vitessce/
|
|
33
|
-
"@vitessce/
|
|
34
|
-
"@vitessce/config": "3.4.14"
|
|
25
|
+
"@vitessce/constants-internal": "3.5.0",
|
|
26
|
+
"@vitessce/gl": "3.5.0",
|
|
27
|
+
"@vitessce/sets-utils": "3.5.0",
|
|
28
|
+
"@vitessce/spatial-utils": "3.5.0",
|
|
29
|
+
"@vitessce/image-utils": "3.5.0",
|
|
30
|
+
"@vitessce/utils": "3.5.0",
|
|
31
|
+
"@vitessce/vit-s": "3.5.0",
|
|
32
|
+
"@vitessce/zarr-utils": "3.5.0",
|
|
33
|
+
"@vitessce/config": "3.5.0"
|
|
35
34
|
},
|
|
36
35
|
"devDependencies": {
|
|
37
36
|
"@zarrita/core": "0.1.0-next.14",
|
|
38
37
|
"@zarrita/storage": "0.1.0-next.6",
|
|
39
38
|
"@zarrita/typedarray": "0.1.0-next.3",
|
|
40
|
-
"@vitessce/types": "3.
|
|
39
|
+
"@vitessce/types": "3.5.0"
|
|
41
40
|
},
|
|
42
41
|
"scripts": {
|
|
43
42
|
"bundle": "pnpm exec vite build -c ../../../scripts/vite.config.js",
|
|
@@ -40,7 +40,7 @@ describe('sources/AnnDataSource', () => {
|
|
|
40
40
|
store: createStoreFromMapContents(fixture),
|
|
41
41
|
});
|
|
42
42
|
const names = await dataSource.loadObsIndex();
|
|
43
|
-
expect(names).toEqual(['CTG', 'GCA', '
|
|
43
|
+
expect(names).toEqual(['CTG', 'GCA', 'ACG']);
|
|
44
44
|
});
|
|
45
45
|
});
|
|
46
46
|
});
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
/* eslint-disable no-underscore-dangle */
|
|
3
3
|
/* eslint-disable import/no-unresolved */
|
|
4
4
|
/* eslint-disable no-undef */
|
|
5
|
-
import dynamicImportPolyfill from 'dynamic-import-polyfill';
|
|
6
5
|
import { tableFromIPC } from 'apache-arrow';
|
|
7
6
|
import WKB from 'ol/format/WKB.js';
|
|
8
7
|
import AnnDataSource from './AnnDataSource.js';
|
|
@@ -11,16 +10,11 @@ import { basename } from './utils.js';
|
|
|
11
10
|
/** @import { DataSourceParams } from '@vitessce/types' */
|
|
12
11
|
/** @import { TypedArray as ZarrTypedArray, Chunk } from '@zarrita/core' */
|
|
13
12
|
|
|
14
|
-
// Initialize the dynamic __import__() function.
|
|
15
|
-
if (dynamicImportPolyfill) {
|
|
16
|
-
dynamicImportPolyfill.initialize();
|
|
17
|
-
}
|
|
18
|
-
|
|
19
13
|
async function getReadParquet() {
|
|
20
14
|
// Reference: https://observablehq.com/@kylebarron/geoparquet-on-the-web
|
|
21
15
|
// TODO: host somewhere we control, like cdn.vitessce.io?
|
|
22
16
|
// @ts-ignore
|
|
23
|
-
const module = await
|
|
17
|
+
const module = await import(/* webpackIgnore: true */ 'https://unpkg.com/parquet-wasm@0.6.1/esm/parquet_wasm.js');
|
|
24
18
|
await module.default();
|
|
25
19
|
// We cannot use regulary dynamic import here because it breaks NextJS builds
|
|
26
20
|
// due to pointing to a remote URL.
|
|
@@ -51,7 +51,7 @@ describe('loaders/ObsEmbeddingAnndataLoader for AnnData', () => {
|
|
|
51
51
|
expect(result).toBeInstanceOf(LoaderResult);
|
|
52
52
|
const payload = result.data;
|
|
53
53
|
expect(Object.keys(payload)).toEqual(['obsIndex', 'obsEmbedding']);
|
|
54
|
-
expect(payload.obsIndex).toEqual(['CTG', 'GCA', '
|
|
54
|
+
expect(payload.obsIndex).toEqual(['CTG', 'GCA', 'ACG']);
|
|
55
55
|
expect(payload.obsEmbedding.shape).toEqual([2, 3]);
|
|
56
56
|
expect(Array.from(payload.obsEmbedding.data[0])).toEqual([-1, 0, 1]);
|
|
57
57
|
expect(Array.from(payload.obsEmbedding.data[1])).toEqual([-1, 0, 1]);
|