cellmapper 0.1.1__tar.gz → 0.1.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.
Files changed (61) hide show
  1. {cellmapper-0.1.1 → cellmapper-0.1.3}/.gitignore +4 -0
  2. {cellmapper-0.1.1 → cellmapper-0.1.3}/.readthedocs.yaml +1 -1
  3. cellmapper-0.1.3/CHANGELOG.md +41 -0
  4. {cellmapper-0.1.1 → cellmapper-0.1.3}/LICENSE +1 -1
  5. {cellmapper-0.1.1 → cellmapper-0.1.3}/PKG-INFO +68 -17
  6. cellmapper-0.1.3/README.md +103 -0
  7. cellmapper-0.1.3/docs/api.md +25 -0
  8. {cellmapper-0.1.1 → cellmapper-0.1.3}/docs/conf.py +8 -0
  9. {cellmapper-0.1.1 → cellmapper-0.1.3}/docs/index.md +1 -1
  10. cellmapper-0.1.3/docs/notebooks/tutorials/index.rst +9 -0
  11. cellmapper-0.1.3/docs/notebooks/tutorials/spatial_mapping.ipynb +973 -0
  12. cellmapper-0.1.3/docs/notebooks/tutorials/spatial_smoothing.ipynb +1212 -0
  13. cellmapper-0.1.3/docs/references.bib +234 -0
  14. {cellmapper-0.1.1 → cellmapper-0.1.3}/pyproject.toml +12 -0
  15. {cellmapper-0.1.1 → cellmapper-0.1.3}/src/cellmapper/__init__.py +2 -1
  16. {cellmapper-0.1.1 → cellmapper-0.1.3}/src/cellmapper/cellmapper.py +203 -100
  17. {cellmapper-0.1.1 → cellmapper-0.1.3}/src/cellmapper/check.py +8 -3
  18. cellmapper-0.1.3/src/cellmapper/evaluate.py +521 -0
  19. {cellmapper-0.1.1 → cellmapper-0.1.3}/src/cellmapper/knn.py +213 -22
  20. cellmapper-0.1.3/src/cellmapper/utils.py +216 -0
  21. cellmapper-0.1.3/tests/conftest.py +255 -0
  22. cellmapper-0.1.3/tests/test_cellmapper.py +461 -0
  23. cellmapper-0.1.3/tests/test_check.py +34 -0
  24. cellmapper-0.1.3/tests/test_evaluate.py +50 -0
  25. cellmapper-0.1.3/tests/test_neighbors.py +177 -0
  26. cellmapper-0.1.3/tests/test_utils.py +132 -0
  27. cellmapper-0.1.1/CHANGELOG.md +0 -22
  28. cellmapper-0.1.1/README.md +0 -61
  29. cellmapper-0.1.1/docs/api.md +0 -39
  30. cellmapper-0.1.1/docs/notebooks/example.ipynb +0 -171
  31. cellmapper-0.1.1/docs/references.bib +0 -10
  32. cellmapper-0.1.1/src/cellmapper/evaluate.py +0 -323
  33. cellmapper-0.1.1/tests/conftest.py +0 -130
  34. cellmapper-0.1.1/tests/test_cellmapper.py +0 -68
  35. cellmapper-0.1.1/tests/test_neighbors.py +0 -33
  36. {cellmapper-0.1.1 → cellmapper-0.1.3}/.codecov.yaml +0 -0
  37. {cellmapper-0.1.1 → cellmapper-0.1.3}/.cruft.json +0 -0
  38. {cellmapper-0.1.1 → cellmapper-0.1.3}/.editorconfig +0 -0
  39. {cellmapper-0.1.1 → cellmapper-0.1.3}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
  40. {cellmapper-0.1.1 → cellmapper-0.1.3}/.github/ISSUE_TEMPLATE/config.yml +0 -0
  41. {cellmapper-0.1.1 → cellmapper-0.1.3}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
  42. {cellmapper-0.1.1 → cellmapper-0.1.3}/.github/workflows/build.yaml +0 -0
  43. {cellmapper-0.1.1 → cellmapper-0.1.3}/.github/workflows/release.yaml +0 -0
  44. {cellmapper-0.1.1 → cellmapper-0.1.3}/.github/workflows/test.yaml +0 -0
  45. {cellmapper-0.1.1 → cellmapper-0.1.3}/.pre-commit-config.yaml +0 -0
  46. {cellmapper-0.1.1 → cellmapper-0.1.3}/.vscode/extensions.json +0 -0
  47. {cellmapper-0.1.1 → cellmapper-0.1.3}/.vscode/launch.json +0 -0
  48. {cellmapper-0.1.1 → cellmapper-0.1.3}/.vscode/settings.json +0 -0
  49. {cellmapper-0.1.1 → cellmapper-0.1.3}/biome.jsonc +0 -0
  50. {cellmapper-0.1.1 → cellmapper-0.1.3}/docs/_static/.gitkeep +0 -0
  51. {cellmapper-0.1.1 → cellmapper-0.1.3}/docs/_static/css/custom.css +0 -0
  52. {cellmapper-0.1.1 → cellmapper-0.1.3}/docs/_templates/.gitkeep +0 -0
  53. {cellmapper-0.1.1 → cellmapper-0.1.3}/docs/_templates/autosummary/class.rst +0 -0
  54. {cellmapper-0.1.1 → cellmapper-0.1.3}/docs/changelog.md +0 -0
  55. {cellmapper-0.1.1 → cellmapper-0.1.3}/docs/contributing.md +0 -0
  56. {cellmapper-0.1.1 → cellmapper-0.1.3}/docs/extensions/typed_returns.py +0 -0
  57. {cellmapper-0.1.1 → cellmapper-0.1.3}/docs/references.md +0 -0
  58. {cellmapper-0.1.1 → cellmapper-0.1.3}/src/cellmapper/logging.py +0 -0
  59. {cellmapper-0.1.1 → cellmapper-0.1.3}/tests/data/precomputed_leiden.csv +0 -0
  60. {cellmapper-0.1.1 → cellmapper-0.1.3}/tests/test_basic.py +0 -0
  61. {cellmapper-0.1.1 → cellmapper-0.1.3}/tests/test_neighbors_results.py +0 -0
