47
|
1 <tool id="MaREA" name="Metabolic Reaction Enrichment Analysis" version="1.0.7">
|
|
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}
|
31
|
31 #if $cond.advanced.choice == 'true':
|
47
|
32 --pValue ${cond.advanced.pValue}
|
|
33 --fChange ${cond.advanced.fChange}
|
|
34 --generate_svg ${cond.advanced.generateSvg}
|
|
35 --generate_pdf ${cond.advanced.generatePdf}
|
|
36 #else
|
|
37 --pValue 0.05
|
|
38 --fChange 1.5
|
|
39 --generate_svg false
|
|
40 --generate_pdf true
|
|
41 --generate_ras false
|
|
42 #end if
|
16
|
43 #elif $cond.type_selector == 'dataset_class':
|
|
44 --input_data ${input_data}
|
|
45 --input_class ${input_class}
|
47
|
46 --comparison ${cond.comparis.comparison}
|
|
47 #if $cond.comparis.comparison == 'onevsmany'
|
|
48 --control ${cond.comparis.controlgroup}
|
|
49 #end if
|
31
|
50 #if $cond.advanced.choice == 'true':
|
47
|
51 --pValue ${cond.advanced.pValue}
|
|
52 --fChange ${cond.advanced.fChange}
|
|
53 --generate_svg ${cond.advanced.generateSvg}
|
|
54 --generate_pdf ${cond.advanced.generatePdf}
|
|
55 #else
|
|
56 --pValue 0.05
|
|
57 --fChange 1.5
|
|
58 --generate_svg false
|
|
59 --generate_pdf true
|
|
60 #end if
|
28
|
61 #end if
|
16
|
62 ]]>
|
47
|
63 </command>
|
|
64 <inputs>
|
|
65 <conditional name="cond">
|
|
66 <param name="type_selector" argument="--option" type="select" label="Input format:">
|
|
67 <option value="datasets" selected="true">RAS of group 1 + RAS of group 2 + ... + RAS of group N</option>
|
|
68 <option value="dataset_class">RAS of all samples + sample group specification</option>
|
|
69 </param>
|
|
70 <when value="datasets">
|
|
71 <repeat name="input_Datasets" title="RAS dataset" min="2">
|
|
72 <param name="input" argument="--input_datas" type="data" format="tabular, csv, tsv" label="add dataset" />
|
|
73 <param name="input_name" argument="--names" type="text" label="Dataset's name:" value="Dataset" help="Default: Dataset" />
|
|
74 </repeat>
|
|
75 <conditional name="comparis">
|
|
76 <param name="comparison" argument="--comparison" type="select" label="Groups comparison:">
|
|
77 <option value="manyvsmany" selected="true">One vs One</option>
|
|
78 <option value="onevsrest">One vs All</option>
|
|
79 <option value="onevsmany">One vs Control</option>
|
|
80 </param>
|
|
81 <when value="onevsmany">
|
|
82 <param name="controlgroup" argument="--controlgroup" type="text" label="Control group label:" value="0" help="Name of group label to be compared to others"/>
|
|
83 </when>
|
|
84 </conditional>
|
|
85 <conditional name="advanced">
|
33
|
86 <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
|
87 <option value="true" selected="true">No</option>
|
|
88 <option value="false">Yes</option>
|
31
|
89 </param>
|
47
|
90 <when value="false"></when>
|
31
|
91 <when value="true">
|
47
|
92 <conditional name="cond_map">
|
|
93 <param name="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">
|
|
94 <option value="false" selected="true">No</option>
|
|
95 <option value="true">Yes</option>
|
|
96 </param>
|
|
97 <when value="true">
|
|
98 <param name="Custom_map" argument="--custom_map" type="data" format="xml, svg" label="custom-map.svg"/>
|
|
99 </when>
|
|
100 </conditional>
|
|
101 <param name="pValue" argument="--pValue" type="float" size="20" value="0.01" max="1" min="0" label="P-value threshold:" help="min value 0" />
|
|
102 <param name="fChange" argument="--fChange" type="float" size="20" value="1.2" min="1" label="Fold-Change threshold:" help="min value 1" />
|
|
103 <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?" />
|
|
104 <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
|
105 </when>
|
47
|
106 </conditional>
|
|
107 </when>
|
|
108 <when value="dataset_class">
|
|
109 <param name="input_data" argument="--input_data" type="data" format="tabular, csv, tsv" label="RAS of all samples" />
|
16
|
110 <param name="input_class" argument="--input_class" type="data" format="tabular, csv, tsv" label="Sample group specification" />
|
47
|
111 <conditional name="comparis">
|
|
112 <param name="comparison" argument="--comparison" type="select" label="Groups comparison:">
|
|
113 <option value="manyvsmany" selected="true">One vs One</option>
|
|
114 <option value="onevsrest">One vs All</option>
|
|
115 <option value="onevsmany">One vs Control</option>
|
31
|
116 </param>
|
47
|
117 <when value="onevsmany">
|
|
118 <param name="controlgroup" argument="--controlgroup" type="text" label="Control group label:" value="0" help="Name of group label to be compared to others"/>
|
31
|
119 </when>
|
47
|
120 </conditional>
|
|
121 <conditional name="advanced">
|
|
122 <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.">
|
|
123 <option value="true" selected="true">No</option>
|
|
124 <option value="false">Yes</option>
|
|
125 </param>
|
|
126 <when value="false"></when>
|
|
127 <when value="true">
|
|
128 <conditional name="cond_map">
|
|
129 <param name="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">
|
|
130 <option value="false" selected="true">No</option>
|
|
131 <option value="true">Yes</option>
|
|
132 </param>
|
|
133 <when value="true">
|
|
134 <param name="Custom_map" argument="--custom_map" type="data" format="xml, svg" label="custom-map.svg"/>
|
|
135 </when>
|
|
136 </conditional>
|
|
137 <param name="pValue" argument="--pValue" type="float" size="20" value="0.01" max="1" min="0" label="P-value threshold:" help="min value 0" />
|
|
138 <param name="fChange" argument="--fChange" type="float" size="20" value="1.2" min="1" label="Fold-Change threshold:" help="min value 1" />
|
|
139 <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?" />
|
|
140 <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?" />
|
|
141 </when>
|
|
142 </conditional>
|
|
143 </when>
|
|
144 </conditional>
|
|
145 </inputs>
|
|
146 <outputs>
|
|
147 <data format="txt" name="log" label="MaREA - Log" />
|
|
148 <collection name="results" type="list" label="MaREA - Results">
|
|
149 <discover_datasets pattern="__name_and_ext__" directory="result"/>
|
16
|
150 </collection>
|
47
|
151 </outputs>
|
|
152 <help>
|
|
153 <![CDATA[
|
16
|
154
|
|
155 What it does
|
|
156 -------------
|
|
157
|
|
158 This tool analyzes RNA-seq dataset(s) as described in Graudenzi et al."`MaREA`_: Metabolic feature extraction, enrichment and visualization of RNAseq data" bioRxiv (2018): 248724.
|
|
159
|
33
|
160 Accepted files are:
|
16
|
161 - option 1) two or more RNA-seq datasets, each referring to samples in a given condition/class. The user can specify a label for each class (as e.g. "*classA*" and "*classB*");
|
|
162 - option 2) one RNA dataset and one class-file specifying the class/condition each sample belongs to.
|
|
163
|
|
164 Optional files:
|
|
165 - custom GPR (Gene-Protein-Reaction) rules. Two accepted formats:
|
|
166
|
|
167 * (Cobra Toolbox and CobraPy compliant) xml of metabolic model;
|
|
168 * .csv file specifyig for each reaction ID (column 1) the corresponding GPR rule (column 2).
|
|
169 - custom svg map. Graphical elements must have the same IDs of reactions. See HmrCore svg map for an example.
|
|
170
|
|
171 The tool generates:
|
|
172 1) a tab-separated file: reporting fold-change and p-values of reaction activity scores (RASs) between a pair of conditions/classes;
|
|
173 2) a metabolic map file (downlodable as .svg): visualizing up- and down-regulated reactions between a pair of conditions/classes;
|
|
174 3) a log file (.txt).
|
|
175
|
|
176 RNA-seq datasets format: tab-separated text files, reporting the expression level (e.g., TPM, RPKM, ...) of each gene (row) for a given sample (column). Header: sample ID.
|
|
177
|
|
178 Class-file format: each row of the class-file reports the sample ID (column1) and the label of the class/condition the sample belongs to (column 2).
|
|
179
|
|
180 To calculate P-Values and Fold-Changes and to generate maps, comparisons are performed for each possible pair of classes.
|
|
181
|
|
182 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".
|
|
183
|
|
184
|
|
185 Example input
|
|
186 -------------
|
|
187
|
|
188 **"Custom Rules"** option:
|
|
189
|
|
190 Custom Rules Dastaset:
|
|
191
|
|
192 @CUSTOM_RULES_EXEMPLE@
|
|
193
|
|
194 **"RNAseq of group 1 + RNAseq of group 2 + ... + RNAseq of group N"** option:
|
|
195
|
33
|
196 RNA-seq Dataset 1:
|
16
|
197
|
|
198 @DATASET_EXEMPLE1@
|
|
199
|
|
200 RNA-seq Dataset 2:
|
|
201
|
|
202 @DATASET_EXEMPLE2@
|
|
203
|
|
204 **"RNAseq of all samples + sample group specification"** option:
|
|
205
|
|
206 RNA-seq Dataset:
|
|
207
|
|
208 @DATASET_EXEMPLE1@
|
|
209
|
|
210 Class-file:
|
|
211
|
33
|
212 +------------+------------+
|
|
213 | Patient_ID | class |
|
|
214 +============+============+
|
|
215 | TCGAAA3529 | MSI |
|
|
216 +------------+------------+
|
|
217 | TCGAA62671 | MSS |
|
|
218 +------------+------------+
|
|
219 | TCGAA62672 | MSI |
|
16
|
220 +------------+------------+
|
|
221
|
|
222 |
|
|
223
|
|
224 .. class:: infomark
|
|
225
|
|
226 **TIP**: If your data is not TAB delimited, use `Convert delimiters to TAB`_.
|
|
227
|
|
228 .. class:: infomark
|
|
229
|
|
230 **TIP**: If your dataset is not split into classes, use `MaREA cluster analysis`_.
|
|
231
|
|
232 @REFERENCE@
|
|
233
|
|
234 .. _MaREA: https://www.biorxiv.org/content/early/2018/01/16/248724
|
|
235 .. _Convert delimiters to TAB: https://usegalaxy.org/?tool_id=Convert+characters1&version=1.0.0&__identifer=6t22teyofhj
|
|
236 .. _MaREA cluster analysis: http://link del tool di cluster.org
|
|
237
|
|
238 ]]>
|
47
|
239 </help>
|
|
240 <expand macro="citations" />undefined</tool>
|
33
|
241
|