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 - k.vd.wetering

1
metaXCMS / Re: installation problems GTK+ package
Hi Ralf,
I got around the problem of R repeatedly asking for the installation of GTK+. It turned out to be a version problem: On OSX 10.8.3 you need the GTK_2.24.17-X11 package (not the GTK 2.18.5-X11 that automatically loads. I still do not succeed in installing metaXCMS. It tends to install, as I just see a flash of metaXCMS, but this window quickly disappears after opening, generating in the following error message:

Loading required package: sp
* installing *source* package ‘metaXCMS’ ...
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
sh: line 1:  775 Segmentation fault: 11  '/Library/Frameworks/R.framework/Resources/bin/R' --no-save --slave 2>&1 < /var/folders/0s/ym2z5zqs7n301k1l1zvpb4dr0000gp/T//Rtmp6EkMJr/file3053799c556


 *** caught segfault ***
address 0x0, cause 'memory not mapped'

Traceback:
 1: .Call(name, ..., PACKAGE = PACKAGE)
 2: .RGtkCall("S_gtk_main_iteration", PACKAGE = "RGtk2")
 3: gtkMainIteration()
 4: gtkWait()
 5: metaxcms()
 6: fun(libname, pkgname)
 7: doTryCatch(return(expr), name, parentenv, handler)
 8: tryCatchOne(expr, names, parentenv, handlers[[1L]])
 9: tryCatchList(expr, classes, parentenv, handlers)
10: tryCatch(fun(libname, pkgname), error = identity)
11: runHook(".onAttach", ns, dirname(nspath), nsname)
12: attachNamespace(ns, pos = pos, deps)
13: doTryCatch(return(expr), name, parentenv, handler)
14: tryCatchOne(expr, names, parentenv, handlers[[1L]])
15: tryCatchList(expr, classes, parentenv, handlers)
16: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))            call <- sys.call(-4L)        dcall <- deparse(call)[1L]        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        msg <- conditionMessage(e)        sm <- strsplit(msg, "n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))            w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                type = "b")        if (w > LONG)            prefix <- paste0(prefix, "n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "n")    .Internal(seterrmessage(msg[1L]))    if (!silent && identical(getOption("show.error.messages"),        TRUE)) {        cat(msg, file = stderr())        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
17: try({    ns <- loadNamespace(package, c(which.lib.loc, lib.loc))    env <- attachNamespace(ns, pos = pos, deps)})
18: library(pkg_name, lib.loc = lib, character.only = TRUE, logical.return = TRUE)
19: withCallingHandlers(expr, packageStartupMessage = function(c) invokeRestart("muffleMessage"))
20: suppressPackageStartupMessages(library(pkg_name, lib.loc = lib
ERROR: loading failed
* removing ‘/Library/Frameworks/R.framework/Versions/3.0/Resources/library/metaXCMS’

,    character.only = TRUE, logical.return = TRUE))
21: doTryCatch(return(expr), name, parentenv, handler)
22: tryCatchOne(expr, names, parentenv, handlers[[1L]])
23: tryCatchList(expr, classes, parentenv, handlers)
24: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))            call <- sys.call(-4L)        dcall <- deparse(call)[1L]        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        msg <- conditionMessage(e)        sm <- strsplit(msg, "n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))            w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                type = "b")        if (w > LONG)            prefix <- paste0(prefix, "n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "n")    .Internal(seterrmessage(msg[1L]))    if (!silent && identical(getOption("show.error.messages"),        TRUE)) {        cat(msg, file = stderr())        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
25: try(suppressPackageStartupMessages(library(pkg_name, lib.loc = lib,    character.only = TRUE, logical.return = TRUE)))
26: tools:::.test_load_package("metaXCMS", "/Library/Frameworks/R.framework/Versions/3.0/Resources/library")
aborting ...


Any idea what is going wrong here?

Thanks,
Koen
2
metaXCMS / installation problems GTK+ package
Hi all,

I just tried to install metaXCMS on my new Mac (OSX 10.8.3, R3.0.0). I did however not succeed. I followed the installation guidelines given on the scripps website. I guess it has something to do with the loading of the GTK+ package: after installing this package after loading the cairodevice, other packages in R keep on asking to install the GTK+ package and metaXCMS does not install. This is what I get:


'.find.package' is deprecated.
Use 'find.package' instead.
See help("Deprecated")
Error in dyn.load(file, DLLpath = DLLpath, ...) :
  unable to load shared object '/Library/Frameworks/R.framework/Versions/3.0/Resources/library/cairoDevice/libs/cairoDevice.so':
  dlopen(/Library/Frameworks/R.framework/Versions/3.0/Resources/library/cairoDevice/libs/cairoDevice.so, 6): Library not loaded: /Library/Frameworks/GTK+.framework/Versions/2.24.X11/Resources/lib/libgtk-x11-2.0.0.dylib
  Referenced from: /Library/Frameworks/R.framework/Versions/3.0/Resources/library/cairoDevice/libs/cairoDevice.so
  Reason: image not found
trying URL 'http://r.research.att.com/libs/GTK_2.18.5-X11.pkg'
Content type 'text/plain' length 59914166 bytes (57.1 Mb)
opened URL
=================================================
downloaded 57.1 Mb

Learn more about GTK+ at http://www.gtk.org
If the package still does not load, please ensure that GTK+ is installed and that it is on your PATH environment variable
IN ANY CASE, RESTART R BEFORE TRYING TO LOAD THE PACKAGE AGAIN
starting httpd help server ... done
Loading required package: sp
Error in dyn.load(file, DLLpath = DLLpath, ...) :
  unable to load shared object '/Library/Frameworks/R.framework/Versions/3.0/Resources/library/RGtk2/libs/RGtk2.so':
  dlopen(/Library/Frameworks/R.framework/Versions/3.0/Resources/library/RGtk2/libs/RGtk2.so, 6): Library not loaded: /Library/Frameworks/GTK+.framework/Versions/2.24.X11/Resources/lib/libgtk-x11-2.0.0.dylib
  Referenced from: /Library/Frameworks/R.framework/Versions/3.0/Resources/library/RGtk2/libs/RGtk2.so
  Reason: image not found
In addition: Warning message:
In fun(libname, pkgname) :
  Failed to load cairoDevice, attempting to install itError in dyn.load(file, DLLpath = DLLpath, ...) :
  unable to load shared object '/Library/Frameworks/R.framework/Versions/3.0/Resources/library/cairoDevice/libs/cairoDevice.so':
  dlopen(/Library/Frameworks/R.framework/Versions/3.0/Resources/library/cairoDevice/libs/cairoDevice.so, 6): Library not loaded: /Library/Frameworks/GTK+.framework/Versions/2.24.X11/Resources/lib/libgtk-x11-2.0.0.dylib
  Referenced from: /Library/Frameworks/R.framework/Versions/3.0/Resources/library/cairoDevice/libs/cairoDevice.so
  Reason: image not found

Learn more about GTK+ at http://www.gtk.org
If the package still does not load, please ensure that GTK+ is installed and that it is on your PATH environment variable
IN ANY CASE, RESTART R BEFORE TRYING TO LOAD THE PACKAGE AGAIN
Loading required package: xlsxjars
Loading required package: rJava
* installing *source* package ‘metaXCMS’ ...
** R
** inst
** preparing package for lazy loading
Error in dyn.load(file, DLLpath = DLLpath, ...) :
  unable to load shared object '/Library/Frameworks/R.framework/Versions/3.0/Resources/library/cairoDevice/libs/cairoDevice.so':
  dlopen(/Library/Frameworks/R.framework/Versions/3.0/Resources/library/cairoDevice/libs/cairoDevice.so, 6): Library not loaded: /Library/Frameworks/GTK+.framework/Versions/2.24.X11/Resources/lib/libgtk-x11-2.0.0.dylib
  Referenced from: /Library/Frameworks/R.framework/Versions/3.0/Resources/library/cairoDevice/libs/cairoDevice.so
  Reason: image not found
Warning in fun(libname, pkgname) :
  Failed to load cairoDevice, attempting to install itError in dyn.load(file, DLLpath = DLLpath, ...) :
  unable to load shared object '/Library/Frameworks/R.framework/Versions/3.0/Resources/library/cairoDevice/libs/cairoDevice.so':
  dlopen(/Library/Frameworks/R.framework/Versions/3.0/Resources/library/cairoDevice/libs/cairoDevice.so, 6): Library not loaded: /Library/Frameworks/GTK+.framework/Versions/2.24.X11/Resources/lib/libgtk-x11-2.0.0.dylib
  Referenced from: /Library/Frameworks/R.framework/Versions/3.0/Resources/library/cairoDevice/libs/cairoDevice.so
  Reason: image not found

Please install GTK+ from http://r.research.att.com/libs/GTK_2.18.5-X11.pkg
If the package still does not load, please ensure that GTK+ is installed and that it is on your PATH environment variable
IN ANY CASE, RESTART R BEFORE TRYING TO LOAD THE PACKAGE AGAIN
Error in dyn.load(file, DLLpath = DLLpath, ...) :
  unable to load shared object '/Library/Frameworks/R.framework/Versions/3.0/Resources/library/RGtk2/libs/RGtk2.so':
  dlopen(/Library/Frameworks/R.framework/Versions/3.0/Resources/library/RGtk2/libs/RGtk2.so, 6): Library not loaded: /Library/Frameworks/GTK+.framework/Versions/2.24.X11/Resources/lib/libgtk-x11-2.0.0.dylib
  Referenced from: /Library/Frameworks/R.framework/Versions/3.0/Resources/library/RGtk2/libs/RGtk2.so
  Reason: image not found
Warning: Failed to load RGtk2 dynamic library, attempting to install it.
Please install GTK+ from http://r.research.att.com/libs/GTK_2.18.5-X11.pkg
If the package still does not load, please ensure that GTK+ is installed and that it is on your PATH environment variable
IN ANY CASE, RESTART R BEFORE TRYING TO LOAD THE PACKAGE AGAIN
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
Error in dyn.load(file, DLLpath = DLLpath, ...) :
  unable to load shared object '/Library/Frameworks/R.framework/Versions/3.0/Resources/library/cairoDevice/libs/cairoDevice.so':
  dlopen(/Library/Frameworks/R.framework/Versions/3.0/Resources/library/cairoDevice/libs/cairoDevice.so, 6): Library not loaded: /Library/Frameworks/GTK+.framework/Versions/2.24.X11/Resources/lib/libgtk-x11-2.0.0.dylib
  Referenced from: /Library/Frameworks/R.framework/Versions/3.0/Resources/library/cairoDevice/libs/cairoDevice.so
  Reason: image not found
Warning in fun(libname, pkgname) :
  Failed to load cairoDevice, attempting to install itError in dyn.load(file, DLLpath = DLLpath, ...) :
  unable to load shared object '/Library/Frameworks/R.framework/Versions/3.0/Resources/library/cairoDevice/libs/cairoDevice.so':
  dlopen(/Library/Frameworks/R.framework/Versions/3.0/Resources/library/cairoDevice/libs/cairoDevice.so, 6): Library not loaded: /Library/Frameworks/GTK+.framework/Versions/2.24.X11/Resources/lib/libgtk-x11-2.0.0.dylib
  Referenced from: /Library/Frameworks/R.framework/Versions/3.0/Resources/library/cairoDevice/libs/cairoDevice.so
  Reason: image not found

Please install GTK+ from http://r.research.att.com/libs/GTK_2.18.5-X11.pkg
If the package still does not load, please ensure that GTK+ is installed and that it is on your PATH environment variable
IN ANY CASE, RESTART R BEFORE TRYING TO LOAD THE PACKAGE AGAIN
Error in dyn.load(file, DLLpath = DLLpath, ...) :
  unable to load shared object '/Library/Frameworks/R.framework/Versions/3.0/Resources/library/RGtk2/libs/RGtk2.so':
  dlopen(/Library/Frameworks/R.framework/Versions/3.0/Resources/library/RGtk2/libs/RGtk2.so, 6): Library not loaded: /Library/Frameworks/GTK+.framework/Versions/2.24.X11/Resources/lib/libgtk-x11-2.0.0.dylib
  Referenced from: /Library/Frameworks/R.framework/Versions/3.0/Resources/library/RGtk2/libs/RGtk2.so
  Reason: image not found
Warning: Failed to load RGtk2 dynamic library, attempting to install it.
Please install GTK+ from http://r.research.att.com/libs/GTK_2.18.5-X11.pkg
If the package still does not load, please ensure that GTK+ is installed and that it is on your PATH environment variable
IN ANY CASE, RESTART R BEFORE TRYING TO LOAD THE PACKAGE AGAIN
Error : .onAttach failed in attachNamespace() for 'metaXCMS', details:
  call: .Call(name, ..., PACKAGE = PACKAGE)
  error: "S_gtk_window_new" not available for .Call() for package "RGtk2"
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/Library/Frameworks/R.framework/Versions/3.0/Resources/library/metaXCMS’
 

Thanks,
Koen
3
XCMS / compare more than 2 groups
Hi,

I was wondering whether it is possible to compare more than 2 groups. I have one "test" group and two control groups that I would like to compare. I am most interested in features that differ between the "test group" and both control groups. Now I manually check many EICs to see whether this is the case. It would be somewhat easier if I could have diffreport select these features for me. Extracting these features from the results file generated by "diffreport" is of course relatively easy, but I would then still get many box plots and EICs of features in which I am not so much interested.

Koen
4
XCMS / Data presented in tsv of diffreport
Hi,
just a question about the peaks that will be presented in the tsv generated by the diffreport. I am comparing two groups (each having 3 samples). When I manually checked for the presence of a specific peak in one of the groups, I found it to be present in all samples of this group. Also the peak shape looked ok: peakwidth approximately 15 seconds and the retention time deviation between the samples was max 10 sec (determined at the apex of the peak). It's not a very abundant peak but clearly present (>10 scans, intensity > 1000 cpm). This is the script I used:

xset<-xcmsSet(method="centWave", ppm=2.5, peakwidth=c(10,90), snthresh=25,mzdiff=0.01,prefilter=c(3,1000))
xset<-group(xset, bw=10, mzwid=0.015,minfrac=0.5,minsamp=1)
xset2<-retcor(xset,method="obiwarp",profStep=0.1)
xset2<-group(xset2, bw=5, mzwid=0.015,minfrac=0.5,minsamp=1)
xset3<-fillPeaks(xset2)

Although the difference between the two groups was not statistically significant for this peak, I was expecting to find it at least back in the results.tsv file. Or am I wrong here?

Koen

p.s. I know that the peakwidth preferably should be something like c(15,90), but this also did not work out for this peak.
6
XCMS / adjust decimal places of titles of EICs
Hi,
The EICs of the diffreport are coming with a title showing its m/z ratio range. The default setting gives these m/z ratios with 2 decimals. Is there an easy way to increase number of decimals in the title of the EICs?
Koen
7
metaXCMS / Re: problem with installation of metaXCMS on MAC
Hi Kevin,

I installed metaXCMS on another Mac without any problems. So I decided to completely remove R from my Mac and reinstall everything. Upon reinstalling R/xcms and metaXCMS, the same problem occured: R crashed during loading of the cairoDevice. Can it be that this has something to do with the fact that GTK+ is already installed on my Mac? If so, how can I remove this before reinstallation?

best,
Koen
9
metaXCMS / Re: problem with installation of metaXCMS on MAC
I tried to install it via the GUI: via the "Package Installer". This dis not work and made R to crash. I just tried to install metaXCMS via the console using the command line, but I got the error "Warning: invalid package 'metaXCMS_0.1.19.tar.gz'" and "Error: ERROR: no packages specified". Should I put these packages in a specific directory?
12
XCMS Online / Re: xcms vs xcms online
Yes, the number of features detected still slightly differs from those detected by XCMS online. They do actually not differ from those detected by XCMS version 1.26.1.
14
XCMS Online / Re: xcms vs xcms online
Hi Ralf,

I just checked the intensity of the additional disregulated features. These do not have a low intensity. If you want I could send the two .csv files.

Koen
15
XCMS Online / Re: xcms vs xcms online
Hi Ralf,

I used xcms 1.26.1, which I thought is the latest stable version.
The number of peaks detected by xcms are:
Slco-1.mzXML 5160
Slco-2.mzXML 5190
Slco-3.mzXML 5300
Slco-4.mzXML 5070
Slco-5.mzXML 5306
FVB-1.mzXML 4641
FVB-2.mzXML 3905
FVB-3.mzXML 4116
FVB-4.mzXML 3214
FVB-5.mzXML 4272

So the number of features detected per sample differs slightly from those detected by XCMS online.
The retention time deviation curves are however remarkably similar.Is it possible to use the ProfStepPad() instead of the Obiwarp? What exactly is the difference?

Do you have an idea about the cause of the large difference in differentially regulated features between XCMS and XCMS online? In addition, does the way in which XCMS does the peak picking changes from version to version?

Koen 

Koen