-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
Hello,
Im trying to run CellID and Im getting the following error:
Error in (function (cond) :
error in evaluating the argument 'x' in selecting a method for function 'as.matrix': `assay` must be one of "RNA", not "data".
This is the code Im using:
annotate.seu <- readRDS(paste(path.file,file.name.seu,sep="/"))
matrix <- annotate.seu@assays$RNA@counts
metadata <- annotate.seu@meta.data
# Restricting to protein-coding genes
data("HgProteinCodingGenes")
matrixProt <- matrix[rownames(matrix) %in% HgProteinCodingGenes,]
# Generate a Seurat Object
data <- CreateSeuratObject(counts = matrixProt, project = "Annotation", meta.data = metadata)
data <- data %>% FindVariableFeatures() %>% NormalizeData() %>% ScaleData()
data <- RunMCA(data)
any idea?
Thanks!
Metadata
Metadata
Assignees
Labels
No labels