@vitessce/all 3.3.10 → 3.3.12
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-7c420d06.js → deflate-a6707a9d.js} +1 -1
- package/dist/{hglib-abd4a9d9.js → hglib-9dacf5bc.js} +1 -1
- package/dist/{index-b2bb1d08.js → index-ac567918.js} +64 -26
- package/dist/index.js +1 -1
- package/dist/{jpeg-7e1ceac4.js → jpeg-94fc740e.js} +1 -1
- package/dist/{lerc-54fe9485.js → lerc-1fa73516.js} +1 -1
- package/dist/{lzw-67b71961.js → lzw-fbdbcd71.js} +1 -1
- package/dist/{packbits-d95ea21b.js → packbits-440a0758.js} +1 -1
- package/dist/{raw-221c7288.js → raw-306e279c.js} +1 -1
- package/dist/{webimage-e90de519.js → webimage-6f012708.js} +1 -1
- package/package.json +22 -22
@@ -1,6 +1,6 @@
|
|
1
1
|
import React__default from "react";
|
2
2
|
import ReactDOM__default from "react-dom";
|
3
|
-
import { c as commonjsGlobal, o as objectAssign, g as getDefaultExportFromCjs, e as earcut, b as getAugmentedNamespace } from "./index-
|
3
|
+
import { c as commonjsGlobal, o as objectAssign, g as getDefaultExportFromCjs, e as earcut, b as getAugmentedNamespace } from "./index-ac567918.js";
|
4
4
|
function _mergeNamespaces(n, m) {
|
5
5
|
for (var i = 0; i < m.length; i++) {
|
6
6
|
const e = m[i];
|
@@ -122362,13 +122362,13 @@ var gOPD = Object.getOwnPropertyDescriptor;
|
|
122362
122362
|
var defineProperty$1 = Object.defineProperty;
|
122363
122363
|
var TypeErr = TypeError;
|
122364
122364
|
var getProto$1 = Object.getPrototypeOf;
|
122365
|
-
var regex$
|
122365
|
+
var regex$2 = /a/;
|
122366
122366
|
var shim$2 = function shimFlags() {
|
122367
122367
|
if (!supportsDescriptors || !getProto$1) {
|
122368
122368
|
throw new TypeErr("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");
|
122369
122369
|
}
|
122370
122370
|
var polyfill2 = getPolyfill$1();
|
122371
|
-
var proto = getProto$1(regex$
|
122371
|
+
var proto = getProto$1(regex$2);
|
122372
122372
|
var descriptor2 = gOPD(proto, "flags");
|
122373
122373
|
if (!descriptor2 || descriptor2.get !== polyfill2) {
|
122374
122374
|
defineProperty$1(proto, "flags", {
|
@@ -156406,16 +156406,16 @@ async function getDecoder(fileDirectory) {
|
|
156406
156406
|
const Decoder = await importFn();
|
156407
156407
|
return new Decoder(fileDirectory);
|
156408
156408
|
}
|
156409
|
-
addDecoder([void 0, 1], () => import("./raw-
|
156410
|
-
addDecoder(5, () => import("./lzw-
|
156409
|
+
addDecoder([void 0, 1], () => import("./raw-306e279c.js").then((m2) => m2.default));
|
156410
|
+
addDecoder(5, () => import("./lzw-fbdbcd71.js").then((m2) => m2.default));
|
156411
156411
|
addDecoder(6, () => {
|
156412
156412
|
throw new Error("old style JPEG compression is not supported.");
|
156413
156413
|
});
|
156414
|
-
addDecoder(7, () => import("./jpeg-
|
156415
|
-
addDecoder([8, 32946], () => import("./deflate-
|
156416
|
-
addDecoder(32773, () => import("./packbits-
|
156417
|
-
addDecoder(34887, () => import("./lerc-
|
156418
|
-
addDecoder(50001, () => import("./webimage-
|
156414
|
+
addDecoder(7, () => import("./jpeg-94fc740e.js").then((m2) => m2.default));
|
156415
|
+
addDecoder([8, 32946], () => import("./deflate-a6707a9d.js").then((m2) => m2.default));
|
156416
|
+
addDecoder(32773, () => import("./packbits-440a0758.js").then((m2) => m2.default));
|
156417
|
+
addDecoder(34887, () => import("./lerc-1fa73516.js").then((m2) => m2.default));
|
156418
|
+
addDecoder(50001, () => import("./webimage-6f012708.js").then((m2) => m2.default));
|
156419
156419
|
function copyNewSize(array2, width2, height2, samplesPerPixel = 1) {
|
156420
156420
|
return new (Object.getPrototypeOf(array2)).constructor(width2 * height2 * samplesPerPixel);
|
156421
156421
|
}
|
@@ -205595,7 +205595,8 @@ var ZarrMultivecDataFetcher = function ZarrMultivecDataFetcher2(HGC, ...args) {
|
|
205595
205595
|
this.dataConfig = dataConfig;
|
205596
205596
|
this.trackUid = slugid.nice();
|
205597
205597
|
if (dataConfig.url) {
|
205598
|
-
|
205598
|
+
const { url, options = {} } = dataConfig;
|
205599
|
+
this.store = new FetchStore$1(url, options);
|
205599
205600
|
this.storeRoot = Promise.resolve(root(this.store));
|
205600
205601
|
}
|
205601
205602
|
if (dataConfig.row !== void 0) {
|
@@ -205767,7 +205768,7 @@ const HIGLASS_BUNDLE_VERSION = "1.11.13";
|
|
205767
205768
|
const HIGLASS_CSS_URL = `https://unpkg.com/${HIGLASS_PKG_NAME}@${HIGLASS_BUNDLE_VERSION}/dist/hglib.css`;
|
205768
205769
|
register({ dataFetcher: ZarrMultivecDataFetcher_default, config: ZarrMultivecDataFetcher_default.config }, { pluginType: "dataFetcher" });
|
205769
205770
|
const LazyHiGlassComponent = React__default.lazy(async () => {
|
205770
|
-
const { HiGlassComponent } = await import("./hglib-
|
205771
|
+
const { HiGlassComponent } = await import("./hglib-9dacf5bc.js").then((n3) => n3.h);
|
205771
205772
|
return { default: HiGlassComponent };
|
205772
205773
|
});
|
205773
205774
|
const HG_SIZE = 800;
|
@@ -205938,7 +205939,7 @@ function GenomicProfilesSubscriber(props2) {
|
|
205938
205939
|
const [width2, height2, containerRef] = useGridItemSize();
|
205939
205940
|
const loaders = useLoaders();
|
205940
205941
|
const [{ dataset, obsSetColor: cellSetColor, obsSetSelection: cellSetSelection }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$1.GENOMIC_PROFILES], coordinationScopes);
|
205941
|
-
const [genomicProfilesAttrs, genomicProfilesStatus, genomicProfilesUrls] = useGenomicProfilesData(loaders, dataset, true, {}, {}, {});
|
205942
|
+
const [genomicProfilesAttrs, genomicProfilesStatus, genomicProfilesUrls, genomicProfilesRequestInit] = useGenomicProfilesData(loaders, dataset, true, {}, {}, {});
|
205942
205943
|
const isReady = useReady([genomicProfilesStatus]);
|
205943
205944
|
const urls2 = useUrls([genomicProfilesUrls]);
|
205944
205945
|
const hgViewConfig = useMemo(() => {
|
@@ -206006,12 +206007,14 @@ function GenomicProfilesSubscriber(props2) {
|
|
206006
206007
|
const setInSelection = isPath ? cellSetSelection == null ? void 0 : cellSetSelection.find((s2) => isEqual$4(s2, trackUid)) : false;
|
206007
206008
|
const setColor = isPath ? (_a3 = cellSetColor == null ? void 0 : cellSetColor.find((s2) => isEqual$4(s2.path, trackUid))) == null ? void 0 : _a3.color : null;
|
206008
206009
|
const trackUidString = isPath ? trackUid.join("__") : trackUid;
|
206010
|
+
const options = genomicProfilesRequestInit ? { overrides: genomicProfilesRequestInit } : void 0;
|
206009
206011
|
const track = {
|
206010
206012
|
type: "horizontal-bar",
|
206011
206013
|
uid: `bar-track-${trackUidString}`,
|
206012
206014
|
data: {
|
206013
206015
|
type: "zarr-multivec",
|
206014
206016
|
url,
|
206017
|
+
options,
|
206015
206018
|
row: i2
|
206016
206019
|
},
|
206017
206020
|
options: {
|
@@ -265021,10 +265024,10 @@ class AnnDataSource extends ZarrDataSource {
|
|
265021
265024
|
throw new Error("Keys for encoding-type or encoding-version not found in AnnDataSource._loadString");
|
265022
265025
|
}
|
265023
265026
|
}
|
265024
|
-
const regex$
|
265027
|
+
const regex$1 = /^mod\/([^/]*)\/(.*)$/;
|
265025
265028
|
function getModPrefix(arrPath) {
|
265026
265029
|
if (arrPath) {
|
265027
|
-
const matches2 = arrPath.match(regex$
|
265030
|
+
const matches2 = arrPath.match(regex$1);
|
265028
265031
|
if (matches2 && matches2.length === 3) {
|
265029
265032
|
return `mod/${matches2[1]}/`;
|
265030
265033
|
}
|
@@ -265086,12 +265089,17 @@ class MuDataSource extends AnnDataSource {
|
|
265086
265089
|
return this.varAlias[varPath];
|
265087
265090
|
}
|
265088
265091
|
}
|
265089
|
-
const
|
265092
|
+
const pluralRegex = /^tables\/([^/]*)\/(.*)$/;
|
265093
|
+
const singularRegex = /^table\/([^/]*)\/(.*)$/;
|
265090
265094
|
function getTablePrefix(arrPath) {
|
265091
265095
|
if (arrPath) {
|
265092
|
-
const
|
265093
|
-
if (
|
265094
|
-
return `
|
265096
|
+
const pluralMatches = arrPath.match(pluralRegex);
|
265097
|
+
if (pluralMatches && pluralMatches.length === 3) {
|
265098
|
+
return `tables/${pluralMatches[1]}/`;
|
265099
|
+
}
|
265100
|
+
const singularMatches = arrPath.match(singularRegex);
|
265101
|
+
if (singularMatches && singularMatches.length === 3) {
|
265102
|
+
return `table/${singularMatches[1]}/`;
|
265095
265103
|
}
|
265096
265104
|
}
|
265097
265105
|
return "table/table/";
|
@@ -265290,7 +265298,33 @@ class MatrixZarrAsObsFeatureMatrixLoader extends AbstractTwoStepLoader {
|
|
265290
265298
|
return Promise.all([this.loadAttrs(), this.loadArr()]).then(([attrs, arr]) => Promise.resolve(new LoaderResult({ obsIndex: attrs.data.rows, featureIndex: attrs.data.cols, obsFeatureMatrix: arr }, null)));
|
265291
265299
|
}
|
265292
265300
|
}
|
265293
|
-
|
265301
|
+
class IncorrectDataTypeError extends Error {
|
265302
|
+
constructor(message) {
|
265303
|
+
super(message);
|
265304
|
+
this.name = "IncorrectDataTypeError";
|
265305
|
+
}
|
265306
|
+
}
|
265307
|
+
function convertBigInt64ArrayToInt32Array(arr) {
|
265308
|
+
if (!(arr instanceof BigInt64Array)) {
|
265309
|
+
throw new IncorrectDataTypeError("Expected a BigInt64Array");
|
265310
|
+
}
|
265311
|
+
const out = new Int32Array(arr.length);
|
265312
|
+
const view = new Int32Array(arr.buffer);
|
265313
|
+
for (let i2 = 0; i2 < arr.length; i2++) {
|
265314
|
+
out[i2] = view[i2 * 2];
|
265315
|
+
}
|
265316
|
+
return out;
|
265317
|
+
}
|
265318
|
+
const maybeDowncastInt64 = (data2) => {
|
265319
|
+
try {
|
265320
|
+
return convertBigInt64ArrayToInt32Array(data2);
|
265321
|
+
} catch (error2) {
|
265322
|
+
if (error2 instanceof IncorrectDataTypeError) {
|
265323
|
+
return data2;
|
265324
|
+
}
|
265325
|
+
throw error2;
|
265326
|
+
}
|
265327
|
+
};
|
265294
265328
|
const concatenateColumnVectors = (arr) => {
|
265295
265329
|
const numCols = arr.length;
|
265296
265330
|
const numRows = arr[0].length;
|
@@ -265305,6 +265339,7 @@ const concatenateColumnVectors = (arr) => {
|
|
265305
265339
|
}
|
265306
265340
|
return new TypedArray2(view.buffer);
|
265307
265341
|
};
|
265342
|
+
const toObject = (data2) => ({ data: data2 });
|
265308
265343
|
class ObsFeatureMatrixAnndataLoader extends AbstractTwoStepLoader {
|
265309
265344
|
getOptions() {
|
265310
265345
|
return this.options;
|
@@ -265404,9 +265439,10 @@ class ObsFeatureMatrixAnndataLoader extends AbstractTwoStepLoader {
|
|
265404
265439
|
const { data: rowIndices } = await get$6(indexArr, [
|
265405
265440
|
slice$4(startRowIndex, endRowIndex)
|
265406
265441
|
]);
|
265407
|
-
|
265442
|
+
let { data: cellXGeneData } = await get$6(cellXGeneArr, [
|
265408
265443
|
slice$4(startRowIndex, endRowIndex)
|
265409
265444
|
]);
|
265445
|
+
cellXGeneData = maybeDowncastInt64(cellXGeneData);
|
265410
265446
|
for (let rowIndex = 0; rowIndex < rowIndices.length; rowIndex += 1) {
|
265411
265447
|
geneData[rowIndices[rowIndex]] = cellXGeneData[rowIndex];
|
265412
265448
|
}
|
@@ -265443,10 +265479,11 @@ class ObsFeatureMatrixAnndataLoader extends AbstractTwoStepLoader {
|
|
265443
265479
|
this._sparseMatrix = this._openSparseArrays().then(async (sparseArrays) => {
|
265444
265480
|
const { path: matrix2 } = this.getOptions();
|
265445
265481
|
const { shape: shape2 } = await this.dataSource.getJson(`${matrix2}/.zattrs`);
|
265446
|
-
|
265482
|
+
let [rows, cols, cellXGene] = await Promise.all(sparseArrays.map(async (arr) => {
|
265447
265483
|
const { data: data2 } = await createZarrArrayAdapter(arr).getRaw(null);
|
265448
265484
|
return data2;
|
265449
265485
|
}));
|
265486
|
+
cellXGene = maybeDowncastInt64(cellXGene);
|
265450
265487
|
const cellXGeneMatrix = new Float32Array(shape2[0] * shape2[1]).fill(0);
|
265451
265488
|
let row = 0;
|
265452
265489
|
rows.forEach((_, index2) => {
|
@@ -265474,10 +265511,11 @@ class ObsFeatureMatrixAnndataLoader extends AbstractTwoStepLoader {
|
|
265474
265511
|
this._sparseMatrix = this._openSparseArrays().then(async (sparseArrays) => {
|
265475
265512
|
const { path: matrix2 } = this.getOptions();
|
265476
265513
|
const { shape: shape2 } = await this.dataSource.getJson(`${matrix2}/.zattrs`);
|
265477
|
-
|
265514
|
+
let [cols, rows, cellXGene] = await Promise.all(sparseArrays.map(async (arr) => {
|
265478
265515
|
const { data: data2 } = await createZarrArrayAdapter(arr).getRaw(null);
|
265479
265516
|
return data2;
|
265480
265517
|
}));
|
265518
|
+
cellXGene = maybeDowncastInt64(cellXGene);
|
265481
265519
|
const cellXGeneMatrix = new Float32Array(shape2[0] * shape2[1]).fill(0);
|
265482
265520
|
let col = 0;
|
265483
265521
|
cols.forEach((_, index2) => {
|
@@ -265517,7 +265555,7 @@ class ObsFeatureMatrixAnndataLoader extends AbstractTwoStepLoader {
|
|
265517
265555
|
if (!this.arr) {
|
265518
265556
|
this.arr = open(storeRoot.resolve(matrix2), { kind: "array" });
|
265519
265557
|
}
|
265520
|
-
this.cellXGene = this.arr.then((z2) => createZarrArrayAdapter(z2).getRaw(null)).then(({ data: data2 }) => toObject(data2));
|
265558
|
+
this.cellXGene = this.arr.then((z2) => createZarrArrayAdapter(z2).getRaw(null)).then(({ data: data2 }) => toObject(maybeDowncastInt64(data2)));
|
265521
265559
|
}
|
265522
265560
|
} else if (encodingType === "csr_matrix") {
|
265523
265561
|
this.cellXGene = this._loadCSRSparseCellXGene().then(async (cellXGene) => {
|
@@ -265564,7 +265602,7 @@ class ObsFeatureMatrixAnndataLoader extends AbstractTwoStepLoader {
|
|
265564
265602
|
this.arr = open(storeRoot.resolve(matrix2), { kind: "array" });
|
265565
265603
|
}
|
265566
265604
|
const indices = await this._getGeneIndices(selection);
|
265567
|
-
genes = await Promise.all(indices.map((index2) => this.arr.then((z2) => get$6(z2, [null, index2])).then(({ data: data2 }) => data2)));
|
265605
|
+
genes = await Promise.all(indices.map((index2) => this.arr.then((z2) => get$6(z2, [null, index2])).then(({ data: data2 }) => maybeDowncastInt64(data2))));
|
265568
265606
|
}
|
265569
265607
|
return { data: genes, url: null };
|
265570
265608
|
}
|
@@ -266609,8 +266647,8 @@ class GenomicProfilesZarrLoader extends AbstractTwoStepLoader {
|
|
266609
266647
|
return this.attrs;
|
266610
266648
|
}
|
266611
266649
|
load() {
|
266612
|
-
const { url } = this;
|
266613
|
-
return this.loadAttrs().then((attrs) => Promise.resolve(new LoaderResult(attrs, url)));
|
266650
|
+
const { url, requestInit: requestInit2 } = this;
|
266651
|
+
return this.loadAttrs().then((attrs) => Promise.resolve(new LoaderResult(attrs, url, null, requestInit2)));
|
266614
266652
|
}
|
266615
266653
|
}
|
266616
266654
|
class OmeTiffSource {
|
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-ac567918.js";
|
3
3
|
import "react";
|
4
4
|
import "@vitessce/vit-s";
|
5
5
|
import "react-dom";
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vitessce/all",
|
3
|
-
"version": "3.3.
|
3
|
+
"version": "3.3.12",
|
4
4
|
"author": "Gehlenborg Lab",
|
5
5
|
"homepage": "http://vitessce.io",
|
6
6
|
"repository": {
|
@@ -18,27 +18,27 @@
|
|
18
18
|
"dependencies": {
|
19
19
|
"@material-ui/core": "~4.12.3",
|
20
20
|
"zod": "^3.21.4",
|
21
|
-
"@vitessce/constants-internal": "3.3.
|
22
|
-
"@vitessce/csv": "3.3.
|
23
|
-
"@vitessce/
|
24
|
-
"@vitessce/
|
25
|
-
"@vitessce/
|
26
|
-
"@vitessce/heatmap": "3.3.
|
27
|
-
"@vitessce/
|
28
|
-
"@vitessce/layer-controller": "3.3.
|
29
|
-
"@vitessce/
|
30
|
-
"@vitessce/obs-sets-manager": "3.3.
|
31
|
-
"@vitessce/
|
32
|
-
"@vitessce/
|
33
|
-
"@vitessce/
|
34
|
-
"@vitessce/schemas": "3.3.
|
35
|
-
"@vitessce/scatterplot-
|
36
|
-
"@vitessce/spatial": "3.3.
|
37
|
-
"@vitessce/
|
38
|
-
"@vitessce/
|
39
|
-
"@vitessce/
|
40
|
-
"@vitessce/zarr": "3.3.
|
41
|
-
"@vitessce/vit-s": "3.3.
|
21
|
+
"@vitessce/constants-internal": "3.3.12",
|
22
|
+
"@vitessce/csv": "3.3.12",
|
23
|
+
"@vitessce/feature-list": "3.3.12",
|
24
|
+
"@vitessce/genomic-profiles": "3.3.12",
|
25
|
+
"@vitessce/description": "3.3.12",
|
26
|
+
"@vitessce/heatmap": "3.3.12",
|
27
|
+
"@vitessce/layer-controller": "3.3.12",
|
28
|
+
"@vitessce/layer-controller-beta": "3.3.12",
|
29
|
+
"@vitessce/json": "3.3.12",
|
30
|
+
"@vitessce/obs-sets-manager": "3.3.12",
|
31
|
+
"@vitessce/plugins": "3.3.12",
|
32
|
+
"@vitessce/scatterplot-embedding": "3.3.12",
|
33
|
+
"@vitessce/ome-tiff": "3.3.12",
|
34
|
+
"@vitessce/schemas": "3.3.12",
|
35
|
+
"@vitessce/scatterplot-gating": "3.3.12",
|
36
|
+
"@vitessce/spatial": "3.3.12",
|
37
|
+
"@vitessce/spatial-beta": "3.3.12",
|
38
|
+
"@vitessce/statistical-plots": "3.3.12",
|
39
|
+
"@vitessce/status": "3.3.12",
|
40
|
+
"@vitessce/zarr": "3.3.12",
|
41
|
+
"@vitessce/vit-s": "3.3.12"
|
42
42
|
},
|
43
43
|
"devDependencies": {
|
44
44
|
"@types/react": "^18.0.28",
|