@vitessce/zarr 3.2.2 → 3.3.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/blosc-0acfcf7e.js +975 -0
- package/dist/{deflate-f2b94bed.js → deflate-cbfc7dda.js} +1 -1
- package/dist/gzip-dd5ab7c8.js +28 -0
- package/dist/{index-11e344fb.js → index-f6c69b65.js} +43900 -44563
- package/dist/index.js +16 -10
- package/dist/{jpeg-f5f84485.js → jpeg-6aa85133.js} +1 -1
- package/dist/{lerc-2dbc6d98.js → lerc-b3d50536.js} +1 -1
- package/dist/lz4-abb4416a.js +919 -0
- package/dist/{lzw-88a53998.js → lzw-5e6de0df.js} +1 -1
- package/dist/{packbits-93df2294.js → packbits-7e23e08a.js} +1 -1
- package/dist/pako.esm-856454b6-c5c8cd15.js +4066 -0
- package/dist/{raw-53282bb2.js → raw-4e6560dc.js} +1 -1
- package/dist/{webimage-9f58dd5d.js → webimage-6b964081.js} +1 -1
- package/dist/zlib-cd823c38.js +28 -0
- package/dist/zstd-4072ca78.js +919 -0
- package/dist-tsc/AnnDataSource.d.ts +5 -0
- package/dist-tsc/AnnDataSource.d.ts.map +1 -1
- package/dist-tsc/AnnDataSource.js +69 -108
- package/dist-tsc/AnnDataSource.test.js +30 -10
- package/dist-tsc/MuDataSource.test.js +11 -4
- package/dist-tsc/SpatialDataShapesSource.d.ts +22 -0
- package/dist-tsc/SpatialDataShapesSource.d.ts.map +1 -0
- package/dist-tsc/SpatialDataShapesSource.js +88 -0
- package/dist-tsc/SpatialDataTableSource.d.ts +22 -0
- package/dist-tsc/SpatialDataTableSource.d.ts.map +1 -0
- package/dist-tsc/SpatialDataTableSource.js +83 -0
- package/dist-tsc/ZarrDataSource.d.ts +3 -3
- package/dist-tsc/ZarrDataSource.d.ts.map +1 -1
- package/dist-tsc/ZarrDataSource.js +16 -18
- package/dist-tsc/anndata-loaders/ObsEmbeddingAnndataLoader.test.js +14 -8
- package/dist-tsc/anndata-loaders/ObsFeatureMatrixAnndataLoader.d.ts +3 -5
- package/dist-tsc/anndata-loaders/ObsFeatureMatrixAnndataLoader.d.ts.map +1 -1
- package/dist-tsc/anndata-loaders/ObsFeatureMatrixAnndataLoader.js +22 -18
- package/dist-tsc/anndata-loaders/ObsFeatureMatrixAnndataLoader.test.js +39 -27
- package/dist-tsc/anndata-loaders/ObsSegmentationsAnndataLoader.d.ts.map +1 -1
- package/dist-tsc/anndata-loaders/ObsSegmentationsAnndataLoader.js +20 -5
- package/dist-tsc/index.d.ts +4 -1
- package/dist-tsc/index.js +4 -1
- package/dist-tsc/json-fixtures/anndata-0.7/anndata-csc.json +110 -0
- package/dist-tsc/json-fixtures/anndata-0.7/anndata-csr.json +110 -0
- package/dist-tsc/json-fixtures/anndata-0.7/anndata-dense.json +86 -0
- package/dist-tsc/json-fixtures/anndata-0.8/anndata-csc.json +174 -0
- package/dist-tsc/json-fixtures/anndata-0.8/anndata-csr.adata.json +174 -0
- package/dist-tsc/json-fixtures/anndata-0.8/anndata-dense.json +154 -0
- package/dist-tsc/json-fixtures/mudata-0.2/mudata-csc.json +554 -0
- package/dist-tsc/json-fixtures/mudata-0.2/mudata-csr.json +554 -0
- package/dist-tsc/json-fixtures/mudata-0.2/mudata-dense-updated.json +534 -0
- package/dist-tsc/json-fixtures/mudata-0.2/mudata-dense.json +534 -0
- package/dist-tsc/matrix-loaders/MatrixZarrAsObsFeatureMatrix.d.ts +1 -1
- package/dist-tsc/matrix-loaders/MatrixZarrAsObsFeatureMatrix.d.ts.map +1 -1
- package/dist-tsc/matrix-loaders/MatrixZarrAsObsFeatureMatrix.js +6 -7
- package/dist-tsc/ome-loaders/OmeZarrLoader.d.ts.map +1 -1
- package/dist-tsc/ome-loaders/OmeZarrLoader.js +22 -12
- package/dist-tsc/spatialdata-loaders/SpatialDataImageLoader.d.ts +6 -0
- package/dist-tsc/spatialdata-loaders/SpatialDataImageLoader.d.ts.map +1 -0
- package/dist-tsc/spatialdata-loaders/SpatialDataImageLoader.js +13 -0
- package/dist-tsc/spatialdata-loaders/SpatialDataLabelsLoader.d.ts +4 -0
- package/dist-tsc/spatialdata-loaders/SpatialDataLabelsLoader.d.ts.map +1 -0
- package/dist-tsc/spatialdata-loaders/SpatialDataLabelsLoader.js +15 -0
- package/dist-tsc/spatialdata-loaders/SpatialDataObsSetsLoader.d.ts +10 -0
- package/dist-tsc/spatialdata-loaders/SpatialDataObsSetsLoader.d.ts.map +1 -0
- package/dist-tsc/spatialdata-loaders/SpatialDataObsSetsLoader.js +11 -0
- package/dist-tsc/spatialdata-loaders/SpatialDataObsSpotsLoader.d.ts +13 -0
- package/dist-tsc/spatialdata-loaders/SpatialDataObsSpotsLoader.d.ts.map +1 -0
- package/dist-tsc/spatialdata-loaders/SpatialDataObsSpotsLoader.js +36 -0
- package/dist-tsc/spatialdata-loaders/index.d.ts +5 -0
- package/dist-tsc/spatialdata-loaders/index.d.ts.map +1 -0
- package/dist-tsc/spatialdata-loaders/index.js +4 -0
- package/package.json +10 -9
- package/src/AnnDataSource.js +77 -116
- package/src/AnnDataSource.test.js +31 -10
- package/src/MuDataSource.test.js +12 -4
- package/src/SpatialDataShapesSource.js +103 -0
- package/src/SpatialDataTableSource.js +96 -0
- package/src/ZarrDataSource.js +16 -17
- package/src/anndata-loaders/ObsEmbeddingAnndataLoader.test.js +17 -8
- package/src/anndata-loaders/ObsFeatureMatrixAnndataLoader.js +22 -18
- package/src/anndata-loaders/ObsFeatureMatrixAnndataLoader.test.js +102 -27
- package/src/anndata-loaders/ObsSegmentationsAnndataLoader.js +20 -5
- package/src/index.js +4 -1
- package/src/json-fixtures/README.md +18 -0
- package/src/json-fixtures/anndata-0.7/anndata-csc.json +110 -0
- package/src/json-fixtures/anndata-0.7/anndata-csr.json +110 -0
- package/src/json-fixtures/anndata-0.7/anndata-dense.json +86 -0
- package/src/json-fixtures/anndata-0.8/anndata-csc.json +174 -0
- package/src/json-fixtures/anndata-0.8/anndata-csr.adata.json +174 -0
- package/src/json-fixtures/anndata-0.8/anndata-dense.json +154 -0
- package/src/json-fixtures/mudata-0.2/mudata-csc.json +554 -0
- package/src/json-fixtures/mudata-0.2/mudata-csr.json +554 -0
- package/src/json-fixtures/mudata-0.2/mudata-dense-updated.json +534 -0
- package/src/json-fixtures/mudata-0.2/mudata-dense.json +534 -0
- package/src/matrix-loaders/MatrixZarrAsObsFeatureMatrix.js +6 -7
- package/src/ome-loaders/OmeZarrLoader.js +22 -13
- package/src/spatialdata-loaders/SpatialDataImageLoader.js +14 -0
- package/src/spatialdata-loaders/SpatialDataLabelsLoader.js +19 -0
- package/src/spatialdata-loaders/SpatialDataObsSetsLoader.js +12 -0
- package/src/spatialdata-loaders/SpatialDataObsSpotsLoader.js +44 -0
- package/src/spatialdata-loaders/index.js +4 -0
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { zarrOpenRoot } from '@vitessce/zarr-utils';
|
|
2
|
+
import { open as zarrOpen, root as zarrRoot } from 'zarrita';
|
|
2
3
|
/**
|
|
3
4
|
* A loader ancestor class containing a default constructor
|
|
4
5
|
* and a stub for the required load() method.
|
|
5
6
|
*/
|
|
6
7
|
export default class ZarrDataSource {
|
|
7
|
-
constructor({ url, requestInit }) {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
constructor({ url, requestInit, store }) {
|
|
9
|
+
if (store) {
|
|
10
|
+
// TODO: check here that it is a valid Zarrita Readable?
|
|
11
|
+
this.storeRoot = zarrRoot(store);
|
|
12
|
+
}
|
|
13
|
+
else {
|
|
14
|
+
this.storeRoot = zarrOpenRoot(url, requestInit);
|
|
15
|
+
}
|
|
14
16
|
}
|
|
15
17
|
/**
|
|
16
18
|
* Class method for decoding json from the store.
|
|
@@ -20,16 +22,12 @@ export default class ZarrDataSource {
|
|
|
20
22
|
* @throws This may throw an error.
|
|
21
23
|
*/
|
|
22
24
|
async getJson(key) {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
catch (err) {
|
|
29
|
-
if (err instanceof KeyError) {
|
|
30
|
-
return {};
|
|
31
|
-
}
|
|
32
|
-
throw err;
|
|
25
|
+
const { storeRoot } = this;
|
|
26
|
+
let dirKey = key;
|
|
27
|
+
// TODO: update calls to not include these file names in the first place.
|
|
28
|
+
if (key.endsWith('.zattrs') || key.endsWith('.zarray') || key.endsWith('.zgroup')) {
|
|
29
|
+
dirKey = key.substring(0, key.length - 8);
|
|
33
30
|
}
|
|
31
|
+
return (await zarrOpen(storeRoot.resolve(dirKey))).attrs;
|
|
34
32
|
}
|
|
35
33
|
}
|
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
/* eslint-disable func-names */
|
|
1
|
+
/* eslint-disable func-names, camelcase */
|
|
2
2
|
import { describe, it, expect } from 'vitest';
|
|
3
3
|
import { LoaderResult } from '@vitessce/vit-s';
|
|
4
|
+
import { createStoreFromMapContents } from '@vitessce/zarr-utils';
|
|
4
5
|
import ObsEmbeddingAnndataLoader from './ObsEmbeddingAnndataLoader.js';
|
|
5
6
|
import AnnDataSource from '../AnnDataSource.js';
|
|
6
7
|
import MuDataSource from '../MuDataSource.js';
|
|
7
|
-
|
|
8
|
+
import anndata_0_7_DenseFixture from '../json-fixtures/anndata-0.7/anndata-dense.json';
|
|
9
|
+
import mudata_0_2_DenseFixture from '../json-fixtures/mudata-0.2/mudata-dense.json';
|
|
10
|
+
import mudata_0_2_DenseUpdatedFixture from '../json-fixtures/mudata-0.2/mudata-dense-updated.json';
|
|
11
|
+
const createAnndataLoader = (url, mapContents) => {
|
|
12
|
+
const store = createStoreFromMapContents(mapContents);
|
|
8
13
|
const config = {
|
|
9
14
|
url,
|
|
10
15
|
fileType: 'obsEmbedding.anndata.zarr',
|
|
@@ -15,10 +20,11 @@ const createAnndataLoader = (url) => {
|
|
|
15
20
|
embeddingType: 'UMAP',
|
|
16
21
|
},
|
|
17
22
|
};
|
|
18
|
-
const source = new AnnDataSource(config);
|
|
23
|
+
const source = new AnnDataSource({ ...config, store });
|
|
19
24
|
return new ObsEmbeddingAnndataLoader(source, config);
|
|
20
25
|
};
|
|
21
|
-
const createMudataLoader = (url) => {
|
|
26
|
+
const createMudataLoader = (url, mapContents) => {
|
|
27
|
+
const store = createStoreFromMapContents(mapContents);
|
|
22
28
|
const config = {
|
|
23
29
|
url,
|
|
24
30
|
fileType: 'obsEmbedding.mudata.zarr',
|
|
@@ -29,12 +35,12 @@ const createMudataLoader = (url) => {
|
|
|
29
35
|
embeddingType: 'UMAP',
|
|
30
36
|
},
|
|
31
37
|
};
|
|
32
|
-
const source = new MuDataSource(config);
|
|
38
|
+
const source = new MuDataSource({ ...config, store });
|
|
33
39
|
return new ObsEmbeddingAnndataLoader(source, config);
|
|
34
40
|
};
|
|
35
41
|
describe('loaders/ObsEmbeddingAnndataLoader for AnnData', () => {
|
|
36
42
|
it('load returns obsIndex and obsEmbedding', async () => {
|
|
37
|
-
const loader = createAnndataLoader('
|
|
43
|
+
const loader = createAnndataLoader('@fixtures/zarr/anndata-0.7/anndata-dense.zarr', anndata_0_7_DenseFixture);
|
|
38
44
|
const result = await loader.load();
|
|
39
45
|
expect(result).toBeInstanceOf(LoaderResult);
|
|
40
46
|
const payload = result.data;
|
|
@@ -45,7 +51,7 @@ describe('loaders/ObsEmbeddingAnndataLoader for AnnData', () => {
|
|
|
45
51
|
expect(Array.from(payload.obsEmbedding.data[1])).toEqual([-1, 0, 1]);
|
|
46
52
|
});
|
|
47
53
|
it('load returns obsIndex and obsEmbedding for MuData', async () => {
|
|
48
|
-
const loader = createMudataLoader('
|
|
54
|
+
const loader = createMudataLoader('@fixtures/zarr/mudata-0.2/mudata-dense.zarr', mudata_0_2_DenseFixture);
|
|
49
55
|
const result = await loader.load();
|
|
50
56
|
expect(result).toBeInstanceOf(LoaderResult);
|
|
51
57
|
const payload = result.data;
|
|
@@ -56,7 +62,7 @@ describe('loaders/ObsEmbeddingAnndataLoader for AnnData', () => {
|
|
|
56
62
|
expect(Array.from(payload.obsEmbedding.data[1])).toEqual([-1, 0, 1, 2]);
|
|
57
63
|
});
|
|
58
64
|
it('load returns obsIndex and obsEmbedding for updated MuData', async () => {
|
|
59
|
-
const loader = createMudataLoader('
|
|
65
|
+
const loader = createMudataLoader('@fixtures/zarr/mudata-0.2/mudata-dense-updated.zarr', mudata_0_2_DenseUpdatedFixture);
|
|
60
66
|
const result = await loader.load();
|
|
61
67
|
expect(result).toBeInstanceOf(LoaderResult);
|
|
62
68
|
const payload = result.data;
|
|
@@ -38,7 +38,7 @@ export default class ObsFeatureMatrixAnndataLoader {
|
|
|
38
38
|
* @returns {Array} A list of promises pointing to the indptr, indices, and data of the matrix.
|
|
39
39
|
*/
|
|
40
40
|
_openSparseArrays(): any[];
|
|
41
|
-
sparseArrays: Promise<import("
|
|
41
|
+
sparseArrays: Promise<import("zarrita").Array<import("zarrita").DataType, any>[]> | undefined;
|
|
42
42
|
/**
|
|
43
43
|
* Class method for loading a gene selection from a CSC matrix.
|
|
44
44
|
* @param {Array} selection A list of gene names whose data should be fetched.
|
|
@@ -70,17 +70,15 @@ export default class ObsFeatureMatrixAnndataLoader {
|
|
|
70
70
|
loadCellXGene(): Promise<any>;
|
|
71
71
|
_matrixZattrs: any;
|
|
72
72
|
cellXGene: any;
|
|
73
|
-
arr: Promise<import("
|
|
73
|
+
arr: Promise<import("zarrita").Array<import("zarrita").DataType, any>> | undefined;
|
|
74
74
|
/**
|
|
75
75
|
* Class method for loading a gene selection.
|
|
76
76
|
* @param {Object} args
|
|
77
77
|
* @param {Array} args.selection A list of gene names whose data should be fetched.
|
|
78
|
-
* @param {Boolean} args.shouldNormalize A list of gene names whose data should be fetched.
|
|
79
78
|
* @returns {Object} { data } containing an array of gene expression data.
|
|
80
79
|
*/
|
|
81
|
-
loadGeneSelection({ selection
|
|
80
|
+
loadGeneSelection({ selection }: {
|
|
82
81
|
selection: any[];
|
|
83
|
-
shouldNormalize: boolean;
|
|
84
82
|
}): Object;
|
|
85
83
|
/**
|
|
86
84
|
* Class method for loading only attributes i.e rows and columns
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ObsFeatureMatrixAnndataLoader.d.ts","sourceRoot":"","sources":["../../src/anndata-loaders/ObsFeatureMatrixAnndataLoader.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ObsFeatureMatrixAnndataLoader.d.ts","sourceRoot":"","sources":["../../src/anndata-loaders/ObsFeatureMatrixAnndataLoader.js"],"names":[],"mappings":"AA2BA;;GAEG;AACH;IACE,kBAEC;IAED;;;;OAIG;IACH,sCAkBC;IALC,4CAGyC;IAI3C;;;;OAIG;IACH,6CAKC;IAED;;;;OAIG;IACH,yCAGC;IAED;;;OAGG;IACH,uBAIC;IAED;;;;OAIG;IACH,uBAGC;IAED;;;OAGG;IACH,2BAUC;IAJC,8FAEC;IAIH;;;;OAIG;IACH,sDA2BC;IAED;;;;OAIG;IACH,sDAYC;IAED;;;;OAIG;IACH,2BAFa,MAAM,CA8BlB;IAxBC,mBAsBE;IAIJ;;;OAGG;IACH,2BAFa,MAAM,CA8BlB;IAED;;;OAGG;IACH,8BAoDC;IA1CG,mBAAuE;IAKrE,eAA4E;IAK1E,mFAAiE;IAkCzE;;;;;OAKG;IACH;QAHuB,SAAS;QACnB,MAAM,CA2BlB;IAED;;;;OAIG;IACH,aAFa,MAAM,CAalB;IAED,6CAcC;IAED,qBAcC;CACF"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/* eslint-disable no-underscore-dangle */
|
|
2
|
-
import {
|
|
2
|
+
import { open as zarrOpen, get as zarrGet, slice } from 'zarrita';
|
|
3
|
+
import { createZarrArrayAdapter } from '@vitessce/zarr-utils';
|
|
3
4
|
import { LoaderResult, AbstractTwoStepLoader, AbstractLoaderError, } from '@vitessce/vit-s';
|
|
4
5
|
// Put array of data into an object,
|
|
5
6
|
// to match the expected format of the
|
|
@@ -95,11 +96,11 @@ export default class ObsFeatureMatrixAnndataLoader extends AbstractTwoStepLoader
|
|
|
95
96
|
*/
|
|
96
97
|
async _openSparseArrays() {
|
|
97
98
|
const { path: matrix } = this.getOptions();
|
|
98
|
-
const {
|
|
99
|
+
const { storeRoot } = this.dataSource;
|
|
99
100
|
if (this.sparseArrays) {
|
|
100
101
|
return this.sparseArrays;
|
|
101
102
|
}
|
|
102
|
-
this.sparseArrays = Promise.all(['indptr', 'indices', 'data'].map(name =>
|
|
103
|
+
this.sparseArrays = Promise.all(['indptr', 'indices', 'data'].map(name => zarrOpen(storeRoot.resolve(`${matrix}/${name}`), { kind: 'array' })));
|
|
103
104
|
return this.sparseArrays;
|
|
104
105
|
}
|
|
105
106
|
/**
|
|
@@ -111,7 +112,7 @@ export default class ObsFeatureMatrixAnndataLoader extends AbstractTwoStepLoader
|
|
|
111
112
|
const indices = await this._getGeneIndices(selection);
|
|
112
113
|
const [indptrArr, indexArr, cellXGeneArr] = await this._openSparseArrays();
|
|
113
114
|
const numCells = await this._getNumCells();
|
|
114
|
-
const { data: cols } = await indptrArr.getRaw(null);
|
|
115
|
+
const { data: cols } = await createZarrArrayAdapter(indptrArr).getRaw(null);
|
|
115
116
|
// If there is not change in the column indexer, then the data is all zeros
|
|
116
117
|
return Promise.all(indices.map(async (index) => {
|
|
117
118
|
const startRowIndex = cols[index];
|
|
@@ -121,10 +122,10 @@ export default class ObsFeatureMatrixAnndataLoader extends AbstractTwoStepLoader
|
|
|
121
122
|
if (isColumnAllZeros) {
|
|
122
123
|
return geneData;
|
|
123
124
|
}
|
|
124
|
-
const { data: rowIndices } = await indexArr
|
|
125
|
+
const { data: rowIndices } = await zarrGet(indexArr, [
|
|
125
126
|
slice(startRowIndex, endRowIndex),
|
|
126
127
|
]);
|
|
127
|
-
const { data: cellXGeneData } = await cellXGeneArr
|
|
128
|
+
const { data: cellXGeneData } = await zarrGet(cellXGeneArr, [
|
|
128
129
|
slice(startRowIndex, endRowIndex),
|
|
129
130
|
]);
|
|
130
131
|
for (let rowIndex = 0; rowIndex < rowIndices.length; rowIndex += 1) {
|
|
@@ -164,7 +165,7 @@ export default class ObsFeatureMatrixAnndataLoader extends AbstractTwoStepLoader
|
|
|
164
165
|
const { path: matrix } = this.getOptions();
|
|
165
166
|
const { shape } = await this.dataSource.getJson(`${matrix}/.zattrs`);
|
|
166
167
|
const [rows, cols, cellXGene] = await Promise.all(sparseArrays.map(async (arr) => {
|
|
167
|
-
const { data } = await arr.getRaw(null);
|
|
168
|
+
const { data } = await createZarrArrayAdapter(arr).getRaw(null);
|
|
168
169
|
return data;
|
|
169
170
|
}));
|
|
170
171
|
const cellXGeneMatrix = new Float32Array(shape[0] * shape[1]).fill(0);
|
|
@@ -195,7 +196,7 @@ export default class ObsFeatureMatrixAnndataLoader extends AbstractTwoStepLoader
|
|
|
195
196
|
const { path: matrix } = this.getOptions();
|
|
196
197
|
const { shape } = await this.dataSource.getJson(`${matrix}/.zattrs`);
|
|
197
198
|
const [cols, rows, cellXGene] = await Promise.all(sparseArrays.map(async (arr) => {
|
|
198
|
-
const { data } = await arr.getRaw(null);
|
|
199
|
+
const { data } = await createZarrArrayAdapter(arr).getRaw(null);
|
|
199
200
|
return data;
|
|
200
201
|
}));
|
|
201
202
|
const cellXGeneMatrix = new Float32Array(shape[0] * shape[1]).fill(0);
|
|
@@ -219,7 +220,7 @@ export default class ObsFeatureMatrixAnndataLoader extends AbstractTwoStepLoader
|
|
|
219
220
|
* @returns {Promise} A promise for the zarr array contianing the cell x gene data.
|
|
220
221
|
*/
|
|
221
222
|
async loadCellXGene() {
|
|
222
|
-
const {
|
|
223
|
+
const { storeRoot } = this.dataSource;
|
|
223
224
|
if (this.cellXGene) {
|
|
224
225
|
return this.cellXGene;
|
|
225
226
|
}
|
|
@@ -237,9 +238,11 @@ export default class ObsFeatureMatrixAnndataLoader extends AbstractTwoStepLoader
|
|
|
237
238
|
}
|
|
238
239
|
else {
|
|
239
240
|
if (!this.arr) {
|
|
240
|
-
this.arr =
|
|
241
|
+
this.arr = zarrOpen(storeRoot.resolve(matrix), { kind: 'array' });
|
|
241
242
|
}
|
|
242
|
-
this.cellXGene = this.arr
|
|
243
|
+
this.cellXGene = this.arr
|
|
244
|
+
.then(z => createZarrArrayAdapter(z).getRaw(null))
|
|
245
|
+
.then(({ data }) => toObject(data));
|
|
243
246
|
}
|
|
244
247
|
}
|
|
245
248
|
else if (encodingType === 'csr_matrix') {
|
|
@@ -261,7 +264,7 @@ export default class ObsFeatureMatrixAnndataLoader extends AbstractTwoStepLoader
|
|
|
261
264
|
}
|
|
262
265
|
else {
|
|
263
266
|
const genes = await this._getFilteredGenes(matrixGeneFilter);
|
|
264
|
-
this.cellXGene = this.loadGeneSelection({ selection: genes
|
|
267
|
+
this.cellXGene = this.loadGeneSelection({ selection: genes })
|
|
265
268
|
.then(({ data }) => (toObject(concatenateColumnVectors(data))));
|
|
266
269
|
}
|
|
267
270
|
return this.cellXGene;
|
|
@@ -270,12 +273,11 @@ export default class ObsFeatureMatrixAnndataLoader extends AbstractTwoStepLoader
|
|
|
270
273
|
* Class method for loading a gene selection.
|
|
271
274
|
* @param {Object} args
|
|
272
275
|
* @param {Array} args.selection A list of gene names whose data should be fetched.
|
|
273
|
-
* @param {Boolean} args.shouldNormalize A list of gene names whose data should be fetched.
|
|
274
276
|
* @returns {Object} { data } containing an array of gene expression data.
|
|
275
277
|
*/
|
|
276
|
-
async loadGeneSelection({ selection
|
|
278
|
+
async loadGeneSelection({ selection }) {
|
|
277
279
|
const { path: matrix } = this.getOptions();
|
|
278
|
-
const {
|
|
280
|
+
const { storeRoot } = this.dataSource;
|
|
279
281
|
if (!this._matrixZattrs) {
|
|
280
282
|
this._matrixZattrs = await this.dataSource.getJson(`${matrix}/.zattrs`);
|
|
281
283
|
}
|
|
@@ -289,13 +291,15 @@ export default class ObsFeatureMatrixAnndataLoader extends AbstractTwoStepLoader
|
|
|
289
291
|
}
|
|
290
292
|
else {
|
|
291
293
|
if (!this.arr) {
|
|
292
|
-
this.arr =
|
|
294
|
+
this.arr = zarrOpen(storeRoot.resolve(matrix), { kind: 'array' });
|
|
293
295
|
}
|
|
294
296
|
const indices = await this._getGeneIndices(selection);
|
|
295
297
|
// We can index directly into a normal dense array zarr store via `get`.
|
|
296
|
-
genes = await Promise.all(indices.map(index => this.arr
|
|
298
|
+
genes = await Promise.all(indices.map(index => this.arr
|
|
299
|
+
.then(z => zarrGet(z, [null, index]))
|
|
300
|
+
.then(({ data }) => data)));
|
|
297
301
|
}
|
|
298
|
-
return { data: genes
|
|
302
|
+
return { data: genes, url: null };
|
|
299
303
|
}
|
|
300
304
|
/**
|
|
301
305
|
* Class method for loading only attributes i.e rows and columns
|
|
@@ -1,9 +1,20 @@
|
|
|
1
|
-
/* eslint-disable func-names */
|
|
1
|
+
/* eslint-disable func-names, camelcase */
|
|
2
2
|
import { describe, it, expect } from 'vitest';
|
|
3
|
+
import { createStoreFromMapContents } from '@vitessce/zarr-utils';
|
|
3
4
|
import ObsFeatureMatrixAnndataLoader from './ObsFeatureMatrixAnndataLoader.js';
|
|
4
5
|
import AnnDataSource from '../AnnDataSource.js';
|
|
5
6
|
import MuDataSource from '../MuDataSource.js';
|
|
6
|
-
|
|
7
|
+
import anndata_0_7_CscFixture from '../json-fixtures/anndata-0.7/anndata-csc.json';
|
|
8
|
+
import anndata_0_7_CsrFixture from '../json-fixtures/anndata-0.7/anndata-csr.json';
|
|
9
|
+
import anndata_0_7_DenseFixture from '../json-fixtures/anndata-0.7/anndata-dense.json';
|
|
10
|
+
import anndata_0_8_CscFixture from '../json-fixtures/anndata-0.8/anndata-csc.json';
|
|
11
|
+
import anndata_0_8_CsrFixture from '../json-fixtures/anndata-0.8/anndata-csr.adata.json';
|
|
12
|
+
import anndata_0_8_DenseFixture from '../json-fixtures/anndata-0.8/anndata-dense.json';
|
|
13
|
+
import mudata_0_2_CscFixture from '../json-fixtures/mudata-0.2/mudata-csc.json';
|
|
14
|
+
import mudata_0_2_CsrFixture from '../json-fixtures/mudata-0.2/mudata-csr.json';
|
|
15
|
+
import mudata_0_2_DenseFixture from '../json-fixtures/mudata-0.2/mudata-dense.json';
|
|
16
|
+
function createAnndataLoader(url, mapContents) {
|
|
17
|
+
const store = createStoreFromMapContents(mapContents);
|
|
7
18
|
const config = {
|
|
8
19
|
url,
|
|
9
20
|
fileType: 'obsFeatureMatrix.anndata.zarr',
|
|
@@ -11,10 +22,11 @@ const createAnndataLoader = (url) => {
|
|
|
11
22
|
path: 'X',
|
|
12
23
|
},
|
|
13
24
|
};
|
|
14
|
-
const source = new AnnDataSource(config);
|
|
25
|
+
const source = new AnnDataSource({ ...config, store });
|
|
15
26
|
return new ObsFeatureMatrixAnndataLoader(source, config);
|
|
16
|
-
}
|
|
17
|
-
const createMudataLoader = (url) => {
|
|
27
|
+
}
|
|
28
|
+
const createMudataLoader = (url, mapContents) => {
|
|
29
|
+
const store = createStoreFromMapContents(mapContents);
|
|
18
30
|
const config = {
|
|
19
31
|
url,
|
|
20
32
|
fileType: 'obsFeatureMatrix.mudata.zarr',
|
|
@@ -22,33 +34,33 @@ const createMudataLoader = (url) => {
|
|
|
22
34
|
path: 'mod/rna/X',
|
|
23
35
|
},
|
|
24
36
|
};
|
|
25
|
-
const source = new MuDataSource(config);
|
|
37
|
+
const source = new MuDataSource({ ...config, store });
|
|
26
38
|
return new ObsFeatureMatrixAnndataLoader(source, config);
|
|
27
39
|
};
|
|
28
40
|
describe('loaders/ObsFeatureMatrixAnndataLoader', () => {
|
|
29
41
|
describe('AnnData v0.7', () => {
|
|
30
42
|
it('loadFilteredGeneNames returns gene names', async () => {
|
|
31
|
-
const loader = createAnndataLoader('
|
|
43
|
+
const loader = createAnndataLoader('@fixtures/zarr/anndata-0.7/anndata-dense.zarr', anndata_0_7_DenseFixture);
|
|
32
44
|
const names = await loader.loadFilteredGeneNames();
|
|
33
45
|
expect(names).toEqual(Array.from({ length: 15 }).map((_, i) => `gene_${i}`));
|
|
34
46
|
});
|
|
35
47
|
it('loadGeneSelection matches across storage methods', async () => {
|
|
36
48
|
const selection = { selection: ['gene_1', 'gene_5'] };
|
|
37
|
-
const loaderCsr = createAnndataLoader('
|
|
49
|
+
const loaderCsr = createAnndataLoader('@fixtures/zarr/anndata-0.7/anndata-csr.zarr', anndata_0_7_CsrFixture);
|
|
38
50
|
const csrSelection = await loaderCsr.loadGeneSelection(selection);
|
|
39
|
-
const loaderDense = createAnndataLoader('
|
|
51
|
+
const loaderDense = createAnndataLoader('@fixtures/zarr/anndata-0.7/anndata-dense.zarr', anndata_0_7_DenseFixture);
|
|
40
52
|
const denseSelection = await loaderDense.loadGeneSelection(selection);
|
|
41
|
-
const loaderCsc = createAnndataLoader('
|
|
53
|
+
const loaderCsc = createAnndataLoader('@fixtures/zarr/anndata-0.7/anndata-csc.zarr', anndata_0_7_CscFixture);
|
|
42
54
|
const cscSelection = await loaderCsc.loadGeneSelection(selection);
|
|
43
55
|
expect(cscSelection).toEqual(denseSelection);
|
|
44
56
|
expect(csrSelection).toEqual(denseSelection);
|
|
45
57
|
});
|
|
46
58
|
it('loadCellXGene matches across storage methods', async () => {
|
|
47
|
-
const loaderCsr = createAnndataLoader('
|
|
59
|
+
const loaderCsr = createAnndataLoader('@fixtures/zarr/anndata-0.7/anndata-csr.zarr', anndata_0_7_CsrFixture);
|
|
48
60
|
const csrMatrix = await loaderCsr.loadCellXGene();
|
|
49
|
-
const loaderDense = createAnndataLoader('
|
|
61
|
+
const loaderDense = createAnndataLoader('@fixtures/zarr/anndata-0.7/anndata-dense.zarr', anndata_0_7_DenseFixture);
|
|
50
62
|
const denseMatrix = await loaderDense.loadCellXGene();
|
|
51
|
-
const loaderCsc = createAnndataLoader('
|
|
63
|
+
const loaderCsc = createAnndataLoader('@fixtures/zarr/anndata-0.7/anndata-csc.zarr', anndata_0_7_CscFixture);
|
|
52
64
|
const cscMatrix = await loaderCsc.loadCellXGene();
|
|
53
65
|
expect(cscMatrix).toEqual(denseMatrix);
|
|
54
66
|
expect(csrMatrix).toEqual(denseMatrix);
|
|
@@ -56,27 +68,27 @@ describe('loaders/ObsFeatureMatrixAnndataLoader', () => {
|
|
|
56
68
|
});
|
|
57
69
|
describe('AnnData v0.8', () => {
|
|
58
70
|
it('loadFilteredGeneNames returns gene names', async () => {
|
|
59
|
-
const loader = createAnndataLoader('
|
|
71
|
+
const loader = createAnndataLoader('@fixtures/zarr/anndata-0.8/anndata-dense.zarr', anndata_0_8_DenseFixture);
|
|
60
72
|
const names = await loader.loadFilteredGeneNames();
|
|
61
73
|
expect(names).toEqual(Array.from({ length: 15 }).map((_, i) => `gene_${i}`));
|
|
62
74
|
});
|
|
63
75
|
it('loadGeneSelection matches across storage methods', async () => {
|
|
64
76
|
const selection = { selection: ['gene_1', 'gene_5'] };
|
|
65
|
-
const loaderCsr = createAnndataLoader('
|
|
77
|
+
const loaderCsr = createAnndataLoader('@fixtures/zarr/anndata-0.8/anndata-csr.adata.zarr', anndata_0_8_CsrFixture);
|
|
66
78
|
const csrSelection = await loaderCsr.loadGeneSelection(selection);
|
|
67
|
-
const loaderDense = createAnndataLoader('
|
|
79
|
+
const loaderDense = createAnndataLoader('@fixtures/zarr/anndata-0.8/anndata-dense.zarr', anndata_0_8_DenseFixture);
|
|
68
80
|
const denseSelection = await loaderDense.loadGeneSelection(selection);
|
|
69
|
-
const loaderCsc = createAnndataLoader('
|
|
81
|
+
const loaderCsc = createAnndataLoader('@fixtures/zarr/anndata-0.8/anndata-csc.zarr', anndata_0_8_CscFixture);
|
|
70
82
|
const cscSelection = await loaderCsc.loadGeneSelection(selection);
|
|
71
83
|
expect(cscSelection).toEqual(denseSelection);
|
|
72
84
|
expect(csrSelection).toEqual(denseSelection);
|
|
73
85
|
});
|
|
74
86
|
it('loadCellXGene matches across storage methods', async () => {
|
|
75
|
-
const loaderCsr = createAnndataLoader('
|
|
87
|
+
const loaderCsr = createAnndataLoader('@fixtures/zarr/anndata-0.8/anndata-csr.adata.zarr', anndata_0_8_CsrFixture);
|
|
76
88
|
const csrMatrix = await loaderCsr.loadCellXGene();
|
|
77
|
-
const loaderDense = createAnndataLoader('
|
|
89
|
+
const loaderDense = createAnndataLoader('@fixtures/zarr/anndata-0.8/anndata-dense.zarr', anndata_0_8_DenseFixture);
|
|
78
90
|
const denseMatrix = await loaderDense.loadCellXGene();
|
|
79
|
-
const loaderCsc = createAnndataLoader('
|
|
91
|
+
const loaderCsc = createAnndataLoader('@fixtures/zarr/anndata-0.8/anndata-csc.zarr', anndata_0_8_CscFixture);
|
|
80
92
|
const cscMatrix = await loaderCsc.loadCellXGene();
|
|
81
93
|
expect(cscMatrix).toEqual(denseMatrix);
|
|
82
94
|
expect(csrMatrix).toEqual(denseMatrix);
|
|
@@ -84,27 +96,27 @@ describe('loaders/ObsFeatureMatrixAnndataLoader', () => {
|
|
|
84
96
|
});
|
|
85
97
|
describe('MuData v0.2', () => {
|
|
86
98
|
it('loadFilteredGeneNames returns gene names', async () => {
|
|
87
|
-
const loader = createMudataLoader('
|
|
99
|
+
const loader = createMudataLoader('@fixtures/zarr/mudata-0.2/mudata-dense.zarr', mudata_0_2_DenseFixture);
|
|
88
100
|
const names = await loader.loadFilteredGeneNames();
|
|
89
101
|
expect(names).toEqual(Array.from({ length: 15 }).map((_, i) => `gene_${i}`));
|
|
90
102
|
});
|
|
91
103
|
it('loadGeneSelection matches across storage methods', async () => {
|
|
92
104
|
const selection = { selection: ['gene_1', 'gene_5'] };
|
|
93
|
-
const loaderCsr = createMudataLoader('
|
|
105
|
+
const loaderCsr = createMudataLoader('@fixtures/zarr/mudata-0.2/mudata-csr.zarr', mudata_0_2_CsrFixture);
|
|
94
106
|
const csrSelection = await loaderCsr.loadGeneSelection(selection);
|
|
95
|
-
const loaderDense = createMudataLoader('
|
|
107
|
+
const loaderDense = createMudataLoader('@fixtures/zarr/mudata-0.2/mudata-dense.zarr', mudata_0_2_DenseFixture);
|
|
96
108
|
const denseSelection = await loaderDense.loadGeneSelection(selection);
|
|
97
|
-
const loaderCsc = createMudataLoader('
|
|
109
|
+
const loaderCsc = createMudataLoader('@fixtures/zarr/mudata-0.2/mudata-csc.zarr', mudata_0_2_CscFixture);
|
|
98
110
|
const cscSelection = await loaderCsc.loadGeneSelection(selection);
|
|
99
111
|
expect(cscSelection).toEqual(denseSelection);
|
|
100
112
|
expect(csrSelection).toEqual(denseSelection);
|
|
101
113
|
});
|
|
102
114
|
it('loadCellXGene matches across storage methods', async () => {
|
|
103
|
-
const loaderCsr = createMudataLoader('
|
|
115
|
+
const loaderCsr = createMudataLoader('@fixtures/zarr/mudata-0.2/mudata-csr.zarr', mudata_0_2_CsrFixture);
|
|
104
116
|
const csrMatrix = await loaderCsr.loadCellXGene();
|
|
105
|
-
const loaderDense = createMudataLoader('
|
|
117
|
+
const loaderDense = createMudataLoader('@fixtures/zarr/mudata-0.2/mudata-dense.zarr', mudata_0_2_DenseFixture);
|
|
106
118
|
const denseMatrix = await loaderDense.loadCellXGene();
|
|
107
|
-
const loaderCsc = createMudataLoader('
|
|
119
|
+
const loaderCsc = createMudataLoader('@fixtures/zarr/mudata-0.2/mudata-csc.zarr', mudata_0_2_CscFixture);
|
|
108
120
|
const cscMatrix = await loaderCsc.loadCellXGene();
|
|
109
121
|
expect(cscMatrix).toEqual(denseMatrix);
|
|
110
122
|
expect(csrMatrix).toEqual(denseMatrix);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ObsSegmentationsAnndataLoader.d.ts","sourceRoot":"","sources":["../../src/anndata-loaders/ObsSegmentationsAnndataLoader.js"],"names":[],"mappings":"AAMA;;GAEG;AACH;IACE;;;OAGG;IACH,
|
|
1
|
+
{"version":3,"file":"ObsSegmentationsAnndataLoader.d.ts","sourceRoot":"","sources":["../../src/anndata-loaders/ObsSegmentationsAnndataLoader.js"],"names":[],"mappings":"AAMA;;GAEG;AACH;IACE;;;OAGG;IACH,kCAiCC;IAXG,mBAMC;IAOL,qBAoBC;CACF"}
|
|
@@ -8,20 +8,35 @@ export default class ObsSegmentationsAnndataLoader extends AbstractTwoStepLoader
|
|
|
8
8
|
* Class method for loading embedding coordinates, such as those from UMAP or t-SNE.
|
|
9
9
|
* @returns {Promise} A promise for an array of columns.
|
|
10
10
|
*/
|
|
11
|
-
loadSegmentations() {
|
|
11
|
+
async loadSegmentations() {
|
|
12
12
|
const { path } = this.options;
|
|
13
13
|
if (this.segmentations) {
|
|
14
14
|
return this.segmentations;
|
|
15
15
|
}
|
|
16
16
|
if (!this.segmentations) {
|
|
17
|
-
|
|
17
|
+
const arr = await this.dataSource.loadNumeric(path);
|
|
18
|
+
// Zarrita returns a strided array; here
|
|
19
|
+
// we convert it to a nested array of polygons and polygon vertices.
|
|
20
|
+
// TODO: use the strided format directly, since more efficient
|
|
21
|
+
// to pass to DeckGL.
|
|
22
|
+
const { stride, shape, data } = arr;
|
|
23
|
+
const result = [];
|
|
24
|
+
let i = 0;
|
|
25
|
+
for (let polyI = 0; polyI < shape[0]; polyI++) {
|
|
26
|
+
const poly = [];
|
|
27
|
+
for (let vertexI = 0; vertexI < shape[1]; vertexI++) {
|
|
28
|
+
i = polyI * stride[0] + vertexI * stride[1];
|
|
29
|
+
poly.push([data[i], data[i + 1]]);
|
|
30
|
+
}
|
|
31
|
+
result.push(poly);
|
|
32
|
+
}
|
|
33
|
+
this.segmentations = {
|
|
18
34
|
...arr,
|
|
19
35
|
// Bug introduced from DeckGL v8.6.x to v8.8.x:
|
|
20
36
|
// Polygon vertices cannot be passed via Uint32Arrays, which is how they load via Zarr.
|
|
21
37
|
// For now, a workaround is to cast each vertex to a plain Array.
|
|
22
|
-
data:
|
|
23
|
-
|
|
24
|
-
}));
|
|
38
|
+
data: result,
|
|
39
|
+
};
|
|
25
40
|
return this.segmentations;
|
|
26
41
|
}
|
|
27
42
|
this.segmentations = Promise.resolve(null);
|
package/dist-tsc/index.d.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
export { default as ZarrDataSource } from "./ZarrDataSource.js";
|
|
1
2
|
export { default as AnnDataSource } from "./AnnDataSource.js";
|
|
2
3
|
export { default as MuDataSource } from "./MuDataSource.js";
|
|
3
|
-
export { default as
|
|
4
|
+
export { default as SpatialDataTableSource } from "./SpatialDataTableSource.js";
|
|
5
|
+
export { default as SpatialDataShapesSource } from "./SpatialDataShapesSource.js";
|
|
4
6
|
export * from "./matrix-loaders/index.js";
|
|
5
7
|
export * from "./anndata-loaders/index.js";
|
|
6
8
|
export * from "./ome-loaders/index.js";
|
|
9
|
+
export * from "./spatialdata-loaders/index.js";
|
|
7
10
|
export * from "./genomic-loaders/index.js";
|
|
8
11
|
//# sourceMappingURL=index.d.ts.map
|
package/dist-tsc/index.js
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
/* eslint-disable react-refresh/only-export-components */
|
|
2
|
+
export { default as ZarrDataSource } from './ZarrDataSource.js';
|
|
2
3
|
export { default as AnnDataSource } from './AnnDataSource.js';
|
|
3
4
|
export { default as MuDataSource } from './MuDataSource.js';
|
|
4
|
-
export { default as
|
|
5
|
+
export { default as SpatialDataTableSource } from './SpatialDataTableSource.js';
|
|
6
|
+
export { default as SpatialDataShapesSource } from './SpatialDataShapesSource.js';
|
|
5
7
|
export * from './matrix-loaders/index.js';
|
|
6
8
|
export * from './anndata-loaders/index.js';
|
|
7
9
|
export * from './ome-loaders/index.js';
|
|
10
|
+
export * from './spatialdata-loaders/index.js';
|
|
8
11
|
export * from './genomic-loaders/index.js';
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
[
|
|
2
|
+
[
|
|
3
|
+
"/.zgroup",
|
|
4
|
+
"ewogICAgInphcnJfZm9ybWF0IjogMgp9"
|
|
5
|
+
],
|
|
6
|
+
[
|
|
7
|
+
"/X/.zattrs",
|
|
8
|
+
"ewogICAgImVuY29kaW5nLXR5cGUiOiAiY3NjX21hdHJpeCIsCiAgICAiZW5jb2RpbmctdmVyc2lvbiI6ICIwLjEuMCIsCiAgICAic2hhcGUiOiBbCiAgICAgICAgMywKICAgICAgICAxNQogICAgXQp9"
|
|
9
|
+
],
|
|
10
|
+
[
|
|
11
|
+
"/X/.zgroup",
|
|
12
|
+
"ewogICAgInphcnJfZm9ybWF0IjogMgp9"
|
|
13
|
+
],
|
|
14
|
+
[
|
|
15
|
+
"/X/data/.zarray",
|
|
16
|
+
"ewogICAgImNodW5rcyI6IFsKICAgICAgICAyNAogICAgXSwKICAgICJjb21wcmVzc29yIjogewogICAgICAgICJibG9ja3NpemUiOiAwLAogICAgICAgICJjbGV2ZWwiOiA1LAogICAgICAgICJjbmFtZSI6ICJsejQiLAogICAgICAgICJpZCI6ICJibG9zYyIsCiAgICAgICAgInNodWZmbGUiOiAxCiAgICB9LAogICAgImR0eXBlIjogIjxmNCIsCiAgICAiZmlsbF92YWx1ZSI6IDAuMCwKICAgICJmaWx0ZXJzIjogbnVsbCwKICAgICJvcmRlciI6ICJDIiwKICAgICJzaGFwZSI6IFsKICAgICAgICAyNAogICAgXSwKICAgICJ6YXJyX2Zvcm1hdCI6IDIKfQ=="
|
|
17
|
+
],
|
|
18
|
+
[
|
|
19
|
+
"/X/data/0",
|
|
20
|
+
"AgEzBGAAAABgAAAAcAAAAAAAwD8AAIA/AACAPwAAgD8AAMA/AACAPwAAgD8AAIA/AACAPwAAwD8AAMA/AADAPwAAgD8AAMA/AACAPwAAwD8AAMA/AACAPwAAwD8AAMA/AACAPwAAwD8AAIA/AADAPw=="
|
|
21
|
+
],
|
|
22
|
+
[
|
|
23
|
+
"/X/indices/.zarray",
|
|
24
|
+
"ewogICAgImNodW5rcyI6IFsKICAgICAgICAyNAogICAgXSwKICAgICJjb21wcmVzc29yIjogewogICAgICAgICJibG9ja3NpemUiOiAwLAogICAgICAgICJjbGV2ZWwiOiA1LAogICAgICAgICJjbmFtZSI6ICJsejQiLAogICAgICAgICJpZCI6ICJibG9zYyIsCiAgICAgICAgInNodWZmbGUiOiAxCiAgICB9LAogICAgImR0eXBlIjogIjxpNCIsCiAgICAiZmlsbF92YWx1ZSI6IDAsCiAgICAiZmlsdGVycyI6IG51bGwsCiAgICAib3JkZXIiOiAiQyIsCiAgICAic2hhcGUiOiBbCiAgICAgICAgMjQKICAgIF0sCiAgICAiemFycl9mb3JtYXQiOiAyCn0="
|
|
25
|
+
],
|
|
26
|
+
[
|
|
27
|
+
"/X/indices/0",
|
|
28
|
+
"AgEzBGAAAABgAAAAcAAAAAAAAAACAAAAAAAAAAEAAAACAAAAAgAAAAAAAAABAAAAAAAAAAEAAAACAAAAAgAAAAAAAAABAAAAAgAAAAAAAAACAAAAAAAAAAEAAAACAAAAAQAAAAIAAAACAAAAAAAAAA=="
|
|
29
|
+
],
|
|
30
|
+
[
|
|
31
|
+
"/X/indptr/.zarray",
|
|
32
|
+
"ewogICAgImNodW5rcyI6IFsKICAgICAgICAxNgogICAgXSwKICAgICJjb21wcmVzc29yIjogewogICAgICAgICJibG9ja3NpemUiOiAwLAogICAgICAgICJjbGV2ZWwiOiA1LAogICAgICAgICJjbmFtZSI6ICJsejQiLAogICAgICAgICJpZCI6ICJibG9zYyIsCiAgICAgICAgInNodWZmbGUiOiAxCiAgICB9LAogICAgImR0eXBlIjogIjxpNCIsCiAgICAiZmlsbF92YWx1ZSI6IDAsCiAgICAiZmlsdGVycyI6IG51bGwsCiAgICAib3JkZXIiOiAiQyIsCiAgICAic2hhcGUiOiBbCiAgICAgICAgMTYKICAgIF0sCiAgICAiemFycl9mb3JtYXQiOiAyCn0="
|
|
33
|
+
],
|
|
34
|
+
[
|
|
35
|
+
"/X/indptr/0",
|
|
36
|
+
"AgEzBEAAAABAAAAAUAAAAAAAAAACAAAABAAAAAUAAAAGAAAACAAAAAsAAAAMAAAADwAAABEAAAAUAAAAFgAAABYAAAAWAAAAFwAAABgAAAA="
|
|
37
|
+
],
|
|
38
|
+
[
|
|
39
|
+
"/obs/.zattrs",
|
|
40
|
+
"ewogICAgIl9pbmRleCI6ICJfaW5kZXgiLAogICAgImNvbHVtbi1vcmRlciI6IFsKICAgICAgICAibGVpZGVuIgogICAgXSwKICAgICJlbmNvZGluZy10eXBlIjogImRhdGFmcmFtZSIsCiAgICAiZW5jb2RpbmctdmVyc2lvbiI6ICIwLjEuMCIKfQ=="
|
|
41
|
+
],
|
|
42
|
+
[
|
|
43
|
+
"/obs/.zgroup",
|
|
44
|
+
"ewogICAgInphcnJfZm9ybWF0IjogMgp9"
|
|
45
|
+
],
|
|
46
|
+
[
|
|
47
|
+
"/obs/__categories/.zgroup",
|
|
48
|
+
"ewogICAgInphcnJfZm9ybWF0IjogMgp9"
|
|
49
|
+
],
|
|
50
|
+
[
|
|
51
|
+
"/obs/__categories/leiden/.zarray",
|
|
52
|
+
"ewogICAgImNodW5rcyI6IFsKICAgICAgICAyCiAgICBdLAogICAgImNvbXByZXNzb3IiOiB7CiAgICAgICAgImJsb2Nrc2l6ZSI6IDAsCiAgICAgICAgImNsZXZlbCI6IDUsCiAgICAgICAgImNuYW1lIjogImx6NCIsCiAgICAgICAgImlkIjogImJsb3NjIiwKICAgICAgICAic2h1ZmZsZSI6IDEKICAgIH0sCiAgICAiZHR5cGUiOiAifE8iLAogICAgImZpbGxfdmFsdWUiOiAwLAogICAgImZpbHRlcnMiOiBbCiAgICAgICAgewogICAgICAgICAgICAiaWQiOiAidmxlbi11dGY4IgogICAgICAgIH0KICAgIF0sCiAgICAib3JkZXIiOiAiQyIsCiAgICAic2hhcGUiOiBbCiAgICAgICAgMgogICAgXSwKICAgICJ6YXJyX2Zvcm1hdCI6IDIKfQ=="
|
|
53
|
+
],
|
|
54
|
+
[
|
|
55
|
+
"/obs/__categories/leiden/.zattrs",
|
|
56
|
+
"ewogICAgIm9yZGVyZWQiOiBmYWxzZQp9"
|
|
57
|
+
],
|
|
58
|
+
[
|
|
59
|
+
"/obs/__categories/leiden/0",
|
|
60
|
+
"AgEzAQ4AAAAOAAAAHgAAAAIAAAABAAAAMQEAAAAy"
|
|
61
|
+
],
|
|
62
|
+
[
|
|
63
|
+
"/obs/_index/.zarray",
|
|
64
|
+
"ewogICAgImNodW5rcyI6IFsKICAgICAgICAzCiAgICBdLAogICAgImNvbXByZXNzb3IiOiB7CiAgICAgICAgImJsb2Nrc2l6ZSI6IDAsCiAgICAgICAgImNsZXZlbCI6IDUsCiAgICAgICAgImNuYW1lIjogImx6NCIsCiAgICAgICAgImlkIjogImJsb3NjIiwKICAgICAgICAic2h1ZmZsZSI6IDEKICAgIH0sCiAgICAiZHR5cGUiOiAifE8iLAogICAgImZpbGxfdmFsdWUiOiAwLAogICAgImZpbHRlcnMiOiBbCiAgICAgICAgewogICAgICAgICAgICAiaWQiOiAidmxlbi11dGY4IgogICAgICAgIH0KICAgIF0sCiAgICAib3JkZXIiOiAiQyIsCiAgICAic2hhcGUiOiBbCiAgICAgICAgMwogICAgXSwKICAgICJ6YXJyX2Zvcm1hdCI6IDIKfQ=="
|
|
65
|
+
],
|
|
66
|
+
[
|
|
67
|
+
"/obs/_index/0",
|
|
68
|
+
"AgEzARkAAAAZAAAAKQAAAAMAAAADAAAAQ1RHAwAAAEdDQQMAAABDVEc="
|
|
69
|
+
],
|
|
70
|
+
[
|
|
71
|
+
"/obs/leiden/.zarray",
|
|
72
|
+
"ewogICAgImNodW5rcyI6IFsKICAgICAgICAzCiAgICBdLAogICAgImNvbXByZXNzb3IiOiB7CiAgICAgICAgImJsb2Nrc2l6ZSI6IDAsCiAgICAgICAgImNsZXZlbCI6IDUsCiAgICAgICAgImNuYW1lIjogImx6NCIsCiAgICAgICAgImlkIjogImJsb3NjIiwKICAgICAgICAic2h1ZmZsZSI6IDEKICAgIH0sCiAgICAiZHR5cGUiOiAifGkxIiwKICAgICJmaWxsX3ZhbHVlIjogMCwKICAgICJmaWx0ZXJzIjogbnVsbCwKICAgICJvcmRlciI6ICJDIiwKICAgICJzaGFwZSI6IFsKICAgICAgICAzCiAgICBdLAogICAgInphcnJfZm9ybWF0IjogMgp9"
|
|
73
|
+
],
|
|
74
|
+
[
|
|
75
|
+
"/obs/leiden/.zattrs",
|
|
76
|
+
"ewogICAgImNhdGVnb3JpZXMiOiAiX19jYXRlZ29yaWVzL2xlaWRlbiIKfQ=="
|
|
77
|
+
],
|
|
78
|
+
[
|
|
79
|
+
"/obs/leiden/0",
|
|
80
|
+
"AgEzAQMAAAADAAAAEwAAAAAAAQ=="
|
|
81
|
+
],
|
|
82
|
+
[
|
|
83
|
+
"/obsm/.zgroup",
|
|
84
|
+
"ewogICAgInphcnJfZm9ybWF0IjogMgp9"
|
|
85
|
+
],
|
|
86
|
+
[
|
|
87
|
+
"/obsm/X_umap/.zarray",
|
|
88
|
+
"ewogICAgImNodW5rcyI6IFsKICAgICAgICAzLAogICAgICAgIDIKICAgIF0sCiAgICAiY29tcHJlc3NvciI6IHsKICAgICAgICAiYmxvY2tzaXplIjogMCwKICAgICAgICAiY2xldmVsIjogNSwKICAgICAgICAiY25hbWUiOiAibHo0IiwKICAgICAgICAiaWQiOiAiYmxvc2MiLAogICAgICAgICJzaHVmZmxlIjogMQogICAgfSwKICAgICJkdHlwZSI6ICI8aTQiLAogICAgImZpbGxfdmFsdWUiOiAwLAogICAgImZpbHRlcnMiOiBudWxsLAogICAgIm9yZGVyIjogIkMiLAogICAgInNoYXBlIjogWwogICAgICAgIDMsCiAgICAgICAgMgogICAgXSwKICAgICJ6YXJyX2Zvcm1hdCI6IDIKfQ=="
|
|
89
|
+
],
|
|
90
|
+
[
|
|
91
|
+
"/obsm/X_umap/0.0",
|
|
92
|
+
"AgEzBBgAAAAYAAAAKAAAAP//////////AAAAAAAAAAABAAAAAQAAAA=="
|
|
93
|
+
],
|
|
94
|
+
[
|
|
95
|
+
"/var/.zattrs",
|
|
96
|
+
"ewogICAgIl9pbmRleCI6ICJfaW5kZXgiLAogICAgImNvbHVtbi1vcmRlciI6IFtdLAogICAgImVuY29kaW5nLXR5cGUiOiAiZGF0YWZyYW1lIiwKICAgICJlbmNvZGluZy12ZXJzaW9uIjogIjAuMS4wIgp9"
|
|
97
|
+
],
|
|
98
|
+
[
|
|
99
|
+
"/var/.zgroup",
|
|
100
|
+
"ewogICAgInphcnJfZm9ybWF0IjogMgp9"
|
|
101
|
+
],
|
|
102
|
+
[
|
|
103
|
+
"/var/_index/.zarray",
|
|
104
|
+
"ewogICAgImNodW5rcyI6IFsKICAgICAgICAxNQogICAgXSwKICAgICJjb21wcmVzc29yIjogewogICAgICAgICJibG9ja3NpemUiOiAwLAogICAgICAgICJjbGV2ZWwiOiA1LAogICAgICAgICJjbmFtZSI6ICJsejQiLAogICAgICAgICJpZCI6ICJibG9zYyIsCiAgICAgICAgInNodWZmbGUiOiAxCiAgICB9LAogICAgImR0eXBlIjogInxPIiwKICAgICJmaWxsX3ZhbHVlIjogMCwKICAgICJmaWx0ZXJzIjogWwogICAgICAgIHsKICAgICAgICAgICAgImlkIjogInZsZW4tdXRmOCIKICAgICAgICB9CiAgICBdLAogICAgIm9yZGVyIjogIkMiLAogICAgInNoYXBlIjogWwogICAgICAgIDE1CiAgICBdLAogICAgInphcnJfZm9ybWF0IjogMgp9"
|
|
105
|
+
],
|
|
106
|
+
[
|
|
107
|
+
"/var/_index/0",
|
|
108
|
+
"AgEhAZ8AAACfAAAAbgAAABQAAABWAAAA5Q8AAAAGAAAAZ2VuZV8wCgC1MQYAAABnZW5lXzIKABUzFAAVNAoAFTUKABU2CgAVNwoAFTgKACQ5B0YAJjEwCwAWMQsAFjILAMAzBwAAAGdlbmVfMTQ="
|
|
109
|
+
]
|
|
110
|
+
]
|