@vitessce/config 3.6.7 → 3.6.8
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-config-spatialdata.d.ts","sourceRoot":"","sources":["../src/generate-config-spatialdata.js"],"names":[],"mappings":"AAGA;IACE,
|
|
1
|
+
{"version":3,"file":"generate-config-spatialdata.d.ts","sourceRoot":"","sources":["../src/generate-config-spatialdata.js"],"names":[],"mappings":"AAGA;IACE,iBA0FC;CAgBF;mCA7GkC,8BAA8B"}
|
|
@@ -24,7 +24,7 @@ export class SpatialDataAutoConfig extends AbstractAutoConfig {
|
|
|
24
24
|
}
|
|
25
25
|
// Handle labels elements.
|
|
26
26
|
if (relPath.match(/^(labels)\/([^/]*)$/)) {
|
|
27
|
-
options.
|
|
27
|
+
options.obsSegmentations = {
|
|
28
28
|
path: relPath,
|
|
29
29
|
coordinateSystem: firstCoordinateSystem,
|
|
30
30
|
// TODO: support a fileUid property in the schema?
|
|
@@ -41,6 +41,14 @@ export class SpatialDataAutoConfig extends AbstractAutoConfig {
|
|
|
41
41
|
};
|
|
42
42
|
// TODO: check which table annotates these shapes.
|
|
43
43
|
}
|
|
44
|
+
// Handle point elements.
|
|
45
|
+
if (relPath.match(/^(points)\/([^/]*)$/)) {
|
|
46
|
+
options.obsPoints = {
|
|
47
|
+
path: relPath,
|
|
48
|
+
coordinateSystem: firstCoordinateSystem,
|
|
49
|
+
};
|
|
50
|
+
// TODO: check which table annotates these shapes.
|
|
51
|
+
}
|
|
44
52
|
// Handle table elements.
|
|
45
53
|
if (relPath.match(/^(tables|table)\/([^/]*)$/)) {
|
|
46
54
|
// Identify all sub-paths within this table element.
|
|
@@ -159,7 +159,7 @@ describe('generateConfig', () => {
|
|
|
159
159
|
path: 'images/raw_image',
|
|
160
160
|
coordinateSystem: 'global',
|
|
161
161
|
},
|
|
162
|
-
|
|
162
|
+
obsSegmentations: {
|
|
163
163
|
path: 'labels/segmentation_mask',
|
|
164
164
|
coordinateSystem: 'global',
|
|
165
165
|
},
|
|
@@ -171,6 +171,9 @@ describe('generateConfig', () => {
|
|
|
171
171
|
obsFeatureMatrix: {
|
|
172
172
|
path: 'tables/table/X',
|
|
173
173
|
},
|
|
174
|
+
obsPoints: {
|
|
175
|
+
path: 'points/transcripts',
|
|
176
|
+
},
|
|
174
177
|
obsSets: {
|
|
175
178
|
tablePath: 'tables/table',
|
|
176
179
|
obsSets: [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/config",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.8",
|
|
4
4
|
"author": "HIDIVE Lab at HMS",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"zarrita": "0.5.2",
|
|
20
|
-
"@vitessce/constants-internal": "3.6.
|
|
21
|
-
"@vitessce/utils": "3.6.
|
|
22
|
-
"@vitessce/globals": "3.6.
|
|
23
|
-
"@vitessce/zarr-utils": "3.6.
|
|
20
|
+
"@vitessce/constants-internal": "3.6.8",
|
|
21
|
+
"@vitessce/utils": "3.6.8",
|
|
22
|
+
"@vitessce/globals": "3.6.8",
|
|
23
|
+
"@vitessce/zarr-utils": "3.6.8"
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|
|
26
26
|
"bundle": "pnpm exec vite build -c ../../scripts/vite.config.js",
|
|
@@ -29,7 +29,7 @@ export class SpatialDataAutoConfig extends AbstractAutoConfig {
|
|
|
29
29
|
}
|
|
30
30
|
// Handle labels elements.
|
|
31
31
|
if (relPath.match(/^(labels)\/([^/]*)$/)) {
|
|
32
|
-
options.
|
|
32
|
+
options.obsSegmentations = {
|
|
33
33
|
path: relPath,
|
|
34
34
|
coordinateSystem: firstCoordinateSystem,
|
|
35
35
|
// TODO: support a fileUid property in the schema?
|
|
@@ -50,6 +50,16 @@ export class SpatialDataAutoConfig extends AbstractAutoConfig {
|
|
|
50
50
|
// TODO: check which table annotates these shapes.
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
+
// Handle point elements.
|
|
54
|
+
if (relPath.match(/^(points)\/([^/]*)$/)) {
|
|
55
|
+
options.obsPoints = {
|
|
56
|
+
path: relPath,
|
|
57
|
+
coordinateSystem: firstCoordinateSystem,
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
// TODO: check which table annotates these shapes.
|
|
61
|
+
}
|
|
62
|
+
|
|
53
63
|
// Handle table elements.
|
|
54
64
|
if (relPath.match(/^(tables|table)\/([^/]*)$/)) {
|
|
55
65
|
// Identify all sub-paths within this table element.
|
|
@@ -172,7 +172,7 @@ describe('generateConfig', () => {
|
|
|
172
172
|
path: 'images/raw_image',
|
|
173
173
|
coordinateSystem: 'global',
|
|
174
174
|
},
|
|
175
|
-
|
|
175
|
+
obsSegmentations: {
|
|
176
176
|
path: 'labels/segmentation_mask',
|
|
177
177
|
coordinateSystem: 'global',
|
|
178
178
|
},
|
|
@@ -184,6 +184,9 @@ describe('generateConfig', () => {
|
|
|
184
184
|
obsFeatureMatrix: {
|
|
185
185
|
path: 'tables/table/X',
|
|
186
186
|
},
|
|
187
|
+
obsPoints: {
|
|
188
|
+
path: 'points/transcripts',
|
|
189
|
+
},
|
|
187
190
|
obsSets: {
|
|
188
191
|
tablePath: 'tables/table',
|
|
189
192
|
obsSets: [
|