@vitessce/zarr 3.9.9 → 3.9.10
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
CHANGED
|
@@ -4217,6 +4217,7 @@ const FileType$1 = {
|
|
|
4217
4217
|
OBS_LABELS_MUDATA_ZARR: "obsLabels.mudata.zarr",
|
|
4218
4218
|
FEATURE_LABELS_MUDATA_ZARR: "featureLabels.mudata.zarr",
|
|
4219
4219
|
GENOMIC_PROFILES_ZARR: "genomic-profiles.zarr",
|
|
4220
|
+
GENOMIC_PROFILES_ZARR_ZIP: "genomic-profiles.zarr.zip",
|
|
4220
4221
|
NEIGHBORHOODS_JSON: "neighborhoods.json",
|
|
4221
4222
|
// OME-TIFF
|
|
4222
4223
|
IMAGE_OME_TIFF: "image.ome-tiff",
|
|
@@ -4481,6 +4482,7 @@ const CoordinationType$1 = {
|
|
|
4481
4482
|
[FileType$1.OBS_LABELS_MOLECULES_JSON]: DataType$1.OBS_LABELS,
|
|
4482
4483
|
// For old file types
|
|
4483
4484
|
[FileType$1.GENOMIC_PROFILES_ZARR]: DataType$1.GENOMIC_PROFILES,
|
|
4485
|
+
[FileType$1.GENOMIC_PROFILES_ZARR_ZIP]: DataType$1.GENOMIC_PROFILES,
|
|
4484
4486
|
[FileType$1.NEIGHBORHOODS_JSON]: DataType$1.NEIGHBORHOODS
|
|
4485
4487
|
});
|
|
4486
4488
|
({
|
|
@@ -4645,6 +4647,10 @@ const CoordinationType$1 = {
|
|
|
4645
4647
|
},
|
|
4646
4648
|
[FileType$1.OBS_EMBEDDING_SPATIALDATA_ZARR]: {
|
|
4647
4649
|
zip: FileType$1.OBS_EMBEDDING_SPATIALDATA_ZARR_ZIP
|
|
4650
|
+
},
|
|
4651
|
+
// For genomic profiles:
|
|
4652
|
+
[FileType$1.GENOMIC_PROFILES_ZARR]: {
|
|
4653
|
+
zip: FileType$1.GENOMIC_PROFILES_ZARR_ZIP
|
|
4648
4654
|
}
|
|
4649
4655
|
});
|
|
4650
4656
|
[
|
|
@@ -5980,7 +5986,9 @@ class OmeAutoConfig extends AbstractAutoConfig {
|
|
|
5980
5986
|
// TODO: how to handle h5ad-based AnnData (since needs reference JSON file).
|
|
5981
5987
|
// Perhaps just assume one H5AD+one JSON (or .ref.json) file correspond to each other?
|
|
5982
5988
|
[FileType$1.SPATIALDATA_ZARR]: [".sd.zarr", ".sdata.zarr", ".spatialdata.zarr"],
|
|
5983
|
-
[FileType$1.SPATIALDATA_ZARR_ZIP]: [".sd.zarr.zip", ".sdata.zarr.zip", ".spatialdata.zarr.zip"]
|
|
5989
|
+
[FileType$1.SPATIALDATA_ZARR_ZIP]: [".sd.zarr.zip", ".sdata.zarr.zip", ".spatialdata.zarr.zip"],
|
|
5990
|
+
[FileType$1.GENOMIC_PROFILES_ZARR]: [".multivec.zarr"],
|
|
5991
|
+
[FileType$1.GENOMIC_PROFILES_ZARR_ZIP]: [".multivec.zarr.zip"]
|
|
5984
5992
|
});
|
|
5985
5993
|
({
|
|
5986
5994
|
// OME-TIFF
|
|
@@ -6006,7 +6014,9 @@ class OmeAutoConfig extends AbstractAutoConfig {
|
|
|
6006
6014
|
FileType$1.IMAGE_OME_ZARR,
|
|
6007
6015
|
FileType$1.IMAGE_OME_ZARR_ZIP,
|
|
6008
6016
|
FileType$1.OBS_SEGMENTATIONS_OME_ZARR,
|
|
6009
|
-
FileType$1.OBS_SEGMENTATIONS_OME_ZARR_ZIP
|
|
6017
|
+
FileType$1.OBS_SEGMENTATIONS_OME_ZARR_ZIP,
|
|
6018
|
+
FileType$1.GENOMIC_PROFILES_ZARR,
|
|
6019
|
+
FileType$1.GENOMIC_PROFILES_ZARR_ZIP
|
|
6010
6020
|
];
|
|
6011
6021
|
class ObsSpotsAnndataLoader extends AbstractTwoStepLoader {
|
|
6012
6022
|
/**
|
|
@@ -21675,20 +21685,29 @@ let FeatureStatsAnndataLoader$1 = class FeatureStatsAnndataLoader extends Abstra
|
|
|
21675
21685
|
return this.dataSource.loadDataFrameIndex(dfPath);
|
|
21676
21686
|
}
|
|
21677
21687
|
async loadDataFrame(dfPath) {
|
|
21678
|
-
|
|
21679
|
-
|
|
21680
|
-
|
|
21681
|
-
|
|
21682
|
-
|
|
21683
|
-
|
|
21684
|
-
|
|
21685
|
-
|
|
21686
|
-
|
|
21687
|
-
|
|
21688
|
-
|
|
21689
|
-
|
|
21690
|
-
|
|
21691
|
-
|
|
21688
|
+
try {
|
|
21689
|
+
const [
|
|
21690
|
+
featureId,
|
|
21691
|
+
featureFoldChange,
|
|
21692
|
+
featureSignificance
|
|
21693
|
+
] = await Promise.all([
|
|
21694
|
+
this.loadFeatureNames(dfPath),
|
|
21695
|
+
this.loadFoldChanges(dfPath),
|
|
21696
|
+
this.loadSignificances(dfPath)
|
|
21697
|
+
]);
|
|
21698
|
+
return {
|
|
21699
|
+
featureId,
|
|
21700
|
+
featureFoldChange,
|
|
21701
|
+
featureSignificance
|
|
21702
|
+
};
|
|
21703
|
+
} catch (e) {
|
|
21704
|
+
log.warn("Dataframe not found at", dfPath);
|
|
21705
|
+
return {
|
|
21706
|
+
featureId: [],
|
|
21707
|
+
featureFoldChange: [],
|
|
21708
|
+
featureSignificance: []
|
|
21709
|
+
};
|
|
21710
|
+
}
|
|
21692
21711
|
}
|
|
21693
21712
|
/**
|
|
21694
21713
|
*
|
|
@@ -21715,7 +21734,7 @@ let FeatureStatsAnndataLoader$1 = class FeatureStatsAnndataLoader extends Abstra
|
|
|
21715
21734
|
* @returns {Promise<LoaderResult<FeatureStatsData>>}
|
|
21716
21735
|
*/
|
|
21717
21736
|
async loadMulti(volcanoOptions) {
|
|
21718
|
-
const { analysisType: targetAnalysisType = "
|
|
21737
|
+
const { analysisType: targetAnalysisType = "pydeseq2" } = this.options;
|
|
21719
21738
|
const { sampleSetSelection, obsSetSelection } = volcanoOptions || {};
|
|
21720
21739
|
const rawObsSetSelection = obsSetSelection;
|
|
21721
21740
|
const rawSampleSetSelection = sampleSetSelection;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FeatureStatsAnndataLoader.d.ts","sourceRoot":"","sources":["../../src/anndata-loaders/FeatureStatsAnndataLoader.js"],"names":[],"mappings":"AAOA,uDAAuD;AACvD,0DAA0D;AAG1D;;;;GAIG;AACH,+CAH6B,cAAc,SAA9B,aAAe;;IAI1B;;;OAGG;IACH,gCAFa,OAAO,CAAC,GAAG,CAAC,CAaxB;IAED;;;OAGG;IACH,8BAFa,OAAO,CAAC,GAAG,CAAC,CAYxB;IAED,iDAOC;IAED;;;;
|
|
1
|
+
{"version":3,"file":"FeatureStatsAnndataLoader.d.ts","sourceRoot":"","sources":["../../src/anndata-loaders/FeatureStatsAnndataLoader.js"],"names":[],"mappings":"AAOA,uDAAuD;AACvD,0DAA0D;AAG1D;;;;GAIG;AACH,+CAH6B,cAAc,SAA9B,aAAe;;IAI1B;;;OAGG;IACH,gCAFa,OAAO,CAAC,GAAG,CAAC,CAaxB;IAED;;;OAGG;IACH,8BAFa,OAAO,CAAC,GAAG,CAAC,CAYxB;IAED,iDAOC;IAED;;;;OAwBC;IAED;;;OAGG;IACH,gBAFa,OAAO,CAAC,SAAS,EAAE,CAAC,CAYhC;IAJG,cAA2E;IAO/E;;;;;;;;OAQG;IACH,0BANG;QAAuC,WAAW;QACX,WAAW;QACb,IAAI;QACA,kBAAkB;KAC3D,GAAU,OAAO,CAAC,YAAY,CAAC,gBAAgB,CAAC,CAAC,CA6EnD;IAGD,sBAEC;CACF;+BAzL8B,qBAAqB;sCALA,oBAAoB;6BAApB,oBAAoB;sCAMlC,iBAAiB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable no-underscore-dangle */
|
|
2
2
|
/* eslint-disable camelcase */
|
|
3
3
|
import { LoaderResult, AbstractTwoStepLoader } from '@vitessce/abstract';
|
|
4
|
-
import { getDebugMode } from '@vitessce/globals';
|
|
4
|
+
import { getDebugMode, log } from '@vitessce/globals';
|
|
5
5
|
import { isEqual } from 'lodash-es';
|
|
6
6
|
import { isEqualPathPair, loadComparisonMetadata } from './comparative-utils.js';
|
|
7
7
|
/** @import AnnDataSource from '../AnnDataSource.js' */
|
|
@@ -52,16 +52,26 @@ export default class FeatureStatsAnndataLoader extends AbstractTwoStepLoader {
|
|
|
52
52
|
return this.dataSource.loadDataFrameIndex(dfPath);
|
|
53
53
|
}
|
|
54
54
|
async loadDataFrame(dfPath) {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
55
|
+
try {
|
|
56
|
+
const [featureId, featureFoldChange, featureSignificance,] = await Promise.all([
|
|
57
|
+
this.loadFeatureNames(dfPath),
|
|
58
|
+
this.loadFoldChanges(dfPath),
|
|
59
|
+
this.loadSignificances(dfPath),
|
|
60
|
+
]);
|
|
61
|
+
return {
|
|
62
|
+
featureId,
|
|
63
|
+
featureFoldChange,
|
|
64
|
+
featureSignificance,
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
catch (e) {
|
|
68
|
+
log.warn('Dataframe not found at', dfPath);
|
|
69
|
+
return {
|
|
70
|
+
featureId: [],
|
|
71
|
+
featureFoldChange: [],
|
|
72
|
+
featureSignificance: [],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
65
75
|
}
|
|
66
76
|
/**
|
|
67
77
|
*
|
|
@@ -88,7 +98,7 @@ export default class FeatureStatsAnndataLoader extends AbstractTwoStepLoader {
|
|
|
88
98
|
* @returns {Promise<LoaderResult<FeatureStatsData>>}
|
|
89
99
|
*/
|
|
90
100
|
async loadMulti(volcanoOptions) {
|
|
91
|
-
const { analysisType: targetAnalysisType = '
|
|
101
|
+
const { analysisType: targetAnalysisType = 'pydeseq2' } = this.options;
|
|
92
102
|
const { sampleSetSelection, obsSetSelection } = volcanoOptions || {};
|
|
93
103
|
// We expect these set paths to have already been transformed
|
|
94
104
|
// to use the "raw" column names,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/zarr",
|
|
3
|
-
"version": "3.9.
|
|
3
|
+
"version": "3.9.10",
|
|
4
4
|
"author": "HIDIVE Lab at HMS",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -22,18 +22,18 @@
|
|
|
22
22
|
"apache-arrow": "^17.0.0",
|
|
23
23
|
"parquet-wasm": "^0.6.1",
|
|
24
24
|
"ol": "^10.2.1",
|
|
25
|
-
"@vitessce/abstract": "3.9.
|
|
26
|
-
"@vitessce/error": "3.9.
|
|
27
|
-
"@vitessce/
|
|
28
|
-
"@vitessce/utils": "3.9.
|
|
29
|
-
"@vitessce/
|
|
30
|
-
"@vitessce/
|
|
31
|
-
"@vitessce/
|
|
32
|
-
"@vitessce/
|
|
33
|
-
"@vitessce/globals": "3.9.
|
|
25
|
+
"@vitessce/abstract": "3.9.10",
|
|
26
|
+
"@vitessce/error": "3.9.10",
|
|
27
|
+
"@vitessce/sets-utils": "3.9.10",
|
|
28
|
+
"@vitessce/image-utils": "3.9.10",
|
|
29
|
+
"@vitessce/utils": "3.9.10",
|
|
30
|
+
"@vitessce/constants-internal": "3.9.10",
|
|
31
|
+
"@vitessce/zarr-utils": "3.9.10",
|
|
32
|
+
"@vitessce/config": "3.9.10",
|
|
33
|
+
"@vitessce/globals": "3.9.10"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@vitessce/types": "3.9.
|
|
36
|
+
"@vitessce/types": "3.9.10"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"bundle": "pnpm exec vite build -c ../../../scripts/vite.config.mjs",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable no-underscore-dangle */
|
|
2
2
|
/* eslint-disable camelcase */
|
|
3
3
|
import { LoaderResult, AbstractTwoStepLoader } from '@vitessce/abstract';
|
|
4
|
-
import { getDebugMode } from '@vitessce/globals';
|
|
4
|
+
import { getDebugMode, log } from '@vitessce/globals';
|
|
5
5
|
import { isEqual } from 'lodash-es';
|
|
6
6
|
import { isEqualPathPair, loadComparisonMetadata } from './comparative-utils.js';
|
|
7
7
|
|
|
@@ -58,20 +58,29 @@ export default class FeatureStatsAnndataLoader extends AbstractTwoStepLoader {
|
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
async loadDataFrame(dfPath) {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
61
|
+
try {
|
|
62
|
+
const [
|
|
63
|
+
featureId,
|
|
64
|
+
featureFoldChange,
|
|
65
|
+
featureSignificance,
|
|
66
|
+
] = await Promise.all([
|
|
67
|
+
this.loadFeatureNames(dfPath),
|
|
68
|
+
this.loadFoldChanges(dfPath),
|
|
69
|
+
this.loadSignificances(dfPath),
|
|
70
|
+
]);
|
|
71
|
+
return {
|
|
72
|
+
featureId,
|
|
73
|
+
featureFoldChange,
|
|
74
|
+
featureSignificance,
|
|
75
|
+
};
|
|
76
|
+
} catch (e) {
|
|
77
|
+
log.warn('Dataframe not found at', dfPath);
|
|
78
|
+
return {
|
|
79
|
+
featureId: [],
|
|
80
|
+
featureFoldChange: [],
|
|
81
|
+
featureSignificance: [],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
75
84
|
}
|
|
76
85
|
|
|
77
86
|
/**
|
|
@@ -101,7 +110,7 @@ export default class FeatureStatsAnndataLoader extends AbstractTwoStepLoader {
|
|
|
101
110
|
* @returns {Promise<LoaderResult<FeatureStatsData>>}
|
|
102
111
|
*/
|
|
103
112
|
async loadMulti(volcanoOptions) {
|
|
104
|
-
const { analysisType: targetAnalysisType = '
|
|
113
|
+
const { analysisType: targetAnalysisType = 'pydeseq2' } = this.options;
|
|
105
114
|
const { sampleSetSelection, obsSetSelection } = volcanoOptions || {};
|
|
106
115
|
|
|
107
116
|
// We expect these set paths to have already been transformed
|