I'm trying to use XCMS2 to search METLIN for MS/MS spectra, and I'm stuck at one of the first steps. When I try the collect() function, I get this error:
Error in function (classes, fdef, mtable) :
unable to find an inherited method for function "collect", for signature "xcmsRaw"
Here is the code I'm using:
library(xcms)
Data.raw <- xcmsRaw(filename="20110724pooledplasma-MSMS-06.mzdata.xml", includeMSn=TRUE)
Data.raw
Data.coll <- collect(Data.raw, rt=30)
Any suggestions? Thanks in advance!
Laura