SingleCellExperiment 0.4.1__tar.gz → 0.4.3__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.4.1 → SingleCellExperiment-0.4.3}/.pre-commit-config.yaml +1 -1
- {SingleCellExperiment-0.4.1 → SingleCellExperiment-0.4.3}/CHANGELOG.md +10 -1
- {SingleCellExperiment-0.4.1 → SingleCellExperiment-0.4.3}/PKG-INFO +1 -1
- {SingleCellExperiment-0.4.1 → SingleCellExperiment-0.4.3}/docs/changelog.md +10 -1
- {SingleCellExperiment-0.4.1 → SingleCellExperiment-0.4.3}/src/SingleCellExperiment.egg-info/PKG-INFO +1 -1
- {SingleCellExperiment-0.4.1 → SingleCellExperiment-0.4.3}/src/singlecellexperiment/SingleCellExperiment.py +14 -19
- {SingleCellExperiment-0.4.1 → SingleCellExperiment-0.4.3}/tests/test_sce_slice.py +4 -1
- {SingleCellExperiment-0.4.1 → SingleCellExperiment-0.4.3}/.coveragerc +0 -0
- {SingleCellExperiment-0.4.1 → SingleCellExperiment-0.4.3}/.github/workflows/pypi-publish.yml +0 -0
- {SingleCellExperiment-0.4.1 → SingleCellExperiment-0.4.3}/.github/workflows/pypi-test.yml +0 -0
- {SingleCellExperiment-0.4.1 → SingleCellExperiment-0.4.3}/.gitignore +0 -0
- {SingleCellExperiment-0.4.1 → SingleCellExperiment-0.4.3}/.readthedocs.yml +0 -0
- {SingleCellExperiment-0.4.1 → SingleCellExperiment-0.4.3}/AUTHORS.md +0 -0
- {SingleCellExperiment-0.4.1 → SingleCellExperiment-0.4.3}/CONTRIBUTING.md +0 -0
- {SingleCellExperiment-0.4.1 → SingleCellExperiment-0.4.3}/LICENSE.txt +0 -0
- {SingleCellExperiment-0.4.1 → SingleCellExperiment-0.4.3}/README.md +0 -0
- {SingleCellExperiment-0.4.1 → SingleCellExperiment-0.4.3}/docs/Makefile +0 -0
- {SingleCellExperiment-0.4.1 → SingleCellExperiment-0.4.3}/docs/_static/.gitignore +0 -0
- {SingleCellExperiment-0.4.1 → SingleCellExperiment-0.4.3}/docs/authors.md +0 -0
- {SingleCellExperiment-0.4.1 → SingleCellExperiment-0.4.3}/docs/conf.py +0 -0
- {SingleCellExperiment-0.4.1 → SingleCellExperiment-0.4.3}/docs/contributing.md +0 -0
- {SingleCellExperiment-0.4.1 → SingleCellExperiment-0.4.3}/docs/index.md +0 -0
- {SingleCellExperiment-0.4.1 → SingleCellExperiment-0.4.3}/docs/license.md +0 -0
- {SingleCellExperiment-0.4.1 → SingleCellExperiment-0.4.3}/docs/readme.md +0 -0
- {SingleCellExperiment-0.4.1 → SingleCellExperiment-0.4.3}/docs/requirements.txt +0 -0
- {SingleCellExperiment-0.4.1 → SingleCellExperiment-0.4.3}/docs/tutorial.md +0 -0
- {SingleCellExperiment-0.4.1 → SingleCellExperiment-0.4.3}/pyproject.toml +0 -0
- {SingleCellExperiment-0.4.1 → SingleCellExperiment-0.4.3}/setup.cfg +0 -0
- {SingleCellExperiment-0.4.1 → SingleCellExperiment-0.4.3}/setup.py +0 -0
- {SingleCellExperiment-0.4.1 → SingleCellExperiment-0.4.3}/src/SingleCellExperiment.egg-info/SOURCES.txt +0 -0
- {SingleCellExperiment-0.4.1 → SingleCellExperiment-0.4.3}/src/SingleCellExperiment.egg-info/dependency_links.txt +0 -0
- {SingleCellExperiment-0.4.1 → SingleCellExperiment-0.4.3}/src/SingleCellExperiment.egg-info/not-zip-safe +0 -0
- {SingleCellExperiment-0.4.1 → SingleCellExperiment-0.4.3}/src/SingleCellExperiment.egg-info/requires.txt +0 -0
- {SingleCellExperiment-0.4.1 → SingleCellExperiment-0.4.3}/src/SingleCellExperiment.egg-info/top_level.txt +0 -0
- {SingleCellExperiment-0.4.1 → SingleCellExperiment-0.4.3}/src/singlecellexperiment/__init__.py +0 -0
- {SingleCellExperiment-0.4.1 → SingleCellExperiment-0.4.3}/src/singlecellexperiment/_combineutils.py +0 -0
- {SingleCellExperiment-0.4.1 → SingleCellExperiment-0.4.3}/src/singlecellexperiment/_ioutils.py +0 -0
- {SingleCellExperiment-0.4.1 → SingleCellExperiment-0.4.3}/src/singlecellexperiment/io/__init__.py +0 -0
- {SingleCellExperiment-0.4.1 → SingleCellExperiment-0.4.3}/src/singlecellexperiment/io/h5ad.py +0 -0
- {SingleCellExperiment-0.4.1 → SingleCellExperiment-0.4.3}/src/singlecellexperiment/io/tenx.py +0 -0
- {SingleCellExperiment-0.4.1 → SingleCellExperiment-0.4.3}/tests/conftest.py +0 -0
- {SingleCellExperiment-0.4.1 → SingleCellExperiment-0.4.3}/tests/data/adata.h5ad +0 -0
- {SingleCellExperiment-0.4.1 → SingleCellExperiment-0.4.3}/tests/data/mocks.py +0 -0
- {SingleCellExperiment-0.4.1 → SingleCellExperiment-0.4.3}/tests/data/tenx.sub.h5 +0 -0
- {SingleCellExperiment-0.4.1 → SingleCellExperiment-0.4.3}/tests/test_sce.py +0 -0
- {SingleCellExperiment-0.4.1 → SingleCellExperiment-0.4.3}/tests/test_sce_combine_cols.py +0 -0
- {SingleCellExperiment-0.4.1 → SingleCellExperiment-0.4.3}/tests/test_sce_combine_rows.py +0 -0
- {SingleCellExperiment-0.4.1 → SingleCellExperiment-0.4.3}/tests/test_sce_io.py +0 -0
- {SingleCellExperiment-0.4.1 → SingleCellExperiment-0.4.3}/tests/test_sce_methods.py +0 -0
- {SingleCellExperiment-0.4.1 → SingleCellExperiment-0.4.3}/tox.ini +0 -0
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## Version 0.
|
|
3
|
+
## Version 0.4.0 to 0.4.1
|
|
4
|
+
|
|
5
|
+
This is a complete rewrite of the package, following the functional paradigm from our [developer notes](https://github.com/BiocPy/developer_guide#use-functional-discipline).
|
|
6
|
+
|
|
7
|
+
- Migrates package to the newly udpated SE/RSE classes.
|
|
8
|
+
- Implement combine generics on SCE.
|
|
9
|
+
- Reduce dependency on a number of external packages.
|
|
10
|
+
- Update docstrings, tests
|
|
11
|
+
|
|
12
|
+
## Version 0.3.0
|
|
4
13
|
|
|
5
14
|
This release migrates the package to a more palatable Google's Python style guide. A major modification to the package is with casing, all `camelCase` properties, methods, functions and parameters are now `snake_case`.
|
|
6
15
|
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## Version 0.
|
|
3
|
+
## Version 0.4.0 to 0.4.1
|
|
4
|
+
|
|
5
|
+
This is a complete rewrite of the package, following the functional paradigm from our [developer notes](https://github.com/BiocPy/developer_guide#use-functional-discipline).
|
|
6
|
+
|
|
7
|
+
- Migrates package to the newly udpated SE/RSE classes.
|
|
8
|
+
- Implement combine generics on SCE.
|
|
9
|
+
- Reduce dependency on a number of external packages.
|
|
10
|
+
- Update docstrings, tests
|
|
11
|
+
|
|
12
|
+
## Version 0.3.0
|
|
4
13
|
|
|
5
14
|
This release migrates the package to a more palatable Google's Python style guide. A major modification to the package is with casing, all `camelCase` properties, methods, functions and parameters are now `snake_case`.
|
|
6
15
|
|
|
@@ -490,7 +490,7 @@ class SingleCellExperiment(RangedSummarizedExperiment):
|
|
|
490
490
|
if dimension < 0:
|
|
491
491
|
raise IndexError("Index cannot be negative.")
|
|
492
492
|
|
|
493
|
-
if dimension > len(self.
|
|
493
|
+
if dimension > len(self.reduced_dim_names):
|
|
494
494
|
raise IndexError("Index greater than the number of reduced dimensions.")
|
|
495
495
|
|
|
496
496
|
return self._reduced_dims[self.reduced_dim_names[dimension]]
|
|
@@ -680,15 +680,19 @@ class SingleCellExperiment(RangedSummarizedExperiment):
|
|
|
680
680
|
if name < 0:
|
|
681
681
|
raise IndexError("Index cannot be negative.")
|
|
682
682
|
|
|
683
|
-
if name > len(self.
|
|
684
|
-
raise IndexError(
|
|
683
|
+
if name > len(self.alternative_experiment_names):
|
|
684
|
+
raise IndexError(
|
|
685
|
+
"Index greater than the number of alternative experiments."
|
|
686
|
+
)
|
|
685
687
|
|
|
686
|
-
return self.
|
|
688
|
+
return self._alternative_experiments[
|
|
689
|
+
self.alternative_experiment_names[name]
|
|
690
|
+
]
|
|
687
691
|
elif isinstance(name, str):
|
|
688
|
-
if name not in self.
|
|
689
|
-
raise AttributeError(f"
|
|
692
|
+
if name not in self._alternative_experiments:
|
|
693
|
+
raise AttributeError(f"Alternative experiment: {name} does not exist.")
|
|
690
694
|
|
|
691
|
-
return self.
|
|
695
|
+
return self._alternative_experiments[name]
|
|
692
696
|
|
|
693
697
|
raise TypeError(f"'name' must be a string or integer, provided '{type(name)}'.")
|
|
694
698
|
|
|
@@ -917,22 +921,19 @@ class SingleCellExperiment(RangedSummarizedExperiment):
|
|
|
917
921
|
|
|
918
922
|
new_row_ranges = None
|
|
919
923
|
if slicer.row_indices != slice(None):
|
|
920
|
-
new_row_ranges = self.
|
|
924
|
+
new_row_ranges = self._row_ranges[slicer.row_indices]
|
|
921
925
|
|
|
922
926
|
new_reduced_dims = {}
|
|
923
927
|
for rdim, rmat in self._reduced_dims.items():
|
|
924
|
-
if slicer.row_indices != slice(None):
|
|
925
|
-
rmat = rmat[slicer.row_indices, :]
|
|
926
|
-
|
|
927
928
|
if slicer.col_indices != slice(None):
|
|
928
|
-
rmat = rmat[
|
|
929
|
+
rmat = rmat[slicer.col_indices, :]
|
|
929
930
|
|
|
930
931
|
new_reduced_dims[rdim] = rmat
|
|
931
932
|
|
|
932
933
|
new_alt_expts = {}
|
|
933
934
|
for altname, altexpt in self._alternative_experiments.items():
|
|
934
935
|
if slicer.row_indices != slice(None):
|
|
935
|
-
altexpt = altexpt[
|
|
936
|
+
altexpt = altexpt[slicer.row_indices, :]
|
|
936
937
|
|
|
937
938
|
if slicer.col_indices != slice(None):
|
|
938
939
|
altexpt = altexpt[:, slicer.col_indices]
|
|
@@ -944,16 +945,10 @@ class SingleCellExperiment(RangedSummarizedExperiment):
|
|
|
944
945
|
if slicer.row_indices != slice(None):
|
|
945
946
|
rpair = rpair[slicer.row_indices, :]
|
|
946
947
|
|
|
947
|
-
if slicer.col_indices != slice(None):
|
|
948
|
-
rpair = rpair[:, slicer.col_indices]
|
|
949
|
-
|
|
950
948
|
new_row_pairs[rname] = rpair
|
|
951
949
|
|
|
952
950
|
new_col_pairs = {}
|
|
953
951
|
for cname, cpair in self._column_pairs.items():
|
|
954
|
-
if slicer.row_indices != slice(None):
|
|
955
|
-
cpair = cpair[slicer.row_indices, :]
|
|
956
|
-
|
|
957
952
|
if slicer.col_indices != slice(None):
|
|
958
953
|
cpair = cpair[:, slicer.col_indices]
|
|
959
954
|
|
|
@@ -51,7 +51,10 @@ col_data = pd.DataFrame(
|
|
|
51
51
|
|
|
52
52
|
def test_SCE_slice():
|
|
53
53
|
tse = SingleCellExperiment(
|
|
54
|
-
assays={"counts": counts},
|
|
54
|
+
assays={"counts": counts},
|
|
55
|
+
row_data=row_data,
|
|
56
|
+
column_data=col_data,
|
|
57
|
+
reduced_dims={"random_embeds": np.random.rand(ncols, 5)},
|
|
55
58
|
)
|
|
56
59
|
|
|
57
60
|
tse_slice = tse[0:10, 0:3]
|
|
File without changes
|
{SingleCellExperiment-0.4.1 → SingleCellExperiment-0.4.3}/.github/workflows/pypi-publish.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
|
{SingleCellExperiment-0.4.1 → SingleCellExperiment-0.4.3}/src/singlecellexperiment/__init__.py
RENAMED
|
File without changes
|
{SingleCellExperiment-0.4.1 → SingleCellExperiment-0.4.3}/src/singlecellexperiment/_combineutils.py
RENAMED
|
File without changes
|
{SingleCellExperiment-0.4.1 → SingleCellExperiment-0.4.3}/src/singlecellexperiment/_ioutils.py
RENAMED
|
File without changes
|
{SingleCellExperiment-0.4.1 → SingleCellExperiment-0.4.3}/src/singlecellexperiment/io/__init__.py
RENAMED
|
File without changes
|
{SingleCellExperiment-0.4.1 → SingleCellExperiment-0.4.3}/src/singlecellexperiment/io/h5ad.py
RENAMED
|
File without changes
|
{SingleCellExperiment-0.4.1 → SingleCellExperiment-0.4.3}/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
|