Skip to main content

Messages

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

Messages - Ricca

16
XCMS / Re: matchedFilter parameters
Hi Paul,
reading the code you wrote I think I understand what you mean but I haven' t understand the way to use the function you wrote, because is not clear in my mind how to extract a scan from an xcmsSet object  :oops: .

Can you explain it to me??

Regards
17
XCMS / matchedFilter parameters
Hi to everybody,
I'm setting up an xcms object using the matchedFilter algorithm. So, reading the Smith's paper (XCMS: Processing Mass Spectrometry....) I'm adjusting s/n and fwhm parameters to obtain the best result.

Code: [Select]
xsetSUP <- xcmsSet(files, method="matchedFilter", snthresh=8, fwhm=10, sleep=1)

My question is about the red horizontal line: I think is regulated by the s/n so, the higher is the s/n the higher is the red line. Is it right?? Is the red line used as baseline to integrate the signal?? How it is calculated the s/n ratio?? RMS or Peak to peak??

Best

Riccardo
18
XCMS / Re: fillPeaks ERROR
Quote from: "Ralf"
What I meant was have you tried analysing the same dataset on XCMS Online,
to see if it works there ?

Hi I tried to use xcms online and it works. So the problem is in my workstation. Have you ever tried to use xcms with R 2.14?? Uninstall and re-install the downgraded version of R is the very last option.  :cry:

Do you have any further suggestion??

Best

EDIT
I also tried on my home computer and all works fine.
The session info on my home pc is:

> traceback()
9: logical(nrow(m))
8: rectUnique(groupmat[, c("mzmin", "mzmax", "rtmin", "rtmax"),
      drop = FALSE], uorder)
7: .local(object, ...)
6: group.density(object, ...)
5: group.density(object, ...)
4: do.call(method, alist(object, ...))
3: .local(object, ...)
2: group(xset, bw = 30, mzwid = 0.025, minfrac = 0.5, minsamp = 10)
1: group(xset, bw = 30, mzwid = 0.025, minfrac = 0.5, minsamp = 10)


> sessionInfo( )
R version 2.14.1 (2011-12-22)
Platform: x86_64-pc-linux-gnu (64-bit)

locale:
 [1] LC_CTYPE=it_IT.utf8      LC_NUMERIC=C           
 [3] LC_TIME=it_IT.utf8        LC_COLLATE=it_IT.utf8   
 [5] LC_MONETARY=it_IT.utf8    LC_MESSAGES=it_IT.utf8 
 [7] LC_PAPER=C                LC_NAME=C               
 [9] LC_ADDRESS=C              LC_TELEPHONE=C         
[11] LC_MEASUREMENT=it_IT.utf8 LC_IDENTIFICATION=C     

attached base packages:
[1] stats    graphics  grDevices utils    datasets  methods  base   

other attached packages:
 [1] boot_1.3-3        chemometrics_1.3.7 som_0.3-5          robustbase_0.7-8 
 [5] rpart_3.1-50      pls_2.2-0          pcaPP_1.9-44      mvtnorm_0.9-9991 
 [9] nnet_7.3-1        mclust_3.4.10      MASS_7.3-16        lars_0.9-8       
[13] gclus_1.3          cluster_1.14.1    e1071_1.6          class_7.3-3     
[17] CAMERA_1.10.0      xcms_1.30.0     

loaded via a namespace (and not attached):
[1] graph_1.32.0  grid_2.14.1    Hmisc_3.9-0    igraph_0.5.5-3 lattice_0.20-0
[6] RBGL_1.30.1    tools_2.14.1 
>

 I see the main difference is the xcms version that in the home pc is 1.30.0.

Where can I download these old version to try it on my work pc??
19
XCMS / Re: How to repeat the workflow of XCMS Online by XCMS manual
Hope this help:

Code: [Select]
files <- list.files(path=myPath, pattern="xml", full.names = TRUE, recursive = TRUE)
xset <- xcmsSet(files, method="centWave", polarity="positive", prefilter=c(3,100), ppm=30, peakwidth=c(10,60), snthr=10)
xsetR <- retcor(xset, method="obiwarp", profStep=0.1, plottype="deviation")
xsetR <- group(xsetR, bw=5, mzwid=0.025, minfrac=0.5, minsamp=1)
xset.finale <- fillPeaks(xsetR)

I aloso suggest to read THIS
Best
20
XCMS / Re: fillPeaks ERROR
How can I downgrade R 2.14.1 to R 2.14.1??

What could happens to all the library installed?? Should I re-install all??
21
XCMS / Re: fillPeaks ERROR
Quote
Does it work on XCMS Online ?
No, I work on my worrksation.


