comparison Marea/marea.xml @ 48:e4235b5231e4 draft

Uploaded
author bimib
date Sun, 23 Feb 2020 09:41:14 -0500
parents 3af9d394367c
children 1c0cb543af19
comparison
equal deleted inserted replaced
47:3af9d394367c 48:e4235b5231e4
1 <tool id="MaREA" name="Metabolic Reaction Enrichment Analysis" version="1.0.7"> 1 <tool id="MaREA" name="Metabolic Reaction Enrichment Analysis" version="1.0.8">
2 <macros> 2 <macros>
3 <import>marea_macros.xml</import> 3 <import>marea_macros.xml</import>
4 </macros> 4 </macros>
5 <requirements> 5 <requirements>
6 <requirement type="package" version="0.23.0">pandas</requirement> 6 <requirement type="package" version="0.23.0">pandas</requirement>
26 --names 26 --names
27 #for $data in $cond.input_Datasets: 27 #for $data in $cond.input_Datasets:
28 ${data.input_name} 28 ${data.input_name}
29 #end for 29 #end for
30 --comparison ${cond.comparis.comparison} 30 --comparison ${cond.comparis.comparison}
31 #if $cond.advanced.cond_map == 'true':
32 --custom_rules true
33 --custom_rule ${cond.advanced.cond_map.custom_rule}
34 --custom_map ${cond.advanced.cond_map.custom_map}
35 #end if
31 #if $cond.advanced.choice == 'true': 36 #if $cond.advanced.choice == 'true':
32 --pValue ${cond.advanced.pValue} 37 --pValue ${cond.advanced.pValue}
33 --fChange ${cond.advanced.fChange} 38 --fChange ${cond.advanced.fChange}
34 --generate_svg ${cond.advanced.generateSvg} 39 --generate_svg ${cond.advanced.generateSvg}
35 --generate_pdf ${cond.advanced.generatePdf} 40 --generate_pdf ${cond.advanced.generatePdf}
44 --input_data ${input_data} 49 --input_data ${input_data}
45 --input_class ${input_class} 50 --input_class ${input_class}
46 --comparison ${cond.comparis.comparison} 51 --comparison ${cond.comparis.comparison}
47 #if $cond.comparis.comparison == 'onevsmany' 52 #if $cond.comparis.comparison == 'onevsmany'
48 --control ${cond.comparis.controlgroup} 53 --control ${cond.comparis.controlgroup}
54 #end if
55 #if $cond.advanced.cond_map == 'true':
56 --custom_rules true
57 --custom_rule ${cond.advanced.cond_map.custom_rule}
58 --custom_map ${cond.advanced.cond_map.custom_map}
49 #end if 59 #end if
50 #if $cond.advanced.choice == 'true': 60 #if $cond.advanced.choice == 'true':
51 --pValue ${cond.advanced.pValue} 61 --pValue ${cond.advanced.pValue}
52 --fChange ${cond.advanced.fChange} 62 --fChange ${cond.advanced.fChange}
53 --generate_svg ${cond.advanced.generateSvg} 63 --generate_svg ${cond.advanced.generateSvg}
88 <option value="false">Yes</option> 98 <option value="false">Yes</option>
89 </param> 99 </param>
90 <when value="false"></when> 100 <when value="false"></when>
91 <when value="true"> 101 <when value="true">
92 <conditional name="cond_map"> 102 <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"> 103 <param name="choice" type="boolean" checked="false" label="Use custom map and rules?" help="Use this option only if you have generated RAS using a custom set of rules">
94 <option value="false" selected="true">No</option> 104 <option value="false" selected="true">No</option>
95 <option value="true">Yes</option> 105 <option value="true">Yes</option>
96 </param> 106 </param>
97 <when value="true"> 107 <when value="true">
108 <param name="Custom_rule" argument="--custom_rule" type="data" format="tabular, csv, tsv, xml" label="Custom rules" />
98 <param name="Custom_map" argument="--custom_map" type="data" format="xml, svg" label="custom-map.svg"/> 109 <param name="Custom_map" argument="--custom_map" type="data" format="xml, svg" label="custom-map.svg"/>
99 </when> 110 </when>
100 </conditional> 111 </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" /> 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" />
102 <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="fChange" argument="--fChange" type="float" size="20" value="1.2" min="1" label="Fold-Change threshold:" help="min value 1" />
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"> 140 <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> 141 <option value="false" selected="true">No</option>
131 <option value="true">Yes</option> 142 <option value="true">Yes</option>
132 </param> 143 </param>
133 <when value="true"> 144 <when value="true">
145 <param name="Custom_rule" argument="--custom_rule" type="data" format="tabular, csv, tsv, xml" label="Custom rules" />
134 <param name="Custom_map" argument="--custom_map" type="data" format="xml, svg" label="custom-map.svg"/> 146 <param name="Custom_map" argument="--custom_map" type="data" format="xml, svg" label="custom-map.svg"/>
135 </when> 147 </when>
136 </conditional> 148 </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" /> 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" />
138 <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="fChange" argument="--fChange" type="float" size="20" value="1.2" min="1" label="Fold-Change threshold:" help="min value 1" />
153 <![CDATA[ 165 <![CDATA[
154 166
155 What it does 167 What it does
156 ------------- 168 -------------
157 169
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. 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.
159 171
160 Accepted files are: 172 Accepted files are:
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*"); 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");
162 - option 2) one RNA dataset and one class-file specifying the class/condition each sample belongs to. 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.
163 180
164 Optional files: 181 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. 182 - custom svg map. Graphical elements must have the same IDs of reactions. See HmrCore svg map for an example.
170 183
171 The tool generates: 184 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; 185 - 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; 186 - 2) a metabolic map file (downloadable as .svg): visualizing up- and down-regulated reactions between a pair of conditions/classes;
174 3) a log file (.txt). 187 - 3) a log file (.txt).
175 188
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. 189 Output options:
177 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’).
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). 191
179 192 Alternative options are:
180 To calculate P-Values and Fold-Changes and to generate maps, comparisons are performed for each possible pair of classes. 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.
181 195
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". 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".
183
184 197
185 Example input 198 Example input
186 ------------- 199 -------------
187 200
188 **"Custom Rules"** option: 201 "RAS of group 1 + RAS of group 2 + ... + RAS of group N" option:
189 202
190 Custom Rules Dastaset: 203 RAS Dataset 1:
191 204
192 @CUSTOM_RULES_EXEMPLE@ 205 +------------+----------------+----------------+----------------+
193 206 | Reaction ID| TCGAA62670 | TCGAA62671 | TCGAA62672 |
194 **"RNAseq of group 1 + RNAseq of group 2 + ... + RNAseq of group N"** option: 207 +============+================+================+================+
195 208 | r1642 | 0.523167 | 0.371355 | 0.925661 |
196 RNA-seq Dataset 1: 209 +------------+----------------+----------------+----------------+
197 210 | r1643 | 0.568765 | 0.765567 | 0.456789 |
198 @DATASET_EXEMPLE1@ 211 +------------+----------------+----------------+----------------+
199 212 | r1640 | 0.876545 | 0.768933 | 0.987654 |
200 RNA-seq Dataset 2: 213 +------------+----------------+----------------+----------------+
201 214 | r1641 | 0.456788 | 0.876543 | 0.876542 |
202 @DATASET_EXEMPLE2@ 215 +------------+----------------+----------------+----------------+
203 216 | r1646 | 0.876543 | 0.786543 | 0.897654 |
204 **"RNAseq of all samples + sample group specification"** option: 217 +------------+----------------+----------------+----------------+
205 218
206 RNA-seq Dataset: 219 RAS Dataset 2:
207 220
208 @DATASET_EXEMPLE1@ 221 +------------+----------------+----------------+----------------+
209 222 | Reaction ID| TCGAA62670 | TCGAA62671 | TCGAA62672 |
210 Class-file: 223 +============+================+================+================+
211 224 | r1642 | 0.523167 | 0.371355 | 0.925661 |
212 +------------+------------+ 225 +------------+----------------+----------------+----------------+
213 | Patient_ID | class | 226 | r1643 | 0.568765 | 0.765567 | 0.456789 |
214 +============+============+ 227 +------------+----------------+----------------+----------------+
215 | TCGAAA3529 | MSI | 228 | r1640 | 0.876545 | 0.768933 | 0.987654 |
216 +------------+------------+ 229 +------------+----------------+----------------+----------------+
217 | TCGAA62671 | MSS | 230 | r1641 | 0.456788 | 0.876543 | 0.876542 |
218 +------------+------------+ 231 +------------+----------------+----------------+----------------+
219 | TCGAA62672 | MSI | 232 | r1646 | 0.876543 | 0.786543 | 0.897654 |
220 +------------+------------+ 233 +------------+----------------+----------------+----------------+
221 234
222 | 235 "RAS of all samples + sample group specification" option:
236
237 RAS Dataset:
238
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 +------------+----------------+----------------+----------------+
252
253 Group-file
254
255 +---------------+-----------+
256 | Patient ID | Class |
257 +===============+===========+
258 | TCGAAA3529 | MSI |
259 +---------------+-----------+
260 | TCGAA62671 | MSS |
261 +---------------+-----------+
262 | TCGAA62672 | MSI |
263 +---------------+-----------+
264
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
223 272
224 .. class:: infomark 273 .. class:: infomark
225 274
226 **TIP**: If your data is not TAB delimited, use `Convert delimiters to TAB`_. 275 **TIP**: If your data is not TAB delimited, use `Convert delimiters to TAB`_.
227 276