cellmapper 0.2.7__tar.gz → 0.3.0__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 (74) hide show
  1. {cellmapper-0.2.7 → cellmapper-0.3.0}/.cruft.json +4 -3
  2. {cellmapper-0.2.7 → cellmapper-0.3.0}/.github/ISSUE_TEMPLATE/bug_report.yml +1 -2
  3. {cellmapper-0.2.7 → cellmapper-0.3.0}/.github/copilot-instructions.md +1 -0
  4. cellmapper-0.3.0/.github/dependabot.yml +12 -0
  5. {cellmapper-0.2.7 → cellmapper-0.3.0}/.github/workflows/build.yaml +5 -6
  6. {cellmapper-0.2.7 → cellmapper-0.3.0}/.github/workflows/release.yaml +9 -8
  7. {cellmapper-0.2.7 → cellmapper-0.3.0}/.github/workflows/test.yaml +22 -17
  8. {cellmapper-0.2.7 → cellmapper-0.3.0}/.pre-commit-config.yaml +9 -3
  9. {cellmapper-0.2.7 → cellmapper-0.3.0}/.readthedocs.yaml +2 -2
  10. {cellmapper-0.2.7 → cellmapper-0.3.0}/AGENTS.md +13 -12
  11. cellmapper-0.3.0/CHANGELOG.md +5 -0
  12. {cellmapper-0.2.7 → cellmapper-0.3.0}/PKG-INFO +10 -36
  13. {cellmapper-0.2.7 → cellmapper-0.3.0}/README.md +8 -9
  14. {cellmapper-0.2.7 → cellmapper-0.3.0}/REVIEW_GUIDE.md +14 -14
  15. {cellmapper-0.2.7 → cellmapper-0.3.0}/docs/conf.py +6 -4
  16. {cellmapper-0.2.7 → cellmapper-0.3.0}/docs/contributing.md +65 -49
  17. {cellmapper-0.2.7 → cellmapper-0.3.0}/pyproject.toml +36 -34
  18. {cellmapper-0.2.7 → cellmapper-0.3.0}/src/cellmapper/model/_knn_backend.py +6 -2
  19. {cellmapper-0.2.7 → cellmapper-0.3.0}/src/cellmapper/model/cellmapper.py +128 -18
  20. cellmapper-0.3.0/tests/model/test_hierarchical_label_transfer.py +91 -0
  21. {cellmapper-0.2.7 → cellmapper-0.3.0}/tests/model/test_kernel.py +44 -1
  22. cellmapper-0.2.7/CHANGELOG.md +0 -133
  23. cellmapper-0.2.7/docs/_templates/autosummary/class.rst +0 -61
  24. cellmapper-0.2.7/docs/extensions/typed_returns.py +0 -32
  25. {cellmapper-0.2.7 → cellmapper-0.3.0}/.codecov.yaml +0 -0
  26. {cellmapper-0.2.7 → cellmapper-0.3.0}/.editorconfig +0 -0
  27. {cellmapper-0.2.7 → cellmapper-0.3.0}/.github/ISSUE_TEMPLATE/config.yml +0 -0
  28. {cellmapper-0.2.7 → cellmapper-0.3.0}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
  29. {cellmapper-0.2.7 → cellmapper-0.3.0}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
  30. {cellmapper-0.2.7 → cellmapper-0.3.0}/.gitignore +0 -0
  31. {cellmapper-0.2.7 → cellmapper-0.3.0}/.python-version +0 -0
  32. {cellmapper-0.2.7 → cellmapper-0.3.0}/.vscode/extensions.json +0 -0
  33. {cellmapper-0.2.7 → cellmapper-0.3.0}/.vscode/launch.json +0 -0
  34. {cellmapper-0.2.7 → cellmapper-0.3.0}/.vscode/settings.json +0 -0
  35. {cellmapper-0.2.7 → cellmapper-0.3.0}/CLAUDE.md +0 -0
  36. {cellmapper-0.2.7 → cellmapper-0.3.0}/LICENSE +0 -0
  37. {cellmapper-0.2.7 → cellmapper-0.3.0}/biome.jsonc +0 -0
  38. {cellmapper-0.2.7 → cellmapper-0.3.0}/docs/_static/.gitkeep +0 -0
  39. {cellmapper-0.2.7 → cellmapper-0.3.0}/docs/_static/css/custom.css +0 -0
  40. {cellmapper-0.2.7 → cellmapper-0.3.0}/docs/_static/images/cellmapper_logo_dark.svg +0 -0
  41. {cellmapper-0.2.7 → cellmapper-0.3.0}/docs/_static/images/cellmapper_logo_light.svg +0 -0
  42. {cellmapper-0.2.7 → cellmapper-0.3.0}/docs/_templates/.gitkeep +0 -0
  43. {cellmapper-0.2.7 → cellmapper-0.3.0}/docs/api.md +0 -0
  44. {cellmapper-0.2.7 → cellmapper-0.3.0}/docs/changelog.md +0 -0
  45. {cellmapper-0.2.7 → cellmapper-0.3.0}/docs/index.md +0 -0
  46. {cellmapper-0.2.7 → cellmapper-0.3.0}/docs/notebooks/tutorials/data_denoising.ipynb +0 -0
  47. {cellmapper-0.2.7 → cellmapper-0.3.0}/docs/notebooks/tutorials/index.rst +0 -0
  48. {cellmapper-0.2.7 → cellmapper-0.3.0}/docs/notebooks/tutorials/query_to_reference_mapping.ipynb +0 -0
  49. {cellmapper-0.2.7 → cellmapper-0.3.0}/docs/notebooks/tutorials/spatial_mapping.ipynb +0 -0
  50. {cellmapper-0.2.7 → cellmapper-0.3.0}/docs/notebooks/tutorials/spatial_smoothing.ipynb +0 -0
  51. {cellmapper-0.2.7 → cellmapper-0.3.0}/docs/references.bib +0 -0
  52. {cellmapper-0.2.7 → cellmapper-0.3.0}/docs/references.md +0 -0
  53. {cellmapper-0.2.7 → cellmapper-0.3.0}/src/cellmapper/__init__.py +0 -0
  54. {cellmapper-0.2.7 → cellmapper-0.3.0}/src/cellmapper/_docs.py +0 -0
  55. {cellmapper-0.2.7 → cellmapper-0.3.0}/src/cellmapper/check.py +0 -0
  56. {cellmapper-0.2.7 → cellmapper-0.3.0}/src/cellmapper/constants.py +0 -0
  57. {cellmapper-0.2.7 → cellmapper-0.3.0}/src/cellmapper/logging.py +0 -0
  58. {cellmapper-0.2.7 → cellmapper-0.3.0}/src/cellmapper/model/embedding.py +0 -0
  59. {cellmapper-0.2.7 → cellmapper-0.3.0}/src/cellmapper/model/evaluate.py +0 -0
  60. {cellmapper-0.2.7 → cellmapper-0.3.0}/src/cellmapper/model/kernel.py +0 -0
  61. {cellmapper-0.2.7 → cellmapper-0.3.0}/src/cellmapper/model/mapping_operator.py +0 -0
  62. {cellmapper-0.2.7 → cellmapper-0.3.0}/src/cellmapper/model/neighbors.py +0 -0
  63. {cellmapper-0.2.7 → cellmapper-0.3.0}/src/cellmapper/utils.py +0 -0
  64. {cellmapper-0.2.7 → cellmapper-0.3.0}/tests/conftest.py +0 -0
  65. {cellmapper-0.2.7 → cellmapper-0.3.0}/tests/data/precomputed_leiden.csv +0 -0
  66. {cellmapper-0.2.7 → cellmapper-0.3.0}/tests/model/test_embedding.py +0 -0
  67. {cellmapper-0.2.7 → cellmapper-0.3.0}/tests/model/test_evaluate.py +0 -0
  68. {cellmapper-0.2.7 → cellmapper-0.3.0}/tests/model/test_mapping_operator.py +0 -0
  69. {cellmapper-0.2.7 → cellmapper-0.3.0}/tests/model/test_neighbors.py +0 -0
  70. {cellmapper-0.2.7 → cellmapper-0.3.0}/tests/model/test_query_to_reference_mapping.py +0 -0
  71. {cellmapper-0.2.7 → cellmapper-0.3.0}/tests/model/test_self_mapping.py +0 -0
  72. {cellmapper-0.2.7 → cellmapper-0.3.0}/tests/test_basic.py +0 -0
  73. {cellmapper-0.2.7 → cellmapper-0.3.0}/tests/test_check.py +0 -0
  74. {cellmapper-0.2.7 → cellmapper-0.3.0}/tests/test_utils.py +0 -0
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "template": "https://github.com/scverse/cookiecutter-scverse",
3
- "commit": "6ff5b92b5d44ea6d8a88e47538475718d467db95",
4
- "checkout": "v0.7.0",
3
+ "commit": "6518dfa1abde7379ea7255daf0ce09c23f2b4c94",
4
+ "checkout": "v0.8.0",
5
5
  "context": {
6
6
  "cookiecutter": {
7
7
  "project_name": "cellmapper",
@@ -13,6 +13,7 @@
13
13
  "github_repo": "cellmapper",
14
14
  "license": "MIT License",
15
15
  "ide_integration": true,
16
+ "issue_categorization": "",
16
17
  "_copy_without_render": [
17
18
  ".github/workflows/build.yaml",
18
19
  ".github/workflows/test.yaml",
@@ -36,7 +37,7 @@
36
37
  "trim_blocks": true
37
38
  },
38
39
  "_template": "https://github.com/scverse/cookiecutter-scverse",
39
- "_commit": "6ff5b92b5d44ea6d8a88e47538475718d467db95"
40
+ "_commit": "6518dfa1abde7379ea7255daf0ce09c23f2b4c94"
40
41
  }
41
42
  },
