no method for coercing this S4 class to a vector
0
0
Entering edit mode
anara92 • 0
@anara92-10628
Last seen 6.2 years ago

Hello everyone,

I'm trying to use the mclust method on an .FCS format file (which is a flow cytometry format file) and I read this file into R as flowFrame object.

However, mclust does not accept the .fcs file as a matrix & I tried to convert it to a matrix with the function as.matrix, and I get this error:

Error in as.vector(data) :
no method for coercing this S4 class to a vector

I've found similar questions where they explain you have to add importMethodsFrom(S4Vectors,as.matrix) into the NAMESPACE of mclust, which I did. I also did importMethodsFrom(BiocGenerics,as.vector) in the NAMESPACE of mclust. However, I'm still not able to use mclust.

If, anyone knows other clustering methods that use GMM model that could accept .FCS format without converting, I'd be very happy.

mclust s4vectors S4 as.matrix .FCS • 942 views