4
|
1 <tool id="MaREA" name="Metabolic Enrichment Analysis" version="1.0.0">
|
0
|
2 <description>for Galaxy</description>
|
1
|
3 <macros>
|
|
4 <import>marea_macros.xml</import>
|
|
5 </macros>
|
0
|
6 <requirements>
|
5
|
7 <requirement type="package" version="0.23.0">pandas</requirement>
|
|
8 <requirement type="package" version="1.1.0">scipy</requirement>
|
|
9 <requirement type="package" version="0.11.3">cobra</requirement>
|
|
10 <requirement type="package" version="5.17.0">python-libsbml</requirement>
|
|
11 <requirement type="package" version="4.2.1">lxml</requirement>
|
|
12 <requirement type="package" version="0.8.1">svglib</requirement>
|
|
13 <requirement type="package" version="3.4.0">reportlab</requirement>
|
0
|
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">
|
4
|
76 <repeat name="input_Datasets" title="RNAseq" 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" />
|
4
|
79 </repeat>
|
0
|
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>
|
4
|
105 <tests>
|
|
106 <test>
|
|
107 <param name="pValue" value="0.56"/>
|
|
108 <output name="log" file="log.txt"/>
|
|
109 </test>
|
|
110 </tests>
|
0
|
111 <help>
|
|
112 <![CDATA[
|
|
113
|
|
114 What it does
|
|
115 -------------
|
|
116
|
|
117 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.
|
|
118
|
1
|
119 Accepted files are:
|
|
120 - 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*");
|
|
121 - option 2) one RNA dataset and one class-file specifying the class/condition each sample belongs to.
|
|
122
|
|
123 Optional files:
|
|
124 - custom GPR (Gene-Protein-Reaction) rules. Two accepted formats:
|
0
|
125
|
1
|
126 * (Cobra Toolbox and CobraPy compliant) xml of metabolic model;
|
|
127 * .csv file specifyig for each reaction ID (column 1) the corresponding GPR rule (column 2).
|
|
128 - custom svg map. Graphical elements must have the same IDs of reactions. See HmrCore svg map for an example.
|
0
|
129
|
1
|
130 The tool generates:
|
|
131 1) a tab-separated file: reporting fold-change and p-values of reaction activity scores (RASs) between a pair of conditions/classes;
|
|
132 2) a metabolic map file (downlodable as .svg): visualizing up- and down-regulated reactions between a pair of conditions/classes;
|
|
133 3) a log file (.txt).
|
0
|
134
|
1
|
135 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
|
136
|
|
137 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).
|
|
138
|
|
139 To calculate P-Values and Fold-Changes and to generate maps, comparisons are performed for each possible pair of classes.
|
|
140
|
1
|
141 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
|
142
|
|
143
|
|
144 Example input
|
|
145 -------------
|
|
146
|
1
|
147 **"Custom Rules"** option:
|
|
148
|
|
149 Custom Rules Dastaset:
|
0
|
150
|
1
|
151 @CUSTOM_RULES_EXEMPLE@
|
|
152
|
|
153 **"RNAseq of group 1 + RNAseq of group 2 + ... + RNAseq of group N"** option:
|
0
|
154
|
1
|
155 RNA-seq Dataset 1:
|
|
156
|
|
157 @DATASET_EXEMPLE1@
|
0
|
158
|
1
|
159 RNA-seq Dataset 2:
|
0
|
160
|
1
|
161 @DATASET_EXEMPLE2@
|
0
|
162
|
|
163 **"RNAseq of all samples + sample group specification"** option:
|
|
164
|
1
|
165 RNA-seq Dataset:
|
0
|
166
|
1
|
167 @DATASET_EXEMPLE1@
|
0
|
168
|
|
169 Class-file:
|
|
170
|
|
171 +------------+------------+
|
|
172 | Patient_ID | class |
|
|
173 +============+============+
|
|
174 | TCGAAA3529 | MSI |
|
|
175 +------------+------------+
|
|
176 | TCGAA62671 | MSS |
|
|
177 +------------+------------+
|
|
178 | TCGAA62672 | MSI |
|
|
179 +------------+------------+
|
|
180
|
|
181 |
|
|
182
|
|
183 .. class:: infomark
|
|
184
|
1
|
185 **TIP**: If your data is not TAB delimited, use `Convert delimiters to TAB`_.
|
0
|
186
|
|
187 .. class:: infomark
|
|
188
|
1
|
189 **TIP**: If your dataset is not split into classes, use `MaREA cluster analysis`_.
|
0
|
190
|
1
|
191 @REFERENCE@
|
0
|
192
|
1
|
193 .. _MaREA: https://www.biorxiv.org/content/early/2018/01/16/248724
|
0
|
194 .. _Convert delimiters to TAB: https://usegalaxy.org/?tool_id=Convert+characters1&version=1.0.0&__identifer=6t22teyofhj
|
1
|
195 .. _MaREA cluster analysis: http://link del tool di cluster.org
|
0
|
196
|
|
197 ]]>
|
|
198 </help>
|
1
|
199 <expand macro="citations" />
|
0
|
200 </tool>
|
|
201
|