@vitessce/json 2.0.0-beta.2 → 2.0.2

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.
@@ -1,4 +1,4 @@
1
- import { tryUpgradeTreeToLatestSchema, initializeCellSetColor, nodeToSet, treeToMembershipMap, } from '@vitessce/sets';
1
+ import { tryUpgradeTreeToLatestSchema, initializeCellSetColor, nodeToSet, treeToMembershipMap, } from '@vitessce/sets-utils';
2
2
  import { obsSetsSchema, AbstractLoaderError, LoaderResult } from '@vitessce/vit-s';
3
3
  import JsonLoader from './JsonLoader';
4
4
  export default class ObsSetsJsonLoader extends JsonLoader {
@@ -1,5 +1,5 @@
1
1
  import { AbstractLoaderError, LoaderResult } from '@vitessce/vit-s';
2
- import { DEFAULT_CELLS_LAYER, square } from '@vitessce/gl';
2
+ import { DEFAULT_CELLS_LAYER, square } from '@vitessce/spatial-utils';
3
3
  import cellsSchema from './schemas/cells.schema.json';
4
4
  import JsonLoader from '../json-loaders/JsonLoader';
5
5
  export default class CellsJsonAsObsSegmentationsLoader extends JsonLoader {
@@ -1,7 +1,7 @@
1
1
  import range from 'lodash/range';
2
2
  import sum from 'lodash/sum';
3
3
  import { AbstractLoaderError, LoaderResult } from '@vitessce/vit-s';
4
- import { DEFAULT_MOLECULES_LAYER } from '@vitessce/gl';
4
+ import { DEFAULT_MOLECULES_LAYER } from '@vitessce/spatial-utils';
5
5
  import moleculesSchema from './schemas/molecules.schema.json';
6
6
  import JsonLoader from '../json-loaders/JsonLoader';
7
7
  export default class MoleculesJsonAsObsLocationsLoader extends JsonLoader {
@@ -1,4 +1,5 @@
1
- import { viv, initializeRasterLayersAndChannels } from '@vitessce/gl';
1
+ import { viv } from '@vitessce/gl';
2
+ import { initializeRasterLayersAndChannels } from '@vitessce/spatial-utils';
2
3
  import { openArray } from 'zarr';
3
4
  import { rasterSchema, AbstractLoaderError, LoaderResult } from '@vitessce/vit-s';
4
5
  import JsonLoader from '../json-loaders/JsonLoader';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/json",
3
- "version": "2.0.0-beta.2",
3
+ "version": "2.0.2",
4
4
  "author": "Gehlenborg Lab",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -13,15 +13,16 @@
13
13
  "dist"
14
14
  ],
15
15
  "dependencies": {
16
- "@vitessce/constants-internal": "2.0.0-beta.2",
17
- "@vitessce/gl": "2.0.0-beta.2",
18
- "@vitessce/sets": "2.0.0-beta.2",
19
- "@vitessce/utils": "2.0.0-beta.2",
20
- "@vitessce/vit-s": "2.0.0-beta.2",
21
16
  "ajv": "^6.10.0",
22
17
  "d3-array": "^2.4.0",
23
18
  "lodash": "^4.17.21",
24
- "zarr": "0.5.1"
19
+ "zarr": "0.5.1",
20
+ "@vitessce/constants-internal": "2.0.2",
21
+ "@vitessce/gl": "2.0.2",
22
+ "@vitessce/sets-utils": "2.0.2",
23
+ "@vitessce/spatial-utils": "2.0.2",
24
+ "@vitessce/utils": "2.0.2",
25
+ "@vitessce/vit-s": "2.0.2"
25
26
  },
26
27
  "devDependencies": {
27
28
  "ajv": "^6.10.0"
@@ -1,28 +0,0 @@
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
- */
@@ -1,9 +0,0 @@
1
- {
2
- "rows": ["Lamp5", "Sox10", "Crhbp"],
3
- "cols": ["3572", "1904", "1670"],
4
- "matrix": [
5
- [0.123, 0.456, 0.789],
6
- [0.12, 0.45, 0.78],
7
- [0.1, 0.4, 0.7]
8
- ]
9
- }
@@ -1,4 +0,0 @@
1
- {
2
- "Gad2": { "max": 95, "cells": { "778": 35, "1409": 16, "3642": 95 } },
3
- "Slc32a1": { "max": 49, "cells": { "778": 41, "1409": 26, "3642": 49 } }
4
- }
@@ -1,7 +0,0 @@
1
- {
2
- "Klk6_Hybridization5": [
3
- [27008.0, 949.0],
4
- [8315.0, 22747.0],
5
- [18683.0, 19476.0]
6
- ]
7
- }