42
43
  "directory": null
@@ -9,8 +9,7 @@ body:
9
9
  detailing how to provide the necessary information for us to reproduce your bug. In brief:
10
10
  * Please provide exact steps how to reproduce the bug in a clean Python environment.
11
11
  * In case it's not clear what's causing this bug, please provide the data or the data generation procedure.
12
- * Sometimes it is not possible to share the data, but usually it is possible to replicate problems on publicly
13
- available datasets or to share a subset of your data.
12
+ * Replicate problems on public datasets or share data subsets when full sharing isn't possible.
14
13
 
15
14
  - type: textarea
16
15
  id: report
@@ -1,6 +1,7 @@
1
1
  # Copilot Instructions for CellMapper
2
2
 
3
3
  Canonical repo guidance lives in:
4
+
4
5
  - `AGENTS.md` — architecture, invariants, and validation commands
5
6
  - `REVIEW_GUIDE.md` — PR review workflow, risk areas, and changed-path test lookup
6
7
 
@@ -0,0 +1,12 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: github-actions
4
+ directory: /
5
+ schedule:
6
+ interval: weekly
7
+ cooldown:
8
+ default-days: 7
9
+ groups:
10
+ actions-deps:
11
+ patterns:
12
+ - "*"
@@ -10,21 +10,20 @@ concurrency:
10
10
  group: ${{ github.workflow }}-${{ github.ref }}
