Skip to content

Getting error when running RunMCA #17

@anemartinezlarrinaga2898

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions