view MANUAL_INSTALL.txt @ 5:3d00a98974b7 draft

planemo upload for repository https://github.com/workflow4metabolomics/normalization commit 1aedb0fe77d56139bc8f5ded1fee1e455e8e9495
author lecorguille
date Tue, 02 Oct 2018 12:14:47 -0400
parents 966fcf7ae66e
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