From 7e709521b21a493828c1ca533a33a1e5bd9225a9 Mon Sep 17 00:00:00 2001 From: Severin Dicks <37635888+Intron7@users.noreply.github.com> Date: Fri, 23 Feb 2024 12:25:38 +0100 Subject: [PATCH] update keywords (#127) * update keywords * added docs --- docs/release-notes/0.9.6.md | 5 ++++ docs/release-notes/index.md | 3 ++ src/rapids_singlecell/tools/_clustering.py | 32 +++++++++++----------- 3 files changed, 24 insertions(+), 16 deletions(-) create mode 100644 docs/release-notes/0.9.6.md diff --git a/docs/release-notes/0.9.6.md b/docs/release-notes/0.9.6.md new file mode 100644 index 00000000..3dd1dca8 --- /dev/null +++ b/docs/release-notes/0.9.6.md @@ -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` diff --git a/docs/release-notes/index.md b/docs/release-notes/index.md index 61078ee0..a50fa582 100644 --- a/docs/release-notes/index.md +++ b/docs/release-notes/index.md @@ -3,6 +3,9 @@ # Release notes ## Version 0.9.0 +```{include} /release-notes/0.9.6.md +`````` + ```{include} /release-notes/0.9.5.md `````` diff --git a/src/rapids_singlecell/tools/_clustering.py b/src/rapids_singlecell/tools/_clustering.py index c616234f..00db19ab 100644 --- a/src/rapids_singlecell/tools/_clustering.py +++ b/src/rapids_singlecell/tools/_clustering.py @@ -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) @@ -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"), @@ -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) @@ -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(