diff --git a/R/methods-Vision.R b/R/methods-Vision.R index 7f8dc990..44b689f3 100644 --- a/R/methods-Vision.R +++ b/R/methods-Vision.R @@ -595,7 +595,7 @@ setMethod("Vision", signature(data = "Seurat"), stop("Package \"Seurat\" needed to load this data object. Please install it.", call. = FALSE) } - + obj <- data args <- list(...) @@ -621,13 +621,13 @@ setMethod("Vision", signature(data = "Seurat"), } # Get latent space - if (is.null(dimRed) && "pca" %in% Reductions(obj)) { + if (is.null(dimRed) && "pca" %in% Seurat:Reductions(obj)) { dimRed <- "pca" } if (!("latentSpace" %in% names(args))){ - latentSpace <- Embeddings(obj, + latentSpace <- Seurat::Embeddings(obj, reduction = dimRed ) @@ -653,7 +653,7 @@ setMethod("Vision", signature(data = "Seurat"), message(sprintf("Adding Visualization: %s", name)) - coordinates <- Embeddings(obj, + coordinates <- Seurat:Embeddings(obj, reduction = method) vis <- addProjection(vis,