66
|
1 <tool id="MaREA" name="Metabolic Reaction Enrichment Analysis" version="1.1.5">
|
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}
|
66
|
31 #if $cond.comparis.comparison == 'onevsmany'
|
|
32 --control '${cond.comparis.controlgroup}'
|
63
|
33 #end if
|
66
|
34
|
31
|
35 #if $cond.advanced.choice == 'true':
|
66
|
36 #if $cond.advanced.cond_map.cond_map_choice == 'true':
|
|
37 --custom_rules true
|
|
38 --custom_map ${cond.advanced.cond_map.custom_map}
|
|
39 #end if
|
47
|
40 --pValue ${cond.advanced.pValue}
|
|
41 --fChange ${cond.advanced.fChange}
|
|
42 --generate_svg ${cond.advanced.generateSvg}
|
|
43 --generate_pdf ${cond.advanced.generatePdf}
|
|
44 #else
|
|
45 --pValue 0.05
|
|
46 --fChange 1.5
|
|
47 --generate_svg false
|
|
48 --generate_pdf true
|
|
49 --generate_ras false
|
|
50 #end if
|
16
|
51 #elif $cond.type_selector == 'dataset_class':
|
|
52 --input_data ${input_data}
|
|
53 --input_class ${input_class}
|
47
|
54 --comparison ${cond.comparis.comparison}
|
|
55 #if $cond.comparis.comparison == 'onevsmany'
|
66
|
56 --control '${cond.comparis.controlgroup}'
|
63
|
57 #end if
|
31
|
58 #if $cond.advanced.choice == 'true':
|
66
|
59 #if $cond.advanced.cond_map.cond_map_choice == 'true':
|
|
60 --custom_rules true
|
|
61 --custom_map ${cond.advanced.cond_map.custom_map}
|
|
62 #end if
|
47
|
63 --pValue ${cond.advanced.pValue}
|
|
64 --fChange ${cond.advanced.fChange}
|
|
65 --generate_svg ${cond.advanced.generateSvg}
|
|
66 --generate_pdf ${cond.advanced.generatePdf}
|
|
67 #else
|
|
68 --pValue 0.05
|
|
69 --fChange 1.5
|
|
70 --generate_svg false
|
|
71 --generate_pdf true
|
|
72 #end if
|
28
|
73 #end if
|
16
|
74 ]]>
|
47
|
75 </command>
|
|
76 <inputs>
|
|
77 <conditional name="cond">
|
|
78 <param name="type_selector" argument="--option" type="select" label="Input format:">
|
|
79 <option value="datasets" selected="true">RAS of group 1 + RAS of group 2 + ... + RAS of group N</option>
|
|
80 <option value="dataset_class">RAS of all samples + sample group specification</option>
|
|
81 </param>
|
|
82 <when value="datasets">
|
|
83 <repeat name="input_Datasets" title="RAS dataset" min="2">
|
|
84 <param name="input" argument="--input_datas" type="data" format="tabular, csv, tsv" label="add dataset" />
|
|
85 <param name="input_name" argument="--names" type="text" label="Dataset's name:" value="Dataset" help="Default: Dataset" />
|
|
86 </repeat>
|
|
87 <conditional name="comparis">
|
|
88 <param name="comparison" argument="--comparison" type="select" label="Groups comparison:">
|
|
89 <option value="manyvsmany" selected="true">One vs One</option>
|
|
90 <option value="onevsrest">One vs All</option>
|
|
91 <option value="onevsmany">One vs Control</option>
|
|
92 </param>
|
|
93 <when value="onevsmany">
|
|
94 <param name="controlgroup" argument="--controlgroup" type="text" label="Control group label:" value="0" help="Name of group label to be compared to others"/>
|
|
95 </when>
|
|
96 </conditional>
|
|
97 <conditional name="advanced">
|
33
|
98 <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
|
99 <option value="true" selected="true">No</option>
|
|
100 <option value="false">Yes</option>
|
31
|
101 </param>
|
47
|
102 <when value="false"></when>
|
31
|
103 <when value="true">
|
47
|
104 <conditional name="cond_map">
|
66
|
105 <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
|
106 <option value="false" selected="true">No</option>
|
|
107 <option value="true">Yes</option>
|
|
108 </param>
|
66
|
109 <when value="true">
|
47
|
110 <param name="Custom_map" argument="--custom_map" type="data" format="xml, svg" label="custom-map.svg"/>
|
|
111 </when>
|
|
112 </conditional>
|
|
113 <param name="pValue" argument="--pValue" type="float" size="20" value="0.01" max="1" min="0" label="P-value threshold:" help="min value 0" />
|
|
114 <param name="fChange" argument="--fChange" type="float" size="20" value="1.2" min="1" label="Fold-Change threshold:" help="min value 1" />
|
|
115 <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?" />
|
|
116 <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
|
117 </when>
|
47
|
118 </conditional>
|
|
119 </when>
|
|
120 <when value="dataset_class">
|
|
121 <param name="input_data" argument="--input_data" type="data" format="tabular, csv, tsv" label="RAS of all samples" />
|
16
|
122 <param name="input_class" argument="--input_class" type="data" format="tabular, csv, tsv" label="Sample group specification" />
|
47
|
123 <conditional name="comparis">
|
|
124 <param name="comparison" argument="--comparison" type="select" label="Groups comparison:">
|
|
125 <option value="manyvsmany" selected="true">One vs One</option>
|
|
126 <option value="onevsrest">One vs All</option>
|
|
127 <option value="onevsmany">One vs Control</option>
|
31
|
128 </param>
|
47
|
129 <when value="onevsmany">
|
|
130 <param name="controlgroup" argument="--controlgroup" type="text" label="Control group label:" value="0" help="Name of group label to be compared to others"/>
|
31
|
131 </when>
|
47
|
132 </conditional>
|
|
133 <conditional name="advanced">
|
|
134 <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.">
|
|
135 <option value="true" selected="true">No</option>
|
|
136 <option value="false">Yes</option>
|
|
137 </param>
|
|
138 <when value="false"></when>
|
|
139 <when value="true">
|
|
140 <conditional name="cond_map">
|
66
|
141 <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
|
142 <option value="false" selected="true">No</option>
|
|
143 <option value="true">Yes</option>
|
|
144 </param>
|
66
|
145 <when value="true">
|
|
146 <param name="custom_map" argument="--custom_map" type="data" format="xml, svg" label="custom-map.svg"/>
|
47
|
147 </when>
|
|
148 </conditional>
|
|
149 <param name="pValue" argument="--pValue" type="float" size="20" value="0.01" max="1" min="0" label="P-value threshold:" help="min value 0" />
|
|
150 <param name="fChange" argument="--fChange" type="float" size="20" value="1.2" min="1" label="Fold-Change threshold:" help="min value 1" />
|
|
151 <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?" />
|
|
152 <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?" />
|
|
153 </when>
|
|
154 </conditional>
|
|
155 </when>
|
|
156 </conditional>
|
|
157 </inputs>
|
|
158 <outputs>
|
|
159 <data format="txt" name="log" label="MaREA - Log" />
|
|
160 <collection name="results" type="list" label="MaREA - Results">
|
|
161 <discover_datasets pattern="__name_and_ext__" directory="result"/>
|
16
|
162 </collection>
|
47
|
163 </outputs>
|
|
164 <help>
|
|
165 <![CDATA[
|
16
|
166
|
|
167 What it does
|
|
168 -------------
|
|
169
|
48
|
170 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
|
171
|
33
|
172 Accepted files are:
|
48
|
173 - 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");
|
|
174 - option 2) one RAS dataset and one group-file specifying the group each sample belongs to.
|
|
175
|
|
176 RAS datasets format: tab-separated text files, reporting the RAS value of each reaction (row) for a given sample (column).
|
|
177
|
|
178 Column header: sample ID.
|
|
179 Raw header: reaction ID.
|
16
|
180
|
|
181 Optional files:
|
|
182 - custom svg map. Graphical elements must have the same IDs of reactions. See HmrCore svg map for an example.
|
|
183
|
|
184 The tool generates:
|
48
|
185 - 1) a tab-separated file: reporting fold-change and p-values of reaction activity scores (RASs) between a pair of conditions/classes;
|
|
186 - 2) a metabolic map file (downloadable as .svg): visualizing up- and down-regulated reactions between a pair of conditions/classes;
|
|
187 - 3) a log file (.txt).
|
|
188
|
|
189 Output options:
|
|
190 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
|
191
|
48
|
192 Alternative options are:
|
|
193 - comparison of each group vs. the rest of samples (option ‘One vs Rest’)
|
|
194 - 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
|
195
|
|
196 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".
|
|
197
|
|
198 Example input
|
|
199 -------------
|
|
200
|
48
|
201 "RAS of group 1 + RAS of group 2 + ... + RAS of group N" option:
|
16
|
202
|
48
|
203 RAS Dataset 1:
|
16
|
204
|
48
|
205 +------------+----------------+----------------+----------------+
|
|
206 | Reaction ID| TCGAA62670 | TCGAA62671 | TCGAA62672 |
|
|
207 +============+================+================+================+
|
|
208 | r1642 | 0.523167 | 0.371355 | 0.925661 |
|
|
209 +------------+----------------+----------------+----------------+
|
|
210 | r1643 | 0.568765 | 0.765567 | 0.456789 |
|
|
211 +------------+----------------+----------------+----------------+
|
|
212 | r1640 | 0.876545 | 0.768933 | 0.987654 |
|
|
213 +------------+----------------+----------------+----------------+
|
|
214 | r1641 | 0.456788 | 0.876543 | 0.876542 |
|
|
215 +------------+----------------+----------------+----------------+
|
|
216 | r1646 | 0.876543 | 0.786543 | 0.897654 |
|
|
217 +------------+----------------+----------------+----------------+
|
16
|
218
|
48
|
219 RAS Dataset 2:
|
16
|
220
|
48
|
221 +------------+----------------+----------------+----------------+
|
|
222 | Reaction ID| TCGAA62670 | TCGAA62671 | TCGAA62672 |
|
|
223 +============+================+================+================+
|
|
224 | r1642 | 0.523167 | 0.371355 | 0.925661 |
|
|
225 +------------+----------------+----------------+----------------+
|
|
226 | r1643 | 0.568765 | 0.765567 | 0.456789 |
|
|
227 +------------+----------------+----------------+----------------+
|
|
228 | r1640 | 0.876545 | 0.768933 | 0.987654 |
|
|
229 +------------+----------------+----------------+----------------+
|
|
230 | r1641 | 0.456788 | 0.876543 | 0.876542 |
|
|
231 +------------+----------------+----------------+----------------+
|
|
232 | r1646 | 0.876543 | 0.786543 | 0.897654 |
|
|
233 +------------+----------------+----------------+----------------+
|
16
|
234
|
48
|
235 "RAS of all samples + sample group specification" option:
|
16
|
236
|
48
|
237 RAS Dataset:
|
16
|
238
|
48
|
239 +------------+----------------+----------------+----------------+
|
|
240 | Reaction ID| TCGAA62670 | TCGAA62671 | TCGAA62672 |
|
|
241 +============+================+================+================+
|
|
242 | r1642 | 0.523167 | 0.371355 | 0.925661 |
|
|
243 +------------+----------------+----------------+----------------+
|
|
244 | r1643 | 0.568765 | 0.765567 | 0.456789 |
|
|
245 +------------+----------------+----------------+----------------+
|
|
246 | r1640 | 0.876545 | 0.768933 | 0.987654 |
|
|
247 +------------+----------------+----------------+----------------+
|
|
248 | r1641 | 0.456788 | 0.876543 | 0.876542 |
|
|
249 +------------+----------------+----------------+----------------+
|
|
250 | r1646 | 0.876543 | 0.786543 | 0.897654 |
|
|
251 +------------+----------------+----------------+----------------+
|
16
|
252
|
48
|
253 Group-file
|
16
|
254
|
48
|
255 +---------------+-----------+
|
|
256 | Patient ID | Class |
|
|
257 +===============+===========+
|
|
258 | TCGAAA3529 | MSI |
|
|
259 +---------------+-----------+
|
|
260 | TCGAA62671 | MSS |
|
|
261 +---------------+-----------+
|
|
262 | TCGAA62672 | MSI |
|
|
263 +---------------+-----------+
|
16
|
264
|
48
|
265 Advanced options
|
|
266 ----------------
|
|
267
|
|
268 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
|
|
269
|
|
270 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;
|
|
271
|
16
|
272
|
|
273 .. class:: infomark
|
|
274
|
|
275 **TIP**: If your data is not TAB delimited, use `Convert delimiters to TAB`_.
|
|
276
|
|
277 .. class:: infomark
|
|
278
|
|
279 **TIP**: If your dataset is not split into classes, use `MaREA cluster analysis`_.
|
|
280
|
|
281 @REFERENCE@
|
|
282
|
|
283 .. _MaREA: https://www.biorxiv.org/content/early/2018/01/16/248724
|
|
284 .. _Convert delimiters to TAB: https://usegalaxy.org/?tool_id=Convert+characters1&version=1.0.0&__identifer=6t22teyofhj
|
|
285 .. _MaREA cluster analysis: http://link del tool di cluster.org
|
|
286
|
|
287 ]]>
|
47
|
288 </help>
|
|
289 <expand macro="citations" />undefined</tool>
|
33
|
290
|