@@ -18,3 +18,7 @@ __pycache__/
18
18
  # docs
19
19
  /docs/generated/
20
20
  /docs/_build/
21
+ .ipynb_checkpoints/
22
+
23
+ # datasets
24
+ *.h5ad
@@ -7,7 +7,7 @@ build:
7
7
  sphinx:
8
8
  configuration: docs/conf.py
9
9
  # disable this for more lenient docs builds
10
- fail_on_warning: true
10
+ fail_on_warning: false
11
11
  python:
12
12
  install:
13
13
  - method: pip
@@ -0,0 +1,41 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog][],
6
+ and this project adheres to [Semantic Versioning][].
7
+
8
+ [keep a changelog]: https://keepachangelog.com/en/1.0.0/
9
+ [semantic versioning]: https://semver.org/spec/v2.0.0.html
10
+
11
+ ## [Unreleased]
12
+
13
+ ## [v0.1.3]
14
+
15
+ ### Added
16
+ - Added a tutorial on spatial contextualization and niche identification {pr}`23`.
17
+ - Implemented a self-mapping mode with only a query dataset {pr}`21`.
18
+ - Allow importing a pre-computed dataset of transfered expression values {pr}`21`.
19
+ - Allow importing pre-computed neighborhood matrices {pr}`21`.
20
+ - Add a tutorial on spatial contextualization and niche identification {pr}`21`.
21
+ - Add an equal-weight kernel {pr}`22`.
22
+
23
+ ## [v0.1.2]
24
+
25
+ ### Added
26
+ - Included tests for the `check` module, and more tests for the main classes {pr}`15`.
27
+ - Implemented the computation of presence scores, following HNOCA-tools {pr}`16`.
28
+ - Added a `groupby` parameter to expression transfer evaluation {pr}`16`.
29
+ - Added a `test_var_key` parameter to expression transfer evaluation {pr}`19`.
30
+ - Added a tutorial on spatial mapping {pr}`19`.
31
+
32
+ ## [v0.1.1]
33
+
34
+ ### Changed
35
+ - Switched to `vcs`-based versioning {pr}`5`.
36
+
37
+ ### Added
38
+ - Added PyPI badge.
39
+
40
+ ## [v0.1.0]
41
+ Initial package release.
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2025, Marius Lange
3
+ Copyright (c) 2025, QuaDBioLab
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cellmapper
3
- Version: 0.1.1
3
+ Version: 0.1.3
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
@@ -9,7 +9,7 @@ Author: Marius Lange
9
9
  Maintainer-email: Marius Lange <marius.lange@bsse.ethz.ch>
