@vitessce/csv 3.2.2 → 3.3.1
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 +40 -8
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -2601,9 +2601,9 @@ const schemePlasma = [[13, 8, 135], [16, 7, 136], [19, 7, 137], [22, 7, 138], [2
|
|
|
2601
2601
|
function rgbSpline(spline) {
|
|
2602
2602
|
return (colors) => {
|
|
2603
2603
|
const n = colors.length;
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2604
|
+
const r = new Array(n);
|
|
2605
|
+
const g = new Array(n);
|
|
2606
|
+
const b = new Array(n);
|
|
2607
2607
|
let i;
|
|
2608
2608
|
let color;
|
|
2609
2609
|
for (i = 0; i < n; ++i) {
|
|
@@ -2612,10 +2612,10 @@ function rgbSpline(spline) {
|
|
|
2612
2612
|
g[i] = color[1] || 0;
|
|
2613
2613
|
b[i] = color[2] || 0;
|
|
2614
2614
|
}
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
return (t2) => [
|
|
2615
|
+
const rFunc = spline(r);
|
|
2616
|
+
const gFunc = spline(g);
|
|
2617
|
+
const bFunc = spline(b);
|
|
2618
|
+
return (t2) => [rFunc(t2), gFunc(t2), bFunc(t2)];
|
|
2619
2619
|
};
|
|
2620
2620
|
}
|
|
2621
2621
|
function basis(values) {
|
|
@@ -9197,6 +9197,7 @@ const DataType$1 = {
|
|
|
9197
9197
|
const FileType$1 = {
|
|
9198
9198
|
// Joint file types
|
|
9199
9199
|
ANNDATA_ZARR: "anndata.zarr",
|
|
9200
|
+
SPATIALDATA_ZARR: "spatialdata.zarr",
|
|
9200
9201
|
// Atomic file types
|
|
9201
9202
|
OBS_EMBEDDING_CSV: "obsEmbedding.csv",
|
|
9202
9203
|
OBS_SPOTS_CSV: "obsSpots.csv",
|
|
@@ -9219,6 +9220,16 @@ const FileType$1 = {
|
|
|
9219
9220
|
OBS_SEGMENTATIONS_ANNDATA_ZARR: "obsSegmentations.anndata.zarr",
|
|
9220
9221
|
OBS_LABELS_ANNDATA_ZARR: "obsLabels.anndata.zarr",
|
|
9221
9222
|
FEATURE_LABELS_ANNDATA_ZARR: "featureLabels.anndata.zarr",
|
|
9223
|
+
// SpatialData
|
|
9224
|
+
IMAGE_SPATIALDATA_ZARR: "image.spatialdata.zarr",
|
|
9225
|
+
LABELS_SPATIALDATA_ZARR: "labels.spatialdata.zarr",
|
|
9226
|
+
SHAPES_SPATIALDATA_ZARR: "shapes.spatialdata.zarr",
|
|
9227
|
+
OBS_FEATURE_MATRIX_SPATIALDATA_ZARR: "obsFeatureMatrix.spatialdata.zarr",
|
|
9228
|
+
OBS_SETS_SPATIALDATA_ZARR: "obsSets.spatialdata.zarr",
|
|
9229
|
+
OBS_SPOTS_SPATIALDATA_ZARR: "obsSpots.spatialdata.zarr",
|
|
9230
|
+
// TODO:
|
|
9231
|
+
// OBS_POINTS_SPATIALDATA_ZARR: 'obsPoints.spatialdata.zarr',
|
|
9232
|
+
// OBS_LOCATIONS_SPATIALDATA_ZARR: 'obsLocations.spatialdata.zarr',
|
|
9222
9233
|
// MuData
|
|
9223
9234
|
OBS_FEATURE_MATRIX_MUDATA_ZARR: "obsFeatureMatrix.mudata.zarr",
|
|
9224
9235
|
OBS_SETS_MUDATA_ZARR: "obsSets.mudata.zarr",
|
|
@@ -9655,9 +9666,30 @@ z.object({
|
|
|
9655
9666
|
offsetsUrl: z.string().optional(),
|
|
9656
9667
|
coordinateTransformations: omeCoordinateTransformations.optional()
|
|
9657
9668
|
});
|
|
9658
|
-
z.object({
|
|
9669
|
+
const imageOmeZarrSchema = z.object({
|
|
9659
9670
|
coordinateTransformations: omeCoordinateTransformations.optional()
|
|
9660
9671
|
});
|
|
9672
|
+
imageOmeZarrSchema.extend({
|
|
9673
|
+
path: z.string()
|
|
9674
|
+
});
|
|
9675
|
+
z.object({
|
|
9676
|
+
path: z.string()
|
|
9677
|
+
});
|
|
9678
|
+
z.object({
|
|
9679
|
+
path: z.string()
|
|
9680
|
+
});
|
|
9681
|
+
z.object({
|
|
9682
|
+
path: z.string(),
|
|
9683
|
+
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.")
|
|
9684
|
+
});
|
|
9685
|
+
annDataObsFeatureMatrix.extend({
|
|
9686
|
+
region: z.string().describe("The name of a region to use to filter instances (i.e., rows) in the table").optional()
|
|
9687
|
+
});
|
|
9688
|
+
z.object({
|
|
9689
|
+
region: z.string().describe("The name of a region to use to filter instances (i.e., rows) in the table").optional(),
|
|
9690
|
+
tablePath: z.string().optional().describe("The path to a table which contains the index for the set values."),
|
|
9691
|
+
obsSets: annDataObsSets
|
|
9692
|
+
});
|
|
9661
9693
|
z.object({
|
|
9662
9694
|
obsIndex: z.string(),
|
|
9663
9695
|
obsEmbedding: z.array(z.string()).length(2)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/csv",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.1",
|
|
4
4
|
"author": "Gehlenborg Lab",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"d3-array": "^2.4.0",
|
|
20
20
|
"d3-dsv": "^1.1.1",
|
|
21
|
-
"@vitessce/constants-internal": "3.
|
|
22
|
-
"@vitessce/
|
|
23
|
-
"@vitessce/
|
|
21
|
+
"@vitessce/constants-internal": "3.3.1",
|
|
22
|
+
"@vitessce/vit-s": "3.3.1",
|
|
23
|
+
"@vitessce/sets-utils": "3.3.1"
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|
|
26
26
|
"bundle": "pnpm exec vite build -c ../../../scripts/vite.config.js",
|