Quote
there is no need to pre-group if you use OBIWarp
Thanks for the suggestion.

How can I go on with my analysis?

Best
22
XCMS / Re: fillPeaks ERROR
Quote
please read before posting!
:oops:

The error is:

xsetF <- fillPeaks(xsetR)
Controllo10 Error in checkSlotAssignment(object, name, value) : "scantime" is not a slot in class “NULL”


Furthemore:

> sessionInfo()
R version 2.14.1 (2011-12-22)
Platform: x86_64-pc-linux-gnu (64-bit)

locale:
 [1] LC_CTYPE=en_US.utf8      LC_NUMERIC=C           
 [3] LC_TIME=en_US.utf8        LC_COLLATE=en_US.utf8   
 [5] LC_MONETARY=en_US.utf8    LC_MESSAGES=en_US.utf8 
 [7] LC_PAPER=C                LC_NAME=C               
 [9] LC_ADDRESS=C              LC_TELEPHONE=C         
[11] LC_MEASUREMENT=en_US.utf8 LC_IDENTIFICATION=C     

attached base packages:
[1] grid      stats    graphics  grDevices utils    datasets  methods 
[8] base   

other attached packages:
 [1] ROCR_1.0-4        gplots_2.10.1      KernSmooth_2.23-7  caTools_1.12     
 [5] bitops_1.0-4.1    gdata_2.8.2        gtools_2.6.2      boot_1.3-3       
 [9] chemometrics_1.3.7 som_0.3-5          robustbase_0.7-8  rpart_3.1-50     
[13] pls_2.2-0          pcaPP_1.9-44      mvtnorm_0.9-9991  nnet_7.3-1       
[17] mclust_3.4.10      MASS_7.3-16        lars_0.9-8        gclus_1.3       
[21] cluster_1.14.1    e1071_1.6          class_7.3-3        CAMERA_1.11.1   
[25] snow_0.3-7        xcms_1.30.3     

loaded via a namespace (and not attached):
[1] graph_1.32.0  Hmisc_3.9-0    igraph_0.5.5-3 lattice_0.20-0 RBGL_1.30.1 
[6] tools_2.14.1 


and:
> traceback()
11: stop(gettextf(""%s" is not a slot in class %s", name, dQuote(cl)),
        domain = NA)
10: checkSlotAssignment(object, name, value)
9: `slot<-`(object, name, TRUE, value)
8: `@<-`(`*tmp*`, scantime, value = c(364.497009277344, 365.298553466797,
  366.100128173828, 366.901794433594, 367.703460693359, 368.505187988281, .... many more.....
  2700.44604492188, 2701.31811523438, 2702.17993164062))
7: .local(object, ...)
6: fillPeaks.chrom(object, ...)
5: fillPeaks.chrom(object, ...)
4: do.call(method, alist(object, ...))
3: .local(object, ...)
2: fillPeaks(xsetR)
1: fillPeaks(xsetR)
>


Best

P.S. Happy new year!! :mrgreen:
23
XCMS / fillPeaks ERROR
Hi to all and good year!
I have had a problem running fillPeaks.
Controllo10 Error in checkSlotAssignment(object, name, value) : "scantime" is not a slot in class “NULL”

This are the settings I use:
Code: [Select]
xset <- xcmsSet(files, method="centWave", nSlaves=4, polarity="positive", ppm=5)
xset <- group(xset, bw=30, mzwid=0.025, minfrac=0.5, minsamp=10)
xset.retcor <- retcor(xset, method="obiwarp", profStep=0.1, distFunc= "cov", plottype="deviation")
xset.retcor <- group(xset.retcor, bw=10, mzwid=0.025, minfrac=0.5, minsamp=10)
xset.finale <- fillPeaks(xset.retcor)

My data set is made up of 60 negative control and 15 positive control. Is correct to use minsamp=10 that is 2/3 of the positive control? My data were aquired with Agilent LC/qTOF.

Best
24
XCMS / Duplicate 'row.names' ERROR
Hi to all, I notice a strange  error while I run xcmsSet:
Code: [Select]
xset <- xcmsSet(files, method="centWave", nSlaves=4, polarity="positive", prefilter=c(3,100), ppm=5)

In particular, if :
Code: [Select]
files <- list.files(path= myPath, pattern="mzXML", full.names = TRUE, recursive =TRUE)

all works fine but, if:
Code: [Select]
files <- list.files(path= myPath, pattern="mzXML", full.names = FALSE, recursive =TRUE)

