comparison abims_anova.xml @ 9:4f06e1796334 draft

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