SingleCellExperiment 0.5.3__tar.gz → 0.5.5__tar.gz
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.
- {singlecellexperiment-0.5.3 → singlecellexperiment-0.5.5}/.pre-commit-config.yaml +1 -1
- {singlecellexperiment-0.5.3 → singlecellexperiment-0.5.5}/PKG-INFO +2 -2
- {singlecellexperiment-0.5.3 → singlecellexperiment-0.5.5}/src/SingleCellExperiment.egg-info/PKG-INFO +2 -2
- {singlecellexperiment-0.5.3 → singlecellexperiment-0.5.5}/src/singlecellexperiment/SingleCellExperiment.py +25 -1
- {singlecellexperiment-0.5.3 → singlecellexperiment-0.5.5}/.coveragerc +0 -0
- {singlecellexperiment-0.5.3 → singlecellexperiment-0.5.5}/.github/workflows/publish-pypi.yml +0 -0
- {singlecellexperiment-0.5.3 → singlecellexperiment-0.5.5}/.github/workflows/run-tests.yml +0 -0
- {singlecellexperiment-0.5.3 → singlecellexperiment-0.5.5}/.gitignore +0 -0
- {singlecellexperiment-0.5.3 → singlecellexperiment-0.5.5}/.readthedocs.yml +0 -0
- {singlecellexperiment-0.5.3 → singlecellexperiment-0.5.5}/AUTHORS.md +0 -0
- {singlecellexperiment-0.5.3 → singlecellexperiment-0.5.5}/CHANGELOG.md +0 -0
- {singlecellexperiment-0.5.3 → singlecellexperiment-0.5.5}/CONTRIBUTING.md +0 -0
- {singlecellexperiment-0.5.3 → singlecellexperiment-0.5.5}/LICENSE.txt +0 -0
- {singlecellexperiment-0.5.3 → singlecellexperiment-0.5.5}/README.md +0 -0
- {singlecellexperiment-0.5.3 → singlecellexperiment-0.5.5}/docs/Makefile +0 -0
- {singlecellexperiment-0.5.3 → singlecellexperiment-0.5.5}/docs/_static/.gitignore +0 -0
- {singlecellexperiment-0.5.3 → singlecellexperiment-0.5.5}/docs/authors.md +0 -0
- {singlecellexperiment-0.5.3 → singlecellexperiment-0.5.5}/docs/changelog.md +0 -0
- {singlecellexperiment-0.5.3 → singlecellexperiment-0.5.5}/docs/conf.py +0 -0
- {singlecellexperiment-0.5.3 → singlecellexperiment-0.5.5}/docs/contributing.md +0 -0
- {singlecellexperiment-0.5.3 → singlecellexperiment-0.5.5}/docs/index.md +0 -0
- {singlecellexperiment-0.5.3 → singlecellexperiment-0.5.5}/docs/license.md +0 -0
- {singlecellexperiment-0.5.3 → singlecellexperiment-0.5.5}/docs/readme.md +0 -0
- {singlecellexperiment-0.5.3 → singlecellexperiment-0.5.5}/docs/requirements.txt +0 -0
- {singlecellexperiment-0.5.3 → singlecellexperiment-0.5.5}/docs/tutorial.md +0 -0
- {singlecellexperiment-0.5.3 → singlecellexperiment-0.5.5}/pyproject.toml +0 -0
- {singlecellexperiment-0.5.3 → singlecellexperiment-0.5.5}/setup.cfg +0 -0
- {singlecellexperiment-0.5.3 → singlecellexperiment-0.5.5}/setup.py +0 -0
- {singlecellexperiment-0.5.3 → singlecellexperiment-0.5.5}/src/SingleCellExperiment.egg-info/SOURCES.txt +0 -0
- {singlecellexperiment-0.5.3 → singlecellexperiment-0.5.5}/src/SingleCellExperiment.egg-info/dependency_links.txt +0 -0
- {singlecellexperiment-0.5.3 → singlecellexperiment-0.5.5}/src/SingleCellExperiment.egg-info/not-zip-safe +0 -0
- {singlecellexperiment-0.5.3 → singlecellexperiment-0.5.5}/src/SingleCellExperiment.egg-info/requires.txt +0 -0
- {singlecellexperiment-0.5.3 → singlecellexperiment-0.5.5}/src/SingleCellExperiment.egg-info/top_level.txt +0 -0
- {singlecellexperiment-0.5.3 → singlecellexperiment-0.5.5}/src/singlecellexperiment/__init__.py +0 -0
- {singlecellexperiment-0.5.3 → singlecellexperiment-0.5.5}/src/singlecellexperiment/_combineutils.py +0 -0
- {singlecellexperiment-0.5.3 → singlecellexperiment-0.5.5}/src/singlecellexperiment/_ioutils.py +0 -0
- {singlecellexperiment-0.5.3 → singlecellexperiment-0.5.5}/src/singlecellexperiment/io/__init__.py +0 -0
- {singlecellexperiment-0.5.3 → singlecellexperiment-0.5.5}/src/singlecellexperiment/io/h5ad.py +0 -0
- {singlecellexperiment-0.5.3 → singlecellexperiment-0.5.5}/src/singlecellexperiment/io/tenx.py +0 -0
- {singlecellexperiment-0.5.3 → singlecellexperiment-0.5.5}/tests/conftest.py +0 -0
- {singlecellexperiment-0.5.3 → singlecellexperiment-0.5.5}/tests/data/adata.h5ad +0 -0
- {singlecellexperiment-0.5.3 → singlecellexperiment-0.5.5}/tests/data/mocks.py +0 -0
- {singlecellexperiment-0.5.3 → singlecellexperiment-0.5.5}/tests/data/tenx.sub.h5 +0 -0
- {singlecellexperiment-0.5.3 → singlecellexperiment-0.5.5}/tests/test_sce.py +0 -0
- {singlecellexperiment-0.5.3 → singlecellexperiment-0.5.5}/tests/test_sce_combine_cols.py +0 -0
- {singlecellexperiment-0.5.3 → singlecellexperiment-0.5.5}/tests/test_sce_combine_rows.py +0 -0
- {singlecellexperiment-0.5.3 → singlecellexperiment-0.5.5}/tests/test_sce_io.py +0 -0
- {singlecellexperiment-0.5.3 → singlecellexperiment-0.5.5}/tests/test_sce_methods.py +0 -0
- {singlecellexperiment-0.5.3 → singlecellexperiment-0.5.5}/tests/test_sce_slice.py +0 -0
- {singlecellexperiment-0.5.3 → singlecellexperiment-0.5.5}/tox.ini +0 -0
|
@@ -1050,8 +1050,32 @@ class SingleCellExperiment(RangedSummarizedExperiment):
|
|
|
1050
1050
|
"""
|
|
1051
1051
|
obj = super().to_anndata()
|
|
1052
1052
|
|
|
1053
|
+
from delayedarray import (
|
|
1054
|
+
DelayedArray,
|
|
1055
|
+
is_sparse,
|
|
1056
|
+
to_dense_array,
|
|
1057
|
+
to_scipy_sparse_matrix,
|
|
1058
|
+
)
|
|
1059
|
+
|
|
1053
1060
|
if self.reduced_dims is not None:
|
|
1054
|
-
|
|
1061
|
+
nrdims_ = OrderedDict()
|
|
1062
|
+
for dim, mat in self._reduced_dims.items():
|
|
1063
|
+
if isinstance(mat, DelayedArray) or issubclass(type(mat), DelayedArray):
|
|
1064
|
+
if is_sparse(mat):
|
|
1065
|
+
warn(
|
|
1066
|
+
"Converting delayedarray into sparse, may require more memory",
|
|
1067
|
+
RuntimeWarning,
|
|
1068
|
+
)
|
|
1069
|
+
|
|
1070
|
+
mat = to_scipy_sparse_matrix(mat)
|
|
1071
|
+
else:
|
|
1072
|
+
warn(
|
|
1073
|
+
"Converting delayedarray into dense, may require more memory",
|
|
1074
|
+
RuntimeWarning,
|
|
1075
|
+
)
|
|
1076
|
+
mat = to_dense_array(mat)
|
|
1077
|
+
nrdims_[dim] = mat
|
|
1078
|
+
obj.obsm = nrdims_
|
|
1055
1079
|
|
|
1056
1080
|
if self.row_pairs is not None:
|
|
1057
1081
|
obj.varp = self.row_pairs
|
|
File without changes
|
{singlecellexperiment-0.5.3 → singlecellexperiment-0.5.5}/.github/workflows/publish-pypi.yml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{singlecellexperiment-0.5.3 → singlecellexperiment-0.5.5}/src/singlecellexperiment/__init__.py
RENAMED
|
File without changes
|
{singlecellexperiment-0.5.3 → singlecellexperiment-0.5.5}/src/singlecellexperiment/_combineutils.py
RENAMED
|
File without changes
|
{singlecellexperiment-0.5.3 → singlecellexperiment-0.5.5}/src/singlecellexperiment/_ioutils.py
RENAMED
|
File without changes
|
{singlecellexperiment-0.5.3 → singlecellexperiment-0.5.5}/src/singlecellexperiment/io/__init__.py
RENAMED
|
File without changes
|
{singlecellexperiment-0.5.3 → singlecellexperiment-0.5.5}/src/singlecellexperiment/io/h5ad.py
RENAMED
|
File without changes
|
{singlecellexperiment-0.5.3 → singlecellexperiment-0.5.5}/src/singlecellexperiment/io/tenx.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|