@vitessce/neuroglancer 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,5 +1,5 @@
|
|
|
1
1
|
import React__default from "react";
|
|
2
|
-
import { g as getDefaultExportFromCjs, c as commonjsGlobal, a as getAugmentedNamespace, r as requirePropTypes } from "./index-
|
|
2
|
+
import { g as getDefaultExportFromCjs, c as commonjsGlobal, a as getAugmentedNamespace, r as requirePropTypes } from "./index-CsYnzxxk.js";
|
|
3
3
|
var lib = {};
|
|
4
4
|
var es6_object_assign = {};
|
|
5
5
|
var _global = { exports: {} };
|
|
@@ -136,9 +136,7 @@ const FileType$1 = {
|
|
|
136
136
|
OBS_SETS_SPATIALDATA_ZARR: "obsSets.spatialdata.zarr",
|
|
137
137
|
OBS_SPOTS_SPATIALDATA_ZARR: "obsSpots.spatialdata.zarr",
|
|
138
138
|
FEATURE_LABELS_SPATIALDATA_ZARR: "featureLabels.spatialdata.zarr",
|
|
139
|
-
|
|
140
|
-
// OBS_POINTS_SPATIALDATA_ZARR: 'obsPoints.spatialdata.zarr',
|
|
141
|
-
// OBS_LOCATIONS_SPATIALDATA_ZARR: 'obsLocations.spatialdata.zarr',
|
|
139
|
+
OBS_POINTS_SPATIALDATA_ZARR: "obsPoints.spatialdata.zarr",
|
|
142
140
|
// SpatialData - zipped
|
|
143
141
|
IMAGE_SPATIALDATA_ZARR_ZIP: "image.spatialdata.zarr.zip",
|
|
144
142
|
LABELS_SPATIALDATA_ZARR_ZIP: "labels.spatialdata.zarr.zip",
|
|
@@ -147,6 +145,7 @@ const FileType$1 = {
|
|
|
147
145
|
OBS_SETS_SPATIALDATA_ZARR_ZIP: "obsSets.spatialdata.zarr.zip",
|
|
148
146
|
OBS_SPOTS_SPATIALDATA_ZARR_ZIP: "obsSpots.spatialdata.zarr.zip",
|
|
149
147
|
FEATURE_LABELS_SPATIALDATA_ZARR_ZIP: "featureLabels.spatialdata.zarr.zip",
|
|
148
|
+
OBS_POINTS_SPATIALDATA_ZARR_ZIP: "obsPoints.spatialdata.zarr.zip",
|
|
150
149
|
// MuData
|
|
151
150
|
OBS_FEATURE_MATRIX_MUDATA_ZARR: "obsFeatureMatrix.mudata.zarr",
|
|
152
151
|
OBS_SETS_MUDATA_ZARR: "obsSets.mudata.zarr",
|
|
@@ -396,6 +395,7 @@ const ViewHelpMapping = {
|
|
|
396
395
|
[FileType$1.OBS_FEATURE_MATRIX_SPATIALDATA_ZARR]: DataType$1.OBS_FEATURE_MATRIX,
|
|
397
396
|
[FileType$1.OBS_SETS_SPATIALDATA_ZARR]: DataType$1.OBS_SETS,
|
|
398
397
|
[FileType$1.FEATURE_LABELS_SPATIALDATA_ZARR]: DataType$1.FEATURE_LABELS,
|
|
398
|
+
[FileType$1.OBS_POINTS_SPATIALDATA_ZARR]: DataType$1.OBS_POINTS,
|
|
399
399
|
// For new file types to support old file types
|
|
400
400
|
[FileType$1.OBS_EMBEDDING_CELLS_JSON]: DataType$1.OBS_EMBEDDING,
|
|
401
401
|
[FileType$1.OBS_LOCATIONS_CELLS_JSON]: DataType$1.OBS_LOCATIONS,
|
|
@@ -569,6 +569,9 @@ const ViewHelpMapping = {
|
|
|
569
569
|
},
|
|
570
570
|
[FileType$1.FEATURE_LABELS_SPATIALDATA_ZARR]: {
|
|
571
571
|
zip: FileType$1.FEATURE_LABELS_SPATIALDATA_ZARR_ZIP
|
|
572
|
+
},
|
|
573
|
+
[FileType$1.OBS_POINTS_SPATIALDATA_ZARR]: {
|
|
574
|
+
zip: FileType$1.OBS_POINTS_SPATIALDATA_ZARR_ZIP
|
|
572
575
|
}
|
|
573
576
|
});
|
|
574
577
|
[
|
|
@@ -7808,6 +7811,9 @@ const configSchema1_0_16 = configSchema1_0_13.extend({
|
|
|
7808
7811
|
const configSchema1_0_17 = configSchema1_0_16.extend({
|
|
7809
7812
|
version: z.literal("1.0.17")
|
|
7810
7813
|
});
|
|
7814
|
+
const configSchema1_0_18 = configSchema1_0_17.extend({
|
|
7815
|
+
version: z.literal("1.0.18")
|
|
7816
|
+
});
|
|
7811
7817
|
configSchema1_0_0.shape.coordinationSpace.unwrap();
|
|
7812
7818
|
configSchema1_0_0.shape.layout.element.shape.coordinationScopes.unwrap();
|
|
7813
7819
|
function upgradeReplaceViewProp(prefix2, view, coordinationSpace) {
|
|
@@ -8315,7 +8321,54 @@ function upgradeFrom1_0_16(config) {
|
|
|
8315
8321
|
version: "1.0.17"
|
|
8316
8322
|
};
|
|
8317
8323
|
}
|
|
8318
|
-
|
|
8324
|
+
function upgradeFrom1_0_17(config) {
|
|
8325
|
+
const newConfig = cloneDeep(config);
|
|
8326
|
+
const { datasets } = newConfig;
|
|
8327
|
+
const newDatasets = datasets.map((datasetDef) => {
|
|
8328
|
+
const { files } = datasetDef;
|
|
8329
|
+
const newFiles = files.map((fileDef) => {
|
|
8330
|
+
const { fileType, options } = fileDef;
|
|
8331
|
+
if (fileType === "spatialdata.zarr" || fileType === "spatialdata.zarr.zip") {
|
|
8332
|
+
if (options.labels && options.shapes) {
|
|
8333
|
+
throw new Error("Cannot upgrade both labels and shapes at the same time. For now, a workaround is to include two separate spatialdata.zarr file definitions, one for labels and one for shapes.");
|
|
8334
|
+
}
|
|
8335
|
+
if (options.labels) {
|
|
8336
|
+
const newOptions = {
|
|
8337
|
+
...options,
|
|
8338
|
+
obsSegmentations: options.labels
|
|
8339
|
+
};
|
|
8340
|
+
delete newOptions.labels;
|
|
8341
|
+
return {
|
|
8342
|
+
...fileDef,
|
|
8343
|
+
options: newOptions
|
|
8344
|
+
};
|
|
8345
|
+
}
|
|
8346
|
+
if (options.shapes) {
|
|
8347
|
+
const newOptions = {
|
|
8348
|
+
...options,
|
|
8349
|
+
obsSegmentations: options.shapes
|
|
8350
|
+
};
|
|
8351
|
+
delete newOptions.shapes;
|
|
8352
|
+
return {
|
|
8353
|
+
...fileDef,
|
|
8354
|
+
options: newOptions
|
|
8355
|
+
};
|
|
8356
|
+
}
|
|
8357
|
+
}
|
|
8358
|
+
return fileDef;
|
|
8359
|
+
});
|
|
8360
|
+
return {
|
|
8361
|
+
...datasetDef,
|
|
8362
|
+
files: newFiles
|
|
8363
|
+
};
|
|
8364
|
+
});
|
|
8365
|
+
return {
|
|
8366
|
+
...newConfig,
|
|
8367
|
+
datasets: newDatasets,
|
|
8368
|
+
version: "1.0.18"
|
|
8369
|
+
};
|
|
8370
|
+
}
|
|
8371
|
+
const latestConfigSchema = configSchema1_0_18;
|
|
8319
8372
|
const SCHEMA_HANDLERS = [
|
|
8320
8373
|
[configSchema0_1_0, upgradeFrom0_1_0],
|
|
8321
8374
|
[configSchema1_0_0, upgradeFrom1_0_0],
|
|
@@ -8334,7 +8387,8 @@ const SCHEMA_HANDLERS = [
|
|
|
8334
8387
|
[configSchema1_0_13, upgradeFrom1_0_13],
|
|
8335
8388
|
[configSchema1_0_14, upgradeFrom1_0_14],
|
|
8336
8389
|
[configSchema1_0_15, upgradeFrom1_0_15],
|
|
8337
|
-
[configSchema1_0_16, upgradeFrom1_0_16]
|
|
8390
|
+
[configSchema1_0_16, upgradeFrom1_0_16],
|
|
8391
|
+
[configSchema1_0_17, upgradeFrom1_0_17]
|
|
8338
8392
|
];
|
|
8339
8393
|
var re = { exports: {} };
|
|
8340
8394
|
var constants;
|
|
@@ -10577,10 +10631,14 @@ const imageSpatialdataSchema = z.object({
|
|
|
10577
10631
|
coordinateSystem: z.string().optional().describe('The name of a coordinate transformation output used to transform the image. If not provided, the "global" coordinate system is assumed.')
|
|
10578
10632
|
});
|
|
10579
10633
|
const obsSegmentationsSpatialdataSchema = z.object({
|
|
10580
|
-
// TODO:
|
|
10581
|
-
|
|
10582
|
-
|
|
10583
|
-
|
|
10634
|
+
// TODO: support obsTypesFromElementNames?
|
|
10635
|
+
path: z.string().describe("The path to the segmentation data, stored in either shapes/ or labels/."),
|
|
10636
|
+
tablePath: z.string().optional().describe("The path to a table which annotates the labels or shapes. If available but not specified, the spot identifiers may not be aligned with associated tabular data as expected."),
|
|
10637
|
+
coordinateSystem: z.string().optional().describe('The name of a coordinate transformation output used to transform the image. If not provided, the "global" coordinate system is assumed.')
|
|
10638
|
+
});
|
|
10639
|
+
const obsPointsSpatialdataSchema = z.object({
|
|
10640
|
+
path: z.string().describe("The path to the point data."),
|
|
10641
|
+
tablePath: z.string().optional().describe("The path to a table which annotates the points. If available but not specified, the spot identifiers may not be aligned with associated tabular data as expected."),
|
|
10584
10642
|
coordinateSystem: z.string().optional().describe('The name of a coordinate transformation output used to transform the image. If not provided, the "global" coordinate system is assumed.')
|
|
10585
10643
|
});
|
|
10586
10644
|
z.object({
|
|
@@ -10700,13 +10758,10 @@ z.object({
|
|
|
10700
10758
|
image: imageSpatialdataSchema,
|
|
10701
10759
|
// TODO: should this be a special schema
|
|
10702
10760
|
// to allow specifying fileUid (like for embeddingType)?
|
|
10703
|
-
// TODO: allow multiple labels?
|
|
10704
|
-
|
|
10761
|
+
// TODO: allow multiple labels/shapes?
|
|
10762
|
+
obsSegmentations: obsSegmentationsSpatialdataSchema,
|
|
10763
|
+
obsPoints: obsPointsSpatialdataSchema,
|
|
10705
10764
|
// TODO: allow multiple shapes?
|
|
10706
|
-
// TODO: unify labels and shapes to obsSegmentations,
|
|
10707
|
-
// then distinguish in expand function based on
|
|
10708
|
-
// "labels/*" vs. "shapes/*" in path?
|
|
10709
|
-
shapes: obsSegmentationsSpatialdataSchema,
|
|
10710
10765
|
obsFeatureMatrix: obsFeatureMatrixSpatialdataSchema,
|
|
10711
10766
|
obsSpots: obsSpotsSpatialdataSchema,
|
|
10712
10767
|
// TODO: obsPoints
|
|
@@ -28356,7 +28411,7 @@ function NeuroglancerGlobalStyles(props) {
|
|
|
28356
28411
|
}
|
|
28357
28412
|
));
|
|
28358
28413
|
}
|
|
28359
|
-
const LazyReactNeuroglancer = React__default.lazy(() => import("./ReactNeuroglancer-
|
|
28414
|
+
const LazyReactNeuroglancer = React__default.lazy(() => import("./ReactNeuroglancer-D-McqGds.js"));
|
|
28360
28415
|
function createWorker() {
|
|
28361
28416
|
return new WorkerFactory();
|
|
28362
28417
|
}
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/neuroglancer",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.8",
|
|
4
4
|
"author": "Gehlenborg Lab",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
"@janelia-flyem/react-neuroglancer": "2.5.0",
|
|
20
20
|
"@janelia-flyem/neuroglancer": "2.37.5",
|
|
21
21
|
"lodash-es": "^4.17.21",
|
|
22
|
-
"@vitessce/neuroglancer-workers": "3.6.
|
|
23
|
-
"@vitessce/styles": "3.6.
|
|
24
|
-
"@vitessce/constants-internal": "3.6.
|
|
25
|
-
"@vitessce/vit-s": "3.6.
|
|
26
|
-
"@vitessce/sets-utils": "3.6.
|
|
27
|
-
"@vitessce/utils": "3.6.
|
|
28
|
-
"@vitessce/tooltip": "3.6.
|
|
22
|
+
"@vitessce/neuroglancer-workers": "3.6.8",
|
|
23
|
+
"@vitessce/styles": "3.6.8",
|
|
24
|
+
"@vitessce/constants-internal": "3.6.8",
|
|
25
|
+
"@vitessce/vit-s": "3.6.8",
|
|
26
|
+
"@vitessce/sets-utils": "3.6.8",
|
|
27
|
+
"@vitessce/utils": "3.6.8",
|
|
28
|
+
"@vitessce/tooltip": "3.6.8"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@testing-library/jest-dom": "^6.6.3",
|