How to obtain a data frame from "SeuratObject".
1
0
Entering edit mode
23 months ago
otieno43 ▴ 30

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

Count matrix • 2.0k views
ADD COMMENT
0
Entering edit mode
ADD COMMENT
0
Entering edit mode

Thank you. It helped.

ADD REPLY

Login before adding your answer.

Traffic: 1649 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6