0
|
1 INTRODUCTION
|
|
2 ============
|
|
3
|
|
4 This tool is part of the xcms/camera/XSeeker workflow, and it inserts
|
|
5 between camera and XSeeker. It takes in input a rdata producd by camera,
|
|
6 gather some data from mzxml original files, and create a database
|
|
7 containing all these informations organized in such a way that XSeeker
|
|
8 has just to display the data without manipulating them anymore, which
|
|
9 makes it a lot faster and easier to use.
|
|
10
|
|
11
|
|
12 PREREQUISITES
|
|
13 =============
|
|
14 There is not real preriquesite to understand how this tool works
|
|
15 and to modify it. There is a single R script - XSeekerPreparator.R - that do
|
|
16 all the work.
|
|
17
|
|
18 You can make this tool work alone, but you can integrate it with galaxy.
|
|
19 In this case, you need to have a galaxy instance you can configure.
|
|
20 It is also recomended to have access to the datatypes definitions (in
|
|
21 the python files) to make the outputs recognized by galaxy as XSeeker's
|
|
22 database files.
|
|
23
|
|
24
|
|
25 DESIGN
|
|
26 ======
|
|
27 This tool is very simple and does a little number of things, so there is
|
|
28 only a single file: XSeekerPreparator.R .
|
|
29 There is a test/test.sh file that can be used as an example to know how
|
|
30 to use this tool.
|
|
31
|
|
32 You will find the galaxy patches in the galaxy/ directory. These files
|
|
33 are not meant to be copy/paste-ed. The content of these files must be
|
|
34 added to the existing files of your galaxy instance
|
|
35
|
|
36
|
|
37 REQUIREMENT
|
|
38 =====
|
|
39
|
|
40 - optparse
|
|
41 - xcms
|
|
42 - blob
|
|
43 - fst
|
|
44 - DBModelR
|
|
45 - stringr
|
|
46 - optparse
|
|
47 - galaxy (optional)
|
|
48
|
|
49 #### R 4.0.0
|
|
50 - `export R_MAJOR=4 R_VERSION=4.0.0 BUILD_TARGET_DIR=~/R/`
|
|
51 - `wget https://cran.rstudio.com/src/base/R-${R_MAJOR}/R-${R_VERSION}.tar.gz`
|
|
52 - `tar -xf "R-${R_VERSION}.tar.gz"`
|
|
53 - `cd ./R-${R_VERSION}/`
|
|
54 - `./configure --prefix="${BUILD_TARGET_DIR}" --with-readline="no" --with-x="no"`
|
|
55 - `export CC="gcc -fPIC"`
|
|
56 - `make`
|
|
57 - `make install`
|
|
58
|
|
59 #### Packages
|
|
60 ```bash
|
|
61 ~/R/bin/R -e "
|
|
62 install.packages(
|
|
63 c(
|
|
64 'optparse',
|
|
65 'blob',
|
|
66 'fst',
|
|
67 'stringr',
|
|
68 'optparse',
|
|
69 'RSQLite',
|
|
70 'remotes',
|
|
71 'BiocManager'
|
|
72 ), repos='https://cloud.r-project.org'
|
|
73 )" && \
|
|
74 ~/R/bin/R -e '
|
|
75 remotes::install_github("LainPavot/DBModelR", force=TRUE)
|
|
76 ' && \
|
|
77 ~/R/bin/R -e '
|
|
78 BiocManager::install("xcms")
|
|
79 '
|
|
80 ```
|
|
81
|
|
82 #### galaxy
|
|
83 ```bash
|
|
84 git clone https://github.com/galaxyproject/galaxy
|
|
85 ```
|
|
86
|
|
87 DEPLOY
|
|
88 =====
|
|
89
|
|
90 Install the tool in galaxy:
|
|
91 Open each file in the galaxy/ directory and copy their content to their
|
|
92 respective files in your galaxy instance.
|
|
93 Copy XSeekerPreparator.R in galaxy/tool/tools/LC-MSMS/
|
|
94
|
|
95 METADATA
|
|
96 --------
|
|
97
|
|
98 - **@name**: XSeekerPreparator
|
19
|
99 - **@version**: 1.3.0
|
0
|
100 - **@authors**: Lain Pavot
|
|
101 - **@date creation**: 15/09/2020
|
|
102
|
|
103 NOTES
|
|
104 -----
|
|
105 Developed and tested using:
|
|
106
|
|
107 - optparse 1.6.6
|
|
108 - xcms 3.10.2
|
|
109 - blob 1.2.1
|
|
110 - fst 0.9.4
|
|
111 - DBModelR
|
|
112 - stringr 1.4.0
|
|
113 - galaxy 21.01 |