Thank you. It helped.
• 0 views
•
link
I am trying to obtain a csv counts matrix file from the SeuratObject but I run into an error.
k<-as.data.frame(a$RNA) ## a it the SeuratObject Error in as.data.frame.default(a$RNA) : cannot coerce class ‘structure("Assay", package = "SeuratObject")’ to a data.frame
k<-as.matrix.data.frame(a$RNA) ## a it the SeuratObject Error in X[[j]] : this S4 class is not subsettable
Any help please
Did you follow the official guide?
https://satijalab.org/seurat/articles/essential_commands.html#data-access-1
Thank you. It helped.
Log in to answer this question.