Skip to content

Commit

Permalink
use Seurat::ScaleData()
Browse files Browse the repository at this point in the history
  • Loading branch information
evanbiederstedt committed Jun 28, 2021
1 parent 0db86fd commit ec4502e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/conos.R
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ scaledMatricesP2 <- function(p2.objs, data.type, od.genes, var.scale) {
#' @keywords internal
scaledMatricesSeurat <- function(so.objs, data.type, od.genes, var.scale) {
if (var.scale) {
so.objs <- lapply(so.objs, function(so){ ScaleData(so, features = rownames(so))})
so.objs <- lapply(so.objs, function(so){ Seurat::ScaleData(so, features = rownames(so))})
}

if (data.type == 'scaled') {
Expand All @@ -67,7 +67,7 @@ scaledMatricesSeurat <- function(so.objs, data.type, od.genes, var.scale) {
scaledMatricesSeuratV3 <- function(so.objs, data.type, od.genes, var.scale, neighborhood.average) {
checkSeuratV3()
if (var.scale) {
so.objs <- lapply(so.objs, function(so){ ScaleData(so, features = rownames(so))})
so.objs <- lapply(so.objs, function(so){ Seurat::ScaleData(so, features = rownames(so))})
}
slot <- switch(
EXPR = data.type,
Expand Down

0 comments on commit ec4502e

Please sign in to comment.