11
11
  cancel-in-progress: true
12
12
 
13
- defaults:
14
- run:
15
- # to fail on error in multiline statements (-e), in pipes (-o pipefail), and on unset variables (-u).
16
- shell: bash -euo pipefail {0}
13
+ permissions:
14
+ contents: read
17
15
 
18
16
  jobs:
19
17
  package:
20
18
  runs-on: ubuntu-latest
21
19
  steps:
22
- - uses: actions/checkout@v5
20
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
23
21
  with:
24
22
  filter: blob:none
25
23
  fetch-depth: 0
24
+ persist-credentials: false
26
25
  - name: Install uv
27
- uses: astral-sh/setup-uv@v7
26
+ uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
28
27
  - name: Build package
29
28
  run: uv build
30
29
  - name: Check package
@@ -4,12 +4,9 @@ on:
4
4
  release:
5
5
  types: [published]
6
6
 
7
- defaults:
8
- run:
9
- # to fail on error in multiline statements (-e), in pipes (-o pipefail), and on unset variables (-u).
10
- shell: bash -euo pipefail {0}
11
-
12
7
  # Use "trusted publishing", see https://docs.pypi.org/trusted-publishers/
8
+ permissions: {}
9
+
13
10
  jobs:
14
11
  release:
15
12
  name: Upload release to PyPI
@@ -18,15 +15,19 @@ jobs:
18
15
  name: pypi
19
16
  url: https://pypi.org/p/cellmapper
20
17
  permissions:
18
+ contents: read
21
19
  id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
22
20
  steps:
23
- - uses: actions/checkout@v5
21
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
24
22
  with:
25
23
  filter: blob:none
26
24
  fetch-depth: 0
25
+ persist-credentials: false
27
26
  - name: Install uv
28
- uses: astral-sh/setup-uv@v7
27
+ uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
28
+ with:
29
+ enable-cache: false
29
30
  - name: Build package
30
31
  run: uv build
31
32
  - name: Publish package distributions to PyPI
32
- uses: pypa/gh-action-pypi-publish@release/v1
33
+ uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3
@@ -12,10 +12,8 @@ concurrency:
12
12
  group: ${{ github.workflow }}-${{ github.ref }}
13
13
  cancel-in-progress: true
14
14
 
15
- defaults:
16
- run:
17
- # to fail on error in multiline statements (-e), in pipes (-o pipefail), and on unset variables (-u).
18
- shell: bash -euo pipefail {0}
15
+ permissions:
16
+ contents: read
19
17
 
20
18
  jobs:
21
19
  # Get the test environment from hatch as defined in pyproject.toml.
@@ -24,16 +22,17 @@ jobs:
24
22
  # Check [[tool.hatch.envs.hatch-test.matrix]] in pyproject.toml and https://hatch.pypa.io/latest/environment/ for
25
23
  # more details.
26
24
  get-environments:
27
- runs-on: ubuntu-latest
25
+ runs-on: ubuntu-slim
28
26
  outputs:
29
27
  envs: ${{ steps.get-envs.outputs.envs }}
30
28
  steps:
31
- - uses: actions/checkout@v5
29
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
32
30
  with:
33
31
  filter: blob:none
34
32
  fetch-depth: 0
33
+ persist-credentials: false
35
34
  - name: Install uv