10
10
  License: MIT License
11
11
 
12
- Copyright (c) 2025, Marius Lange
12
+ Copyright (c) 2025, QuaDBioLab
13
13
 
14
14
  Permission is hereby granted, free of charge, to any person obtaining a copy
15
15
  of this software and associated documentation files (the "Software"), to deal
@@ -65,6 +65,15 @@ Requires-Dist: sphinxext-opengraph; extra == 'doc'
65
65
  Provides-Extra: test
66
66
  Requires-Dist: coverage; extra == 'test'
67
67
  Requires-Dist: pytest; extra == 'test'
68
+ Requires-Dist: squidpy; extra == 'test'
69
+ Provides-Extra: tutorials
70
+ Requires-Dist: harmony-pytorch; extra == 'tutorials'
71
+ Requires-Dist: netgraph; extra == 'tutorials'
72
+ Requires-Dist: python-louvain; extra == 'tutorials'
73
+ Requires-Dist: scvi-tools; extra == 'tutorials'
74
+ Requires-Dist: seaborn; extra == 'tutorials'
75
+ Requires-Dist: sopa; extra == 'tutorials'
76
+ Requires-Dist: squidpy; extra == 'tutorials'
68
77
  Description-Content-Type: text/markdown
69
78
 
70
79
  # CellMapper
@@ -73,40 +82,64 @@ Description-Content-Type: text/markdown
73
82
  [![Coverage][badge-coverage]][coverage]
74
83
  [![Pre-commit.ci][badge-pre-commit]][pre-commit]
75
84
  [![PyPI][badge-pypi]][pypi]
85
+ [![Documentation][badge-docs]][docs]
76
86
 
77
87
  [badge-tests]: https://github.com/quadbio/cellmapper/actions/workflows/test.yaml/badge.svg
78
88
  [badge-coverage]: https://codecov.io/gh/quadbio/cellmapper/branch/main/graph/badge.svg
79
89
  [badge-pre-commit]: https://results.pre-commit.ci/badge/github/quadbio/cellmapper/main.svg
80
90
  [badge-pypi]: https://img.shields.io/pypi/v/cellmapper.svg
91
+ [badge-docs]: https://img.shields.io/readthedocs/cellmapper
81
92
 
82
- 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.
93
+ 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.
83
94
 
84
- ## Getting started
95
+ Inspired by scanpy's [ingest][] and the [HNOCA-tools][] packages. Check out the [docs][] to learn more, in particular our [tutorials][].
96
+
97
+ ## Key use cases
98
+
99
+ - Transfer cell type labels and expression values from dissociated to spatial datasets.
100
+ - Transfer embeddings between arbitrary query and reference datasets.
101
+ - Compute presence scores for query datasets in large reference atlasses.
102
+ - Identify niches in spatial datasets by contextualizing latent spaces in spatial coordinates.
103
+ - Evaluate the results of transferring labels, embeddings and feature spaces using a variety of metrics.
85
104
 
86
- Please refer to the [documentation][],
87
- in particular, the [API documentation][].
105
+ The core idea of `CellMapper` is to separate the method (k-NN graph with some kernel applied to get a mapping matrix) from the application (mapping across arbitrary representations), to be flexible and fast. The tool currently supports [pynndescent][], [sklearn][], [faiss][] and [rapids][] for neighborhood search, implements a variety of graph kernels, and is closely integrated with `AnnData` objects.
88
106
 
89
107
  ## Installation
90
108
 
91
109
  You need to have Python 3.10 or newer installed on your system.
92
110
  If you don't have Python installed, we recommend installing [uv][].
93
111
 
94
- There are several alternative options to install cellmapper:
112
+ There are two alternative options to install ``cellmapper``:
95
113
 
96
- <!--
97
- 1) Install the latest release of `cellmapper` from [PyPI][]:
114
+ - Install the latest release from [PyPI][]:
98
115
 
99
- ```bash
100
- pip install cellmapper
101
- ```
102
- -->
116
+ ```bash
117
+ pip install cellmapper
118
+ ```
119
+
120
+ - Install the latest development version:
121
+
122
+ ```bash
123
+ pip install git+https://github.com/quadbio/cellmapper.git@main
124
+ ```
103
125
 
