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