36
- uses: astral-sh/setup-uv@v7
35
+ uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
37
36
  - name: Get test environments
38
37
  id: get-envs
39
38
  run: |
@@ -51,6 +50,9 @@ jobs:
51
50
  # Run tests through hatch. Spawns a separate runner for each environment defined in the hatch matrix obtained above.
52
51
  test:
53
52
  needs: get-environments
53
+ permissions:
54
+ id-token: write # for codecov OIDC
55
+ contents: read
54
56
 
55
57
  strategy:
56
58
  fail-fast: false
@@ -60,20 +62,22 @@ jobs:
60
62
 
61
63
  name: ${{ matrix.env.label }}
62
64
  runs-on: ${{ matrix.os }}
63
- # Allow pre-release tests to fail without blocking the PR (dependency compatibility issues)
64
- continue-on-error: ${{ contains(matrix.env.name, 'pre') }}
65
+ continue-on-error: ${{ contains(matrix.env.name, 'pre') }} # make "all-green" pass even if pre-release job fails
65
66
 
66
67
  steps:
67
- - uses: actions/checkout@v5
68
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
68
69
  with:
69
70
  filter: blob:none
70
71
  fetch-depth: 0
72
+ persist-credentials: false
71
73
  - name: Install uv
72
- uses: astral-sh/setup-uv@v7
74
+ uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
73
75
  with:
74
76
  python-version: ${{ matrix.env.python }}
75
77
  - name: create hatch environment
76
78
  run: uvx hatch env create ${{ matrix.env.name }}
79
+ - name: list all all installed package versions
80
+ run: uvx hatch run ${{ matrix.env.name }}:uv pip list
77
81
  - name: run tests using hatch
78
82
  env:
79
83
  MPLBACKEND: agg
@@ -82,14 +86,15 @@ jobs:
82
86
  run: uvx hatch run ${{ matrix.env.name }}:run-cov -v --color=yes -n auto
83
87
  - name: generate coverage report
84
88
  run: |
85
- # See https://coverage.readthedocs.io/en/latest/config.html#run-patch
89
+ # See https://coverage.readthedocs.io/page/config.html#run-patch
86
90
  test -f .coverage || uvx hatch run ${{ matrix.env.name }}:cov-combine
87
91
  uvx hatch run ${{ matrix.env.name }}:cov-report # report visibly
88
92
  uvx hatch run ${{ matrix.env.name }}:coverage xml # create report for upload
89
93
  - name: Upload coverage
90
- uses: codecov/codecov-action@v5
94
+ uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1
91
95
  with:
92
- token: ${{ secrets.CODECOV_TOKEN }}
96
+ fail_ci_if_error: true
97
+ use_oidc: true
93
98
 
94
99
  # Check that all tests defined above pass. This makes it easy to set a single "required" test in branch
95
100
  # protection instead of having to update it frequently. See https://github.com/re-actors/alls-green#why.
@@ -101,6 +106,6 @@ jobs:
101
106
  - test
102
107
  runs-on: ubuntu-latest
103
108
  steps:
104
- - uses: re-actors/alls-green@release/v1
105
- with:
106
- jobs: ${{ toJSON(needs) }}
109
+ - uses: re-actors/alls-green@b5b5b37504aa4183270bd3d855c52a67f212be35 # v1.3.0
110
+ with:
111
+ jobs: ${{ toJSON(needs) }}
@@ -7,16 +7,16 @@ default_stages:
7
7
  minimum_pre_commit_version: 2.16.0
8
8
  repos:
9
9
  - repo: https://github.com/biomejs/pre-commit
10
- rev: v2.5.3
10
+ rev: v2.6.8
11
11
  hooks:
12
12
  - id: biome-format
13
13
  exclude: ^\.cruft\.json$ # inconsistent indentation with cruft - file never to be modified manually.
14
14
  - repo: https://github.com/tox-dev/pyproject-fmt
15
- rev: v2.25.3
15
+ rev: v2.31.2
16
16
  hooks:
17
17
  - id: pyproject-fmt
18
18
  - repo: https://github.com/astral-sh/ruff-pre-commit
19
- rev: v0.15.21
19
+ rev: v0.17.6
20
20
  hooks:
21
21
  - id: ruff-check
22
22
  types_or: [python, pyi, jupyter]
@@ -36,3 +36,9 @@ repos:
36
36
  # Check that there are no merge conflicts (could be generated by template sync)
37
37
  - id: check-merge-conflict
38
38
  args: [--assume-in-merge]
39
+
40
+ - repo: https://github.com/zizmorcore/zizmor-pre-commit
41
+ rev: v1.24.1
42
+ hooks:
43
+ - id: zizmor
44
+ args: [--no-progress, --fix]
@@ -1,9 +1,9 @@
1
- # https://docs.readthedocs.io/en/stable/config-file/v2.html
1
+ # https://docs.readthedocs.io/page/config-file/v2.html
2
2
  version: 2
3
3
  build:
