no method for coercing this S4 class to a vector
0
0
Entering edit mode
anara92 • 0
@anara92-10628
Last seen 8.4 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.

P.S. any advice or reading would be appreciated!

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 • 1.6k views
ADD COMMENT

Login before adding your answer.

Traffic: 545 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