Skip to content

Commit

Permalink
Fixed groupSingleton bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mvfki committed Nov 15, 2023
1 parent 17d3289 commit cb345dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/clustering.R
Original file line number Diff line number Diff line change
Expand Up @@ -222,10 +222,10 @@ groupSingletons <- function(
names(connectivity) <- clusterNames
ids <- as.character(ids)
for (i in singletons) {
i.cells <- names(which(ids == i))
i.cells <- which(ids == i)
for (j in clusterNames) {
j.cells <- names(which(ids == j))
subSNN <- SNN[i.cells, j.cells]
j.cells <- which(ids == j)
subSNN <- SNN[i.cells, j.cells, drop = FALSE]
# to match previous behavior, random seed being set in WhichCells
set.seed(1)
if (is.object(subSNN))
Expand Down

0 comments on commit cb345dd

Please sign in to comment.