62
|
1 <tool id="MaREA" name="Metabolic Reaction Enrichment Analysis" version="1.1.4">
|
47
|
2 <macros>
|
|
3 <import>marea_macros.xml</import>
|
|
4 </macros>
|
|
5 <requirements>
|
|
6 <requirement type="package" version="0.23.0">pandas</requirement>
|
|
7 <requirement type="package" version="1.1.0">scipy</requirement>
|
|
8 <requirement type="package" version="0.10.1">cobra</requirement>
|
|
9 <requirement type="package" version="4.2.1">lxml</requirement>
|
|
10 <requirement type="package" version="0.8.1">svglib</requirement>
|
|
11 <requirement type="package" version="3.4.0">reportlab</requirement>
|
|
12 </requirements>
|
|
13 <command detect_errors="exit_code">
|
|
14 <![CDATA[
|
16
|
15 python $__tool_directory__/marea.py
|
47
|
16
|
16
|
17 --tool_dir $__tool_directory__
|
|
18 --option $cond.type_selector
|
33
|
19 --out_log $log
|
|
20
|
16
|
21 #if $cond.type_selector == 'datasets':
|
|
22 --input_datas
|
|
23 #for $data in $cond.input_Datasets:
|
|
24 ${data.input}
|
|
25 #end for
|
|
26 --names
|
|
27 #for $data in $cond.input_Datasets:
|
|
28 ${data.input_name}
|
|
29 #end for
|
47
|
30 --comparison ${cond.comparis.comparison}
|
62
|
31
|
31
|
32 #if $cond.advanced.choice == 'true':
|
62
|
33 #if $cond.advanced.cond_map.cond_map_choice == 'true':
|
|
34 --custom_rules true
|
|
35 --custom_map ${cond.advanced.cond_map.custom_map}
|
|
36 #end if
|
47
|
37 --pValue ${cond.advanced.pValue}
|
|
38 --fChange ${cond.advanced.fChange}
|
|
39 --generate_svg ${cond.advanced.generateSvg}
|
|
40 --generate_pdf ${cond.advanced.generatePdf}
|
|
41 #else
|
|
42 --pValue 0.05
|
|
43 --fChange 1.5
|
|
44 --generate_svg false
|
|
45 --generate_pdf true
|
|
46 --generate_ras false
|
|
47 #end if
|
16
|
48 #elif $cond.type_selector == 'dataset_class':
|
|
49 --input_data ${input_data}
|
|
50 --input_class ${input_class}
|
47
|
51 --comparison ${cond.comparis.comparison}
|
|
52 #if $cond.comparis.comparison == 'onevsmany'
|
|
53 --control ${cond.comparis.controlgroup}
|
|
54 #end if
|
31
|
55 #if $cond.advanced.choice == 'true':
|
62
|
56 #if $cond.advanced.cond_map.cond_map_choice == 'true':
|
|
57 --custom_rules true
|
|
58 --custom_map ${cond.advanced.cond_map.custom_map}
|
|
59 #end if
|
47
|
60 --pValue ${cond.advanced.pValue}
|
|
61 --fChange ${cond.advanced.fChange}
|
|
62 --generate_svg ${cond.advanced.generateSvg}
|
|
63 --generate_pdf ${cond.advanced.generatePdf}
|
|
64 #else
|
|
65 --pValue 0.05
|
|
66 --fChange 1.5
|
|
67 --generate_svg false
|
|
68 --generate_pdf true
|
|
69 #end if
|
28
|
70 #end if
|
16
|
71 ]]>
|
47
|
72 </command>
|
|
73 <inputs>
|
|
74 <conditional name="cond">
|
|
75 <param name="type_selector" argument="--option" type="select" label="Input format:">
|
|
76 <option value="datasets" selected="true">RAS of group 1 + RAS of group 2 + ... + RAS of group N</option>
|
|
77 <option value="dataset_class">RAS of all samples + sample group specification</option>
|
|
78 </param>
|
|
79 <when value="datasets">
|
|
80 <repeat name="input_Datasets" title="RAS dataset" min="2">
|
|
81 <param name="input" argument="--input_datas" type="data" format="tabular, csv, tsv" label="add dataset" />
|
|
82 <param name="input_name" argument="--names" type="text" label="Dataset's name:" value="Dataset" help="Default: Dataset" />
|
|
83 </repeat>
|
|
84 <conditional name="comparis">
|
|
85 <param name="comparison" argument="--comparison" type="select" label="Groups comparison:">
|
|
86 <option value="manyvsmany" selected="true">One vs One</option>
|
|
87 <option value="onevsrest">One vs All</option>
|
|
88 <option value="onevsmany">One vs Control</option>
|
|
89 </param>
|
|
90 <when value="onevsmany">
|
|
91 <param name="controlgroup" argument="--controlgroup" type="text" label="Control group label:" value="0" help="Name of group label to be compared to others"/>
|
|
92 </when>
|
|
93 </conditional>
|
|
94 <conditional name="advanced">
|
33
|
95 <param name="choice" type="boolean" checked="false" label="Use advanced options?" help="Use this options to choose custom parameters for evaluation: pValue, Fold-Change threshold, how to solve (A and NaN) and specify output maps.">
|
47
|
96 <option value="true" selected="true">No</option>
|
|
97 <option value="false">Yes</option>
|
31
|
98 </param>
|
47
|
99 <when value="false"></when>
|
31
|
100 <when value="true">
|
47
|
101 <conditional name="cond_map">
|
58
|
102 <param name="cond_map_choice" type="boolean" checked="false" label="Use custom map?" help="Use this option only if you have generated RAS using a custom set of rules">
|
47
|
103 <option value="false" selected="true">No</option>
|
|
104 <option value="true">Yes</option>
|
|
105 </param>
|
55
|
106 <when value="true">
|
47
|
107 <param name="Custom_map" argument="--custom_map" type="data" format="xml, svg" label="custom-map.svg"/>
|
|
108 </when>
|
|
109 </conditional>
|
|
110 <param name="pValue" argument="--pValue" type="float" size="20" value="0.01" max="1" min="0" label="P-value threshold:" help="min value 0" />
|
|
111 <param name="fChange" argument="--fChange" type="float" size="20" value="1.2" min="1" label="Fold-Change threshold:" help="min value 1" />
|
|
112 <param name="generateSvg" argument="--generateSvg" type="boolean" checked="false" label="Generate SVG map" help="should the program generate an editable svg map of the processes?" />
|
|
113 <param name="generatePdf" argument="--generatePdf" type="boolean" checked="true" label="Generate PDF map" help="should the program return a non editable (but displayble) pdf map of the processes?" />
|
31
|
114 </when>
|
47
|
115 </conditional>
|
|
116 </when>
|
|
117 <when value="dataset_class">
|
|
118 <param name="input_data" argument="--input_data" type="data" format="tabular, csv, tsv" label="RAS of all samples" />
|
16
|
119 <param name="input_class" argument="--input_class" type="data" format="tabular, csv, tsv" label="Sample group specification" />
|
47
|
120 <conditional name="comparis">
|
|
121 <param name="comparison" argument="--comparison" type="select" label="Groups comparison:">
|
|
122 <option value="manyvsmany" selected="true">One vs One</option>
|
|
123 <option value="onevsrest">One vs All</option>
|
|
124 <option value="onevsmany">One vs Control</option>
|
31
|
125 </param>
|
47
|
126 <when value="onevsmany">
|
|
127 <param name="controlgroup" argument="--controlgroup" type="text" label="Control group label:" value="0" help="Name of group label to be compared to others"/>
|
31
|
128 </when>
|
47
|
129 </conditional>
|
|
130 <conditional name="advanced">
|
|
131 <param name="choice" type="boolean" checked="false" label="Use advanced options?" help="Use this options to choose custom parameters for evaluation: pValue, Fold-Change threshold, how to solve (A and NaN) and specify output maps.">
|
|
132 <option value="true" selected="true">No</option>
|
|
133 <option value="false">Yes</option>
|
|
134 </param>
|
|
135 <when value="false"></when>
|
|
136 <when value="true">
|
|
137 <conditional name="cond_map">
|
58
|
138 <param name="cond_map_choice" type="boolean" checked="false" label="Use custom map?" help="Use this option only if you have generated RAS using a custom set of rules">
|
47
|
139 <option value="false" selected="true">No</option>
|
|
140 <option value="true">Yes</option>
|
|
141 </param>
|
57
|
142 <when value="true">
|
59
|
143 <param name="custom_map" argument="--custom_map" type="data" format="xml, svg" label="custom-map.svg"/>
|
47
|
144 </when>
|
|
145 </conditional>
|
|
146 <param name="pValue" argument="--pValue" type="float" size="20" value="0.01" max="1" min="0" label="P-value threshold:" help="min value 0" />
|
|
147 <param name="fChange" argument="--fChange" type="float" size="20" value="1.2" min="1" label="Fold-Change threshold:" help="min value 1" />
|
|
148 <param name="generateSvg" argument="--generateSvg" type="boolean" checked="false" label="Generate SVG map" help="should the program generate an editable svg map of the processes?" />
|
|
149 <param name="generatePdf" argument="--generatePdf" type="boolean" checked="true" label="Generate PDF map" help="should the program return a non editable (but displayble) pdf map of the processes?" />
|
|
150 </when>
|
|
151 </conditional>
|
|
152 </when>
|
|
153 </conditional>
|
|
154 </inputs>
|
|
155 <outputs>
|
|
156 <data format="txt" name="log" label="MaREA - Log" />
|
|
157 <collection name="results" type="list" label="MaREA - Results">
|
|
158 <discover_datasets pattern="__name_and_ext__" directory="result"/>
|
16
|
159 </collection>
|
47
|
160 </outputs>
|
|
161 <help>
|
|
162 <![CDATA[
|
16
|
163
|
|
164 What it does
|
|
165 -------------
|
|
166
|
48
|
167 This tool analyzes and visualizes differences in the Reaction Activity Scores (RASs) of groups of samples, as computed by the Expression2RAS tool, of groups of samples.
|
16
|
168
|
33
|
169 Accepted files are:
|
48
|
170 - option 1) two or more RAS datasets, each referring to samples in a given group. The user can specify a label for each group (as e.g. "classA" and "classB");
|
|
171 - option 2) one RAS dataset and one group-file specifying the group each sample belongs to.
|
|
172
|
|
173 RAS datasets format: tab-separated text files, reporting the RAS value of each reaction (row) for a given sample (column).
|
|
174
|
|
175 Column header: sample ID.
|
|
176 Raw header: reaction ID.
|
16
|
177
|
|
178 Optional files:
|
|
179 - custom svg map. Graphical elements must have the same IDs of reactions. See HmrCore svg map for an example.
|
|
180
|
|
181 The tool generates:
|
48
|
182 - 1) a tab-separated file: reporting fold-change and p-values of reaction activity scores (RASs) between a pair of conditions/classes;
|
|
183 - 2) a metabolic map file (downloadable as .svg): visualizing up- and down-regulated reactions between a pair of conditions/classes;
|
|
184 - 3) a log file (.txt).
|
|
185
|
|
186 Output options:
|
|
187 To calculate P-Values and Fold-Changes and to enrich maps, comparisons are performed for each possible pair of groups (default option ‘One vs One’).
|
16
|
188
|
48
|
189 Alternative options are:
|
|
190 - comparison of each group vs. the rest of samples (option ‘One vs Rest’)
|
|
191 - comparison of each group vs. a control group (option ‘One vs Control). If this option is selected the user must indicate the control group label.
|
16
|
192
|
|
193 Output files will be named as classA_vs_classB. Reactions will conventionally be reported as up-regulated (down-regulated) if they are significantly more (less) active in class having label "classA".
|
|
194
|
|
195 Example input
|
|
196 -------------
|
|
197
|
48
|
198 "RAS of group 1 + RAS of group 2 + ... + RAS of group N" option:
|
16
|
199
|
48
|
200 RAS Dataset 1:
|
16
|
201
|
48
|
202 +------------+----------------+----------------+----------------+
|
|
203 | Reaction ID| TCGAA62670 | TCGAA62671 | TCGAA62672 |
|
|
204 +============+================+================+================+
|
|
205 | r1642 | 0.523167 | 0.371355 | 0.925661 |
|
|
206 +------------+----------------+----------------+----------------+
|
|
207 | r1643 | 0.568765 | 0.765567 | 0.456789 |
|
|
208 +------------+----------------+----------------+----------------+
|
|
209 | r1640 | 0.876545 | 0.768933 | 0.987654 |
|
|
210 +------------+----------------+----------------+----------------+
|
|
211 | r1641 | 0.456788 | 0.876543 | 0.876542 |
|
|
212 +------------+----------------+----------------+----------------+
|
|
213 | r1646 | 0.876543 | 0.786543 | 0.897654 |
|
|
214 +------------+----------------+----------------+----------------+
|
16
|
215
|
48
|
216 RAS Dataset 2:
|
16
|
217
|
48
|
218 +------------+----------------+----------------+----------------+
|
|
219 | Reaction ID| TCGAA62670 | TCGAA62671 | TCGAA62672 |
|
|
220 +============+================+================+================+
|
|
221 | r1642 | 0.523167 | 0.371355 | 0.925661 |
|
|
222 +------------+----------------+----------------+----------------+
|
|
223 | r1643 | 0.568765 | 0.765567 | 0.456789 |
|
|
224 +------------+----------------+----------------+----------------+
|
|
225 | r1640 | 0.876545 | 0.768933 | 0.987654 |
|
|
226 +------------+----------------+----------------+----------------+
|
|
227 | r1641 | 0.456788 | 0.876543 | 0.876542 |
|
|
228 +------------+----------------+----------------+----------------+
|
|
229 | r1646 | 0.876543 | 0.786543 | 0.897654 |
|
|
230 +------------+----------------+----------------+----------------+
|
16
|
231
|
48
|
232 "RAS of all samples + sample group specification" option:
|
16
|
233
|
48
|
234 RAS Dataset:
|
16
|
235
|
48
|
236 +------------+----------------+----------------+----------------+
|
|
237 | Reaction ID| TCGAA62670 | TCGAA62671 | TCGAA62672 |
|
|
238 +============+================+================+================+
|
|
239 | r1642 | 0.523167 | 0.371355 | 0.925661 |
|
|
240 +------------+----------------+----------------+----------------+
|
|
241 | r1643 | 0.568765 | 0.765567 | 0.456789 |
|
|
242 +------------+----------------+----------------+----------------+
|
|
243 | r1640 | 0.876545 | 0.768933 | 0.987654 |
|
|
244 +------------+----------------+----------------+----------------+
|
|
245 | r1641 | 0.456788 | 0.876543 | 0.876542 |
|
|
246 +------------+----------------+----------------+----------------+
|
|
247 | r1646 | 0.876543 | 0.786543 | 0.897654 |
|
|
248 +------------+----------------+----------------+----------------+
|
16
|
249
|
48
|
250 Group-file
|
16
|
251
|
48
|
252 +---------------+-----------+
|
|
253 | Patient ID | Class |
|
|
254 +===============+===========+
|
|
255 | TCGAAA3529 | MSI |
|
|
256 +---------------+-----------+
|
|
257 | TCGAA62671 | MSS |
|
|
258 +---------------+-----------+
|
|
259 | TCGAA62672 | MSI |
|
|
260 +---------------+-----------+
|
16
|
261
|
48
|
262 Advanced options
|
|
263 ----------------
|
|
264
|
|
265 P-Value threshold: the threshold used for significance Kolmogorov-Smirnov (KS) test, to verify whether the distributions of RASs over the samples in two sets are significantly different
|
|
266
|
|
267 Fold-Change threshold: threshold of the fold-change between the average RAS of two groups. Among the reactions that pass the KS test, only fold-change values larger than the indicated threshold will be visualized on the output metabolic map;
|
|
268
|
16
|
269
|
|
270 .. class:: infomark
|
|
271
|
|
272 **TIP**: If your data is not TAB delimited, use `Convert delimiters to TAB`_.
|
|
273
|
|
274 .. class:: infomark
|
|
275
|
|
276 **TIP**: If your dataset is not split into classes, use `MaREA cluster analysis`_.
|
|
277
|
|
278 @REFERENCE@
|
|
279
|
|
280 .. _MaREA: https://www.biorxiv.org/content/early/2018/01/16/248724
|
|
281 .. _Convert delimiters to TAB: https://usegalaxy.org/?tool_id=Convert+characters1&version=1.0.0&__identifer=6t22teyofhj
|
|
282 .. _MaREA cluster analysis: http://link del tool di cluster.org
|
|
283
|
|
284 ]]>
|
47
|
285 </help>
|
|
286 <expand macro="citations" />undefined</tool>
|
33
|
287
|