Skip to content

Commit

Permalink
Merge pull request #5970 from DawnEve/develop
Browse files Browse the repository at this point in the history
fix bug when regress out only 1 gene.
  • Loading branch information
timoast authored May 20, 2022
2 parents a957e65 + 41d2426 commit a1c70e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/preprocessing.R
Original file line number Diff line number Diff line change
Expand Up @@ -2637,7 +2637,7 @@ ScaleData.default <- function(
if (any(vars.to.regress %in% rownames(x = object))) {
latent.data <- cbind(
latent.data,
t(x = object[vars.to.regress[vars.to.regress %in% rownames(x = object)], ])
t(x = object[vars.to.regress[vars.to.regress %in% rownames(x = object)], , drop=F])
)
}
# Currently, RegressOutMatrix will do nothing if latent.data = NULL
Expand Down

0 comments on commit a1c70e0

Please sign in to comment.