cellmapper 0.1.4__tar.gz → 0.2.1__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.
- {cellmapper-0.1.4 → cellmapper-0.2.1}/CHANGELOG.md +22 -0
- {cellmapper-0.1.4 → cellmapper-0.2.1}/PKG-INFO +7 -3
- {cellmapper-0.1.4 → cellmapper-0.2.1}/README.md +4 -2
- cellmapper-0.2.1/docs/notebooks/tutorials/data_denoising.ipynb +829 -0
- cellmapper-0.2.1/docs/notebooks/tutorials/query_to_reference_mapping.ipynb +1028 -0
- cellmapper-0.2.1/docs/notebooks/tutorials/spatial_mapping.ipynb +956 -0
- {cellmapper-0.1.4 → cellmapper-0.2.1}/docs/notebooks/tutorials/spatial_smoothing.ipynb +15 -16
- {cellmapper-0.1.4 → cellmapper-0.2.1}/docs/references.bib +72 -12
- {cellmapper-0.1.4 → cellmapper-0.2.1}/pyproject.toml +2 -0
- {cellmapper-0.1.4 → cellmapper-0.2.1}/src/cellmapper/__init__.py +3 -2
- cellmapper-0.2.1/src/cellmapper/_docs.py +109 -0
- {cellmapper-0.1.4 → cellmapper-0.2.1}/src/cellmapper/check.py +5 -2
- cellmapper-0.2.1/src/cellmapper/constants.py +20 -0
- cellmapper-0.2.1/src/cellmapper/model/_knn_backend.py +197 -0
- {cellmapper-0.1.4 → cellmapper-0.2.1}/src/cellmapper/model/cellmapper.py +342 -187
- {cellmapper-0.1.4 → cellmapper-0.2.1}/src/cellmapper/model/evaluate.py +30 -28
- cellmapper-0.2.1/src/cellmapper/model/kernel.py +440 -0
- cellmapper-0.2.1/src/cellmapper/model/mapping_operator.py +521 -0
- cellmapper-0.2.1/src/cellmapper/model/neighbors.py +416 -0
- {cellmapper-0.1.4 → cellmapper-0.2.1}/src/cellmapper/utils.py +7 -36
- {cellmapper-0.1.4 → cellmapper-0.2.1}/tests/conftest.py +56 -3
- {cellmapper-0.1.4 → cellmapper-0.2.1}/tests/model/test_evaluate.py +8 -8
- cellmapper-0.1.4/tests/model/test_neighbors.py → cellmapper-0.2.1/tests/model/test_kernel.py +35 -19
- cellmapper-0.2.1/tests/model/test_mapping_operator.py +272 -0
- cellmapper-0.1.4/tests/model/test_neighbors_results.py → cellmapper-0.2.1/tests/model/test_neighbors.py +12 -11
- {cellmapper-0.1.4 → cellmapper-0.2.1}/tests/model/test_query_to_reference_mapping.py +25 -22
- cellmapper-0.2.1/tests/model/test_self_mapping.py +504 -0
- {cellmapper-0.1.4 → cellmapper-0.2.1}/tests/test_utils.py +27 -61
- cellmapper-0.1.4/docs/notebooks/tutorials/spatial_mapping.ipynb +0 -980
- cellmapper-0.1.4/src/cellmapper/constants.py +0 -4
- cellmapper-0.1.4/src/cellmapper/model/knn.py +0 -492
- cellmapper-0.1.4/tests/model/test_self_mapping.py +0 -208
- {cellmapper-0.1.4 → cellmapper-0.2.1}/.codecov.yaml +0 -0
- {cellmapper-0.1.4 → cellmapper-0.2.1}/.cruft.json +0 -0
- {cellmapper-0.1.4 → cellmapper-0.2.1}/.editorconfig +0 -0
- {cellmapper-0.1.4 → cellmapper-0.2.1}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
- {cellmapper-0.1.4 → cellmapper-0.2.1}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {cellmapper-0.1.4 → cellmapper-0.2.1}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
- {cellmapper-0.1.4 → cellmapper-0.2.1}/.github/workflows/build.yaml +0 -0
- {cellmapper-0.1.4 → cellmapper-0.2.1}/.github/workflows/release.yaml +0 -0
- {cellmapper-0.1.4 → cellmapper-0.2.1}/.github/workflows/test.yaml +0 -0
- {cellmapper-0.1.4 → cellmapper-0.2.1}/.gitignore +0 -0
- {cellmapper-0.1.4 → cellmapper-0.2.1}/.pre-commit-config.yaml +0 -0
- {cellmapper-0.1.4 → cellmapper-0.2.1}/.readthedocs.yaml +0 -0
- {cellmapper-0.1.4 → cellmapper-0.2.1}/.vscode/extensions.json +0 -0
- {cellmapper-0.1.4 → cellmapper-0.2.1}/.vscode/launch.json +0 -0
- {cellmapper-0.1.4 → cellmapper-0.2.1}/.vscode/settings.json +0 -0
- {cellmapper-0.1.4 → cellmapper-0.2.1}/LICENSE +0 -0
- {cellmapper-0.1.4 → cellmapper-0.2.1}/biome.jsonc +0 -0
- {cellmapper-0.1.4 → cellmapper-0.2.1}/docs/_static/.gitkeep +0 -0
- {cellmapper-0.1.4 → cellmapper-0.2.1}/docs/_static/css/custom.css +0 -0
- {cellmapper-0.1.4 → cellmapper-0.2.1}/docs/_static/images/cellmapper_logo_dark.svg +0 -0
- {cellmapper-0.1.4 → cellmapper-0.2.1}/docs/_static/images/cellmapper_logo_light.svg +0 -0
- {cellmapper-0.1.4 → cellmapper-0.2.1}/docs/_templates/.gitkeep +0 -0
- {cellmapper-0.1.4 → cellmapper-0.2.1}/docs/_templates/autosummary/class.rst +0 -0
- {cellmapper-0.1.4 → cellmapper-0.2.1}/docs/api.md +0 -0
- {cellmapper-0.1.4 → cellmapper-0.2.1}/docs/changelog.md +0 -0
- {cellmapper-0.1.4 → cellmapper-0.2.1}/docs/conf.py +0 -0
- {cellmapper-0.1.4 → cellmapper-0.2.1}/docs/contributing.md +0 -0
- {cellmapper-0.1.4 → cellmapper-0.2.1}/docs/extensions/typed_returns.py +0 -0
- {cellmapper-0.1.4 → cellmapper-0.2.1}/docs/index.md +0 -0
- {cellmapper-0.1.4 → cellmapper-0.2.1}/docs/notebooks/tutorials/index.rst +0 -0
- {cellmapper-0.1.4 → cellmapper-0.2.1}/docs/references.md +0 -0
- {cellmapper-0.1.4 → cellmapper-0.2.1}/src/cellmapper/logging.py +0 -0
- {cellmapper-0.1.4 → cellmapper-0.2.1}/src/cellmapper/model/embedding.py +0 -0
- {cellmapper-0.1.4 → cellmapper-0.2.1}/tests/data/precomputed_leiden.csv +0 -0
- {cellmapper-0.1.4 → cellmapper-0.2.1}/tests/model/test_embedding.py +0 -0
- {cellmapper-0.1.4 → cellmapper-0.2.1}/tests/test_basic.py +0 -0
- {cellmapper-0.1.4 → cellmapper-0.2.1}/tests/test_check.py +0 -0
|
@@ -10,6 +10,28 @@ and this project adheres to [Semantic Versioning][].
|
|
|
10
10
|
|
|
11
11
|
## [Unreleased]
|
|
12
12
|
|
|
13
|
+
## [v0.2.1]
|
|
14
|
+
### Changed
|
|
15
|
+
- Move some duplicated docstrings into a central _docs.py file {pr}`41`
|
|
16
|
+
|
|
17
|
+
### Added
|
|
18
|
+
- Added some tests for edge cases in the `MappingOperator` class {pr}`41`
|
|
19
|
+
- Treat faiss-cpu and faiss-gpu separately {pr}`41`
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## [v0.2.0]
|
|
23
|
+
|
|
24
|
+
### Added
|
|
25
|
+
- Added a tutorial on same-modality query to reference mapping {pr}`38`
|
|
26
|
+
- Added a tutorial on data smoothing {pr}`37`
|
|
27
|
+
- Added an option to return the mapping probabilities for categorical `.obs` mapping {pr}`39`
|
|
28
|
+
- Added a `MappingOperator` class which allows for iterative mapping matrix applicatino in self-mapping mode {pr}`35`
|
|
29
|
+
- Add the `umap` method to compute symmetric k-NN connectivities in self-mapping mode {pr}`34`
|
|
30
|
+
|
|
31
|
+
### Changed
|
|
32
|
+
- Refectored the neighbors classes into a `Neighobrs` and a `Kernel` class and moved symmetrization into the `Kernel` class {pr}`36`
|
|
33
|
+
|
|
34
|
+
|
|
13
35
|
## [v0.1.4]
|
|
14
36
|
### Changed
|
|
15
37
|
- Rename mapping methods to `map_obs`, `map_obsm`, and `map_layers`, and improve support for numerical `.obs` annotations {pr}`30`.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cellmapper
|
|
3
|
-
Version: 0.1
|
|
3
|
+
Version: 0.2.1
|
|
4
4
|
Summary: k-NN-based mapping of cells across representations
|
|
5
5
|
Project-URL: Documentation, https://cellmapper.readthedocs.io/
|
|
6
6
|
Project-URL: Homepage, https://github.com/quadbio/cellmapper
|
|
@@ -36,6 +36,7 @@ Classifier: Programming Language :: Python :: 3.12
|
|
|
36
36
|
Classifier: Programming Language :: Python :: 3.13
|
|
37
37
|
Requires-Python: >=3.10
|
|
38
38
|
Requires-Dist: anndata>=0.11
|
|
39
|
+
Requires-Dist: docrep
|
|
39
40
|
Requires-Dist: numpy
|
|
40
41
|
Requires-Dist: packaging
|
|
41
42
|
Requires-Dist: pandas
|
|
@@ -63,6 +64,7 @@ Requires-Dist: sphinxcontrib-bibtex>=1; extra == 'doc'
|
|
|
63
64
|
Requires-Dist: sphinxext-opengraph; extra == 'doc'
|
|
64
65
|
Provides-Extra: test
|
|
65
66
|
Requires-Dist: coverage; extra == 'test'
|
|
67
|
+
Requires-Dist: faiss-cpu; extra == 'test'
|
|
66
68
|
Requires-Dist: pytest; extra == 'test'
|
|
67
69
|
Requires-Dist: squidpy>=1.6; extra == 'test'
|
|
68
70
|
Provides-Extra: tutorials
|
|
@@ -84,6 +86,7 @@ Description-Content-Type: text/markdown
|
|
|
84
86
|
[![PyPI][badge-pypi]][pypi]
|
|
85
87
|
[![Documentation][badge-docs]][docs]
|
|
86
88
|
[![Downloads][badge-downloads]][downloads]
|
|
89
|
+
[![Zenodo][badge-zenodo]][zenodo]
|
|
87
90
|
|
|
88
91
|
[badge-tests]: https://github.com/quadbio/cellmapper/actions/workflows/test.yaml/badge.svg
|
|
89
92
|
[badge-coverage]: https://codecov.io/gh/quadbio/cellmapper/branch/main/graph/badge.svg
|
|
@@ -91,6 +94,7 @@ Description-Content-Type: text/markdown
|
|
|
91
94
|
[badge-pypi]: https://img.shields.io/pypi/v/cellmapper.svg
|
|
92
95
|
[badge-docs]: https://img.shields.io/readthedocs/cellmapper
|
|
93
96
|
[badge-downloads]: https://static.pepy.tech/badge/cellmapper
|
|
97
|
+
[badge-zenodo]: https://zenodo.org/badge/973714072.svg
|
|
94
98
|
|
|
95
99
|
k-NN-based mapping of cells across representations to tranfer labels, embeddings and expression values. Works for millions of cells, on CPU and GPU, across molecular modalities, between spatial and non-spatial data, for arbitrary query and reference datasets. Using [faiss][] to compute k-NN graphs, CellMapper takes about 30 seconds to transfer cell type labels from 1.5M cells to 1.5M cells on a single RTX 4090 with 60 GB CPU memory.
|
|
96
100
|
|
|
@@ -151,8 +155,7 @@ See the [changelog][].
|
|
|
151
155
|
If you found a bug, please use the [issue tracker][].
|
|
152
156
|
|
|
153
157
|
## Citation
|
|
154
|
-
|
|
155
|
-
Please cite this GitHub repo if you find CellMapper useful for your research.
|
|
158
|
+
Please use our [zenodo][] entry to cite this software.
|
|
156
159
|
|
|
157
160
|
[uv]: https://github.com/astral-sh/uv
|
|
158
161
|
[issue tracker]: https://github.com/quadbio/cellmapper/issues
|
|
@@ -165,6 +168,7 @@ Please cite this GitHub repo if you find CellMapper useful for your research.
|
|
|
165
168
|
[pre-commit]: https://results.pre-commit.ci/latest/github/quadbio/cellmapper/main
|
|
166
169
|
[pypi]: https://pypi.org/project/cellmapper/
|
|
167
170
|
[downloads]: https://pepy.tech/project/cellmapper
|
|
171
|
+
[zenodo]: https://doi.org/10.5281/zenodo.15683594
|
|
168
172
|
|
|
169
173
|
[faiss]: https://github.com/facebookresearch/faiss
|
|
170
174
|
[pynndescent]: https://github.com/lmcinnes/pynndescent
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
[![PyPI][badge-pypi]][pypi]
|
|
7
7
|
[![Documentation][badge-docs]][docs]
|
|
8
8
|
[![Downloads][badge-downloads]][downloads]
|
|
9
|
+
[![Zenodo][badge-zenodo]][zenodo]
|
|
9
10
|
|
|
10
11
|
[badge-tests]: https://github.com/quadbio/cellmapper/actions/workflows/test.yaml/badge.svg
|
|
11
12
|
[badge-coverage]: https://codecov.io/gh/quadbio/cellmapper/branch/main/graph/badge.svg
|
|
@@ -13,6 +14,7 @@
|
|
|
13
14
|
[badge-pypi]: https://img.shields.io/pypi/v/cellmapper.svg
|
|
14
15
|
[badge-docs]: https://img.shields.io/readthedocs/cellmapper
|
|
15
16
|
[badge-downloads]: https://static.pepy.tech/badge/cellmapper
|
|
17
|
+
[badge-zenodo]: https://zenodo.org/badge/973714072.svg
|
|
16
18
|
|
|
17
19
|
k-NN-based mapping of cells across representations to tranfer labels, embeddings and expression values. Works for millions of cells, on CPU and GPU, across molecular modalities, between spatial and non-spatial data, for arbitrary query and reference datasets. Using [faiss][] to compute k-NN graphs, CellMapper takes about 30 seconds to transfer cell type labels from 1.5M cells to 1.5M cells on a single RTX 4090 with 60 GB CPU memory.
|
|
18
20
|
|
|
@@ -73,8 +75,7 @@ See the [changelog][].
|
|
|
73
75
|
If you found a bug, please use the [issue tracker][].
|
|
74
76
|
|
|
75
77
|
## Citation
|
|
76
|
-
|
|
77
|
-
Please cite this GitHub repo if you find CellMapper useful for your research.
|
|
78
|
+
Please use our [zenodo][] entry to cite this software.
|
|
78
79
|
|
|
79
80
|
[uv]: https://github.com/astral-sh/uv
|
|
80
81
|
[issue tracker]: https://github.com/quadbio/cellmapper/issues
|
|
@@ -87,6 +88,7 @@ Please cite this GitHub repo if you find CellMapper useful for your research.
|
|
|
87
88
|
[pre-commit]: https://results.pre-commit.ci/latest/github/quadbio/cellmapper/main
|
|
88
89
|
[pypi]: https://pypi.org/project/cellmapper/
|
|
89
90
|
[downloads]: https://pepy.tech/project/cellmapper
|
|
91
|
+
[zenodo]: https://doi.org/10.5281/zenodo.15683594
|
|
90
92
|
|
|
91
93
|
[faiss]: https://github.com/facebookresearch/faiss
|
|
92
94
|
[pynndescent]: https://github.com/lmcinnes/pynndescent
|