the xcmsSet function says:
Error in `row.names<-.data.frame`(`*tmp*`, value = value) : duplicate 'row.names' are not allowed
In addition: Warning message: non-unique values when setting 'row.names': ‘’
.

If I see the files object, I do not see any duplicate.

    > files
     [1] "Negative/Controllo10.mzXML"    "Negative/Controllo11.mzXML" 
     [3] "Negative/Controllo12.mzXML"    "Negative/Controllo13.mzXML" 
     [5] "Negative/Controllo14.mzXML"    "Negative/Controllo15.mzXML" 
     [7] "Negative/Controllo16.mzXML"    "Negative/Controllo17.mzXML" 
     [9] "Negative/Controllo18.mzXML"    "Negative/Controllo19.mzXML" 
    [11] "Negative/Controllo1.mzXML"    "Negative/Controllo20.mzXML" 
    [13] "Negative/Controllo21.mzXML"    "Negative/Controllo22.mzXML" 
    [15] "Negative/Controllo23.mzXML"    "Negative/Controllo24.mzXML" 
    [17] "Negative/Controllo25.mzXML"    "Negative/Controllo26.mzXML" 
    [19] "Negative/Controllo27.mzXML"    "Negative/Controllo28.mzXML" 
    [21] "Negative/Controllo29.mzXML"    "Negative/Controllo2.mzXML"   
    [23] "Negative/Controllo30.mzXML"    "Negative/Controllo31.mzXML" 
    [25] "Negative/Controllo32.mzXML"    "Negative/Controllo33.mzXML" 
    [27] "Negative/Controllo34.mzXML"    "Negative/Controllo35.mzXML" 
    [29] "Negative/Controllo36.mzXML"    "Negative/Controllo37.mzXML" 
    [31] "Negative/Controllo38.mzXML"    "Negative/Controllo39.mzXML" 
    [33] "Negative/Controllo3.mzXML"    "Negative/Controllo40.mzXML" 
    [35] "Negative/Controllo41.mzXML"    "Negative/Controllo42.mzXML" 
    [37] "Negative/Controllo43.mzXML"    "Negative/Controllo44.mzXML" 
    [39] "Negative/Controllo45.mzXML"    "Negative/Controllo46.mzXML" 
    [41] "Negative/Controllo47.mzXML"    "Negative/Controllo48.mzXML" 
    [43] "Negative/Controllo49.mzXML"    "Negative/Controllo4.mzXML"   
    [45] "Negative/Controllo50.mzXML"    "Negative/Controllo51.mzXML" 
    [47] "Negative/Controllo52.mzXML"    "Negative/Controllo53.mzXML" 
    [49] "Negative/Controllo54.mzXML"    "Negative/Controllo55.mzXML" 
    [51] "Negative/Controllo56.mzXML"    "Negative/Controllo57.mzXML" 
    [53] "Negative/Controllo58.mzXML"    "Negative/Controllo59.mzXML" 
    [55] "Negative/Controllo5.mzXML"    "Negative/Controllo60.mzXML" 
    [57] "Negative/Controllo6.mzXML"    "Negative/Controllo7.mzXML"   
    [59] "Negative/Controllo8.mzXML"    "Negative/Controllo9.mzXML"   
    [61] "Positive/Positivo1_rip1.mzXML" "Positive/Positivo1_rip2.mzXML"
    [63] "Positive/Positivo1_rip3.mzXML" "Positive/Positivo2_rip1.mzXML"
    [65] "Positive/Positivo2_rip2.mzXML" "Positive/Positivo2_rip3.mzXML"
    [67] "Positive/Positivo3_rip1.mzXML" "Positive/Positivo3_rip2.mzXML"
    [69] "Positive/Positivo3_rip3.mzXML" "Positive/Positivo4_rip1.mzXML"
    [71] "Positive/Positivo4_rip2.mzXML" "Positive/Positivo4_rip3.mzXML"
    [73] "Positive/Positivo5_rip1.mzXML" "Positive/Positivo5_rip2.mzXML"
    [75] "Positive/Positivo5_rip3.mzXML"
    >

Any suggestion??

