Entering edit mode
                    2.8 years ago
        otieno43
        
    
        ▴
    
    40
    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
Thank you. It helped.