@vitessce/statistical-plots 3.3.2 → 3.3.3
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 +34 -5
- package/package.json +6 -6
package/dist/index.js
CHANGED
@@ -967,7 +967,9 @@ const FileType$1 = {
|
|
967
967
|
OBS_SEGMENTATIONS_JSON: "obsSegmentations.json",
|
968
968
|
OBS_SETS_CSV: "obsSets.csv",
|
969
969
|
OBS_SETS_JSON: "obsSets.json",
|
970
|
+
// OME-Zarr
|
970
971
|
IMAGE_OME_ZARR: "image.ome-zarr",
|
972
|
+
OBS_SEGMENTATIONS_OME_ZARR: "obsSegmentations.ome-zarr",
|
971
973
|
// AnnData
|
972
974
|
OBS_FEATURE_MATRIX_ANNDATA_ZARR: "obsFeatureMatrix.anndata.zarr",
|
973
975
|
OBS_SETS_ANNDATA_ZARR: "obsSets.anndata.zarr",
|
@@ -1451,7 +1453,9 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
1451
1453
|
CoordinationType$1.SPATIAL_SEGMENTATION_FILLED,
|
1452
1454
|
CoordinationType$1.SPATIAL_SEGMENTATION_STROKE_WIDTH,
|
1453
1455
|
CoordinationType$1.IMAGE_CHANNEL,
|
1456
|
+
CoordinationType$1.IMAGE_LAYER,
|
1454
1457
|
CoordinationType$1.SEGMENTATION_CHANNEL,
|
1458
|
+
CoordinationType$1.SEGMENTATION_LAYER,
|
1455
1459
|
CoordinationType$1.SPATIAL_CHANNEL_VISIBLE,
|
1456
1460
|
CoordinationType$1.SPATIAL_CHANNEL_OPACITY,
|
1457
1461
|
CoordinationType$1.SPATIAL_CHANNEL_WINDOW,
|
@@ -1469,6 +1473,9 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
1469
1473
|
CoordinationType$1.SPATIAL_SPOT_STROKE_WIDTH,
|
1470
1474
|
CoordinationType$1.SPATIAL_LAYER_COLOR,
|
1471
1475
|
CoordinationType$1.OBS_COLOR_ENCODING,
|
1476
|
+
CoordinationType$1.FEATURE_VALUE_COLORMAP,
|
1477
|
+
CoordinationType$1.FEATURE_VALUE_COLORMAP_RANGE,
|
1478
|
+
CoordinationType$1.FEATURE_SELECTION,
|
1472
1479
|
CoordinationType$1.TOOLTIPS_VISIBLE,
|
1473
1480
|
CoordinationType$1.TOOLTIP_CROSSHAIRS_VISIBLE,
|
1474
1481
|
CoordinationType$1.LEGEND_VISIBLE,
|
@@ -10660,30 +10667,39 @@ const omeCoordinateTransformations = z.array(z.union([
|
|
10660
10667
|
scale: z.array(z.number())
|
10661
10668
|
})
|
10662
10669
|
]));
|
10663
|
-
z.object({
|
10670
|
+
const imageOmeTiffSchema = z.object({
|
10664
10671
|
offsetsUrl: z.string().optional(),
|
10665
10672
|
coordinateTransformations: omeCoordinateTransformations.optional()
|
10666
10673
|
});
|
10674
|
+
imageOmeTiffSchema.extend({
|
10675
|
+
obsTypesFromChannelNames: z.boolean().optional()
|
10676
|
+
});
|
10667
10677
|
const imageOmeZarrSchema = z.object({
|
10668
10678
|
coordinateTransformations: omeCoordinateTransformations.optional()
|
10669
10679
|
});
|
10670
10680
|
imageOmeZarrSchema.extend({
|
10681
|
+
obsTypesFromChannelNames: z.boolean().optional()
|
10682
|
+
});
|
10683
|
+
const imageSpatialdataSchema = imageOmeZarrSchema.extend({
|
10671
10684
|
path: z.string()
|
10672
10685
|
});
|
10673
|
-
z.object({
|
10686
|
+
const obsSegmentationsSpatialdataSchema = z.object({
|
10687
|
+
// TODO: should this also extend the imageOmeZarrSchema?
|
10688
|
+
// TODO: should this be renamed labelsSpatialdataSchema?
|
10689
|
+
// TODO: support obsTypesFromChannelNames?
|
10674
10690
|
path: z.string()
|
10675
10691
|
});
|
10676
10692
|
z.object({
|
10677
10693
|
path: z.string()
|
10678
10694
|
});
|
10679
|
-
z.object({
|
10695
|
+
const obsSpotsSpatialdataSchema = z.object({
|
10680
10696
|
path: z.string(),
|
10681
10697
|
tablePath: z.string().optional().describe("The path to a table which annotates the spots. If available but not specified, the spot identifiers may not be aligned with associated tabular data as expected.")
|
10682
10698
|
});
|
10683
|
-
annDataObsFeatureMatrix.extend({
|
10699
|
+
const obsFeatureMatrixSpatialdataSchema = annDataObsFeatureMatrix.extend({
|
10684
10700
|
region: z.string().describe("The name of a region to use to filter instances (i.e., rows) in the table").optional()
|
10685
10701
|
});
|
10686
|
-
z.object({
|
10702
|
+
const obsSetsSpatialdataSchema = z.object({
|
10687
10703
|
region: z.string().describe("The name of a region to use to filter instances (i.e., rows) in the table").optional(),
|
10688
10704
|
tablePath: z.string().optional().describe("The path to a table which contains the index for the set values."),
|
10689
10705
|
obsSets: annDataObsSets
|
@@ -10746,6 +10762,19 @@ z.object({
|
|
10746
10762
|
z.array(annDataConvenienceObsEmbeddingItem)
|
10747
10763
|
])
|
10748
10764
|
}).partial();
|
10765
|
+
z.object({
|
10766
|
+
// TODO: should `image` be a special schema
|
10767
|
+
// to allow specifying fileUid (like for embeddingType)?
|
10768
|
+
image: imageSpatialdataSchema,
|
10769
|
+
// TODO: should this be a special schema
|
10770
|
+
// to allow specifying fileUid (like for embeddingType)?
|
10771
|
+
labels: obsSegmentationsSpatialdataSchema,
|
10772
|
+
obsFeatureMatrix: obsFeatureMatrixSpatialdataSchema,
|
10773
|
+
obsSpots: obsSpotsSpatialdataSchema,
|
10774
|
+
// TODO: obsPoints
|
10775
|
+
// TODO: obsLocations
|
10776
|
+
obsSets: obsSetsSpatialdataSchema
|
10777
|
+
}).partial();
|
10749
10778
|
z.object({
|
10750
10779
|
obsLabelsTypes: z.array(z.string()).optional(),
|
10751
10780
|
embeddingTypes: z.array(z.string()).optional()
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vitessce/statistical-plots",
|
3
|
-
"version": "3.3.
|
3
|
+
"version": "3.3.3",
|
4
4
|
"author": "Gehlenborg Lab",
|
5
5
|
"homepage": "http://vitessce.io",
|
6
6
|
"repository": {
|
@@ -20,11 +20,11 @@
|
|
20
20
|
"d3-array": "^2.4.0",
|
21
21
|
"lodash-es": "^4.17.21",
|
22
22
|
"react-aria": "^3.28.0",
|
23
|
-
"@vitessce/constants-internal": "3.3.
|
24
|
-
"@vitessce/
|
25
|
-
"@vitessce/utils": "3.3.
|
26
|
-
"@vitessce/
|
27
|
-
"@vitessce/
|
23
|
+
"@vitessce/constants-internal": "3.3.3",
|
24
|
+
"@vitessce/sets-utils": "3.3.3",
|
25
|
+
"@vitessce/utils": "3.3.3",
|
26
|
+
"@vitessce/vega": "3.3.3",
|
27
|
+
"@vitessce/vit-s": "3.3.3"
|
28
28
|
},
|
29
29
|
"devDependencies": {
|
30
30
|
"react": "^18.0.0",
|