comparison metaMS_plot.xml @ 0:b60dc620bd14 draft

planemo upload for repository https://github.com/workflow4metabolomics/metaMS commit 174a1713024f246c1485cbd75218577e89353522
author workflow4metabolomics
date Wed, 03 Jul 2019 05:08:14 -0400
parents
children ba609408eee9
comparison
equal deleted inserted replaced
-1:000000000000 0:b60dc620bd14
1 <tool id="metams_plot" name="metaMS.plot" version="1.0.0">
2
3 <description>GC-MS data preprocessing using metaMS package</description>
4
5 <macros>
6 <import>macros.xml</import>
7 </macros>
8
9 <expand macro="requirements">
10 <requirement type="package" version="9.22">ghostscript</requirement>
11 </expand>
12 <expand macro="stdio"/>
13
14 <command><![CDATA[
15 @COMMAND_RSCRIPT@/metaMS_plot.r
16
17 metaMS '$metaMS'
18
19 selecttic $selectedtic
20
21 selectbpc $selectedbpc
22
23 selecteic $selectedeic.EIC
24
25 #if $selectedeic.EIC == "true"
26 unkn "c($selectedeic.unkn)"
27 #else
28 unkn "none"
29 #end if
30
31 @COMMAND_FILE_LOAD@
32
33 ]]></command>
34
35 <inputs>
36
37 <param name="metaMS" type="data" format="rdata" label="Rdata from new_metaMS_runGC" help="Rdata file containing a metaMS preprocess object" />
38 <param name="selectedtic" type="boolean" checked="false" falsevalue="false" truevalue="true" label="Do you want to process for TIC(s) ?" />
39 <param name="selectedbpc" checked="false" falsevalue="false" truevalue="true" label="Do you want to process for BPC(s) ?" type="boolean" />
40
41 <conditional name="selectedeic">
42 <param name="EIC" checked="false" falsevalue="false" truevalue="true" label="Do you want to process for EIC(s) ?" type="boolean">
43 <option value="false">no</option>
44 <option value="true">yes</option>
45 </param>
46 <when value="true">
47 <param name="unkn" type="text" value="1:5" label="EIC_Unknown" help="vector of peaks number to be plotted, for example 1:5 (mean 1 to 5) or 1,4,12 (means 1 4 and 12). For all EIC use 0" />
48 </when>
49 <when value="false"/>
50 </conditional>
51
52 <expand macro="input_file_load"/>
53
54 </inputs>
55
56 <outputs>
57
58 <!-- Only when user selected TIC option -->
59 <data name="ticsRawPdf" format="pdf" from_work_dir="TICs_raw.pdf" label="TICs_raw.pdf">
60 <filter>selectedtic is True</filter>
61 </data>
62 <!-- Only when user selected BPC option -->
63 <data name="bpcsRawPdf" format="pdf" from_work_dir="BPCs_raw.pdf" label="BPCs_raw.pdf">
64 <filter>selectedbpc is True</filter>
65 </data>
66 <!-- Only when user selected EIC option -->
67 <data name="unknownPdf" format="pdf" from_work_dir="GCMS_EIC.pdf" label="GCMS_EIC.pdf">
68 <filter>selectedeic['EIC'] is True</filter>
69 </data>
70
71 </outputs>
72
73 <tests>
74
75 <!-- Test TIC -->
76 <test>
77 <param name="metaMS" value="runGC_test.RData" ftype="rdata" />
78 <expand macro="test_file_load_alg_symlink" />
79 <param name="selectedtic" value="true"/>
80 <output name="ticsRawPdf" value="TICs_raw.pdf" ftype="pdf" compare="sim_size" delta="600"/>
81 </test>
82 <!-- Test BPC -->
83 <test>
84 <param name="metaMS" value="runGC_noDB.RData" ftype="rdata" />
85 <expand macro="test_file_load_alg_symlink" />
86 <param name="selectedbpc" value="true"/>
87 <output name="bpcsRawPdf" value="BPCs_raw.pdf" ftype="pdf" compare="sim_size" delta="2000"/>
88 </test>
89 <!-- Test EICs -->
90 <test>
91 <param name="metaMS" value="runGC_noDB.RData" ftype="rdata" />
92 <expand macro="test_file_load_alg_symlink" />
93 <conditional name="selectedeic">
94 <param name="EIC" value="true"/>
95 <param name="unkn" value="1:5"/>
96 </conditional>
97 <output name="unknownPdf" value="GCMS_EIC_noDB.pdf" ftype="pdf" compare="sim_size" delta="1200"/>
98 </test>
99
100 <!-- Tests with DB comparison -->
101 <!-- Test TIC -->
102 <!--<test>
103 <param name="metaMS" value="runGC.RData" ftype="rdata" />
104 <param name="selectedtic|TIC" value="true"/>
105 <output name="ticsRawPdf" value="TICs_raw.pdf" ftype="pdf" compare="sim_size" delta="600"/>
106 </test>
107 --><!-- Test BPC -->
108 <!--<test>
109 <param name="metaMS" value="runGC.RData" ftype="rdata" />
110 <param name="selectedbpc|BPC" value="true"/>
111 <output name="bpcsRawPdf" value="BPCs_raw.pdf" ftype="pdf" compare="sim_size" delta="600"/>
112 </test>
113 --><!-- Test EICs -->
114 <!--<test>
115 <param name="metaMS" value="runGC.RData" ftype="rdata" />
116 <param name="selectedeic|EIC" value="true"/>
117 <output name="unknownPdf" value="GCMS_EIC.pdf" ftype="pdf" compare="sim_size" delta="600"/>
118 </test>
119 -->
120 </tests>
121
122 <help>
123
124 <!--
125 TODO : Add test on EICs (problem with gs not found whereas I added pip install ghostscript and bgs in .travis.yml)
126 -->
127
128 .. class:: infomark
129
130 **Author(s)** Ron Wehrens (ron.wehrens@gmail.com), Georg Weingart, Fulvio Mattivi
131
132 .. class:: infomark
133
134 **Galaxy wrapper and scripts developpers** Guitton Yann LABERCA yann.guitton@oniris-nantes.fr and Saint-Vanne Julien julien.saint-vanne@sb-roscoff.fr
135
136 .. class:: infomark
137
138 **Please cites**
139
140 metaMS : Wehrens, R.; Weingart, G.; Mattivi, F. Journal of Chromatography B.
141
142 xcms : Smith, C. A.; Want, E. J.; O’Maille, G.; Abagyan, R.; Siuzdak, G. Anal. Chem. 2006, 78, 779–787.
143
144
145 ---------------------------------------------------
146
147 ====================
148 metaMS_plot
149 ====================
150 ------------
151 Description
152 ------------
153
154 This tool will plot Base Peak Intensity chromatogram (BPI) and Total Ion Current chromatogram (TIC) from xcms experiments.
155
156 It will compare with opposite graphs your different classes given by a samplemetadata file or from xcms.findchrompeaks Merger tool.
157
158 It can also make EICs from your unknowns that you choose, with their pseudospectra.
159
160
161 -----------------
162 Workflow position
163 -----------------
164
165
166 **Upstream tools**
167
168 You must use result file from :
169
170 ========================= ==================== ======= ==========
171 Name output file format parameter
172 ========================= ==================== ======= ==========
173 metaMS_runGC runGC.RData RData file
174 ========================= ==================== ======= ==========
175
176
177
178 **General schema of the metabolomic workflow for GCMS**
179
180 .. image:: workflow_metaMS_plot.png
181
182 -----------
183 Input files
184 -----------
185
186 This tool always take files output from metaMS_runGC
187
188 +---------------------------+------------+
189 | Parameter : num + label | Format |
190 +===========================+============+
191 | 1 : RData file | RData |
192 +---------------------------+------------+
193
194
195 ----------
196 Parameters
197 ----------
198
199 There is no specific parameters except the choice for your EICs.
200
201 ----------
202 Outputs
203 ----------
204
205 According to your choice(s), you can have different output(s) :
206
207 - The output file **BPCs_raw.pdf** is a pdf file where each page contain BPC of a class opposed to an other class.
208 - The output file **TICs_raw.pdf** is a pdf file where each page contain TIC of a class opposed to an other class.
209 - The output file **GCMS_EIC.pdf** is a pdf file where pages contain EICs from each sample for each unknown of your choice.
210
211
212 ----------------
213 Working Example
214 ----------------
215 .. class:: warningmark
216
217 **Reference Data for testing are taken from:**
218
219 Dittami,S.M. et al. (2012) *Towards deciphering dynamic changes and evolutionary mechanisms involved in the adaptation to low salinities in Ectocarpus (brown algae): Adaptation to low salinities in Ectocarpus.* The Plant Journal
220
221 Input files
222 -----------
223
224 | **RData file** -> runGC_test.RData
225
226 Parameters
227 ----------
228
229 | TIC -> **TRUE**
230 | BPC -> **TRUE**
231 | EIC -> **TRUE**
232 | Unkn -> **1-5**
233
234
235 Output files
236 ------------
237
238 | **1) TICs_raw.pdf (Total Ion Chromatogram) :**
239
240 .. image:: BPCs_raw.pdf
241
242 | **2) BPCs_raw.pdf (Base Peak Chromatograms) :**
243
244 .. image:: TICs_raw.pdf
245
246 | **3) GCMS_EIC.pdf (Extracted Ion Chromatogram) :**
247
248 .. image:: GCMS_EIC.pdf
249
250
251 ---------------------------------------------------
252
253 Changelog/News
254 --------------
255 **Version 1.0 - 20/05/2019**
256
257 - NEW: new tool extract from previous metaMS_runGC tool
258
259 </help>
260
261 <citations>
262 <citation type="doi">10.1016/j.jchromb.2014.02.051</citation>
263 <citation type="doi">10.1093/bioinformatics/btu813</citation>
264 </citations>
265
266 </tool>