Skip to main content

Show Posts

This section allows you to view all Show Posts made by this member. Note that you can only see Show Posts made in areas you currently have access to.

Messages - jcmartin

1
XCMS - FAQ / xcms does not execute
I changed my computer and re-installed the whole packages, with the latest R version (3.5.1). Since then, xcms does not work anymore, remaining stacked at the first line

xset<-xcmsSet(method="centWave", peakwidth=c(3,20), snthresh=5, mzdiff=0.01, ppm=3, prefilter=c(5,100000), noise=20000, integrate=1)
xset

a warning message indicate :
Scanning files in directory C:/users/.... (blablabla until the correct file directory).. found 99 files

I also tried with the old R version that I installed and that used to work, but no success either

I'm not a beginner with xcms, and I tried to process my files using another computer in the lab and everything is alright.

I'm using windows 10 with an dell computer equipped with a Xeon processor

any idea of what'sgoing wrong?

many thanks
jc
2
Data Analysis Interest Group / data filtering
Hi everybody,
I\'m performing large-scale LCMS metabolomic profiling, and I\'m looking for a R script that performs quality control-based robust LOESS signal correction to correct for analytical drift within and across analytical batches (such as in  Dunn, W. B., Broadhurst, D., Begley, P., Zelena, E., Francis-McIntyre, S., Anderson, N., Brown, M., Knowles, J. D., Halsall, A. et al. (2011) Procedures for large-scale metabolic profiling of serum and plasma using gas chromatography and liquid chromatography coupled to mass spectrometry. Nat Protoc 6: 1060-1083).
I would be extremely pleased if somebody could help,
thanks and see you in washington

jc martin
biomet platform
marseille, france
3
XCMS / Re: fillPeaks gives a warning
ok, got the same trouble, so what the solution concretely (I'm just basic, not a geek)? increase the profStep (currently 0.1)? thank you
jc
4
XCMS / Re: unreliable peak intensity in report table
Jan
I just used another version of proteowizard than the one we previously utilized to generate the files I'm working on, and this time it worked well, converting the data into the centroid mode (12Mo instead of 163Mo!, with m/z with zero line witdhs). The good version of proteowizard to use would be 3.0.6994 and over.
I must admit that we should have looked at the size of the files generated after proteowizard,
I'll keep you posted on our continuation
by the way, I finished to succesfully install chemhelper and all dependancies
thanks anyway
jc
5
XCMS / Re: unreliable peak intensity in report table
mmmmhh I see. We are using proteowizard to convert the raw data into mzXML, using the peakpicking filter (I thought it convert profile data into centroided ones?), such as:

converter <- c("D:/Pwiz/msconvert.exe")
FILES <- list.files(recursive=TRUE,full.names=TRUE,pattern="\.raw")

for (i in 1:length(FILES)){system (paste(converter," --mzXML --32 --filter "peakPicking true 1" --filter "polarity negative"  -o Negative -v",FILES))}
for (i in 1:length(FILES)){
system (paste(converter," --mzXML --32 --filter "peakPicking true 1" --filter "polarity positive"  -o Positive -v",FILES))}

but obviously it's not correct

what do you think?
many thanks again
jc
7
XCMS / Re: unreliable peak intensity in report table
Thanks,
I'm going yo provide you with some mzxml files I used; I also noticed that the last step crashed everything:
cl <- makeCluster(detectCores())
clusterExport(cl,c("input","xraw_orbifix"))
parLapply(cl,input,function(x) xraw_orbifix(x[1],x[2]))
stopCluster(cl)

instead we used:
for (i in 1:length(files)){
xraw_orbifix(files,outname)
}

but it's slow 'zzzzz......

I just sent you a sample files containing 4 runs in mzXML format, using an ftp service; I sent you the hypertext link at stanstrup@gmail.com, hope it's correct
many thanks

jc
8
XCMS / Re: unreliable peak intensity in report table
Hi Jan,
if you do not enjoy yet of the summer sun, I can help you enjoy my orbitrap problems :). So I start running orbifilter on selected mzXML files, and obtained fixed files in the mzData format which appeared nice when viewed with mzmine for instance. The problem is that it takes very very long to process the files with    orbifilter (> 7 hrs per file!). The input mzxml file are roughly 163Mo, reduced to 46Mo after fixing and transforming in the mzdata format. My server is not a formula 1, but even if I'm using a more powerfull machine I would suspect that the processing time would still be undue.
What is your feedback on your trials?
again many thanks
jc
9
XCMS / Re: unreliable peak intensity in report table
thanks jan,
just to be sure of how it works: first I run obifilter on the mzXML files, then I process the orbifilter corrected files with xcms the usual way. Is that right? Sorry to be so basic
thanks
jc
12
XCMS / Re: unreliable peak intensity in report table
Many thanks, it will help. I already tested matchedFilter and it worked pretty well, with a good peak intensity extraction, although peak duplication is still the same, but I will try to fix this with your script. I will post the results soon.
jc
13
XCMS / Re: unreliable peak intensity in report table
Hi Jan,
yes I checked that the peak is detected in all samples. In fact I spiked plasma samples with 33 different standards to see whether xcms correctly extracted the corresponding ions. The peak picking step worked quite well since it detected 32 out of 33. But then the problem occured when I compared the extracted peak ions from xcalibur and the reported peak intensities area in the report table which is often eratic and does not correspond to the xcalibur reality: half of the spiked molecules had a stable peak area from one sample to the others in the xcms report table, and the other half is just unreliable, whereas the EIC xcms pictures comparatively indicate a good extraction (see my previous message above for one example).
What I shall add is that about half of the features in my report table matrix are duplicated, sometimes 6 times, which apperared to me unusual if I compared to what we used to obtain with our QTOF (almost no peak duplication).
I suspect a problem during the integration, although I also compared with the peak intensity (using the maxo argument) which did not improved our results either. Hereafter is the last script I used:

