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