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.