comparison abims_anova.xml @ 3:2433c6fa4de2 draft

planemo upload commit b931b0c4ca182ea28a9ed1365bece9b2326fd64c
author lecorguille
date Mon, 28 Mar 2016 15:51:28 -0400
parents
children e1a77f4a20dc
comparison
equal deleted inserted replaced
2:b6298c38e53f 3:2433c6fa4de2
1 <tool id="abims_anova" name="Anova" version="1.1.3">
2
3 <description>N-way anova. With ou Without interactions</description>
4
5 <requirements>
6 <requirement type="package" version="3.1.2">R</requirement>
7 <requirement type="binary">Rscript</requirement>
8 <requirement type="package" version="1.1-4">batch</requirement>
9 </requirements>
10
11 <stdio>
12 <exit_code range="1:" level="fatal" />
13 </stdio>
14
15 <command interpreter="Rscript">
16 abims_anova.r file "$input" sampleinfo "$sampleinfo" mode "$mode"
17 condition "c('$condition_1'
18 #for $i, $s in enumerate( $conditions )
19 ,'${s.condition}'
20 #end for
21 )"
22 interaction $interaction method $method threshold $threshold selection_method $selection_method sep "$sep" dec "$dec" outputdatapvalue $dataMatrixPValue outputdatafiltered $dataMatrixFiltered
23 </command>
24
25 <inputs>
26 <param name="input" type="data" label="Data Matrix file" format="tabular" help="Matrix of numeric data with headers." />
27 <param name="sampleinfo" type="data" label="Sample Metadata file" format="tabular" help="Tabular file with the data metadata : one sample per line and at least two columns : ids and one condition" />
28
29 <param name="mode" type="select" help="Perform the anova tests on column/row" format="text" optional="true">
30 <label>Mode</label>
31 <option value="row">row</option>
32 <option value="column">column</option>
33 </param>
34
35 <param name="condition_1" type="text" label="Condition" value="" help="The column name of the condition. ex: hour or treatment" optional="false" />
36 <repeat name="conditions" title="Conditions for N-ways anova">
37 <param name="condition" type="text" label="Condition" value="" help="The column name of the condition. ex: hour or treatment" />
38 </repeat>
39
40 <param name="interaction" type="boolean" label="Enable interaction response p-values" truevalue="T" falsevalue="F" help="Used if more than 1 conditon. The anova will produse p-value according to the interaction between your condition (ex: condition1:conditions2, condition1:conditions3, condition2:conditions3 and condition1:condition2:conditions3)" />
41
42 <param name="method" type="select" help="Method used to apply a correction on the pvalue because of the number of test" format="text" optional="true">
43 <label>PValue adjusted method</label>
44 <option value="BH">BH</option>
45 <option value="holm">holm</option>
46 <option value="bonferroni">bonferroni</option>
47 <option value="hochberg">hochberg</option>
48 <option value="hommel">hommel</option>
49 <option value="BY">BY</option>
50 <option value="fdr">fdr</option>
51 <option value="none">none</option>
52 </param>
53
54 <param name="threshold" type="float" label="Threshold" value="0.01" help="max adjusted p.value accepted" />
55
56 <param name="selection_method" type="select" format="text" help="Intersection: all condition p-value must be under the threshold. Union: at least condition p-value must be under the threshold. ">
57 <label>Selection method</label>
58 <option value="intersection" selected="true">intersection / strong</option>
59 <option value="union">union / weak</option>
60 </param>
61
62 <param name="sep" type="select" format="text">
63 <label>Separator of columns</label>
64 <option value="tabulation">tabulation</option>
65 <option value="semicolon">;</option>
66 <option value="comma">,</option>
67 </param>
68
69 <param name="dec" type="text" label="Decimal separator" value="." help="" />
70
71 </inputs>
72
73 <outputs>
74 <data name="dataMatrixPValue" format_source="input" label="${input.name}_anova_pvalue.${input.ext}"/>
75 <data name="dataMatrixFiltered" format_source="input" label="${input.name}_anova_filtered.${input.ext}"/>
76 </outputs>
77
78 <tests>
79 <test>
80 <param name="input" value="dataMatrix.tsv"/>
81 <param name="sampleinfo" value="sampleMetadata.tsv"/>
82 <param name="mode" value="row"/>
83 <param name="condition_1" value="age"/>
84 <param name="conditions_0|condition" value="gender"/>
85 <param name="interaction" value="F"/>
86 <param name="method" value="BH"/>
87 <param name="threshold" value="0.05"/>
88 <param name="selection_method" value="union"/>
89 <param name="sep" value="tabulation"/>
90 <param name="dev" value="."/>
91 <output name="dataMatrixPValue" file="dataMatrix.tsv_anova_pvalue.tabular" />
92 <output name="dataMatrixFiltered" file="dataMatrix.tsv_anova_filtered.tabular" />
93 </test>
94 </tests>
95
96 <help>
97
98 .. class:: infomark
99
100 **Authors** Gildas Le Corguille ABiMS - UPMC/CNRS - Station Biologique de Roscoff - gildas.lecorguille|at|sb-roscoff.fr
101
102 ---------------------------------------------------
103
104 =====
105 Anova
106 =====
107
108 -----------
109 Description
110 -----------
111
112 Analysis of variance (ANOVA) is used to analyze the differences between group means and their associated procedures,
113 in which the observed variance in a particular variable is partitioned into components attributable to different sources of variation.
114
115
116
117 -----------
118 Input files
119 -----------
120
121 +---------------------------+------------+
122 | Parameter : num + label | Format |
123 +===========================+============+
124 | 1 : Data Matrix file | Tabular |
125 +---------------------------+------------+
126 | 2 : Sample Metadata file | Tabular |
127 +---------------------------+------------+
128
129
130
131 ------------
132 Output files
133 ------------
134
135
136
137 ***.anova_pvalue.tabular**
138
139 | A tabular file which represents for each metabolite (row), the value of the intensity in each sample (column) + two columns (aovPValue and aovAdjPValue).
140
141 ***.anova_filtered.tabular**
142
143 | The tabular file xset.anova_pvalue.tabular containing only the metabolites that have been filtered by aovAdjPValue.
144
145
146 ------
147
148 .. class:: infomark
149
150 The outputs ***.anova_filtered.tabular** or ***.anova_pvalue.tabular** are tabular files. You can continue your analysis using it in the following tools:
151 | PCA
152 | Hierarchical Clustering
153
154
155
156 ---------------------------------------------------
157
158 ---------------
159 Working example
160 ---------------
161
162
163 Input files
164 -----------
165
166 **>A part of an example of Data Matrix file input**
167
168
169 +--------+------------------+----------------+
170 | Name | Bur-eH_FSP_12 | Bur-eH_FSP_24 |
171 +========+==================+================+
172 |M202T601| 91206595.7559783 |106808979.08546 |
173 +--------+------------------+----------------+
174 |M234T851| 27249137.275504 |28824971.3177926|
175 +--------+------------------+----------------+
176
177 **>A part of an example of Sample Metadata file input**
178
179
180 +---------------------------+------------+------------+------------+
181 | Sample name | class | time | batch |
182 +===========================+============+============+============+
183 | Bur-eH_FSP_12 | Bur-eH | 12 | 1 |
184 +---------------------------+------------+------------+------------+
185 | Bur-eH_FSP_24 | Bur-eH | 24 | 1 |
186 +---------------------------+------------+------------+------------+
187 | Bur-NI_FSP_12 | Bur-NI | 12 | 2 |
188 +---------------------------+------------+------------+------------+
189 | Bur-NI_FSP_24 | Bur-NI | 24 | 2 |
190 +---------------------------+------------+------------+------------+
191
192 Parameters
193 ----------
194
195 | Mode -> **row**
196 | column name of condition -> **class**
197 | Separator of columns: -> **tabulation**
198 | Decimal separator -> **.**
199 | PValue adjusted method -> **BH**
200 | Threshold -> **0.001**
201
202
203
204 Output files
205 ------------
206
207 **Part of an example of xset.anova_filtered.tabular:**
208
209 .. image:: anova_pvalue.png
210
211 **Part of an example of xset.anova_pvalue.tabular:**
212
213 .. image:: anova_filtered.png
214
215
216 ---------------------------------------------------
217
218
219 ---------------------------
220 Position in workflow4metabo
221 ---------------------------
222
223
224 **Upstream tools**
225
226 +---------------------------+----------------------------------------+--------+------------------------+
227 | Name | Output file | Format | parameter |
228 +===========================+========================================+========+========================+
229 |xcms.diffreport |xset.diffreport.data_matrix.tsv | Tabular| Data table file |
230 +---------------------------+----------------------------------------+--------+------------------------+
231 |CAMERA.annotateDiffreport |xset.annotatediffreport.data_matrix.tsv | Tabular| Data table file |
232 +---------------------------+----------------------------------------+--------+------------------------+
233 |xcms.xcmsSet |sample_info.tab | Tabular| sample info table file |
234 +---------------------------+----------------------------------------+--------+------------------------+
235
236
237 **Downstream tools**
238
239 +---------------------------+---------------------------------------------------------+--------+
240 | Name | Output file | Format |
241 +===========================+=========================================================+========+
242 |PCA |xset.anova_pvalue.tabular OR xset.anova_filtered.tabular | Tabular|
243 +---------------------------+---------------------------------------------------------+--------+
244 |Hierarchical Clustering |xset.anova_pvalue.tabular OR xset.anova_filtered.tabular | Tabular|
245 +---------------------------+---------------------------------------------------------+--------+
246
247
248 **General schema of the metabolomic workflow**
249
250 .. image:: anova_workflow.png
251
252 </help>
253
254 <citations>
255 <citation>Ronald A. Fisher in the 1930s</citation>
256 </citations>
257
258 </tool>