annotate nmr_bucketing/MANUAL_INSTALL.txt @ 2:3cd762aac7a4 draft

Uploaded
author marie-tremblay-metatoul
date Thu, 20 Apr 2017 08:53:46 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
3cd762aac7a4 Uploaded
marie-tremblay-metatoul
parents:
diff changeset
1 Instructions to integrate the "NMR bucketing" tool into a local instance of Galaxy
3cd762aac7a4 Uploaded
marie-tremblay-metatoul
parents:
diff changeset
2 Version February 2015 M Tremblay-Franco
3cd762aac7a4 Uploaded
marie-tremblay-metatoul
parents:
diff changeset
3
3cd762aac7a4 Uploaded
marie-tremblay-metatoul
parents:
diff changeset
4
3cd762aac7a4 Uploaded
marie-tremblay-metatoul
parents:
diff changeset
5 ## --- R bin and Packages : --- ##
3cd762aac7a4 Uploaded
marie-tremblay-metatoul
parents:
diff changeset
6 R version 3.0.2 (2013-09-25) -- "Frisbee Sailing"
3cd762aac7a4 Uploaded
marie-tremblay-metatoul
parents:
diff changeset
7 Platform: x86_64-redhat-linux-gnu (64-bit)
3cd762aac7a4 Uploaded
marie-tremblay-metatoul
parents:
diff changeset
8
3cd762aac7a4 Uploaded
marie-tremblay-metatoul
parents:
diff changeset
9 Install the "batch" library, necessary for parseCommandArgs function and the "pracma" library, nessecary for cumtrapz function:
3cd762aac7a4 Uploaded
marie-tremblay-metatoul
parents:
diff changeset
10 - Download package source (*.tar.gz file) from your favorite CRAN (http://www.r-project.org/)
3cd762aac7a4 Uploaded
marie-tremblay-metatoul
parents:
diff changeset
11 For example: http://cran.univ-lyon1.fr/
3cd762aac7a4 Uploaded
marie-tremblay-metatoul
parents:
diff changeset
12
3cd762aac7a4 Uploaded
marie-tremblay-metatoul
parents:
diff changeset
13 - Install package in your R session
3cd762aac7a4 Uploaded
marie-tremblay-metatoul
parents:
diff changeset
14 install.packages("path/package_name.tar.gz",lib="path",repos=NULL)
3cd762aac7a4 Uploaded
marie-tremblay-metatoul
parents:
diff changeset
15 For Example: install.packages("/usr/lib64/R/library/pracma_1.8.3.tar",lib="/usr/lib64/R/library",repos=NULL)
3cd762aac7a4 Uploaded
marie-tremblay-metatoul
parents:
diff changeset
16
3cd762aac7a4 Uploaded
marie-tremblay-metatoul
parents:
diff changeset
17 - Finally, load the package into your R session
3cd762aac7a4 Uploaded
marie-tremblay-metatoul
parents:
diff changeset
18 library(batch)
3cd762aac7a4 Uploaded
marie-tremblay-metatoul
parents:
diff changeset
19 library(pracma)
3cd762aac7a4 Uploaded
marie-tremblay-metatoul
parents:
diff changeset
20
3cd762aac7a4 Uploaded
marie-tremblay-metatoul
parents:
diff changeset
21
3cd762aac7a4 Uploaded
marie-tremblay-metatoul
parents:
diff changeset
22 ## --- Config : --- ##
3cd762aac7a4 Uploaded
marie-tremblay-metatoul
parents:
diff changeset
23 - Edit the file "/galaxy/dist/galaxy-dist/tool_conf.xml" and add
3cd762aac7a4 Uploaded
marie-tremblay-metatoul
parents:
diff changeset
24 <section id="id_name" name="Name">
3cd762aac7a4 Uploaded
marie-tremblay-metatoul
parents:
diff changeset
25 <tool file="path/NmrBucketing_xml.xml" />
3cd762aac7a4 Uploaded
marie-tremblay-metatoul
parents:
diff changeset
26 </section>
3cd762aac7a4 Uploaded
marie-tremblay-metatoul
parents:
diff changeset
27 to create a new section containing the NMR_Bucketing tool
3cd762aac7a4 Uploaded
marie-tremblay-metatoul
parents:
diff changeset
28 or add
3cd762aac7a4 Uploaded
marie-tremblay-metatoul
parents:
diff changeset
29 <tool file="path/NmrBucketing_xml.xml" />
3cd762aac7a4 Uploaded
marie-tremblay-metatoul
parents:
diff changeset
30 in an existing section
3cd762aac7a4 Uploaded
marie-tremblay-metatoul
parents:
diff changeset
31
3cd762aac7a4 Uploaded
marie-tremblay-metatoul
parents:
diff changeset
32 - Put the three files NmrBucketing_xml.xml, NmrBucketing_wrapper.R and NmrBucketing_script.R in a same directory
3cd762aac7a4 Uploaded
marie-tremblay-metatoul
parents:
diff changeset
33 For example, path=/galaxy/dist/galaxy-dist/tools/stats
3cd762aac7a4 Uploaded
marie-tremblay-metatoul
parents:
diff changeset
34
3cd762aac7a4 Uploaded
marie-tremblay-metatoul
parents:
diff changeset
35 - Edit the NmrBucketing_xml.xml file and change the path in the following lines
3cd762aac7a4 Uploaded
marie-tremblay-metatoul
parents:
diff changeset
36 # R script
3cd762aac7a4 Uploaded
marie-tremblay-metatoul
parents:
diff changeset
37 R --vanilla --slave --no-site-file --file=path/NmrBucketing_wrapper.R --args
3cd762aac7a4 Uploaded
marie-tremblay-metatoul
parents:
diff changeset
38
3cd762aac7a4 Uploaded
marie-tremblay-metatoul
parents:
diff changeset
39 ## Library name for raw files storage
3cd762aac7a4 Uploaded
marie-tremblay-metatoul
parents:
diff changeset
40 library path/$library
3cd762aac7a4 Uploaded
marie-tremblay-metatoul
parents:
diff changeset
41
3cd762aac7a4 Uploaded
marie-tremblay-metatoul
parents:
diff changeset
42 ## --- XML help part --- ##
3cd762aac7a4 Uploaded
marie-tremblay-metatoul
parents:
diff changeset
43 one image:
3cd762aac7a4 Uploaded
marie-tremblay-metatoul
parents:
diff changeset
44 Copy the 'Mth_Architecture_Repertoire_Bruker.png' file within the directory to your galaxy-dist/static/images/
3cd762aac7a4 Uploaded
marie-tremblay-metatoul
parents:
diff changeset
45
3cd762aac7a4 Uploaded
marie-tremblay-metatoul
parents:
diff changeset
46
3cd762aac7a4 Uploaded
marie-tremblay-metatoul
parents:
diff changeset
47 - Activate the "user_library_import_dir" in your /galaxy/dist/galaxy-dist/universe_wsgi.ini and create the users directories in this path, for example:
3cd762aac7a4 Uploaded
marie-tremblay-metatoul
parents:
diff changeset
48
3cd762aac7a4 Uploaded
marie-tremblay-metatoul
parents:
diff changeset
49 #In universe_wsgi.ini
3cd762aac7a4 Uploaded
marie-tremblay-metatoul
parents:
diff changeset
50 user_library_import_dir = /projet/sbr/galaxy/import/user
3cd762aac7a4 Uploaded
marie-tremblay-metatoul
parents:
diff changeset
51
3cd762aac7a4 Uploaded
marie-tremblay-metatoul
parents:
diff changeset
52 #Create the user "myaccount" in this path
3cd762aac7a4 Uploaded
marie-tremblay-metatoul
parents:
diff changeset
53
3cd762aac7a4 Uploaded
marie-tremblay-metatoul
parents:
diff changeset
54 User path: /projet/sbr/galaxy/import/user/myaccount@sb-roscoff.fr
3cd762aac7a4 Uploaded
marie-tremblay-metatoul
parents:
diff changeset
55
3cd762aac7a4 Uploaded
marie-tremblay-metatoul
parents:
diff changeset
56
3cd762aac7a4 Uploaded
marie-tremblay-metatoul
parents:
diff changeset
57
3cd762aac7a4 Uploaded
marie-tremblay-metatoul
parents:
diff changeset
58
3cd762aac7a4 Uploaded
marie-tremblay-metatoul
parents:
diff changeset
59 Finally, restart Galaxy