@vitessce/json 2.0.2 → 2.0.3-beta.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.
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export {};
|
|
2
|
+
// TODO(monorepo)
|
|
3
|
+
/*
|
|
4
|
+
const createLoader = (ClassDef, config, url) => {
|
|
5
|
+
const configWithUrl = {
|
|
6
|
+
...config,
|
|
7
|
+
url,
|
|
8
|
+
};
|
|
9
|
+
const source = new JsonSource(configWithUrl);
|
|
10
|
+
return new ClassDef(source, configWithUrl);
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
describe('loaders/json-loaders/ObsSetsJson', () => {
|
|
14
|
+
describe('ObsSetsJsonLoader', () => {
|
|
15
|
+
it('can load obsSets', async () => {
|
|
16
|
+
const loader = createLoader(ObsSetsJsonLoader, {
|
|
17
|
+
fileType: 'obsSets.cells.json',
|
|
18
|
+
}, 'http://localhost:51204/@fixtures/vit-s/obsSets.good.json');
|
|
19
|
+
const result = await loader.load();
|
|
20
|
+
expect(result).toBeInstanceOf(LoaderResult);
|
|
21
|
+
const payload = result.data;
|
|
22
|
+
expect(Object.keys(payload)).toEqual(['obsIndex', 'obsSets', 'obsSetsMembership']);
|
|
23
|
+
expect(payload.obsSets.datatype).toEqual('obs');
|
|
24
|
+
expect(payload.obsSets.tree[0].name).toEqual('Clustering Algorithm');
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/json",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3-beta.0",
|
|
4
4
|
"author": "Gehlenborg Lab",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -17,12 +17,12 @@
|
|
|
17
17
|
"d3-array": "^2.4.0",
|
|
18
18
|
"lodash": "^4.17.21",
|
|
19
19
|
"zarr": "0.5.1",
|
|
20
|
-
"@vitessce/constants-internal": "2.0.
|
|
21
|
-
"@vitessce/
|
|
22
|
-
"@vitessce/
|
|
23
|
-
"@vitessce/
|
|
24
|
-
"@vitessce/utils": "2.0.
|
|
25
|
-
"@vitessce/vit-s": "2.0.
|
|
20
|
+
"@vitessce/constants-internal": "2.0.3-beta.0",
|
|
21
|
+
"@vitessce/sets-utils": "2.0.3-beta.0",
|
|
22
|
+
"@vitessce/gl": "2.0.3-beta.0",
|
|
23
|
+
"@vitessce/utils": "2.0.3-beta.0",
|
|
24
|
+
"@vitessce/spatial-utils": "2.0.3-beta.0",
|
|
25
|
+
"@vitessce/vit-s": "2.0.3-beta.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"ajv": "^6.10.0"
|