EDIT
> traceback()
6: stop("duplicate 'row.names' are not allowed")
5: `row.names<-.data.frame`(`*tmp*`, value = value)
4: `row.names<-`(`*tmp*`, value = value)
3: `rownames<-`(`*tmp*`, value = c(NA_character_, NA_character_,
  NA_character_, NA_character_, NA_character_, NA_character_, NA_character_,
  NA_character_, NA_character_, NA_character_, NA_character_, NA_character_,
  NA_character_, NA_character_, NA_character_, NA_character_, NA_character_,
  NA_character_, NA_character_, NA_character_, NA_character_, NA_character_,
  NA_character_, NA_character_, NA_character_, NA_character_, NA_character_,
  NA_character_, NA_character_, NA_character_, NA_character_, NA_character_,
  NA_character_, NA_character_, NA_character_, NA_character_, NA_character_,
  NA_character_, NA_character_, NA_character_, NA_character_, NA_character_,
  NA_character_, NA_character_, NA_character_, NA_character_, NA_character_,
  NA_character_, NA_character_, NA_character_, NA_character_, NA_character_,
  NA_character_, NA_character_, NA_character_, NA_character_, NA_character_,
  NA_character_, NA_character_, NA_character_, NA_character_, NA_character_,
  NA_character_, NA_character_, NA_character_, NA_character_, NA_character_,
  NA_character_, NA_character_, NA_character_, NA_character_, NA_character_,
  NA_character_, NA_character_, NA_character_))
2: phenoDataFromPaths(files)
1: xcmsSet(files, method = "centWave", nSlaves = 4, polarity = "positive",
      ppm = 5)


P.S. Merry XMas :D
25
XCMS / Re: Upgrade xcms error
I solved the problem with the R mailing list.

The problem was with compiling the package. The bug has been fixed with the new relese. Now it is all right!! :D
26
XCMS / Upgrade xcms error
Hi, I am a mac user (OS X 10.5.8) I have already upgraded R to 2.14.0 to use the last relese of xcms and now I have some problem to load it. When I try to load xcms the R consol say:

library(xcms)
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object
'/Users/riccardoromoli/Library/R/2.14/library/xcms/libs/x86_64/xcms.so':
dlopen(/Users/riccardoromoli/Library/R/2.14/library/xcms/libs/x86_64/xcms.so,
6): Library not loaded: /usr/local/lib/libnetcdf.7.dylib
Referenced from:
/Users/riccardoromoli/Library/R/2.14/library/xcms/libs/x86_64/xcms.so
Reason: image not found

Errore: package/namespace load failed for ‘xcms’


I think the error is the absence of ibnetcdf.7.dylib. Do you have any idea how can I correct this error??

Best
Riccardo
27
CAMERA / Re: Isotope extraction
Hi, thanks for your precious suggestion, I completely ignores the existence of the do.call function. :D

I have a further question: I can I get the intensities of my isotopes across each sample??

Best
Riccardo
28
CAMERA / Isotope extraction
Hi, I'm playng for the first time with the metabolomics and I have some doubt about the metabolite identification (herehttp://http://metabolomics-forum.com/viewtopic.php?f=8&t=187&sid=0f294f5a8bf7f8474256f8b0649aea2e). After the anlysis with only xcms I would like to go further using CAMERA to try to better understand the data obtained with xcms.

So, after the xcms and CAMERA workflow I tryed the getIsotopeCluster function to work only with the molecular ion.

Code: [Select]
xsa <- xsAnnotate(xset)
xsaF <- groupFWHM(xsa)
xsaC <- groupCorr(xsaF)
xsaI <- findIsotopes(xsaC)
data.set <- getPeaklist(xsaI)
isolist <- getIsotopeCluster(xsaI, value="into")

My question is about the usage of the getIsotopeCluster function, in particular how can I extrapolate only the information about the $peak slot of all my sample and collect them into a data frame??

Best
29
XCMS / Extract metabolite information
Hi to everybody,
I have somethings in my mind that is unclear about the interpretation of the result obtained using the xcms package for metabolomic data analysis.

Because I have more than two classes I haven't used the diffreport function to extract the most significant peaks according to their ANOVA p-value, but I wrote some code to do this. So I found a small number of signal that are significantly different among the treatment and I use this for the multivariate statistical analysis.

Furthermore the next step was to try to understand if the significative peaks have a "name and surname". To do this I extracted the m/z information from the peak list using the groupnames function and I used the Metabolite Search engine directly from my web browser.  I adjusted the ppm error and the polarity.

Now the question: how about the charge state parameter??
In particularly I tried different charge state option: M+H, M+Na, M+K, M+H-H2O... and I studied the results obtained, trying to understand which are the different signal obtained crossing the different data report. For example if the signal 490.1765 m/z has no positive hits with the M+H option, but have a positive hit with the M+Na option, I conclude that is a sodiated adduct instead of a protonated adduct.

Is a correct way to try to identify a metabolite?? Why the diffreport approach has only an M+H information?? Should I use a de-isotoping function to be sure I work only with M+H signal??  Is possible to do this with xcms??

Best

P.S. Sorry for my bad English :oops: I hope you can understand the question/s.