@vitessce/sets-utils 3.0.0 → 3.1.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/index.js CHANGED
@@ -8737,6 +8737,10 @@ const FileType$1 = {
8737
8737
  ANNDATA_EXPRESSION_MATRIX_ZARR: "anndata-expression-matrix.zarr"
8738
8738
  };
8739
8739
  const CoordinationType$1 = {
8740
+ // Meta coordination scopes
8741
+ META_COORDINATION_SCOPES: "metaCoordinationScopes",
8742
+ META_COORDINATION_SCOPES_BY: "metaCoordinationScopesBy",
8743
+ // Other coordination scopes
8740
8744
  DATASET: "dataset",
8741
8745
  // Entity types
8742
8746
  OBS_TYPE: "obsType",
@@ -1,3 +1,4 @@
1
+ import { describe, it, expect } from 'vitest';
1
2
  import { dataToCellSetsTree } from './CellSetsZarrLoader.js';
2
3
  describe('loaders/CellSetsZarrLoader', () => {
3
4
  it('dataToCellSetsTree constructs a hierarchy from an array of columns', async () => {
@@ -1,4 +1,5 @@
1
1
  /* eslint-disable no-underscore-dangle */
2
+ import { describe, it, expect } from 'vitest';
2
3
  import { cloneDeep } from 'lodash-es';
3
4
  import { nodeToRenderProps, nodeToSet, nodeToHeight, treeFindNodeByNamePath, nodeTransform, treeToUnion, treeToIntersection, treeToComplement, nodeToLevelDescendantNamePaths, treeExport, filterNode, treeToSetSizesBySetNames, } from './cell-set-utils.js';
4
5
  import { levelTwoNodeLeaf, levelZeroNode, tree, } from './cell-set-utils.test.fixtures.js';
@@ -1,3 +1,4 @@
1
+ import { describe, it, expect } from 'vitest';
1
2
  import { handleImportJSON, handleExportJSON, handleImportTabular, handleExportTabular, } from './io.js';
2
3
  const treeV012 = {
3
4
  version: '0.1.2',
@@ -1,3 +1,4 @@
1
+ import { describe, it, expect } from 'vitest';
1
2
  import { filterPathsByExpansionAndSelection, findChangedHierarchy } from './set-path-utils.js';
2
3
  describe('Tests for findChangedHierarchy', () => {
3
4
  it('Computes correct new hierarchy after new selection', () => {
@@ -1,3 +1,4 @@
1
+ import { describe, it, expect } from 'vitest';
1
2
  import { getObsInfoFromDataWithinRange } from './utils.js';
2
3
  describe('getObsInfoFromDataWithinRange', () => {
3
4
  it('should return the correct obs info with no gene defined', () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/sets-utils",
3
- "version": "3.0.0",
3
+ "version": "3.1.0",
4
4
  "author": "Gehlenborg Lab",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -25,12 +25,12 @@
25
25
  "lodash-es": "^4.17.21",
26
26
  "tinycolor2": "^1.4.1",
27
27
  "uuid": "^9.0.0",
28
- "@vitessce/schemas": "3.0.0",
29
- "@vitessce/utils": "3.0.0"
28
+ "@vitessce/schemas": "3.1.0",
29
+ "@vitessce/utils": "3.1.0"
30
30
  },
31
31
  "scripts": {
32
32
  "bundle": "pnpm exec vite build -c ../../../scripts/vite.config.js",
33
- "test": "pnpm exec vitest --run -r ../../../ --dir ."
33
+ "test": "pnpm exec vitest --run"
34
34
  },
35
35
  "module": "dist/index.js",
36
36
  "exports": {
@@ -1,3 +1,4 @@
1
+ import { describe, it, expect } from 'vitest';
1
2
  import { dataToCellSetsTree } from './CellSetsZarrLoader.js';
2
3
 
3
4
  describe('loaders/CellSetsZarrLoader', () => {
@@ -1,4 +1,5 @@
1
1
  /* eslint-disable no-underscore-dangle */
2
+ import { describe, it, expect } from 'vitest';
2
3
  import { cloneDeep } from 'lodash-es';
3
4
 
4
5
  import {
package/src/io.test.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { describe, it, expect } from 'vitest';
1
2
  import {
2
3
  handleImportJSON, handleExportJSON, handleImportTabular, handleExportTabular,
3
4
  } from './io.js';
@@ -1,3 +1,4 @@
1
+ import { describe, it, expect } from 'vitest';
1
2
  import { filterPathsByExpansionAndSelection, findChangedHierarchy } from './set-path-utils.js';
2
3
 
3
4
  describe('Tests for findChangedHierarchy', () => {
package/src/utils.test.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { describe, it, expect } from 'vitest';
1
2
  import { getObsInfoFromDataWithinRange } from './utils.js';
2
3
 
3
4