Skip to content

Commit

Permalink
update keywords (#127)
Browse files Browse the repository at this point in the history
* update keywords

* added docs
  • Loading branch information
Intron7 authored Feb 23, 2024
1 parent bda090e commit 7e70952
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 16 deletions.
5 changes: 5 additions & 0 deletions docs/release-notes/0.9.6.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
### 0.9.6 {small}`The Future`

```{rubric} Bug fixes
```
* {func}`~rapids_singlecell.tl.louvain` and {func}`~rapids_singlecell.tl.leiden` now works with next version of scanpy {pr}`127` {smaller}`S Dicks`
3 changes: 3 additions & 0 deletions docs/release-notes/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
# Release notes

## Version 0.9.0
```{include} /release-notes/0.9.6.md
``````
```{include} /release-notes/0.9.5.md
``````
Expand Down
32 changes: 16 additions & 16 deletions src/rapids_singlecell/tools/_clustering.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ def leiden(
if restrict_to is not None:
restrict_key, restrict_categories = restrict_to
adjacency, restrict_indices = restrict_adjacency(
adata,
restrict_key,
restrict_categories,
adjacency,
adata=adata,
restrict_key=restrict_key,
restrict_categories=restrict_categories,
adjacency=adjacency,
)
offsets = cudf.Series(adjacency.indptr)
indices = cudf.Series(adjacency.indices)
Expand Down Expand Up @@ -125,11 +125,11 @@ def leiden(
key_added += "_R"
groups = rename_groups(
adata,
key_added,
restrict_key,
restrict_categories,
restrict_indices,
groups,
key_added=key_added,
restrict_key=restrict_key,
restrict_categories=restrict_categories,
restrict_indices=restrict_indices,
groups=groups,
)
adata.obs[key_added] = pd.Categorical(
values=groups.astype("U"),
Expand Down Expand Up @@ -233,8 +233,8 @@ def louvain(
adjacency, restrict_indices = restrict_adjacency(
adata,
restrict_key,
restrict_categories,
adjacency,
restrict_categories=restrict_categories,
adjacency=adjacency,
)

offsets = cudf.Series(adjacency.indptr)
Expand Down Expand Up @@ -275,11 +275,11 @@ def louvain(
key_added += "_R"
groups = rename_groups(
adata,
key_added,
restrict_key,
restrict_categories,
restrict_indices,
groups,
key_added=key_added,
restrict_key=restrict_key,
restrict_categories=restrict_categories,
restrict_indices=restrict_indices,
groups=groups,
)

adata.obs[key_added] = pd.Categorical(
Expand Down

0 comments on commit 7e70952

Please sign in to comment.