4
4
  os: ubuntu-24.04
5
5
  tools:
6
- python: "3.13"
6
+ python: "3.14"
7
7
  nodejs: latest
8
8
  jobs:
9
9
  create_environment:
@@ -12,6 +12,7 @@ RAPIDS cuML.
12
12
  ## Trust Order
13
13
 
14
14
  When sources disagree:
15
+
15
16
  1. PR description and changed code
16
17
  2. This file (`AGENTS.md`)
17
18
  3. `REVIEW_GUIDE.md`
@@ -23,18 +24,18 @@ table below — everything else is delegated.
23
24
 
24
25
  ## Where To Find What
25
26
 
26
- | Topic | Source of truth |
27
- |-------|----------------|
28
- | User-facing overview, use cases, quickstart | `README.md` |
29
- | Public API reference | `docs/api.md` and autosummary under `docs/generated/` |
30
- | Tutorials (query→reference, spatial mapping, spatial smoothing, data denoising) | `docs/notebooks/tutorials/` |
31
- | Contributor setup, environments, docs build | `docs/contributing.md` |
32
- | Release notes | `docs/changelog.md` |
33
- | PR review workflow and risk areas | `REVIEW_GUIDE.md` |
34
- | Test fixtures | `tests/conftest.py`, `tests/data/` |
35
- | Kernel taxonomy and tunable thresholds (sklearn warning cutoff, spectral threshold) | `src/cellmapper/constants.py` |
36
- | Optional-dependency gating | `src/cellmapper/check.py` |
37
- | Method-level behavior (parameters, return shapes) | docstrings in `src/cellmapper/model/` |
27
+ | Topic | Source of truth |
28
+ | ----------------------------------------------------------------------------------- | ------------------------------------------------------------------ |
29
+ | User-facing overview, use cases, quickstart | `README.md` |
30
+ | Public API reference | `docs/api.md` and autosummary under `docs/generated/` |
31
+ | Tutorials (query→reference, spatial mapping, spatial smoothing, data denoising) | `docs/notebooks/tutorials/` |
32
+ | Contributor setup, environments, docs build | `docs/contributing.md` |
33
+ | Release notes | GitHub Releases (<https://github.com/quadbio/cellmapper/releases>) |
34
+ | PR review workflow and risk areas | `REVIEW_GUIDE.md` |
35
+ | Test fixtures | `tests/conftest.py`, `tests/data/` |
36
+ | Kernel taxonomy and tunable thresholds (sklearn warning cutoff, spectral threshold) | `src/cellmapper/constants.py` |
37
+ | Optional-dependency gating | `src/cellmapper/check.py` |
38
+ | Method-level behavior (parameters, return shapes) | docstrings in `src/cellmapper/model/` |
38
39
 
39
40
  ## Review Guidelines
40
41
 
@@ -0,0 +1,5 @@
1
+ # Changelog
2
+
3
+ Release notes for this project live in the GitHub releases page:
4
+
5
+ - <https://github.com/quadbio/cellmapper/releases>
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: cellmapper
3
- Version: 0.2.7
3
+ Version: 0.3.0
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
@@ -33,6 +33,7 @@ Classifier: Programming Language :: Python :: 3 :: Only
33
33
  Classifier: Programming Language :: Python :: 3.12
34
34
  Classifier: Programming Language :: Python :: 3.13
35
35
  Classifier: Programming Language :: Python :: 3.14
36
+ Classifier: Programming Language :: Python :: 3.15
36
37
  Requires-Python: >=3.12
37
38
  Requires-Dist: anndata>=0.11
38
39
  Requires-Dist: docrep
@@ -44,32 +45,6 @@ Requires-Dist: scanpy>=1.11
44
45
  Requires-Dist: scikit-learn
45
46
  Requires-Dist: scipy
46
47
  Requires-Dist: session-info2
47
- Provides-Extra: dev
48
- Requires-Dist: pre-commit; extra == 'dev'
49
- Requires-Dist: twine>=4.0.2; extra == 'dev'
50
- Provides-Extra: doc
51
- Requires-Dist: docutils!=0.18.*,!=0.19.*,<0.22,>=0.8; extra == 'doc'
52
- Requires-Dist: ipykernel; extra == 'doc'
53
- Requires-Dist: ipython; extra == 'doc'
54
- Requires-Dist: ipywidgets; extra == 'doc'
55
- Requires-Dist: myst-nb>=1.1; extra == 'doc'
56
- Requires-Dist: pandas; extra == 'doc'
57
- Requires-Dist: setuptools; extra == 'doc'
58
- Requires-Dist: sphinx-autodoc-typehints; extra == 'doc'
59
- Requires-Dist: sphinx-book-theme>=1; extra == 'doc'
60
- Requires-Dist: sphinx-copybutton; extra == 'doc'
61
- Requires-Dist: sphinx-tabs; extra == 'doc'
62
- Requires-Dist: sphinx>=8.1; extra == 'doc'
63
- Requires-Dist: sphinxcontrib-bibtex>=1; extra == 'doc'
64
- Requires-Dist: sphinxcontrib-katex; extra == 'doc'
65
- Requires-Dist: sphinxext-opengraph; extra == 'doc'
66
- Provides-Extra: test
67
- Requires-Dist: coverage>=7.10; extra == 'test'
68
- Requires-Dist: faiss-cpu; extra == 'test'
69
- Requires-Dist: pytest; extra == 'test'
70
- Requires-Dist: pytest-cov; extra == 'test'
71
- Requires-Dist: pytest-mock; extra == 'test'
72
- Requires-Dist: squidpy>=1.8; extra == 'test'
73
48
  Provides-Extra: tutorials
74
49
  Requires-Dist: cellrank>=2; extra == 'tutorials'
75
50
  Requires-Dist: harmony-pytorch; extra == 'tutorials'
@@ -119,7 +94,7 @@ The core idea of `CellMapper` is to separate the method (k-NN graph with some ke
119
94
  You need to have 🐍 Python 3.12 or newer installed on your system.
120
95
  If you don't have Python installed, we recommend installing [uv][].
121
96
 
122
- There are two alternative options to install ``cellmapper``:
97
+ There are two alternative options to install `cellmapper`:
123
98
 
124
99
  - 🚀 Install the latest release from [PyPI][]:
125
100
 
@@ -135,9 +110,10 @@ There are two alternative options to install ``cellmapper``:
135
110
 
136
111
  ## 🏁 Getting started
137
112
 
138
- This package assumes that you have ``query`` and ``reference`` AnnData objects, with a joint embedding computed and stored in ``.obsm``. While we implement some baseline approaches to compute joint embeddings (PCA and a fast reimplementation of CCA), we typically expect you to provide a pre-computed joint embedding from some task-specific representation learning tools, 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!
113
+ This package assumes that you have `query` and `reference` AnnData objects, with a joint embedding computed and stored in `.obsm`. While we implement some baseline approaches to compute joint embeddings (PCA and a fast reimplementation of CCA), we typically expect you to provide a pre-computed joint embedding from some task-specific representation learning tools, 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!
114
+
115
+ With a joint embedding in `.obsm["X_joint"]` at hand, the simplest way to use `CellMapper` is as follows:
139
116
 
140
- With a joint embedding in ``.obsm["X_joint"]`` at hand, the simplest way to use ``CellMapper`` is as follows:
141
117
  ```Python
142
118
  from cellmapper import CellMapper
143
119
 
@@ -146,25 +122,26 @@ cmap = CellMapper(query, reference).map(
146
122
  )
147
123
  ```
148
124
 
149
- 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``.
125
+ 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`.
150
126
 
151
127
  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 and data denoising. Check out the 📚 [docs][] to learn more.
152
128
 
153
129
  ## 📝 Release notes
154
130
 
155
- See the [changelog][].
131
+ See the [release notes][].
156
132
 
157
133
  ## 📬 Contact
158
134
 
159
135
  If you found a bug, please use the [issue tracker][].
160
136
 
161
137
  ## 📖 Citation
138
+
162
139
  Please use our [zenodo][] entry to cite this software.
163
140
 
164
141
  [uv]: https://github.com/astral-sh/uv
165
142
  [issue tracker]: https://github.com/quadbio/cellmapper/issues
166
143
  [tests]: https://github.com/quadbio/cellmapper/actions/workflows/test.yaml
167
- [changelog]: https://cellmapper.readthedocs.io/en/latest/changelog.html
144
+ [release notes]: https://github.com/quadbio/cellmapper/releases
168
145
  [docs]: https://cellmapper.readthedocs.io/
169
146
  [tutorials]: https://cellmapper.readthedocs.io/en/latest/notebooks/tutorials/index.html
170
147
  [pypi]: https://pypi.org/project/cellmapper
@@ -173,15 +150,12 @@ Please use our [zenodo][] entry to cite this software.
173
150
  [pypi]: https://pypi.org/project/cellmapper/
174
151
  [downloads]: https://pepy.tech/project/cellmapper
175
152
  [zenodo]: https://doi.org/10.5281/zenodo.15683594
176
-
177
153
  [faiss]: https://github.com/facebookresearch/faiss
178
154
  [pynndescent]: https://github.com/lmcinnes/pynndescent
179
155
  [sklearn]: https://scikit-learn.org/stable/modules/neighbors.html
180
156
  [rapids]: https://docs.rapids.ai/api/cuml/stable/api/#nearest-neighbors
181
-
182
157
  [ingest]: https://scanpy.readthedocs.io/en/stable/generated/scanpy.tl.ingest.html
183
158
  [HNOCA-tools]: https://devsystemslab.github.io/HNOCA-tools/
184
-
185
159
  [GimVI]: https://docs.scvi-tools.org/en/stable/api/reference/scvi.external.GIMVI.html#
186
160
  [ENVI]: https://scenvi.readthedocs.io/en/latest/#
187
161
  [GLUE]: https://scglue.readthedocs.io/en/latest/
@@ -35,7 +35,7 @@ The core idea of `CellMapper` is to separate the method (k-NN graph with some ke
35
35
  You need to have 🐍 Python 3.12 or newer installed on your system.
36
36
  If you don't have Python installed, we recommend installing [uv][].
37
37
 
38
- There are two alternative options to install ``cellmapper``:
38
+ There are two alternative options to install `cellmapper`:
39
39
 
40
40
  - 🚀 Install the latest release from [PyPI][]:
41
41
 
@@ -51,9 +51,10 @@ There are two alternative options to install ``cellmapper``:
51
51
 
52
52
  ## 🏁 Getting started
53
53
 
54
- This package assumes that you have ``query`` and ``reference`` AnnData objects, with a joint embedding computed and stored in ``.obsm``. While we implement some baseline approaches to compute joint embeddings (PCA and a fast reimplementation of CCA), we typically expect you to provide a pre-computed joint embedding from some task-specific representation learning tools, 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!
54
+ This package assumes that you have `query` and `reference` AnnData objects, with a joint embedding computed and stored in `.obsm`. While we implement some baseline approaches to compute joint embeddings (PCA and a fast reimplementation of CCA), we typically expect you to provide a pre-computed joint embedding from some task-specific representation learning tools, 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!
55
+
56
+ With a joint embedding in `.obsm["X_joint"]` at hand, the simplest way to use `CellMapper` is as follows:
55
57
 
56
- With a joint embedding in ``.obsm["X_joint"]`` at hand, the simplest way to use ``CellMapper`` is as follows:
57
58
  ```Python
58
59
  from cellmapper import CellMapper
59
60
 
@@ -62,25 +63,26 @@ cmap = CellMapper(query, reference).map(
62
63
  )
63
64
  ```
64
65
 
65
- 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``.
66
+ 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`.
66
67
 
67
68
  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 and data denoising. Check out the 📚 [docs][] to learn more.
68
69
 
69
70
  ## 📝 Release notes
70
71
 
71
- See the [changelog][].
72
+ See the [release notes][].
72
73
 
73
74
  ## 📬 Contact
74
75
 
75
76
  If you found a bug, please use the [issue tracker][].
76
77
 
77
78
  ## 📖 Citation
79
+
78
80
  Please use our [zenodo][] entry to cite this software.
79
81
 
80
82
  [uv]: https://github.com/astral-sh/uv
81
83
  [issue tracker]: https://github.com/quadbio/cellmapper/issues
82
84
  [tests]: https://github.com/quadbio/cellmapper/actions/workflows/test.yaml
83
- [changelog]: https://cellmapper.readthedocs.io/en/latest/changelog.html
85
+ [release notes]: https://github.com/quadbio/cellmapper/releases
84
86
  [docs]: https://cellmapper.readthedocs.io/
85
87
  [tutorials]: https://cellmapper.readthedocs.io/en/latest/notebooks/tutorials/index.html
86
88
  [pypi]: https://pypi.org/project/cellmapper
@@ -89,15 +91,12 @@ Please use our [zenodo][] entry to cite this software.
89
91
  [pypi]: https://pypi.org/project/cellmapper/
90
92
  [downloads]: https://pepy.tech/project/cellmapper
91
93
  [zenodo]: https://doi.org/10.5281/zenodo.15683594
92
-
93
94
  [faiss]: https://github.com/facebookresearch/faiss
94
95
  [pynndescent]: https://github.com/lmcinnes/pynndescent
95
96
  [sklearn]: https://scikit-learn.org/stable/modules/neighbors.html
96
97
  [rapids]: https://docs.rapids.ai/api/cuml/stable/api/#nearest-neighbors
97
-
98
98
  [ingest]: https://scanpy.readthedocs.io/en/stable/generated/scanpy.tl.ingest.html
99
99
  [HNOCA-tools]: https://devsystemslab.github.io/HNOCA-tools/
100
-
101
100
  [GimVI]: https://docs.scvi-tools.org/en/stable/api/reference/scvi.external.GIMVI.html#
102
101
  [ENVI]: https://scenvi.readthedocs.io/en/latest/#
103
102
  [GLUE]: https://scglue.readthedocs.io/en/latest/
@@ -29,25 +29,25 @@ Pointers only — see `AGENTS.md` for the actual invariants.
29
29
 
30
30
  Tests mirror the source tree.
31
31
 
32
- | Changed path | Primary tests |
33
- |--------------|---------------|
34
- | `src/cellmapper/model/cellmapper.py` | `tests/model/test_query_to_reference_mapping.py`, `tests/model/test_self_mapping.py` |
35
- | `src/cellmapper/model/kernel.py` | `tests/model/test_kernel.py` |
36
- | `src/cellmapper/model/mapping_operator.py` | `tests/model/test_mapping_operator.py` |
37
- | `src/cellmapper/model/neighbors.py` | `tests/model/test_neighbors.py` |
38
- | `src/cellmapper/model/embedding.py` | `tests/model/test_embedding.py` |
39
- | `src/cellmapper/model/evaluate.py` | `tests/model/test_evaluate.py` |
40
- | `src/cellmapper/model/_knn_backend.py` | `tests/model/test_neighbors.py`, `tests/model/test_kernel.py` |
41
- | `src/cellmapper/check.py` | `tests/test_check.py` |
42
- | `src/cellmapper/utils.py` | `tests/test_utils.py` |
43
- | End-to-end behavioral change | also `tests/test_basic.py` |
44
- | Fixture changes | `tests/conftest.py`, `tests/data/` |
32
+ | Changed path | Primary tests |
33
+ | ------------------------------------------ | ------------------------------------------------------------------------------------ |
34
+ | `src/cellmapper/model/cellmapper.py` | `tests/model/test_query_to_reference_mapping.py`, `tests/model/test_self_mapping.py` |
35
+ | `src/cellmapper/model/kernel.py` | `tests/model/test_kernel.py` |
36
+ | `src/cellmapper/model/mapping_operator.py` | `tests/model/test_mapping_operator.py` |
37
+ | `src/cellmapper/model/neighbors.py` | `tests/model/test_neighbors.py` |
38
+ | `src/cellmapper/model/embedding.py` | `tests/model/test_embedding.py` |
39
+ | `src/cellmapper/model/evaluate.py` | `tests/model/test_evaluate.py` |
40
+ | `src/cellmapper/model/_knn_backend.py` | `tests/model/test_neighbors.py`, `tests/model/test_kernel.py` |
41
+ | `src/cellmapper/check.py` | `tests/test_check.py` |
42
+ | `src/cellmapper/utils.py` | `tests/test_utils.py` |
43
+ | End-to-end behavioral change | also `tests/test_basic.py` |
44
+ | Fixture changes | `tests/conftest.py`, `tests/data/` |
45
45
 
46
46
  ## Testing
47
47
 
48
48
  - **New code** should be covered. Reuse fixtures from `tests/conftest.py`; prefer `pytest.mark.parametrize`; favor few meaningful tests over many redundant ones.
49
49
  - **Failing CI** is not to be waved through. Distinguish critical regressions from flakes; escalate critical ones.
50
- - **Modified tests** — scrutinize *how*. Relaxed tolerances, removed assertions, deleted cases, or loosened matrices are red flags. Require explicit justification in the PR body.
50
+ - **Modified tests** — scrutinize _how_. Relaxed tolerances, removed assertions, deleted cases, or loosened matrices are red flags. Require explicit justification in the PR body.
51
51
 
52
52
  ## Documentation Impact
53
53
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # This file only contains a selection of the most common options. For a full
4
4
  # list see the documentation:
5
- # https://www.sphinx-doc.org/en/master/usage/configuration.html
5
+ # https://www.sphinx-doc.org/page/usage/configuration.html
6
6
 
7
7
  # -- Path setup --------------------------------------------------------------
8
8
  import shutil
@@ -59,9 +59,10 @@ extensions = [
59
59
  "sphinxcontrib.bibtex",
60
60
  "sphinxcontrib.katex",
61
61
  "sphinx_autodoc_typehints",
62
- "sphinx_tabs.tabs",
62
+ "sphinx_design",
63
63
  "IPython.sphinxext.ipython_console_highlighting",
64
64
  "sphinxext.opengraph",
65
+ "scverse_misc.sphinx_ext",
65
66
  *[p.stem for p in (HERE / "extensions").glob("*.py")],
66
67
  "sphinx.ext.extlinks",
67
68
  ]
@@ -88,6 +89,7 @@ nb_output_stderr = "remove"
88
89
  nb_execution_mode = "off"
89
90
  nb_merge_streams = True
90
91
  typehints_defaults = "braces"
92
+ always_use_bars_union = True # use `|` instead of `Union` in types even when building with Python ≤3.14
91
93
 
92
94
  source_suffix = {
93
95
  ".rst": "restructuredtext",
@@ -97,8 +99,8 @@ source_suffix = {
97
99
 
98
100
  intersphinx_mapping = {
99
101
  "python": ("https://docs.python.org/3", None),
100
- "anndata": ("https://anndata.readthedocs.io/en/stable/", None),
101
- "scanpy": ("https://scanpy.readthedocs.io/en/stable/", None),
102
+ "anndata": ("https://anndata.scverse.org/en/stable/", None),
103
+ "scanpy": ("https://scanpy.scverse.org/en/stable/", None),
102
104
  "numpy": ("https://numpy.org/doc/stable/", None),
103
105
  }
104
106