annotate MANUAL_INSTALL.txt @ 0:a5e6499f1b4d draft default tip

planemo upload for repository https://github.com/workflow4metabolomics/spectral_normalization commit 559844c168f0450b9657346ba890d9c028d7537a
author marie-tremblay-metatoul
date Tue, 22 Nov 2016 06:42:44 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a5e6499f1b4d planemo upload for repository https://github.com/workflow4metabolomics/spectral_normalization commit 559844c168f0450b9657346ba890d9c028d7537a
marie-tremblay-metatoul
parents:
diff changeset
1 Instructions to integrate the NMR Normalization" tool into a local instance of Galaxy
a5e6499f1b4d planemo upload for repository https://github.com/workflow4metabolomics/spectral_normalization commit 559844c168f0450b9657346ba890d9c028d7537a
marie-tremblay-metatoul
parents:
diff changeset
2 Version mars 2015 M Tremblay-Franco
a5e6499f1b4d planemo upload for repository https://github.com/workflow4metabolomics/spectral_normalization commit 559844c168f0450b9657346ba890d9c028d7537a
marie-tremblay-metatoul
parents:
diff changeset
3
a5e6499f1b4d planemo upload for repository https://github.com/workflow4metabolomics/spectral_normalization commit 559844c168f0450b9657346ba890d9c028d7537a
marie-tremblay-metatoul
parents:
diff changeset
4
a5e6499f1b4d planemo upload for repository https://github.com/workflow4metabolomics/spectral_normalization commit 559844c168f0450b9657346ba890d9c028d7537a
marie-tremblay-metatoul
parents:
diff changeset
5 ## --- R bin and Packages : --- ##
a5e6499f1b4d planemo upload for repository https://github.com/workflow4metabolomics/spectral_normalization commit 559844c168f0450b9657346ba890d9c028d7537a
marie-tremblay-metatoul
parents:
diff changeset
6 R version 3.0.2 (2013-09-25) -- "Frisbee Sailing
a5e6499f1b4d planemo upload for repository https://github.com/workflow4metabolomics/spectral_normalization commit 559844c168f0450b9657346ba890d9c028d7537a
marie-tremblay-metatoul
parents:
diff changeset
7 Platform: x86_64-redhat-linux-gnu (64-bit)
a5e6499f1b4d planemo upload for repository https://github.com/workflow4metabolomics/spectral_normalization commit 559844c168f0450b9657346ba890d9c028d7537a
marie-tremblay-metatoul
parents:
diff changeset
8
a5e6499f1b4d planemo upload for repository https://github.com/workflow4metabolomics/spectral_normalization commit 559844c168f0450b9657346ba890d9c028d7537a
marie-tremblay-metatoul
parents:
diff changeset
9 Install the "batch" library, necessary for parseCommandArgs function:
a5e6499f1b4d planemo upload for repository https://github.com/workflow4metabolomics/spectral_normalization commit 559844c168f0450b9657346ba890d9c028d7537a
marie-tremblay-metatoul
parents:
diff changeset
10 - Download package source (*.tar.gz file) from your favorite CRAN (http://www.r-project.org/)
a5e6499f1b4d planemo upload for repository https://github.com/workflow4metabolomics/spectral_normalization commit 559844c168f0450b9657346ba890d9c028d7537a
marie-tremblay-metatoul
parents:
diff changeset
11 For example: http://cran.univ-lyon1.fr/
a5e6499f1b4d planemo upload for repository https://github.com/workflow4metabolomics/spectral_normalization commit 559844c168f0450b9657346ba890d9c028d7537a
marie-tremblay-metatoul
parents:
diff changeset
12
a5e6499f1b4d planemo upload for repository https://github.com/workflow4metabolomics/spectral_normalization commit 559844c168f0450b9657346ba890d9c028d7537a
marie-tremblay-metatoul
parents:
diff changeset
13 - Install package in your R session
a5e6499f1b4d planemo upload for repository https://github.com/workflow4metabolomics/spectral_normalization commit 559844c168f0450b9657346ba890d9c028d7537a
marie-tremblay-metatoul
parents:
diff changeset
14 install.packages("path/package_name.tar.gz",lib="path",repos=NULL)
a5e6499f1b4d planemo upload for repository https://github.com/workflow4metabolomics/spectral_normalization commit 559844c168f0450b9657346ba890d9c028d7537a
marie-tremblay-metatoul
parents:
diff changeset
15 For Example: install.packages("/usr/lib64/R/library/batch_1.1-4.tar",lib="/usr/lib64/R/library",repos=NULL)
a5e6499f1b4d planemo upload for repository https://github.com/workflow4metabolomics/spectral_normalization commit 559844c168f0450b9657346ba890d9c028d7537a
marie-tremblay-metatoul
parents:
diff changeset
16
a5e6499f1b4d planemo upload for repository https://github.com/workflow4metabolomics/spectral_normalization commit 559844c168f0450b9657346ba890d9c028d7537a
marie-tremblay-metatoul
parents:
diff changeset
17 - Finally, load the package into your R session
a5e6499f1b4d planemo upload for repository https://github.com/workflow4metabolomics/spectral_normalization commit 559844c168f0450b9657346ba890d9c028d7537a
marie-tremblay-metatoul
parents:
diff changeset
18 library(batch)
a5e6499f1b4d planemo upload for repository https://github.com/workflow4metabolomics/spectral_normalization commit 559844c168f0450b9657346ba890d9c028d7537a
marie-tremblay-metatoul
parents:
diff changeset
19
a5e6499f1b4d planemo upload for repository https://github.com/workflow4metabolomics/spectral_normalization commit 559844c168f0450b9657346ba890d9c028d7537a
marie-tremblay-metatoul
parents:
diff changeset
20
a5e6499f1b4d planemo upload for repository https://github.com/workflow4metabolomics/spectral_normalization commit 559844c168f0450b9657346ba890d9c028d7537a
marie-tremblay-metatoul
parents:
diff changeset
21
a5e6499f1b4d planemo upload for repository https://github.com/workflow4metabolomics/spectral_normalization commit 559844c168f0450b9657346ba890d9c028d7537a
marie-tremblay-metatoul
parents:
diff changeset
22 ## --- Config : --- ##
a5e6499f1b4d planemo upload for repository https://github.com/workflow4metabolomics/spectral_normalization commit 559844c168f0450b9657346ba890d9c028d7537a
marie-tremblay-metatoul
parents:
diff changeset
23 - Edit the file "/galaxy/dist/galaxy-dist/tool_conf.xml" and add
a5e6499f1b4d planemo upload for repository https://github.com/workflow4metabolomics/spectral_normalization commit 559844c168f0450b9657346ba890d9c028d7537a
marie-tremblay-metatoul
parents:
diff changeset
24 <section id="id_name" name="Name">
a5e6499f1b4d planemo upload for repository https://github.com/workflow4metabolomics/spectral_normalization commit 559844c168f0450b9657346ba890d9c028d7537a
marie-tremblay-metatoul
parents:
diff changeset
25 <tool file="path/NmrNormalization_xml.xml" />
a5e6499f1b4d planemo upload for repository https://github.com/workflow4metabolomics/spectral_normalization commit 559844c168f0450b9657346ba890d9c028d7537a
marie-tremblay-metatoul
parents:
diff changeset
26 </section>
a5e6499f1b4d planemo upload for repository https://github.com/workflow4metabolomics/spectral_normalization commit 559844c168f0450b9657346ba890d9c028d7537a
marie-tremblay-metatoul
parents:
diff changeset
27 to create a new section containing the Nmr_Normalization tool
a5e6499f1b4d planemo upload for repository https://github.com/workflow4metabolomics/spectral_normalization commit 559844c168f0450b9657346ba890d9c028d7537a
marie-tremblay-metatoul
parents:
diff changeset
28 or add
a5e6499f1b4d planemo upload for repository https://github.com/workflow4metabolomics/spectral_normalization commit 559844c168f0450b9657346ba890d9c028d7537a
marie-tremblay-metatoul
parents:
diff changeset
29 <tool file="path/NmrNormalization_xml.xml" />
a5e6499f1b4d planemo upload for repository https://github.com/workflow4metabolomics/spectral_normalization commit 559844c168f0450b9657346ba890d9c028d7537a
marie-tremblay-metatoul
parents:
diff changeset
30 in an existing section
a5e6499f1b4d planemo upload for repository https://github.com/workflow4metabolomics/spectral_normalization commit 559844c168f0450b9657346ba890d9c028d7537a
marie-tremblay-metatoul
parents:
diff changeset
31
a5e6499f1b4d planemo upload for repository https://github.com/workflow4metabolomics/spectral_normalization commit 559844c168f0450b9657346ba890d9c028d7537a
marie-tremblay-metatoul
parents:
diff changeset
32 - Put the three files NmrNormalization_xml.xml, NmrNormalization_wrapper.R and NmrNormalization_script.R in a same directory
a5e6499f1b4d planemo upload for repository https://github.com/workflow4metabolomics/spectral_normalization commit 559844c168f0450b9657346ba890d9c028d7537a
marie-tremblay-metatoul
parents:
diff changeset
33 For example, path=/galaxy/dist/galaxy-dist/tools/stats
a5e6499f1b4d planemo upload for repository https://github.com/workflow4metabolomics/spectral_normalization commit 559844c168f0450b9657346ba890d9c028d7537a
marie-tremblay-metatoul
parents:
diff changeset
34
a5e6499f1b4d planemo upload for repository https://github.com/workflow4metabolomics/spectral_normalization commit 559844c168f0450b9657346ba890d9c028d7537a
marie-tremblay-metatoul
parents:
diff changeset
35 - Edit the NmrBucketing_xml.xml file and change the path in the following lines
a5e6499f1b4d planemo upload for repository https://github.com/workflow4metabolomics/spectral_normalization commit 559844c168f0450b9657346ba890d9c028d7537a
marie-tremblay-metatoul
parents:
diff changeset
36 # R script
a5e6499f1b4d planemo upload for repository https://github.com/workflow4metabolomics/spectral_normalization commit 559844c168f0450b9657346ba890d9c028d7537a
marie-tremblay-metatoul
parents:
diff changeset
37 R --vanilla --slave --no-site-file --file=path/NmrNormalization_wrapper.R --args
a5e6499f1b4d planemo upload for repository https://github.com/workflow4metabolomics/spectral_normalization commit 559844c168f0450b9657346ba890d9c028d7537a
marie-tremblay-metatoul
parents:
diff changeset
38
a5e6499f1b4d planemo upload for repository https://github.com/workflow4metabolomics/spectral_normalization commit 559844c168f0450b9657346ba890d9c028d7537a
marie-tremblay-metatoul
parents:
diff changeset
39 ## Library name for raw files storage
a5e6499f1b4d planemo upload for repository https://github.com/workflow4metabolomics/spectral_normalization commit 559844c168f0450b9657346ba890d9c028d7537a
marie-tremblay-metatoul
parents:
diff changeset
40 library path/$library
a5e6499f1b4d planemo upload for repository https://github.com/workflow4metabolomics/spectral_normalization commit 559844c168f0450b9657346ba890d9c028d7537a
marie-tremblay-metatoul
parents:
diff changeset
41
a5e6499f1b4d planemo upload for repository https://github.com/workflow4metabolomics/spectral_normalization commit 559844c168f0450b9657346ba890d9c028d7537a
marie-tremblay-metatoul
parents:
diff changeset
42
a5e6499f1b4d planemo upload for repository https://github.com/workflow4metabolomics/spectral_normalization commit 559844c168f0450b9657346ba890d9c028d7537a
marie-tremblay-metatoul
parents:
diff changeset
43
a5e6499f1b4d planemo upload for repository https://github.com/workflow4metabolomics/spectral_normalization commit 559844c168f0450b9657346ba890d9c028d7537a
marie-tremblay-metatoul
parents:
diff changeset
44 Finally, restart Galaxy