again thanks to anybody for a suggestion!

library(xcms)
library(Biobase)
library(multtest)
nslaves<- 8
xset<-xcmsSet(method="centWave", peakwidth=c(3,20), snthresh=3, mzdiff=-0.00005, ppm=2, prefilter=c(3,1500000), noise=10000, integrate=1,fitgauss=TRUE, nSlaves=nslaves)
xset
xset1<-retcor(xset, method="obiwarp", profStep=0.1, plottype="none")
xset1
xset2<-group(xset1, method="density", bw=3, mzwid=0.015, minfrac=0.75, minsamp=3)
xset2
xset3<-fillPeaks(xset2)
xset3
#Pour obtenir le rapport du résultat d'XCMS#
reporttab<-diffreport(xset3,"ctrl","pool","StdMixSwitchPosNeg_20150414",5000,metlin=0,h=480,w=640)
14
XCMS / unreliable peak intensity in report table
Hi there,
I'm facing an unresolved problem; we are using a qexactive + in dual mode (+/-) @30000 mass resolution. After conversion into mzXML, we discovered that some features intensity are eratically reported in the diffreport table .tsv, whereas both the EIC caption and also the raw EIC are excellent. See figures below as an illustration
I would really appreciate help since we tested many different scripts without any subtantial improvements
thank you

raw xcalibur EIC
[attachment=2:8i42r00r]xcalibur raw EIC.JPG[/attachment:8i42r00r]

XCMS EIC
[attachment=1:8i42r00r]xcms EIX.JPG[/attachment:8i42r00r]

diffreport xcms Table values (.tsv)
[attachment=0:8i42r00r]diffreport table EIC values.JPG[/attachment:8i42r00r]

Hereafter is the script we tested:
library(xcms)                           
library(Biobase)                           
library(multtest)                           
xset<-xcmsSet(method="centWave"    peakwidth=c(3   15)    snthresh=2.5    mzdiff=-0.005    ppm=2    prefilter=c(3   1500000)    noise=10000    integrate=1
xset                           
xset1<-retcor(xset    method="obiwarp"    profStep=0.1    plottype="deviation")                   
xset1                           
xset2<-group(xset1    method="density"    bw=10    mzwid=0.01    minfrac=0.75    minsamp=1)            
xset2                           
xset3<-retcor(xset2    method="obiwarp"    profStep=0.1    plottype="deviation")                   
xset3                           
xset4<-group(xset3    method="density"    bw=2    mzwid=0.01    minfrac=0.75    minsamp=1)            
xset4                           
xset5<-fillPeaks(xset4)                           
xset5                           
#Pour obtenir le rapport du résultat d'XCMS#                           
reporttab<-diffreport(xset5   ctrl   pool   StdMixSwitchPosNeg_20150414   5000   metlin=0   h=480   w=640)      
library(CAMERA)                           
diffreport <- annotateDiffreport(xset5)                           
write.csv(diffreport    file="StdMixSwitchPosNeg_20150414_diffreport.csv")

[attachment deleted by admin]
15
XCMS / fillpeaks problem
I'm using a q-exactive plus connected to a uplc through an ESI source. After using xcms, the differport matrix contains a lot (too much) of variables with zero intensities, mainly in the samples, less so in the QC's.
Here is the script I  use

xset<-xcmsSet(method="centWave", peakwidth=c(3,20), snthresh=5, mzdiff=0.01, ppm=3, prefilter=c(5,100000), noise=100000)
xset
xset2<-retcor(xset, method="obiwarp", profStep=0.1, plottype="deviation")
xset2
xset2<- group(xset2, bw=5, mzwid=0.008)
xset3<-fillPeaks(xset2)
xset3

 I shall say that we previoulsy used a QTOF (Bruker microTOF Q) with of course a different xcms tuning, but never got such trouble.

Any ideas of what's going wrong with fillpeaks using  he q-exactive data?