view MANUAL_INSTALL.txt @ 3:966fcf7ae66e draft

planemo upload for repository https://github.com/workflow4metabolomics/normalization commit 9ca88a22e9b9394bfa00ea383fbb2b78ef05f990
author lecorguille
date Thu, 26 Oct 2017 06:01:14 -0400
parents
children
line wrap: on
line source

Instructions to integrate the NMR Normalization" tool into a local instance of Galaxy
Version mars 2015 M Tremblay-Franco


## --- R bin and Packages : --- ##
R version 3.0.2 (2013-09-25) -- "Frisbee Sailing
Platform: x86_64-redhat-linux-gnu (64-bit)

Install the "batch" library, necessary for parseCommandArgs function:
 - Download package source (*.tar.gz file) from your favorite CRAN (http://www.r-project.org/)
For example: http://cran.univ-lyon1.fr/

 - Install package in your R session
install.packages("path/package_name.tar.gz",lib="path",repos=NULL)
For Example: install.packages("/usr/lib64/R/library/batch_1.1-4.tar",lib="/usr/lib64/R/library",repos=NULL)

 - Finally, load the package into your R session
library(batch)



## --- Config : --- ##
 - Edit the file "/galaxy/dist/galaxy-dist/tool_conf.xml" and add
<section id="id_name" name="Name">
  <tool file="path/NmrNormalization_xml.xml" />
</section>
to create a new section containing the Nmr_Normalization tool
or add
  <tool file="path/NmrNormalization_xml.xml" />
in an existing section

 - Put the three files NmrNormalization_xml.xml, NmrNormalization_wrapper.R and NmrNormalization_script.R in a same directory
For example, path=/galaxy/dist/galaxy-dist/tools/stats

 - Edit the NmrBucketing_xml.xml file and change the path in the following lines
    # R script
    R --vanilla --slave --no-site-file --file=path/NmrNormalization_wrapper.R --args

    ## Library name for raw files storage
    library path/$library



Finally, restart Galaxy