My LC/MS data were generated using Agilent Q-TOF 6520, which is considered to be high-resolution.
First, I just used the universal code for peak finding, as shown below.
xset<- xcmsSet(mzXMLfiles)
I could group the peaks, correct the retention time, fill the missing peaks and eventually get final result visualization.
However, when I tried to use the centWave method for those high-resolution data, I could do group, but not go through the retcor step. Please refer to the following codes and error/warning message.
> xset<- xcmsSet(mzXMLfiles, method="centWave", snthresh=10, ppm=25, peakwidth=c(20,50), prefilter=c(3, 100), mzCenterFun="wMean", integrate=1, mzdiff=-0.001, fitgauss=FALSE)
> xset=group(xset)
> xset2 <- retcor(xset, family = "symmetric", plottype = "mdevden")
I did play with the arguments such as snthresh, peakwidth, prefilter, fitgauss, unfortunately I failed whatever I tried. The error message is:
In addition, I tried to use obiwarp method for retention time correction after failing to use the default loess method (as shown above). Unfortunately, my desktop was down always whenever I ran the following code.
> xset2 <- retcor(xset, method= "obiwarp", plottype = "deviation")
Any suggestion for my above-mentioned issues? Thanks you so much in advance.
Best wishes,
Jeff