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

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 • 942 views

Login before adding your answer.

Traffic: 294 users visited in the last hour
Help About
Access RSS

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

Powered by the version 2.3.6