Mercurial > repos > pieterlukasse > prims_metabolomics2
annotate metaMS/README.txt @ 16:fe4682eb938c
small improvement
author | pieter.lukasse@wur.nl |
---|---|
date | Mon, 23 Mar 2015 08:40:42 +0100 |
parents | 346ff9ad8c7a |
children |
rev | line source |
---|---|
6 | 1 Wrappers for: |
14
346ff9ad8c7a
fix for rankfilter, removed pfd read functional
linda.bakker@wur.nl <linda.bakker@wur.nl>
parents:
6
diff
changeset
|
2 - the metaMS R package by Ron Wehrens (https://github.com/rwehrens/metaMS.git) |
346ff9ad8c7a
fix for rankfilter, removed pfd read functional
linda.bakker@wur.nl <linda.bakker@wur.nl>
parents:
6
diff
changeset
|
3 - the xcms package (https://xcmsonline.scripps.edu/, http://www.bioconductor.org/packages/release/bioc/html/xcms.html) |
346ff9ad8c7a
fix for rankfilter, removed pfd read functional
linda.bakker@wur.nl <linda.bakker@wur.nl>
parents:
6
diff
changeset
|
4 - the CAMERA tool ( http://www.bioconductor.org/packages/release/bioc/html/CAMERA.html) |
6 | 5 |
6 Wrappers written by Pieter Lukasse. | |
7 | |
8 | |
14
346ff9ad8c7a
fix for rankfilter, removed pfd read functional
linda.bakker@wur.nl <linda.bakker@wur.nl>
parents:
6
diff
changeset
|
9 =======Installation (when updating: close all vignettes [i.e. pdfs/manuals] !)============ |
6 | 10 |
14
346ff9ad8c7a
fix for rankfilter, removed pfd read functional
linda.bakker@wur.nl <linda.bakker@wur.nl>
parents:
6
diff
changeset
|
11 In R execute: |
6 | 12 source("http://bioconductor.org/biocLite.R") |
13 biocLite("metaMS") | |
14 biocLite("multtest") | |
14
346ff9ad8c7a
fix for rankfilter, removed pfd read functional
linda.bakker@wur.nl <linda.bakker@wur.nl>
parents:
6
diff
changeset
|
15 |
6 | 16 # for "multi-threading" (actually starts multiple R processes for parallel processing): |
17 install.packages("snow") | |
18 install.packages("Cairo") | |
19 | |
14
346ff9ad8c7a
fix for rankfilter, removed pfd read functional
linda.bakker@wur.nl <linda.bakker@wur.nl>
parents:
6
diff
changeset
|
20 >> Running the wrappers: go to <this> directory and execute: |
346ff9ad8c7a
fix for rankfilter, removed pfd read functional
linda.bakker@wur.nl <linda.bakker@wur.nl>
parents:
6
diff
changeset
|
21 |
6 | 22 ======Run metaMS_cmd_pick_and_group.r with:================= |
23 | |
14
346ff9ad8c7a
fix for rankfilter, removed pfd read functional
linda.bakker@wur.nl <linda.bakker@wur.nl>
parents:
6
diff
changeset
|
24 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 |
6 | 25 |
26 | |
27 ======Run metaMS_cmd_annotate.r with:================= | |
28 | |
14
346ff9ad8c7a
fix for rankfilter, removed pfd read functional
linda.bakker@wur.nl <linda.bakker@wur.nl>
parents:
6
diff
changeset
|
29 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 |
6 | 30 |
31 | |
32 ======Run xcms_differential_analysis.r with:================= | |
33 | |
14
346ff9ad8c7a
fix for rankfilter, removed pfd read functional
linda.bakker@wur.nl <linda.bakker@wur.nl>
parents:
6
diff
changeset
|
34 Rscript xcms_differential_analysis.r test/out/xsAnnotatePrep.rdata "CLASS1" "CLASS2" 10 test/out2/outtable.tsv test/out2/html/html.html test/out2/html |
6 | 35 |
36 | |
37 ======Run xcms_get_eic.r with:================= | |
38 | |
39 | |
14
346ff9ad8c7a
fix for rankfilter, removed pfd read functional
linda.bakker@wur.nl <linda.bakker@wur.nl>
parents:
6
diff
changeset
|
40 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 |
6 | 41 |
42 OR | |
43 | |
14
346ff9ad8c7a
fix for rankfilter, removed pfd read functional
linda.bakker@wur.nl <linda.bakker@wur.nl>
parents:
6
diff
changeset
|
44 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 |
6 | 45 |
46 | |
47 | |
48 !!!!!!!!!!!!!!!!Troubleshooting:!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | |
49 | |
50 | |
14
346ff9ad8c7a
fix for rankfilter, removed pfd read functional
linda.bakker@wur.nl <linda.bakker@wur.nl>
parents:
6
diff
changeset
|
51 (1) NetCDF is required. If the following is found in the installation.log : |
6 | 52 |
14
346ff9ad8c7a
fix for rankfilter, removed pfd read functional
linda.bakker@wur.nl <linda.bakker@wur.nl>
parents:
6
diff
changeset
|
53 In file included from rnetCDF.c:2:0: |
346ff9ad8c7a
fix for rankfilter, removed pfd read functional
linda.bakker@wur.nl <linda.bakker@wur.nl>
parents:
6
diff
changeset
|
54 rnetCDF.h:1:20: fatal error: netcdf.h: No such file or directory |
346ff9ad8c7a
fix for rankfilter, removed pfd read functional
linda.bakker@wur.nl <linda.bakker@wur.nl>
parents:
6
diff
changeset
|
55 compilation terminated. |
6 | 56 |
57 | |
58 then metaMS will not have been installed and running the tool will result in error: | |
14
346ff9ad8c7a
fix for rankfilter, removed pfd read functional
linda.bakker@wur.nl <linda.bakker@wur.nl>
parents:
6
diff
changeset
|
59 |
346ff9ad8c7a
fix for rankfilter, removed pfd read functional
linda.bakker@wur.nl <linda.bakker@wur.nl>
parents:
6
diff
changeset
|
60 <simpleError in library(metaMS): there is no package called 'metaMS'> |
6 | 61 |
62 Possible solution: | |
14
346ff9ad8c7a
fix for rankfilter, removed pfd read functional
linda.bakker@wur.nl <linda.bakker@wur.nl>
parents:
6
diff
changeset
|
63 > Install the -dev of those packages to get the headers that are |
346ff9ad8c7a
fix for rankfilter, removed pfd read functional
linda.bakker@wur.nl <linda.bakker@wur.nl>
parents:
6
diff
changeset
|
64 required to compile the package. In this case, you need libnetcdf-dev, udunits-bin and libudunits2-dev |
346ff9ad8c7a
fix for rankfilter, removed pfd read functional
linda.bakker@wur.nl <linda.bakker@wur.nl>
parents:
6
diff
changeset
|
65 (from http://stackoverflow.com/questions/11319698/how-to-install-r-packages-rnetcdf-and-ncdf-on-ubuntu) |
6 | 66 So |
14
346ff9ad8c7a
fix for rankfilter, removed pfd read functional
linda.bakker@wur.nl <linda.bakker@wur.nl>
parents:
6
diff
changeset
|
67 >>sudo apt-get install libnetcdf-dev, udunits-bin and libudunits2-dev |
6 | 68 |
14
346ff9ad8c7a
fix for rankfilter, removed pfd read functional
linda.bakker@wur.nl <linda.bakker@wur.nl>
parents:
6
diff
changeset
|
69 (2) Cairo / "no X11" (headless) mode is required. |
6 | 70 |
71 Possible solution: | |
14
346ff9ad8c7a
fix for rankfilter, removed pfd read functional
linda.bakker@wur.nl <linda.bakker@wur.nl>
parents:
6
diff
changeset
|
72 > install of cairo (http://www.cairographics.org/) and/or set CAIRO_CFLAGS/LIBS correspondingly. |
6 | 73 So |
14
346ff9ad8c7a
fix for rankfilter, removed pfd read functional
linda.bakker@wur.nl <linda.bakker@wur.nl>
parents:
6
diff
changeset
|
74 >>sudo apt-get install libcairo2-dev |