@vitessce/ome-tiff 3.2.2 → 3.3.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/{deflate-6bc21747.js → deflate-841beba0.js} +1 -1
- package/dist/{index-c89b6124.js → index-4d0eb220.js} +71 -15
- package/dist/index.js +1 -1
- package/dist/{jpeg-2e272217.js → jpeg-bb7f8aa7.js} +1 -1
- package/dist/{lerc-3cd543dc.js → lerc-f99fe246.js} +1 -1
- package/dist/{lzw-dc830cdf.js → lzw-b6566873.js} +1 -1
- package/dist/{packbits-a6204131.js → packbits-c5d240fb.js} +1 -1
- package/dist/{raw-a79aeb3f.js → raw-b4a57f02.js} +1 -1
- package/dist/{webimage-c95937a4.js → webimage-191af035.js} +1 -1
- package/package.json +8 -8
|
@@ -103472,16 +103472,16 @@ async function getDecoder(fileDirectory) {
|
|
|
103472
103472
|
const Decoder = await importFn();
|
|
103473
103473
|
return new Decoder(fileDirectory);
|
|
103474
103474
|
}
|
|
103475
|
-
addDecoder([void 0, 1], () => import("./raw-
|
|
103476
|
-
addDecoder(5, () => import("./lzw-
|
|
103475
|
+
addDecoder([void 0, 1], () => import("./raw-b4a57f02.js").then((m) => m.default));
|
|
103476
|
+
addDecoder(5, () => import("./lzw-b6566873.js").then((m) => m.default));
|
|
103477
103477
|
addDecoder(6, () => {
|
|
103478
103478
|
throw new Error("old style JPEG compression is not supported.");
|
|
103479
103479
|
});
|
|
103480
|
-
addDecoder(7, () => import("./jpeg-
|
|
103481
|
-
addDecoder([8, 32946], () => import("./deflate-
|
|
103482
|
-
addDecoder(32773, () => import("./packbits-
|
|
103483
|
-
addDecoder(34887, () => import("./lerc-
|
|
103484
|
-
addDecoder(50001, () => import("./webimage-
|
|
103480
|
+
addDecoder(7, () => import("./jpeg-bb7f8aa7.js").then((m) => m.default));
|
|
103481
|
+
addDecoder([8, 32946], () => import("./deflate-841beba0.js").then((m) => m.default));
|
|
103482
|
+
addDecoder(32773, () => import("./packbits-c5d240fb.js").then((m) => m.default));
|
|
103483
|
+
addDecoder(34887, () => import("./lerc-f99fe246.js").then((m) => m.default));
|
|
103484
|
+
addDecoder(50001, () => import("./webimage-191af035.js").then((m) => m.default));
|
|
103485
103485
|
function copyNewSize(array, width, height, samplesPerPixel = 1) {
|
|
103486
103486
|
return new (Object.getPrototypeOf(array)).constructor(width * height * samplesPerPixel);
|
|
103487
103487
|
}
|
|
@@ -125942,6 +125942,7 @@ const DataType$1 = {
|
|
|
125942
125942
|
const FileType$1 = {
|
|
125943
125943
|
// Joint file types
|
|
125944
125944
|
ANNDATA_ZARR: "anndata.zarr",
|
|
125945
|
+
SPATIALDATA_ZARR: "spatialdata.zarr",
|
|
125945
125946
|
// Atomic file types
|
|
125946
125947
|
OBS_EMBEDDING_CSV: "obsEmbedding.csv",
|
|
125947
125948
|
OBS_SPOTS_CSV: "obsSpots.csv",
|
|
@@ -125964,6 +125965,16 @@ const FileType$1 = {
|
|
|
125964
125965
|
OBS_SEGMENTATIONS_ANNDATA_ZARR: "obsSegmentations.anndata.zarr",
|
|
125965
125966
|
OBS_LABELS_ANNDATA_ZARR: "obsLabels.anndata.zarr",
|
|
125966
125967
|
FEATURE_LABELS_ANNDATA_ZARR: "featureLabels.anndata.zarr",
|
|
125968
|
+
// SpatialData
|
|
125969
|
+
IMAGE_SPATIALDATA_ZARR: "image.spatialdata.zarr",
|
|
125970
|
+
LABELS_SPATIALDATA_ZARR: "labels.spatialdata.zarr",
|
|
125971
|
+
SHAPES_SPATIALDATA_ZARR: "shapes.spatialdata.zarr",
|
|
125972
|
+
OBS_FEATURE_MATRIX_SPATIALDATA_ZARR: "obsFeatureMatrix.spatialdata.zarr",
|
|
125973
|
+
OBS_SETS_SPATIALDATA_ZARR: "obsSets.spatialdata.zarr",
|
|
125974
|
+
OBS_SPOTS_SPATIALDATA_ZARR: "obsSpots.spatialdata.zarr",
|
|
125975
|
+
// TODO:
|
|
125976
|
+
// OBS_POINTS_SPATIALDATA_ZARR: 'obsPoints.spatialdata.zarr',
|
|
125977
|
+
// OBS_LOCATIONS_SPATIALDATA_ZARR: 'obsLocations.spatialdata.zarr',
|
|
125967
125978
|
// MuData
|
|
125968
125979
|
OBS_FEATURE_MATRIX_MUDATA_ZARR: "obsFeatureMatrix.mudata.zarr",
|
|
125969
125980
|
OBS_SETS_MUDATA_ZARR: "obsSets.mudata.zarr",
|
|
@@ -126400,9 +126411,30 @@ z.object({
|
|
|
126400
126411
|
offsetsUrl: z.string().optional(),
|
|
126401
126412
|
coordinateTransformations: omeCoordinateTransformations.optional()
|
|
126402
126413
|
});
|
|
126403
|
-
z.object({
|
|
126414
|
+
const imageOmeZarrSchema = z.object({
|
|
126404
126415
|
coordinateTransformations: omeCoordinateTransformations.optional()
|
|
126405
126416
|
});
|
|
126417
|
+
imageOmeZarrSchema.extend({
|
|
126418
|
+
path: z.string()
|
|
126419
|
+
});
|
|
126420
|
+
z.object({
|
|
126421
|
+
path: z.string()
|
|
126422
|
+
});
|
|
126423
|
+
z.object({
|
|
126424
|
+
path: z.string()
|
|
126425
|
+
});
|
|
126426
|
+
z.object({
|
|
126427
|
+
path: z.string(),
|
|
126428
|
+
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.")
|
|
126429
|
+
});
|
|
126430
|
+
annDataObsFeatureMatrix.extend({
|
|
126431
|
+
region: z.string().describe("The name of a region to use to filter instances (i.e., rows) in the table").optional()
|
|
126432
|
+
});
|
|
126433
|
+
z.object({
|
|
126434
|
+
region: z.string().describe("The name of a region to use to filter instances (i.e., rows) in the table").optional(),
|
|
126435
|
+
tablePath: z.string().optional().describe("The path to a table which contains the index for the set values."),
|
|
126436
|
+
obsSets: annDataObsSets
|
|
126437
|
+
});
|
|
126406
126438
|
z.object({
|
|
126407
126439
|
obsIndex: z.string(),
|
|
126408
126440
|
obsEmbedding: z.array(z.string()).length(2)
|
|
@@ -132960,9 +132992,9 @@ const schemePlasma = [[13, 8, 135], [16, 7, 136], [19, 7, 137], [22, 7, 138], [2
|
|
|
132960
132992
|
function rgbSpline(spline) {
|
|
132961
132993
|
return (colors) => {
|
|
132962
132994
|
const n3 = colors.length;
|
|
132963
|
-
|
|
132964
|
-
|
|
132965
|
-
|
|
132995
|
+
const r2 = new Array(n3);
|
|
132996
|
+
const g2 = new Array(n3);
|
|
132997
|
+
const b = new Array(n3);
|
|
132966
132998
|
let i2;
|
|
132967
132999
|
let color;
|
|
132968
133000
|
for (i2 = 0; i2 < n3; ++i2) {
|
|
@@ -132971,10 +133003,10 @@ function rgbSpline(spline) {
|
|
|
132971
133003
|
g2[i2] = color[1] || 0;
|
|
132972
133004
|
b[i2] = color[2] || 0;
|
|
132973
133005
|
}
|
|
132974
|
-
|
|
132975
|
-
|
|
132976
|
-
|
|
132977
|
-
return (t2) => [
|
|
133006
|
+
const rFunc = spline(r2);
|
|
133007
|
+
const gFunc = spline(g2);
|
|
133008
|
+
const bFunc = spline(b);
|
|
133009
|
+
return (t2) => [rFunc(t2), gFunc(t2), bFunc(t2)];
|
|
132978
133010
|
};
|
|
132979
133011
|
}
|
|
132980
133012
|
function basis(values2) {
|
|
@@ -149086,6 +149118,13 @@ class ImageWrapper {
|
|
|
149086
149118
|
const { omero: { channels: channels2 } } = this.vivLoader.metadata;
|
|
149087
149119
|
return channels2.length;
|
|
149088
149120
|
}
|
|
149121
|
+
if ("channels_metadata" in this.vivLoader.metadata) {
|
|
149122
|
+
const { channels_metadata: channelsMetadata } = this.vivLoader.metadata;
|
|
149123
|
+
return (channelsMetadata == null ? void 0 : channelsMetadata.channels.length) || 0;
|
|
149124
|
+
}
|
|
149125
|
+
if ("image-label" in this.vivLoader.metadata) {
|
|
149126
|
+
return 1;
|
|
149127
|
+
}
|
|
149089
149128
|
return 0;
|
|
149090
149129
|
}
|
|
149091
149130
|
getChannelNames() {
|
|
@@ -149097,6 +149136,12 @@ class ImageWrapper {
|
|
|
149097
149136
|
const { omero: { channels: channels2 } } = this.vivLoader.metadata;
|
|
149098
149137
|
return channels2.map((channel, i2) => channel.label || `Channel ${i2}`);
|
|
149099
149138
|
}
|
|
149139
|
+
if ("channels_metadata" in this.vivLoader.metadata) {
|
|
149140
|
+
const { channels_metadata: channelsMetadata } = this.vivLoader.metadata;
|
|
149141
|
+
if (channelsMetadata && Array.isArray(channelsMetadata == null ? void 0 : channelsMetadata.channels)) {
|
|
149142
|
+
return channelsMetadata.channels.map((channel) => `Channel ${channel.label}`);
|
|
149143
|
+
}
|
|
149144
|
+
}
|
|
149100
149145
|
return [];
|
|
149101
149146
|
}
|
|
149102
149147
|
getChannelObjects() {
|
|
@@ -149118,6 +149163,17 @@ class ImageWrapper {
|
|
|
149118
149163
|
autoDefaultColor: VIEWER_PALETTE[i2 % VIEWER_PALETTE.length]
|
|
149119
149164
|
}));
|
|
149120
149165
|
}
|
|
149166
|
+
if ("channels_metadata" in this.vivLoader.metadata) {
|
|
149167
|
+
const { channels_metadata: channelsMetadata } = this.vivLoader.metadata;
|
|
149168
|
+
if (channelsMetadata && Array.isArray(channelsMetadata == null ? void 0 : channelsMetadata.channels)) {
|
|
149169
|
+
return channelsMetadata.channels.map((channel, i2) => ({
|
|
149170
|
+
name: `Channel ${channel.label}`,
|
|
149171
|
+
defaultColor: void 0,
|
|
149172
|
+
defaultWindow: void 0,
|
|
149173
|
+
autoDefaultColor: VIEWER_PALETTE[i2 % VIEWER_PALETTE.length]
|
|
149174
|
+
}));
|
|
149175
|
+
}
|
|
149176
|
+
}
|
|
149121
149177
|
return [];
|
|
149122
149178
|
}
|
|
149123
149179
|
getDtype() {
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as inflate_1 } from "./pako.esm-68f84e2a.js";
|
|
2
|
-
import { g as getDefaultExportFromCjs, B as BaseDecoder, L as LercParameters, a as LercAddCompression } from "./index-
|
|
2
|
+
import { g as getDefaultExportFromCjs, B as BaseDecoder, L as LercParameters, a as LercAddCompression } from "./index-4d0eb220.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "@vitessce/vit-s";
|
|
5
5
|
var LercDecode = { exports: {} };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/ome-tiff",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0",
|
|
4
4
|
"author": "Gehlenborg Lab",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
"ajv": "^6.10.0",
|
|
20
20
|
"d3-array": "^2.4.0",
|
|
21
21
|
"lodash-es": "^4.17.21",
|
|
22
|
-
"@vitessce/constants-internal": "3.
|
|
23
|
-
"@vitessce/gl": "3.
|
|
24
|
-
"@vitessce/sets-utils": "3.
|
|
25
|
-
"@vitessce/spatial-utils": "3.
|
|
26
|
-
"@vitessce/image-utils": "3.
|
|
27
|
-
"@vitessce/utils": "3.
|
|
28
|
-
"@vitessce/vit-s": "3.
|
|
22
|
+
"@vitessce/constants-internal": "3.3.0",
|
|
23
|
+
"@vitessce/gl": "3.3.0",
|
|
24
|
+
"@vitessce/sets-utils": "3.3.0",
|
|
25
|
+
"@vitessce/spatial-utils": "3.3.0",
|
|
26
|
+
"@vitessce/image-utils": "3.3.0",
|
|
27
|
+
"@vitessce/utils": "3.3.0",
|
|
28
|
+
"@vitessce/vit-s": "3.3.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"ajv": "^6.10.0"
|