Skip to content

Commit

Permalink
Add BBKNN (#264)
Browse files Browse the repository at this point in the history
* add bbknn

* add test

* updates docs

* add docstring

* Update pyproject.toml

Co-authored-by: Philipp A. <[email protected]>

* update neighbors

* add releasenote for neighbors

* update test

* add annotation

* switch batch confirmation

* update test wording

* Update src/rapids_singlecell/preprocessing/_neighbors.py

Co-authored-by: Philipp A. <[email protected]>

* Format docs

---------

Co-authored-by: Philipp A. <[email protected]>
  • Loading branch information
Intron7 and flying-sheep authored Sep 26, 2024
1 parent 8c34dd1 commit 8ebce65
Show file tree
Hide file tree
Showing 7 changed files with 308 additions and 61 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ __pycache__/
/*cache/
.ipynb_checkpoints/
/data/
.vscode/

# Distribution / packaging
/dist/
Expand Down
1 change: 1 addition & 0 deletions docs/api/scanpy_gpu.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ Any transformation of the data matrix that is not a tool. Other than `tools`, pr
:toctree: generated/
pp.neighbors
pp.bbknn
```

## Tools: `tl`
Expand Down
2 changes: 2 additions & 0 deletions docs/release-notes/0.10.9.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
```{rubric} Features
```
* add `key_added` parameter to `tl.pca`, `tl.tsne`, and `tl.umap` that allows to control where to put the output within the AnnData object {pr}`244` {smaller}`P Angerer`
* adds `pp.bbknn` using `raft` and `cuml` as the backend {pr}`264` {smaller}`S Dicks`

```{rubric} Performance
```
Expand All @@ -15,3 +16,4 @@
* refactor docstrings to work better in RTD {pr}`242` {smaller}`S Dicks`
* remove Conda from CI {pr}`247` {smaller}`S Dicks`
* add `cupy` as rapids dependency {pr}`254` {smaller}`S Dicks`
* refactored `pp.neighbors` {pr}`264` {smaller}`S Dicks`
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ doc = [
test = [
"pytest",
"profimp",
"scanpy[test]>=1.10.0"
"scanpy[test]>=1.10.0",
"bbknn",
]

[project.urls]
Expand Down
2 changes: 1 addition & 1 deletion src/rapids_singlecell/preprocessing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from ._harmony_integrate import harmony_integrate
from ._hvg import highly_variable_genes
from ._neighbors import neighbors
from ._neighbors import bbknn, neighbors
from ._normalize import log1p, normalize_pearson_residuals, normalize_total
from ._pca import pca
from ._regress_out import regress_out
Expand Down
Loading

0 comments on commit 8ebce65

Please sign in to comment.