Mercurial > repos > lecorguille > xcms_retcor
comparison abims_xcms_retcor.xml @ 1:da716e2937f2 draft
planemo upload
author | lecorguille |
---|---|
date | Mon, 22 Feb 2016 16:38:15 -0500 |
parents | 19c1d2598eb5 |
children | 54cc3edfe35c |
comparison
equal
deleted
inserted
replaced
0:19c1d2598eb5 | 1:da716e2937f2 |
---|---|
1 <tool id="abims_xcms_retcor" name="xcms.retcor" version="2.0.2"> | 1 <tool id="abims_xcms_retcor" name="xcms.retcor" version="2.0.5"> |
2 | 2 |
3 <description>Retention Time Correction using retcor function from xcms R package </description> | 3 <description>Retention Time Correction using retcor function from xcms R package </description> |
4 | 4 |
5 <requirements> | 5 <requirements> |
6 <requirement type="package" version="3.1.2">R</requirement> | 6 <requirement type="package" version="3.1.2">R</requirement> |
7 <requirement type="binary">Rscript</requirement> | 7 <requirement type="binary">Rscript</requirement> |
8 <requirement type="package" version="1.44.0">xcms</requirement> | 8 <requirement type="package" version="1.44.0">xcms</requirement> |
9 <requirement type="package" version="2.1">xcms_w4m_script</requirement> | 9 <requirement type="package" version="2.2.0">xcms_w4m_script</requirement> |
10 </requirements> | 10 </requirements> |
11 | 11 |
12 <stdio> | 12 <stdio> |
13 <exit_code range="1:" level="fatal" /> | 13 <exit_code range="1:" level="fatal" /> |
14 </stdio> | 14 </stdio> |
15 | 15 |
16 <command> | 16 <command><![CDATA[ |
17 xcms.r | 17 xcms.r |
18 image $image xfunction retcor method $methods.method | 18 image $image |
19 xfunction retcor | |
20 | |
21 xsetRdataOutput $xsetRData | |
22 ticspdf $ticsCorPdf | |
23 bicspdf $bpcsCorPdf | |
24 rplotspdf $rplotsPdf | |
25 | |
26 method $methods.method | |
19 #if $methods.method == "obiwarp": | 27 #if $methods.method == "obiwarp": |
20 profStep $methods.profStep | 28 profStep $methods.profStep |
21 #else | 29 #else |
22 smooth $methods.smooth | 30 smooth $methods.smooth |
23 extra $methods.extra | 31 extra $methods.extra |
26 span $methods.options.span | 34 span $methods.options.span |
27 family $methods.options.family | 35 family $methods.options.family |
28 plottype $methods.options.plottype | 36 plottype $methods.options.plottype |
29 #end if | 37 #end if |
30 #end if | 38 #end if |
31 && ( mv retcor.RData $xsetRData; | 39 ###if $zip_file: |
32 mv TICs_corrected.pdf $ticsCorPdf ; | 40 ## zipfile $zip_file |
33 mv BPCs_corrected.pdf $bpcsCorPdf ; | 41 ###end if |
34 mv Rplots.pdf $rplotsPdf 2> /dev/null); | 42 ; |
35 cat xset.log; | 43 return=\$?; |
44 mv log.txt $log; | |
45 cat $log; | |
46 sh -c "exit \$return" | |
36 | 47 |
37 </command> | 48 ]]></command> |
38 | 49 |
39 <inputs> | 50 <inputs> |
40 <param name="image" type="data" format="rdata.xcms.raw,rdata.xcms.group,rdata" label="xset RData file" help="output file from another function xcms (xcmsSet, retcor etc.)" /> | 51 <param name="image" type="data" format="rdata.xcms.raw,rdata.xcms.group,rdata" label="xset RData file" help="output file from another function xcms (xcmsSet, retcor etc.)" /> |
41 <conditional name="methods"> | 52 <conditional name="methods"> |
42 <param name="method" type="select" label="Method to use for retention time correction" help="[method] See the help section below" > | 53 <param name="method" type="select" label="Method to use for retention time correction" help="[method] See the help section below" > |
59 <option value="hide" selected="true">hide</option> | 70 <option value="hide" selected="true">hide</option> |
60 </param> | 71 </param> |
61 <when value="show"> | 72 <when value="show"> |
62 <param name="span" type="float" value="0.2" label="Degree of smoothing for local polynomial regression fitting" help="[span]"/> | 73 <param name="span" type="float" value="0.2" label="Degree of smoothing for local polynomial regression fitting" help="[span]"/> |
63 | 74 |
64 <param name="family" type="select" label="Family" help="[family] if gaussian fitting is by least-squares with no outlier removal, and if symmetric a re descending M estimator is used with Tukey's biweight function, allowing outlier removal"> | 75 <param name="family" type="select" label="Family" help="[family] if gaussian fitting is by least-squares with no outlier removal, and if symmetric a re descending M estimator is used with Tukey's biweight function, allowing outlier removal"> |
65 <option value="gaussian" selected="true">gaussian</option> | 76 <option value="gaussian" selected="true">gaussian</option> |
66 <option value="symmetric">symmetric</option> | 77 <option value="symmetric">symmetric</option> |
67 </param> | 78 </param> |
68 | 79 |
69 <param name="plottype" type="select" help="[plottype] if deviation plot retention time deviation points and regression fit, and if mdevden also plot peak overall peak density and retention time correction peak density"> | 80 <param name="plottype" type="select" help="[plottype] if deviation plot retention time deviation points and regression fit, and if mdevden also plot peak overall peak density and retention time correction peak density"> |
70 <option value="none" selected="true">none</option> | 81 <option value="none" selected="true">none</option> |
71 <option value="deviation">deviation</option> | 82 <option value="deviation">deviation</option> |
72 <option value="mdevden">mdevden</option> | 83 <option value="mdevden">mdevden</option> |
73 </param> | 84 </param> |
74 </when> | 85 </when> |
75 <when value="hide"> | 86 <when value="hide"> |
76 </when> | 87 </when> |
77 </conditional> | 88 </conditional> |
78 </when> | 89 </when> |
79 </conditional> | 90 </conditional> |
91 <!-- To pass planemo test --> | |
92 <!--<param name="zip_file" type="hidden_data" format="no_unzip.zip" label="Zip file" />--> | |
80 </inputs> | 93 </inputs> |
81 | 94 |
82 <outputs> | 95 <outputs> |
83 <data name="xsetRData" format="rdata.xcms.retcor" label="${image.name[:-6]}.retcor.RData" /> | 96 <data name="xsetRData" format="rdata.xcms.retcor" label="${image.name[:-6]}.retcor.RData" /> |
84 <data name="rplotsPdf" format="pdf" label="${image.name[:-6]}.retcor.Rplots.pdf"> | 97 <data name="rplotsPdf" format="pdf" label="${image.name[:-6]}.retcor.Rplots.pdf"> |
87 <filter>(family == 'symmetric')</filter> | 100 <filter>(family == 'symmetric')</filter> |
88 <filter>(plottype != 'none')</filter> | 101 <filter>(plottype != 'none')</filter> |
89 </data> | 102 </data> |
90 <data name="ticsCorPdf" format="pdf" label="${image.name[:-6]}.retcor.TICs_corrected.pdf" /> | 103 <data name="ticsCorPdf" format="pdf" label="${image.name[:-6]}.retcor.TICs_corrected.pdf" /> |
91 <data name="bpcsCorPdf" format="pdf" label="${image.name[:-6]}.retcor.BPCs_corrected.pdf" /> | 104 <data name="bpcsCorPdf" format="pdf" label="${image.name[:-6]}.retcor.BPCs_corrected.pdf" /> |
105 <data name="log" format="txt" label="xset.log.txt" hidden="true" /> | |
92 </outputs> | 106 </outputs> |
93 | 107 |
94 <tests> | 108 <tests> |
95 <test> | 109 <test> |
96 <param name="image" value="xset.group.RData"/> | 110 <param name="image" value="xset.group.RData"/> |
100 <param name="methods.missing" value="1"/> | 114 <param name="methods.missing" value="1"/> |
101 <param name="methods.options.option" value="show"/> | 115 <param name="methods.options.option" value="show"/> |
102 <param name="methods.options.span" value="0.2"/> | 116 <param name="methods.options.span" value="0.2"/> |
103 <param name="methods.options.family" value="gaussian"/> | 117 <param name="methods.options.family" value="gaussian"/> |
104 <param name="methods.options.plottype" value="deviation"/> | 118 <param name="methods.options.plottype" value="deviation"/> |
105 <output name="xsetRData" file="xset.group.retcor.RData" /> | 119 <param name="zip_file" value="sacuri.zip"/> |
106 <output name="rplotsPdf" file="xset.group.retcor.Rplots.pdf" /> | 120 <!--<output name="xsetRData" file="xset.group.retcor.RData" />--> |
107 <output name="ticsCorPdf" file="xset.group.retcor.TICs_corrected.pdf" /> | 121 <!--<output name="rplotsPdf" file="xset.group.retcor.Rplots.pdf" />--> |
108 <output name="bpcsCorPdf" file="xset.group.retcor.BPCs_corrected.pdf" /> | 122 <!--<output name="ticsCorPdf" file="xset.group.retcor.TICs_corrected.pdf" />--> |
123 <!--<output name="bpcsCorPdf" file="xset.group.retcor.BPCs_corrected.pdf" />--> | |
124 <output name="log"> | |
125 <assert_contents> | |
126 <has_text text="object with 9 samples" /> | |
127 <has_text text="Time range: 0.7-1139.9 seconds (0-19 minutes)" /> | |
128 <has_text text="Mass range: 50.0019-999.9863 m/z" /> | |
129 <has_text text="Peaks: 135846 (about 15094 per sample)" /> | |
130 <has_text text="Peak Groups: 0" /> | |
131 <has_text text="Sample classes: bio, blank" /> | |
132 </assert_contents> | |
133 </output> | |
109 </test> | 134 </test> |
110 </tests> | 135 </tests> |
111 | 136 |
112 <help> | 137 <help><![CDATA[ |
113 | 138 |
114 | 139 |
115 .. class:: infomark | 140 .. class:: infomark |
116 | 141 |
117 **Authors** Colin A. Smith csmith@scripps.edu, Ralf Tautenhahn rtautenh@gmail.com, Steffen Neumann sneumann@ipb-halle.de, Paul Benton hpaul.benton08@imperial.ac.uk and Christopher Conley cjconley@ucdavis.edu | 142 **Authors** Colin A. Smith csmith@scripps.edu, Ralf Tautenhahn rtautenh@gmail.com, Steffen Neumann sneumann@ipb-halle.de, Paul Benton hpaul.benton08@imperial.ac.uk and Christopher Conley cjconley@ucdavis.edu |
264 | 289 |
265 | **2) Example of an xset.group.retcor.TICs_corrected pdf file** | 290 | **2) Example of an xset.group.retcor.TICs_corrected pdf file** |
266 | 291 |
267 .. image:: xcms_retcor.png | 292 .. image:: xcms_retcor.png |
268 | 293 |
269 </help> | 294 |
295 --------------------------------------------------- | |
296 | |
297 Changelog/News | |
298 -------------- | |
299 | |
300 **Version 2.0.5 - 10/02/2016** | |
301 | |
302 - BUGFIX: better management of errors. Datasets remained green although the process failed | |
303 | |
304 - BUGFIX: some pdf remained empty even when the process succeed | |
305 | |
306 - UPDATE: refactoring of internal management of inputs/outputs | |
307 | |
308 - UPDATE: refactoring to feed the new report tool | |
309 | |
310 | |
311 **Version 2.0.2 - 02/06/2015** | |
312 | |
313 - IMPROVEMENT: new datatype/dataset formats (rdata.xcms.raw, rdata.xcms.group, rdata.xcms.retcor ...) will facilitate the sequence of tools and so avoid incompatibility errors. | |
314 | |
315 - IMPROVEMENT: parameter labels have changed to facilitate their reading. | |
316 | |
317 | |
318 ]]></help> | |
270 | 319 |
271 <citations> | 320 <citations> |
272 <citation type="doi">10.1021/ac051437y</citation> | 321 <citation type="doi">10.1021/ac051437y</citation> |
273 <citation type="doi">10.1093/bioinformatics/btu813</citation> | 322 <citation type="doi">10.1093/bioinformatics/btu813</citation> |
274 </citations> | 323 </citations> |