104
- 1. Install the latest development version:
126
+ ## Getting started
127
+
128
+ This package assumes that you have ``query`` and ``reference`` AnnData objects, with a joint embedding computed and stored in ``.obsm``. We explicilty do not compute this joint embedding, but there are plenty of method you can use to get such joint embeddings, e.g. [GimVI][] or [ENVI][] for spatial mapping, [GLUE][], [MIDAS][] and [MOFA+][] for modality translation, and [scVI][], [scANVI][] and [scArches][] for query-to-reference mapping - this is just a small selection!
129
+
130
+ With a joint embedding in ``.obsm["X_joint"]`` at hand, the simplest way to use ``CellMapper`` is as follows:
131
+ ```Python
132
+ from cellmapper import CellMapper
105
133
 
106
- ```bash
107
- pip install git+https://github.com/quadbio/cellmapper.git@main
134
+ cmap = CellMapper(query, reference).fit(
135
+ use_rep="X_joint", obs_keys="celltype", obsm_keys="X_umap", layer_key="X"
136
+ )
108
137
  ```
109
138
 
139
+ This will transfer data from the reference to the query dataset, including celltype labels stored in ``reference.obs``, a UMAP embedding stored in ``reference.obsm``, and expression values stored in ``reference.X``.
140
+
141
+ There are many ways to customize this, e.g. use different ways to compute k-NN graphs and to turn them into mapping matrices, and we implement a few methods to evaluate whether your k-NN transfer was sucessful. The tool also implements a `self-mapping` mode (only a query object, no reference), which is useful for spatial contextualization. Check out the [docs][] to learn more.
142
+
110
143
  ## Release notes
111
144
 
112
145
  See the [changelog][].
@@ -123,8 +156,26 @@ Please cite this GitHub repo if you find CellMapper useful for your research.
123
156
  [issue tracker]: https://github.com/quadbio/cellmapper/issues
124
157
  [tests]: https://github.com/quadbio/cellmapper/actions/workflows/test.yaml
125
158
  [changelog]: https://cellmapper.readthedocs.io/en/latest/changelog.html
126
- [api documentation]: https://cellmapper.readthedocs.io/en/latest/api.html
159
+ [docs]: https://cellmapper.readthedocs.io/
160
+ [tutorials]: https://cellmapper.readthedocs.io/en/latest/notebooks/tutorials/index.html
127
161
  [pypi]: https://pypi.org/project/cellmapper
128
162
  [coverage]: https://codecov.io/gh/quadbio/cellmapper
129
163
  [pre-commit]: https://results.pre-commit.ci/latest/github/quadbio/cellmapper/main
130
164
  [pypi]: https://pypi.org/project/cellmapper/
165
+
166
+ [faiss]: https://github.com/facebookresearch/faiss
167
+ [pynndescent]: https://github.com/lmcinnes/pynndescent
168
+ [sklearn]: https://scikit-learn.org/stable/modules/neighbors.html
169
+ [rapids]: https://docs.rapids.ai/api/cuml/stable/api/#nearest-neighbors
170
+
171
+ [ingest]: https://scanpy.readthedocs.io/en/stable/generated/scanpy.tl.ingest.html
172
+ [HNOCA-tools]: https://devsystemslab.github.io/HNOCA-tools/
173
+
174
+ [GimVI]: https://docs.scvi-tools.org/en/stable/api/reference/scvi.external.GIMVI.html#
175
+ [ENVI]: https://scenvi.readthedocs.io/en/latest/#
176
+ [GLUE]: https://scglue.readthedocs.io/en/latest/
177
+ [MIDAS]: https://scmidas.readthedocs.io/en/latest/
178
+ [MOFA+]: https://muon.readthedocs.io/en/latest/omics/multi.html
179
+ [scVI]: https://docs.scvi-tools.org/en/stable/api/reference/scvi.model.SCVI.html
180
+ [scANVI]: https://docs.scvi-tools.org/en/stable/api/reference/scvi.model.SCANVI.html
181
+ [scArches]: https://docs.scarches.org/en/latest/
@@ -0,0 +1,103 @@
1
+ # CellMapper
2
+
3
+ [![Tests][badge-tests]][tests]
4
+ [![Coverage][badge-coverage]][coverage]
5
+ [![Pre-commit.ci][badge-pre-commit]][pre-commit]
6
+ [![PyPI][badge-pypi]][pypi]
7
+ [![Documentation][badge-docs]][docs]
8
+
9
+ [badge-tests]: https://github.com/quadbio/cellmapper/actions/workflows/test.yaml/badge.svg
10
+ [badge-coverage]: https://codecov.io/gh/quadbio/cellmapper/branch/main/graph/badge.svg
11
+ [badge-pre-commit]: https://results.pre-commit.ci/badge/github/quadbio/cellmapper/main.svg
12
+ [badge-pypi]: https://img.shields.io/pypi/v/cellmapper.svg
13
+ [badge-docs]: https://img.shields.io/readthedocs/cellmapper
14
+
15
+ 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.
16
+
17
+ Inspired by scanpy's [ingest][] and the [HNOCA-tools][] packages. Check out the [docs][] to learn more, in particular our [tutorials][].
18
+
19
+ ## Key use cases
20
+
21
+ - Transfer cell type labels and expression values from dissociated to spatial datasets.
22
+ - Transfer embeddings between arbitrary query and reference datasets.
23
+ - Compute presence scores for query datasets in large reference atlasses.
24
+ - Identify niches in spatial datasets by contextualizing latent spaces in spatial coordinates.
25
+ - Evaluate the results of transferring labels, embeddings and feature spaces using a variety of metrics.
26
+
27
+ The core idea of `CellMapper` is to separate the method (k-NN graph with some kernel applied to get a mapping matrix) from the application (mapping across arbitrary representations), to be flexible and fast. The tool currently supports [pynndescent][], [sklearn][], [faiss][] and [rapids][] for neighborhood search, implements a variety of graph kernels, and is closely integrated with `AnnData` objects.
28
+
29
+ ## Installation
30
+
31
+ You need to have Python 3.10 or newer installed on your system.
32
+ If you don't have Python installed, we recommend installing [uv][].
33
+
34
+ There are two alternative options to install ``cellmapper``:
35
+
36
+ - Install the latest release from [PyPI][]:
37
+
38
+ ```bash
39
+ pip install cellmapper
40
+ ```
41
+
42
+ - Install the latest development version:
43
+
44
+ ```bash
45
+ pip install git+https://github.com/quadbio/cellmapper.git@main
46
+ ```
47
+
48
+ ## Getting started
49
+
50
+ This package assumes that you have ``query`` and ``reference`` AnnData objects, with a joint embedding computed and stored in ``.obsm``. We explicilty do not compute this joint embedding, but there are plenty of method you can use to get such joint embeddings, e.g. [GimVI][] or [ENVI][] for spatial mapping, [GLUE][], [MIDAS][] and [MOFA+][] for modality translation, and [scVI][], [scANVI][] and [scArches][] for query-to-reference mapping - this is just a small selection!
51
+
52
+ With a joint embedding in ``.obsm["X_joint"]`` at hand, the simplest way to use ``CellMapper`` is as follows:
53
+ ```Python
54
+ from cellmapper import CellMapper
55
+
56
+ cmap = CellMapper(query, reference).fit(
57
+ use_rep="X_joint", obs_keys="celltype", obsm_keys="X_umap", layer_key="X"
58
+ )
59
+ ```
60
+
61
+ This will transfer data from the reference to the query dataset, including celltype labels stored in ``reference.obs``, a UMAP embedding stored in ``reference.obsm``, and expression values stored in ``reference.X``.
62
+
63
+ There are many ways to customize this, e.g. use different ways to compute k-NN graphs and to turn them into mapping matrices, and we implement a few methods to evaluate whether your k-NN transfer was sucessful. The tool also implements a `self-mapping` mode (only a query object, no reference), which is useful for spatial contextualization. Check out the [docs][] to learn more.
64
+
65
+ ## Release notes
66
+
67
+ See the [changelog][].
68
+
69
+ ## Contact
70
+
71
+ If you found a bug, please use the [issue tracker][].
72
+
73
+ ## Citation
74
+
75
+ Please cite this GitHub repo if you find CellMapper useful for your research.
76
+
77
+ [uv]: https://github.com/astral-sh/uv
78
+ [issue tracker]: https://github.com/quadbio/cellmapper/issues
79
+ [tests]: https://github.com/quadbio/cellmapper/actions/workflows/test.yaml
80
+ [changelog]: https://cellmapper.readthedocs.io/en/latest/changelog.html
81
+ [docs]: https://cellmapper.readthedocs.io/
82
+ [tutorials]: https://cellmapper.readthedocs.io/en/latest/notebooks/tutorials/index.html
83
+ [pypi]: https://pypi.org/project/cellmapper
84
+ [coverage]: https://codecov.io/gh/quadbio/cellmapper
85
+ [pre-commit]: https://results.pre-commit.ci/latest/github/quadbio/cellmapper/main
86
+ [pypi]: https://pypi.org/project/cellmapper/
87
+
88
+ [faiss]: https://github.com/facebookresearch/faiss
89
+ [pynndescent]: https://github.com/lmcinnes/pynndescent
90
+ [sklearn]: https://scikit-learn.org/stable/modules/neighbors.html
91
+ [rapids]: https://docs.rapids.ai/api/cuml/stable/api/#nearest-neighbors
92
+
93
+ [ingest]: https://scanpy.readthedocs.io/en/stable/generated/scanpy.tl.ingest.html
94
+ [HNOCA-tools]: https://devsystemslab.github.io/HNOCA-tools/
95
+
96
+ [GimVI]: https://docs.scvi-tools.org/en/stable/api/reference/scvi.external.GIMVI.html#
97
+ [ENVI]: https://scenvi.readthedocs.io/en/latest/#
98
+ [GLUE]: https://scglue.readthedocs.io/en/latest/
99
+ [MIDAS]: https://scmidas.readthedocs.io/en/latest/
100
+ [MOFA+]: https://muon.readthedocs.io/en/latest/omics/multi.html
101
+ [scVI]: https://docs.scvi-tools.org/en/stable/api/reference/scvi.model.SCVI.html
102
+ [scANVI]: https://docs.scvi-tools.org/en/stable/api/reference/scvi.model.SCANVI.html
103
+ [scArches]: https://docs.scarches.org/en/latest/
@@ -0,0 +1,25 @@
1
+ # API Reference
2
+
3
+ ```{eval-rst}
4
+ The class :class:`~cellmapper.CellMapper` is the main class that users interact with:
5
+
6
+ .. module:: cellmapper
7
+ .. currentmodule:: cellmapper
8
+
9
+ .. autosummary::
10
+ :toctree: generated
11
+
12
+ CellMapper
13
+ ```
14
+
15
+ ```{eval-rst}
16
+ The following classes are more technical; :class:`~cellmapper.Neighbors` is called under the hood for k-NN graph computation.
17
+
18
+ .. module:: cellmapper
19
+ .. currentmodule:: cellmapper
20
+
21
+ .. autosummary::
22
+ :toctree: generated
23
+
24
+ Neighbors
25
+ ```
@@ -60,6 +60,7 @@ extensions = [
60
60
  "IPython.sphinxext.ipython_console_highlighting",
61
61
  "sphinxext.opengraph",
62
62
  *[p.stem for p in (HERE / "extensions").glob("*.py")],
63
+ "sphinx.ext.extlinks",
63
64
  ]
64
65
 
65
66
  autosummary_generate = True
@@ -98,6 +99,13 @@ intersphinx_mapping = {
98
99
  "numpy": ("https://numpy.org/doc/stable/", None),
99
100
  }
100
101
 
102
+ # extlinks config
103
+ extlinks = {
104
+ "issue": (f"{repository_url}/issues/%s", "#%s"),
105
+ "pr": (f"{repository_url}/pull/%s", "#%s"),
106
+ "ghuser": ("https://github.com/%s", "@%s"),
107
+ }
108
+
101
109
  # List of patterns, relative to source directory, that match files and
102
110
  # directories to ignore when looking for source files.
103
111
  # This pattern also affects html_static_path and html_extra_path.
@@ -11,5 +11,5 @@ changelog.md
11
11
  contributing.md
12
12
  references.md
13
13
 
14
- notebooks/example
14
+ notebooks/tutorials/index
15
15
  ```
@@ -0,0 +1,9 @@
1
+ Tutorials
2
+ =========
3
+ This section contains tutorials showcasing use cases for k-NN based mapping of cells across representations with :mod:`cellmapper`.
4
+
5
+ .. toctree::
6
+ :maxdepth: 1
7
+ :glob:
8
+
9
+ *