How to obtain a data frame from "SeuratObject".
1
0
Entering edit mode
16 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 • 1.5k 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: 3097 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