Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/release-notes/0.12.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

```{rubric} Bug fixes
```
* `key_added` will now be used as the key for `.uns` for `tl.leiden` and `tl.louvain` {pr}`378` {smaller}`S Dicks`


```{rubric} Misc
```
2 changes: 2 additions & 0 deletions docs/release-notes/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# Release notes

## Version 0.12.0
```{include} /release-notes/0.12.7.md
```
```{include} /release-notes/0.12.6.md
```
```{include} /release-notes/0.12.5.md
Expand Down
8 changes: 4 additions & 4 deletions src/rapids_singlecell/tools/_clustering.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ def leiden(
categories=natsorted(map(str, np.unique(groups))),
)
# store information on the clustering parameters
adata.uns["leiden"] = {}
adata.uns["leiden"]["params"] = {
adata.uns[key_added] = {}
adata.uns[key_added]["params"] = {
"resolution": resolution,
"random_state": random_state,
"n_iterations": n_iterations,
Expand Down Expand Up @@ -319,8 +319,8 @@ def louvain(
values=groups.astype("U"),
categories=natsorted(map(str, np.unique(groups))),
)
adata.uns["louvain"] = {}
adata.uns["louvain"]["params"] = {
adata.uns[key_added] = {}
adata.uns[key_added]["params"] = {
"resolution": resolution,
"n_iterations": n_iterations,
"threshold": threshold,
Expand Down
Loading