0
|
1 <tool id="MaREA" name="Metabolic Enrichment Analysis">
|
|
2 <description>for Galaxy</description>
|
1
|
3 <macros>
|
|
4 <import>marea_macros.xml</import>
|
|
5 </macros>
|
0
|
6 <requirements>
|
2
|
7 <requirement type="package">pandas</requirement>
|
|
8 <requirement type="package">scipy</requirement>
|
|
9 <requirement type="package">cobrapy</requirement>
|
|
10 <requirement type="package">python-libsbml</requirement>
|
0
|
11 <requirement type="package">lxml</requirement>
|
|
12 <requirement type="package">svglib</requirement>
|
|
13 <requirement type="package">reportlab</requirement>
|
|
14 </requirements>
|
1
|
15 <command detect_errors="exit_code">
|
0
|
16 <![CDATA[
|
|
17 python $__tool_directory__/marea.py
|
|
18 --rules_selector $cond_rule.rules_selector
|
|
19 #if $cond_rule.rules_selector == 'Custom':
|
|
20 --custom ${cond_rule.Custom_rules}
|
|
21 --yes_no ${cond_rule.cond_map.yes_no}
|
|
22 #if $cond_rule.cond_map.yes_no == 'yes':
|
|
23 --custom_map $cond_rule.cond_map.Custom_map
|
|
24 #end if
|
|
25 #end if
|
|
26 --none $None
|
|
27 --pValue $pValue
|
|
28 --fChange $fChange
|
|
29 --tool_dir $__tool_directory__
|
|
30 --option $cond.type_selector
|
|
31 --out_log $log
|
|
32 #if $cond.type_selector == 'datasets':
|
|
33 --input_datas
|
|
34 #for $data in $cond.input_Datasets:
|
|
35 ${data.input}
|
|
36 #end for
|
|
37 --names
|
|
38 #for $data in $cond.input_Datasets:
|
|
39 ${data.input_name}
|
|
40 #end for
|
|
41 #elif $cond.type_selector == 'dataset_class':
|
|
42 --input_data ${input_data}
|
|
43 --input_class ${input_class}
|
|
44 #end if
|
|
45 ]]>
|
|
46 </command>
|
1
|
47
|
0
|
48 <inputs>
|
|
49 <conditional name="cond_rule">
|
2
|
50 <expand macro="options"/>
|
1
|
51 <when value="HMRcore">
|
|
52 </when>
|
|
53 <when value="Recon">
|
|
54 </when>
|
0
|
55 <when value="Custom">
|
1
|
56 <param name="Custom_rules" type="data" format="tabular, csv, tsv, xml" label="Custom rules" />
|
0
|
57 <conditional name="cond_map">
|
|
58 <param name="yes_no" type="select" label="Custom map? (optional)">
|
|
59 <option value="no" selected="true">no</option>
|
|
60 <option value="yes">yes</option>
|
|
61 </param>
|
|
62 <when value="yes">
|
1
|
63 <param name="Custom_map" argument="--custom_map" type="data" format="xml, svg" label="custom-map.svg"/>
|
|
64 </when>
|
|
65 <when value="no">
|
0
|
66 </when>
|
|
67 </conditional>
|
|
68 </when>
|
|
69 </conditional>
|
|
70 <conditional name="cond">
|
1
|
71 <param name="type_selector" argument="--option" type="select" label="Input format:">
|
|
72 <option value="datasets" selected="true">RNAseq of group 1 + RNAseq of group 2 + ... + RNAseq of group N</option>
|
0
|
73 <option value="dataset_class">RNAseq of all samples + sample group specification</option>
|
|
74 </param>
|
|
75 <when value="datasets">
|
|
76 <repeat name="input_Datasets" title="RNAseq" type="data" min="2">
|
1
|
77 <param name="input" argument="--input_datas" type="data" format="tabular, csv, tsv" label="add dataset" />
|
|
78 <param name="input_name" argument="--names" type="text" label="Dataset's name:" value="Dataset" help="Defalut: Dataset" />
|
0
|
79 </repeat>
|
|
80 </when>
|
|
81 <when value="dataset_class">
|
1
|
82 <param name="input_data" argument="--input_data" type="data" format="tabular, csv, tsv" label="RNAseq of all samples" />
|
|
83 <param name="input_class" argument="--input_class" type="data" format="tabular, csv, tsv" label="Sample group specification" />
|
0
|
84 </when>
|
|
85 </conditional>
|
1
|
86 <param name="None" argument="--none" type="boolean" truevalue="true" falsevalue="false" checked="true" label="(A and NaN) solved as (A)?" />
|
|
87 <param name="pValue" argument="--pValue" type="float" size="20" value="0.05" max="1" min="0" label="P-value threshold" help="min value 0" />
|
|
88 <param name="fChange" argument="--fChange" type="float" size="20" value="1.5" min="1" label="Fold-Change threshold" help="min value 1" />
|
0
|
89 </inputs>
|
1
|
90
|
0
|
91 <outputs>
|
1
|
92 <data format="txt" name="log" label="Log" />
|
|
93 <collection name="map_svg" type="list" label="Graphical results (.svg)">
|
0
|
94 <filter>(cond_rule['rules_selector'] == 'HMRcore') or ((cond_rule['rules_selector'] == 'Custom') and (cond_rule['cond_map']['yes_no'] == 'yes'))</filter>
|
1
|
95 <discover_datasets pattern="__name_and_ext__" directory="map_svg" />
|
0
|
96 </collection>
|
1
|
97 <collection name="map_pdf" type="list" label="Graphical results (.pdf)">
|
0
|
98 <filter>(cond_rule['rules_selector'] == 'HMRcore') or ((cond_rule['rules_selector'] == 'Custom') and (cond_rule['cond_map']['yes_no'] == 'yes'))</filter>
|
1
|
99 <discover_datasets pattern="__name_and_ext__" directory="map_pdf" />
|
0
|
100 </collection>
|
1
|
101 <collection name="table_out" type="list" label="Tabular results">
|
|
102 <discover_datasets pattern="__name_and_ext__" directory="table_out" />
|
0
|
103 </collection>
|
|
104 </outputs>
|
1
|
105
|
|
106
|
|
107
|
0
|
108 <help>
|
|
109 <![CDATA[
|
|
110
|
|
111 What it does
|
|
112 -------------
|
|
113
|
|
114 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.
|
|
115
|
1
|
116 Accepted files are:
|
|
117 - 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*");
|
|
118 - option 2) one RNA dataset and one class-file specifying the class/condition each sample belongs to.
|
|
119
|
|
120 Optional files:
|
|
121 - custom GPR (Gene-Protein-Reaction) rules. Two accepted formats:
|
0
|
122
|
1
|
123 * (Cobra Toolbox and CobraPy compliant) xml of metabolic model;
|
|
124 * .csv file specifyig for each reaction ID (column 1) the corresponding GPR rule (column 2).
|
|
125 - custom svg map. Graphical elements must have the same IDs of reactions. See HmrCore svg map for an example.
|
0
|
126
|
1
|
127 The tool generates:
|
|
128 1) a tab-separated file: reporting fold-change and p-values of reaction activity scores (RASs) between a pair of conditions/classes;
|
|
129 2) a metabolic map file (downlodable as .svg): visualizing up- and down-regulated reactions between a pair of conditions/classes;
|
|
130 3) a log file (.txt).
|
0
|
131
|
1
|
132 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.
|
0
|
133
|
|
134 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).
|
|
135
|
|
136 To calculate P-Values and Fold-Changes and to generate maps, comparisons are performed for each possible pair of classes.
|
|
137
|
1
|
138 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".
|
0
|
139
|
|
140
|
|
141 Example input
|
|
142 -------------
|
|
143
|
1
|
144 **"Custom Rules"** option:
|
|
145
|
|
146 Custom Rules Dastaset:
|
0
|
147
|
1
|
148 @CUSTOM_RULES_EXEMPLE@
|
|
149
|
|
150 **"RNAseq of group 1 + RNAseq of group 2 + ... + RNAseq of group N"** option:
|
0
|
151
|
1
|
152 RNA-seq Dataset 1:
|
|
153
|
|
154 @DATASET_EXEMPLE1@
|
0
|
155
|
1
|
156 RNA-seq Dataset 2:
|
0
|
157
|
1
|
158 @DATASET_EXEMPLE2@
|
0
|
159
|
|
160 **"RNAseq of all samples + sample group specification"** option:
|
|
161
|
1
|
162 RNA-seq Dataset:
|
0
|
163
|
1
|
164 @DATASET_EXEMPLE1@
|
0
|
165
|
|
166 Class-file:
|
|
167
|
|
168 +------------+------------+
|
|
169 | Patient_ID | class |
|
|
170 +============+============+
|
|
171 | TCGAAA3529 | MSI |
|
|
172 +------------+------------+
|
|
173 | TCGAA62671 | MSS |
|
|
174 +------------+------------+
|
|
175 | TCGAA62672 | MSI |
|
|
176 +------------+------------+
|
|
177
|
|
178 |
|
|
179
|
|
180 .. class:: infomark
|
|
181
|
1
|
182 **TIP**: If your data is not TAB delimited, use `Convert delimiters to TAB`_.
|
0
|
183
|
|
184 .. class:: infomark
|
|
185
|
1
|
186 **TIP**: If your dataset is not split into classes, use `MaREA cluster analysis`_.
|
0
|
187
|
1
|
188 @REFERENCE@
|
0
|
189
|
1
|
190 .. _MaREA: https://www.biorxiv.org/content/early/2018/01/16/248724
|
0
|
191 .. _Convert delimiters to TAB: https://usegalaxy.org/?tool_id=Convert+characters1&version=1.0.0&__identifer=6t22teyofhj
|
1
|
192 .. _MaREA cluster analysis: http://link del tool di cluster.org
|
0
|
193
|
|
194 ]]>
|
|
195 </help>
|
1
|
196 <expand macro="citations" />
|
0
|
197 </tool>
|
|
198
|