You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is my code: countexp.Seurat<-sc.metabolism.Seurat(obj = countexp.Seurat, method = "AUCell", imputation = F, ncores = 2, metabolism.type = "KEGG")
And this is the error: Error in sc.metabolism.Seurat(obj = countexp.Seurat, method = "AUCell", :
no slot of name "counts" for this object of class "Assay5"
I have done everything that chat gpt has requested: and the same error comes up: # Load necessary libraries
library(Seurat)
library(scMetabolism)
Set the default assay to the one containing the counts data
This is my code: countexp.Seurat<-sc.metabolism.Seurat(obj = countexp.Seurat, method = "AUCell", imputation = F, ncores = 2, metabolism.type = "KEGG")
And this is the error: Error in sc.metabolism.Seurat(obj = countexp.Seurat, method = "AUCell", :
no slot of name "counts" for this object of class "Assay5"
I have done everything that chat gpt has requested: and the same error comes up: # Load necessary libraries
library(Seurat)
library(scMetabolism)
Set the default assay to the one containing the counts data
DefaultAssay(countexp.Seurat) <- "RNA"
Access the counts data
counts_data <- GetAssayData(countexp.Seurat, slot = "counts")
Run the metabolic analysis using the Seurat object
metabolic_analysis <- sc.metabolism.Seurat(obj = countexp.Seurat, method = "AUCell", imputation = TRUE, ncores = 2, metabolism.type = "KEGG")
Please help if possible
The text was updated successfully, but these errors were encountered: