Mercurial > repos > vmarcon > pcafactominer
comparison pcaFactoMineR.xml @ 0:7acfb3bdad66 draft default tip
planemo upload commit a2411926bebc2ca3bb31215899a9f18a67e59556
author | vmarcon |
---|---|
date | Thu, 18 Jan 2018 07:57:36 -0500 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:7acfb3bdad66 |
---|---|
1 <!--# Copyright (C) 2017 INRA | |
2 # This program is free software: you can redistribute it and/or modify | |
3 # it under the terms of the GNU General Public License as published by | |
4 # the Free Software Foundation, either version 3 of the License, or | |
5 # (at your option) any later version. | |
6 # | |
7 # This program is distributed in the hope that it will be useful, | |
8 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
9 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
10 # GNU General Public License for more details. | |
11 # | |
12 # You should have received a copy of the GNU General Public License | |
13 # along with this program. If not, see http://www.gnu.org/licenses/. | |
14 #--> | |
15 | |
16 <tool id="pcafactominer" name="PCAFactoMineR" version="1.0.0"> | |
17 <description>Realize a PCA analysis using FactoMineR package</description> | |
18 <requirements> | |
19 <requirement type="package" version="1.38" >r-factominer</requirement> | |
20 <requirement type="package">r-base</requirement> | |
21 <requirement type="package">bioconductor-pcamethods</requirement> | |
22 <requirement type="package">r-batch</requirement> | |
23 </requirements> | |
24 <stdio> | |
25 <!-- Anything other than zero is an error --> | |
26 <exit_code range="1:" level="fatal" /> | |
27 <exit_code range=":-1" level="fatal" /> | |
28 </stdio> | |
29 <command interpreter="Rscript"><![CDATA[ | |
30 pcaFactoMineR_galaxy.R | |
31 datafile '${datafile}' | |
32 npc '${npc}' | |
33 #if str( $condPlot.plotOptions ) == "yes": | |
34 | |
35 plotev '${condPlot.plotev}' | |
36 plotcontrib '${condPlot.plotcontrib}' | |
37 plotindiv '${condPlot.condScore.plotindiv}' | |
38 | |
39 #if str( $condPlot.condScore.plotindiv ) == "yes": | |
40 colorfactor '${condPlot.condScore.condColor.colorfactor}' | |
41 #if str( $condPlot.condScore.condColor.colorfactor ) == "yes": | |
42 samplemetadata '${condPlot.condScore.condColor.samplemetadata}' | |
43 factor '${condPlot.condScore.condColor.factor}' | |
44 #else : | |
45 samplemetadata "None" | |
46 factor "None" | |
47 #end if | |
48 #else : | |
49 colorfactor yes | |
50 samplemetadata "None" | |
51 factor "None" | |
52 #end if | |
53 | |
54 plotvar '${condPlot.condLoading.plotvar}' | |
55 | |
56 #if str( $condPlot.condLoading.plotvar ) == "yes": | |
57 contribh '${condPlot.condLoading.contribh}' | |
58 contribv '${condPlot.condLoading.contribv}' | |
59 #else : | |
60 contribh 0 | |
61 contribv 0 | |
62 #end if | |
63 | |
64 #else : | |
65 plotev yes | |
66 plotcontrib yes | |
67 plotindiv yes | |
68 colorfactor no | |
69 samplemetadata "None" | |
70 factor "None" | |
71 plotvar yes | |
72 contribh 0 | |
73 contribv 0 | |
74 #end if | |
75 | |
76 #if str( $condGraphical.graphicalOptions ) == "yes": | |
77 title '${condGraphical.title}' | |
78 pch '${condGraphical.pch}' | |
79 pcv '${condGraphical.pcv}' | |
80 tc '${condGraphical.tc}' | |
81 #else : | |
82 title "PCA" | |
83 pch 1 | |
84 pcv 2 | |
85 tc 1 | |
86 #end if | |
87 varinline '${varinline}' | |
88 | |
89 ## Outputs | |
90 logOut '${log_file}' | |
91 outgraphpdf '${output_file}' | |
92 ]]></command> | |
93 <inputs> | |
94 <param name="datafile" type="data" label="Data matrix" help="Precise below if the variable are in line or column" format="tabular,csv" /> | |
95 <param name="npc" label="Number of principal components" type="integer" value="2" min="2" help="" /> | |
96 <conditional name="condPlot"> | |
97 <param name="plotOptions" type="select" label="Plot Options" help="If no, it will create the 4 plot and take the default parameters"> | |
98 <option value="no" selected="true">No</option> | |
99 <option value="yes">Yes</option> | |
100 </param> | |
101 <when value="yes"> | |
102 <param name="plotev" type="select" label="Eigenvalue plot" help="Eigenvalue and percentage of explained variance plots"> | |
103 <option value="yes" selected="true"> Yes </option> | |
104 <option value="no"> No </option> | |
105 </param> | |
106 <param name="plotcontrib" type="select" label="Contribution plot" help=""> | |
107 <option value="yes" selected="true"> Yes </option> | |
108 <option value="no"> No </option> | |
109 </param> | |
110 <conditional name="condScore"> | |
111 <param name="plotindiv" label="Score plot" type="select" help=""> | |
112 <option value="yes" selected="true"> Yes </option> | |
113 <option value="no"> No </option> | |
114 </param> | |
115 <when value="yes"> | |
116 <conditional name="condColor"> | |
117 <param name="colorfactor" label="Factor color" type="select" help="Colouring of observations according to levels of qualitative variable (biological factor of interest)"> | |
118 <option value="no" selected="true"> No </option> | |
119 <option value="yes"> Yes </option> | |
120 </param> | |
121 <when value="yes"> | |
122 <param name="samplemetadata" type="data" label="Factor file" help="File with Biological Factor(s)" format="tabular,csv" /> | |
123 <param name="factor" label="Name of the column of the factor matrix corresponding to the qualitative variable" type="text" value="None" help="" /> | |
124 </when> | |
125 <when value="no"></when> | |
126 </conditional> | |
127 </when> | |
128 <when value="no"></when> | |
129 </conditional> | |
130 <conditional name="condLoading"> | |
131 <param name="plotvar" label="Loading plot" type="select" help=""> | |
132 <option value="yes" selected="true"> Yes </option> | |
133 <option value="no"> No </option> | |
134 </param> | |
135 <when value="yes"> | |
136 <param name="contribh" label="Contribution threshold (abscissa)" type="float" value="0" help="Contribution threshold for loading plot (Principal component displayed in the abscissa axis)" /> | |
137 <param name="contribv" label="Contribution threshold (ordinate)" type="float" value="0" help="Contribution threshold for loading plot (Principal component displayed in the ordinate axis)" /> | |
138 </when> | |
139 <when value="no"></when> | |
140 </conditional> | |
141 </when> | |
142 <when value="no"></when> | |
143 </conditional> | |
144 <conditional name="condGraphical"> | |
145 <param name="graphicalOptions" type="select" label="GraphicalOptions" help="If not, it will take the default parameters"> | |
146 <option value="no" selected="true">No</option> | |
147 <option value="yes">Yes</option> | |
148 </param> | |
149 <when value="yes"> | |
150 <param name="title" type="text" label="Title" help="Title printed on all plots; if none, leave 'PCA'" value="PCA" /> | |
151 <param name="pch" label="Horizontal Principal Component" type="integer" value="1" help="Principal component displayed on the abscissa" /> | |
152 <param name="pcv" label="Vertical Principal Component" help="Principal component displayed on the ordinate" type="integer" value="2" /> | |
153 <param name="tc" label="Numeric character expansion factor" type="float" value="1.0" min="0.5" help="A value greater than 1 increases and a value lower than 1 decreases character size" /> | |
154 </when> | |
155 <when value="no"></when> | |
156 </conditional> | |
157 <param name="varinline" type="select" multiple="false" display="radio" label="Variable in line or column?"> | |
158 <option value="yes">Line</option> | |
159 <option value="no">Column</option> | |
160 </param> | |
161 </inputs> | |
162 <outputs> | |
163 <data name="log_file" format="html" label="${tool.name}_log" /> | |
164 <data name="output_file" label="${tool.name}_graph" format="pdf" /> | |
165 </outputs> | |
166 <tests> | |
167 <test> | |
168 <param name="datafile" value="decathlon.tsv"/> | |
169 <param name="npc" value="2"/> | |
170 <conditional name="condPlot"> | |
171 <param name="plotOptions" value="no"/> | |
172 </conditional> | |
173 <conditional name="condGraphical"> | |
174 <param name="graphicalOptions" value="no"/> | |
175 </conditional> | |
176 <param name="varinline" value="no"/> | |
177 <output name="log_file" file="log_file"/> | |
178 <output name="output_file" file="output_file" compare="sim_size"/> | |
179 </test> | |
180 </tests> | |
181 <help><![CDATA[ | |
182 | |
183 === | |
184 PCA | |
185 === | |
186 | |
187 ----------- | |
188 Description | |
189 ----------- | |
190 | |
191 - This tool is part of a set of statistical tools made by members of the BIOS4BIOL group ("Normalization", "Summary statistics", "Hierarchical clustering" and "PCAFactoMineR"). | |
192 - Please use the Normalization module that come with the suite before using this module. | |
193 | |
194 What it does: | |
195 - Principal Component Analysis (PCA) as done in the FactoMineR package | |
196 | |
197 ------ | |
198 | |
199 ----------- | |
200 Input files | |
201 ----------- | |
202 | |
203 +---------------------------+------------+ | |
204 | Parameter : num + label | Format | | |
205 +===========================+============+ | |
206 | 1 : data matrix | tabular | | |
207 +---------------------------+------------+ | |
208 | |
209 ---------- | |
210 Parameters | |
211 ---------- | |
212 | |
213 Data matrix | |
214 | see "Input files" section above | |
215 | | |
216 | |
217 Number of principal component | |
218 | How many principal components include in the PCA model? | |
219 | | |
220 | |
221 (?)Plot options | |
222 | Show (or not) more options for the plots | |
223 | | |
224 | |
225 Eigenvalue plot | |
226 | Eigenvalue and percentage of explained variance plots. Default value is "Yes" | |
227 | | |
228 | |
229 Contribution plot | |
230 | Contribution plot. Default value is "Yes" | |
231 | | |
232 | |
233 Score plot | |
234 | Score plot" plot. Default value is "Yes" | |
235 | | |
236 | |
237 Factor color | |
238 | Colouring of observations. Default value is "Yes" | |
239 | | |
240 | |
241 Factor file | |
242 | File containing the biological factor (qualitative variable) to color observations according to levels of this | |
243 | | |
244 | |
245 Factor | |
246 | Name of the column containing the biological factor | |
247 | | |
248 | |
249 Loading plot | |
250 | Loading plot. Default value is "Yes" | |
251 | | |
252 | |
253 Contribution threshold (abscissa) | |
254 | Contribution threshold for loading plot: principal component displayed in the abscissa axis | |
255 | | |
256 | |
257 Contribution threshold (ordinate) | |
258 | Contribution threshold for loading plot: principal component displayed in the ordinate axis | |
259 | | |
260 | |
261 (?)Graphical options | |
262 | Show (or not) more graphical options | |
263 | | |
264 | |
265 Title | |
266 | Title printed on all plots; if none, leave 'PCA'" value="PCA" | |
267 | | |
268 | |
269 Numeric character expansion factor | |
270 | A value greater than 1 increases and a value lower than 1 decreases character size | |
271 | | |
272 | |
273 Horizontal Principal Component | |
274 | Principal component displayed on the abscissa | |
275 | | |
276 | |
277 Vertical Principal Component | |
278 | Principal component displayed on the ordinate | |
279 | | |
280 | |
281 Variable Line/Column | |
282 | Variable in line or in column in the input file. Default value is "Line" | |
283 | | |
284 | |
285 ------------ | |
286 Output files | |
287 ------------ | |
288 | |
289 PCAFactoMineR_graph (pdf output) | |
290 | | |
291 | |
292 PCAFactoMineR_log | |
293 | | |
294 | |
295 ------ | |
296 | |
297 **Authors** Marie Tremblay-Franco (marie.tremblay-franco@inra.fr), Jean-Francois Martin (jean-francois.martin@inra.fr), Sandrine Laguerre (laguerre@insa-toulouse.fr) and Valentin Marcon (valentin.marcon@inra.fr) | |
298 | |
299 Contact : support.sigenae@inra.fr | |
300 | |
301 E-learning available : Not yet. | |
302 | |
303 .. class:: infomark | |
304 | |
305 ------------- | |
306 Please cite : | |
307 ------------- | |
308 | |
309 - (Depending on the help provided you can cite us in acknowledgements, references or both.) | |
310 | |
311 Acknowledgements | |
312 | We wish to thank the SIGENAE group and the statistical CATI BIOS4Biol group : Marie Tremblay-Franco, Jean-Francois Martin, Sandrine Laguerre. | |
313 | Re-packaging was provided by Valentin Marcon (INRA, Migale platform http://migale.jouy.inra.fr), as part of the IFB project 'Galaxy For Life Science' (http://www.france-bioinformatique.fr/fr) | |
314 | | |
315 | |
316 References | |
317 | SIGENAE [http://www.sigenae.org/] | |
318 | | |
319 | |
320 ]]></help> | |
321 <citations> | |
322 <citation type="bibtex"> | |
323 @article{10.18637/jss.v025.i01, | |
324 title = {{FactoMineR}: A Package for Multivariate Analysis}, | |
325 author = {S\'ebastien Le and Julie Josse and Fran\c{c}ois Husson}, | |
326 journal = {Journal of Statistical Software}, | |
327 year = {2008}, | |
328 volume = {25}, | |
329 number = {1}, | |
330 pages = {1--18}, | |
331 doi = {10.18637/jss.v025.i01}, | |
332 url = {https://dx.doi.org/10.18637/jss.v025.i01}} | |
333 </citation> | |
334 </citations> | |
335 </tool> |