annotate metaMS/README.txt @ 6:4393f982d18f

reorganized sources
author pieter.lukasse@wur.nl
date Thu, 19 Mar 2015 12:22:23 +0100
parents
children 346ff9ad8c7a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
1 Wrappers for:
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
2 - the metaMS R package by Ron Wehrens.
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
3 - the xcms package.
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
4
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
5 Wrappers written by Pieter Lukasse.
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
6
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
7
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
8 Installation (when updating: close all vignettes [i.e. pdfs/manuals] !)
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
9
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
10 In R:
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
11 source("http://bioconductor.org/biocLite.R")
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
12 biocLite("metaMS")
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
13 biocLite("multtest")
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
14 #biocLite("R2HTML")
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
15 # for "multi-threading" (actually starts multiple R processes for parallel processing):
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
16 install.packages("snow")
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
17 install.packages("Cairo")
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
18
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
19 ======Run metaMS_cmd_pick_and_group.r with:=================
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
20
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
21 E:\workspace\PRIMS-metabolomics\python-tools\tools\metaMS>Rscript metaMS_cmd_pick_and_group.r test/extdata.zip test/example_settings.txt test/out/peakTable.txt test/out/xsAnnotatePrep.rdata positive test/out/html_peaks.html test/out
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
22
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
23
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
24 ======Run metaMS_cmd_annotate.r with:=================
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
25
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
26 E:\workspace\PRIMS-metabolomics\python-tools\tools\metaMS>Rscript metaMS_cmd_annotate.r test/LCDBtest.RData test/out/xsAnnotatePrep.rdata test/example_settings.txt test/out/annotationTable.txt "0" test/out/html_annot.html test/out
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
27
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
28
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
29 ======Run xcms_differential_analysis.r with:=================
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
30
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
31 E:\workspace\PRIMS-metabolomics\python-tools\tools\metaMS>Rscript xcms_differential_analysis.r test/out/xsAnnotatePrep.rdata "CLASS1" "CLASS2" 10 test/out2/outtable.tsv test/out2/html/html.html test/out2/html
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
32
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
33
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
34 ======Run xcms_get_eic.r with:=================
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
35
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
36
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
37 E:\workspace\PRIMS-metabolomics\python-tools\tools\metaMS>Rscript xcms_get_alignment_eic.r test/out/xsAnnotatePrep.rdata 10 300 3 STDmix_GC_01,STDmix_GC_02 test/out3/html/html.html test/out3/html
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
38
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
39 OR
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
40
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
41 E:\workspace\PRIMS-metabolomics\python-tools\tools\metaMS>Rscript xcms_get_mass_eic.r test/out/xsAnnotatePrep.rdata 10 3000 -1 -1 "77.98,231.96" 5 STDmix_GC_01,STDmix_GC_02 Yes raw test/out4/html/html.html test/out4/html
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
42
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
43
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
44
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
45 !!!!!!!!!!!!!!!!Troubleshooting:!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
46
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
47
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
48 NetCDF is required. If the following is found in the installation.log
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
49
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
50 In file included from rnetCDF.c:2:0:
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
51 rnetCDF.h:1:20: fatal error: netcdf.h: No such file or directory
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
52 compilation terminated.
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
53
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
54
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
55 then metaMS will not have been installed and running the tool will result in error:
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
56 <simpleError in library(metaMS): there is no package called 'metaMS'>
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
57
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
58 Possible solution:
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
59 > Install the -dev of those packages to get the headers that are
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
60 required to compile the package. In this case, you need libnetcdf-dev, udunits-bin and libudunits2-dev
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
61 (from http://stackoverflow.com/questions/11319698/how-to-install-r-packages-rnetcdf-and-ncdf-on-ubuntu)
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
62 So
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
63 >>sudo apt-get install libnetcdf-dev, udunits-bin and libudunits2-dev
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
64
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
65 Cairo / no X11 mode is required.
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
66
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
67 Possible solution:
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
68 > install of cairo (http://www.cairographics.org/) and/or set CAIRO_CFLAGS/LIBS correspondingly.
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
69 So
4393f982d18f reorganized sources
pieter.lukasse@wur.nl
parents:
diff changeset
70 >>sudo apt-get install libcairo2-dev