Mercurial > repos > lecorguille > ipo
comparison ipo4retgroup.xml @ 6:03fdfbd914ab draft
planemo upload commit 8dfb0b11442ccce78165b5d8f07555ccbd303cce
| author | lecorguille |
|---|---|
| date | Thu, 30 Mar 2017 11:27:09 -0400 |
| parents | |
| children | dd0a593dded1 |
comparison
equal
deleted
inserted
replaced
| 5:d63c80d54b24 | 6:03fdfbd914ab |
|---|---|
| 1 <tool id="ipo4retgroup" name="IPO for group and retcor" version="0.0.1"> | |
| 2 | |
| 3 <description>IPO optimization process for xcms.group and xcms.retcor</description> | |
| 4 | |
| 5 <macros> | |
| 6 <import>macros.xml</import> | |
| 7 </macros> | |
| 8 | |
| 9 <expand macro="requirements"/> | |
| 10 <expand macro="stdio"/> | |
| 11 | |
| 12 <command><![CDATA[ | |
| 13 LANG=C Rscript $__tool_directory__/ipo4retgroup.r | |
| 14 | |
| 15 image '$image' | |
| 16 | |
| 17 parametersOutput '$parametersOutput' | |
| 18 | |
| 19 samplebyclass $samplebyclass | |
| 20 | |
| 21 @COMMAND_NSLAVES@ | |
| 22 | |
| 23 ## group methods | |
| 24 | |
| 25 sleep 0.001 | |
| 26 #if $group.methods.method == "density": | |
| 27 bw "c($group.methods.bw)" | |
| 28 minfrac "c($group.methods.minfrac)" | |
| 29 mzwid "c($group.methods.mzwid)" | |
| 30 ## minsamp "c($group.methods.minsamp)" | |
| 31 #if $group.methods.density_options.option == "show": | |
| 32 max "c($group.methods.density_options.max)" | |
| 33 #end if | |
| 34 #end if | |
| 35 | |
| 36 | |
| 37 | |
| 38 ## retcor methods | |
| 39 | |
| 40 #if $retcor.methods.method == "obiwarp": | |
| 41 retcorMethod obiwarp | |
| 42 profStep "c($methods.profStep)" | |
| 43 | |
| 44 ## $distFunc [1] "cor_opt" | |
| 45 ## $gapInit [1] 0.0 0.4 | |
| 46 ## $gapExtend [1] 2.1 2.7 | |
| 47 ## $$plottype [1] "none" | |
| 48 ## $response [1] 1 | |
| 49 ## $factorDiag [1] 2 | |
| 50 ## $factorGap [1] 1 | |
| 51 ## $localAlignment [1] 0 | |
| 52 | |
| 53 #elif $retcor.methods.method == "peakgroups": | |
| 54 ## smooth loess | |
| 55 retcorMethod loess | |
| 56 smooth loess | |
| 57 extra "c($retcor.methods.extra)" | |
| 58 missing "c($retcor.methods.missing)" | |
| 59 #if $retcor.methods.options.option == "show": | |
| 60 span "c($retcor.methods.options.span)" | |
| 61 family "$retcor.methods.options.family" | |
| 62 plottype "$retcor.methods.options.plottype" | |
| 63 #end if | |
| 64 #elif $retcor.methods.method == "none": | |
| 65 retcorMethod none | |
| 66 #end if | |
| 67 | |
| 68 @COMMAND_FILE_LOAD@ | |
| 69 | |
| 70 @COMMAND_LOG_EXIT@ | |
| 71 ]]></command> | |
| 72 | |
| 73 <inputs> | |
| 74 | |
| 75 <param name="image" type="data" format="rdata.xcms.raw,rdata.xcms.group,rdata.xcms.retcor,rdata" label="xset RData file" help="output file from another function xcms (xcmsSet, retcor etc.)" /> | |
| 76 | |
| 77 <param name="samplebyclass" type="integer" value="2" label="Number of samples used per class to estimate the best parameters" help="Set to 0 to use the whole dataset. To save time, reduce this number" /> | |
| 78 | |
| 79 <section name="group" title="Group Options" expanded="False"> | |
| 80 | |
| 81 <conditional name="methods"> | |
| 82 <param name="method" type="select" label="Method to use for grouping" help="[method] See the help section below"> | |
| 83 <option value="density" selected="true">density</option> | |
| 84 </param> | |
| 85 <when value="density"> | |
| 86 <param name="bw" type="text" value="22,38" label="Range for Bandwidth" help="[bw] bandwidth (standard deviation or half width at half maximum) of gaussian smoothing kernel to apply to the peak density chromatogram (ex: 30 or 22,38)" /> | |
| 87 <param name="minfrac" type="text" value="0.3,0.7" label="Range for Minimum fraction of samples necessary" help="[minfrac] in at least one of the sample groups for it to be a valid group (ex: 0.5 or 0.3,0.7)" /> | |
| 88 <param name="mzwid" type="text" value="0.015,0.035" label="Range for Width of overlapping m/z slices" help="[mzwid] to use for creating peak density chromatograms and grouping peaks across samples (ex: 0.25 or 0.015,0.035)" /> | |
| 89 <!-- | |
| 90 <param name="minsamp" type="hidden" value="1" label="Range for Minimum number of samples necessary in at least one of the sample groups for it to be a valid group" help="[minsamp] (ex: 1 or 0,5" /> | |
| 91 --> | |
| 92 <conditional name="density_options"> | |
| 93 <param name="option" type="select" label="Advanced options"> | |
| 94 <option value="show">show</option> | |
| 95 <option value="hide" selected="true">hide</option> | |
| 96 </param> | |
| 97 <when value="show"> | |
| 98 <param name="max" type="text" value="50" label="Range for Maximum number of groups to identify in a single m/z slice" help="[max] (ex: 50 or 25,75)" /> | |
| 99 </when> | |
| 100 <when value="hide"> | |
| 101 </when> | |
| 102 </conditional> | |
| 103 | |
| 104 </when> | |
| 105 </conditional> | |
| 106 | |
| 107 | |
| 108 </section> | |
| 109 | |
| 110 <section name="retcor" title="Retcor Options" expanded="False"> | |
| 111 <conditional name="methods"> | |
| 112 <param name="method" type="select" label="Method to use for retention time correction" help="[method] See the help section below" > | |
| 113 <option value="obiwarp">obiwarp</option> | |
| 114 <option value="peakgroups">peakgroups</option> | |
| 115 </param> | |
| 116 <when value="obiwarp"> | |
| 117 <param name="profStep" type="text" value="0.7,1.0" label="Range for Step size (in m/z)" help="[profStep] to use for profile generation from the raw data files (ex: 1 or 0.7 1.0)" /> | |
| 118 <!-- | |
| 119 ## $distFunc [1] "cor_opt" | |
| 120 ## $gapInit [1] 0.0 0.4 | |
| 121 ## $gapExtend [1] 2.1 2.7 | |
| 122 ## $$plottype [1] "none" | |
| 123 ## $response [1] 1 | |
| 124 ## $factorDiag [1] 2 | |
| 125 ## $factorGap [1] 1 | |
| 126 ## $localAlignment [1] 0 | |
| 127 --> | |
| 128 </when> | |
| 129 <when value="peakgroups"> | |
| 130 <param name="smooth" type="select" label="Smooth method" help="[smooth] either 'loess’ for non-linear alignment or ‘linear’ for linear alignment" > | |
| 131 <option value="loess">loess</option> | |
| 132 </param> | |
| 133 <param name="extra" type="text" value="1" label="Range for Number of extra peaks to allow in retention time correction correction groups" help="[extra] (ex: 1 or 1,3)" /> | |
| 134 <param name="missing" type="text" value="1" label="Range for Number of missing samples to allow in retention time correction groups" help="[missing] (ex: 1or 1,3)" /> | |
| 135 | |
| 136 <conditional name="options"> | |
| 137 <param name="option" type="select" label="Advanced options"> | |
| 138 <option value="show">show</option> | |
| 139 <option value="hide" selected="true">hide</option> | |
| 140 </param> | |
| 141 <when value="show"> | |
| 142 <param name="span" type="text" value="0.1,0.3" label="Range for Degree of smoothing for local polynomial regression fitting" help="[span] (ex: 0.2 or 0.1,0.3)"/> | |
| 143 <!-- @TODO multiple="true" --> | |
| 144 <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"> | |
| 145 <option value="gaussian" selected="true">gaussian</option> | |
| 146 <option value="symmetric">symmetric</option> | |
| 147 </param> | |
| 148 <!-- @TODO multiple="true" --> | |
| 149 <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"> | |
| 150 <option value="none" selected="true">none</option> | |
| 151 <option value="deviation">deviation</option> | |
| 152 <option value="mdevden">mdevden</option> | |
| 153 </param> | |
| 154 | |
| 155 </when> | |
| 156 <when value="hide"> | |
| 157 </when> | |
| 158 </conditional> | |
| 159 </when> | |
| 160 </conditional> | |
| 161 | |
| 162 </section> | |
| 163 | |
| 164 <expand macro="file_load"/> | |
| 165 | |
| 166 </inputs> | |
| 167 | |
| 168 <outputs> | |
| 169 <data name="parametersOutput" format="tabular" label="IPO_parameters4xcmsSet.tsv" /> | |
| 170 <data name="log" format="txt" label="ipo4xcmsSet.log.txt" /> | |
| 171 </outputs> | |
| 172 | |
| 173 <tests> | |
| 174 <!-- TOO LONG | |
| 175 <test> | |
| 176 <param name="image" value="faahKO.xset.RData"/> | |
| 177 <param name="group|methods|method" value="density"/> | |
| 178 <param name="group|methods|bw" value="28,32"/> | |
| 179 <param name="group|methods|minfrac" value="1"/> | |
| 180 <param name="group|methods|mzwid" value="0.15,0.35"/> | |
| 181 <param name="retcor|methods|method" value="peakgroups"/> | |
| 182 <param name="retcor|methods|smooth" value="loess"/> | |
| 183 <param name="retcor|methods|extra" value="1"/> | |
| 184 <param name="retcor|methods|missing" value="1"/> | |
| 185 <param name="file_load_conditional|file_load_select" value="yes" /> | |
| 186 <param name="file_load_conditional|inputs|zip_file" value="faahKO_reduce.zip" ftype="zip" /> | |
| 187 <output name="parametersOutput" file="faahKO_IPO_parameters4retgroup.tsv" /> | |
| 188 </test>--> | |
| 189 | |
| 190 <test> | |
| 191 <param name="image" value="faahKO.xset.RData"/> | |
| 192 <param name="group|methods|method" value="density"/> | |
| 193 <param name="group|methods|bw" value="28,32"/> | |
| 194 <param name="group|methods|minfrac" value="1"/> | |
| 195 <param name="group|methods|mzwid" value="0.25"/> | |
| 196 <param name="retcor|methods|method" value="peakgroups"/> | |
| 197 <param name="retcor|methods|smooth" value="loess"/> | |
| 198 <param name="retcor|methods|extra" value="1"/> | |
| 199 <param name="retcor|methods|missing" value="1"/> | |
| 200 <param name="file_load_conditional|file_load_select" value="yes" /> | |
| 201 <param name="file_load_conditional|inputs|zip_file" value="faahKO_reduce.zip" ftype="zip" /> | |
| 202 <output name="parametersOutput" file="faahKO_IPO_parameters4retgroup_bw.tsv" /> | |
| 203 </test> | |
| 204 | |
| 205 <test> | |
| 206 <param name="image" value="faahKO.xset.RData"/> | |
| 207 <param name="group|methods|method" value="density"/> | |
| 208 <param name="group|methods|bw" value="30"/> | |
| 209 <param name="group|methods|minfrac" value="1"/> | |
| 210 <param name="group|methods|mzwid" value="0.15,0.35"/> | |
| 211 <param name="retcor|methods|method" value="peakgroups"/> | |
| 212 <param name="retcor|methods|smooth" value="loess"/> | |
| 213 <param name="retcor|methods|extra" value="1"/> | |
| 214 <param name="retcor|methods|missing" value="1"/> | |
| 215 <param name="file_load_conditional|file_load_select" value="yes" /> | |
| 216 <param name="file_load_conditional|inputs|zip_file" value="faahKO_reduce.zip" ftype="zip" /> | |
| 217 <output name="parametersOutput" file="faahKO_IPO_parameters4retgroup_mzmid.tsv" /> | |
| 218 </test> | |
| 219 | |
| 220 <!--<test> | |
| 221 <param name="image" value="MM-xset-merge.RData"/> | |
| 222 <param name="group|methods|method" value="density"/> | |
| 223 <param name="group|methods|bw" value="22,38"/> | |
| 224 <param name="group|methods|minfrac" value="1"/> | |
| 225 <param name="group|methods|mzwid" value="0.015,0.035"/> | |
| 226 <param name="retcor|methods|method" value="peakgroups"/> | |
| 227 <param name="retcor|methods|smooth" value="loess"/> | |
| 228 <param name="retcor|methods|extra" value="1"/> | |
| 229 <param name="retcor|methods|missing" value="1"/> | |
| 230 <param name="file_load_conditional|file_load_select" value="yes" /> | |
| 231 <param name="file_load_conditional|inputs|input" value="single_file" /> | |
| 232 <param name="file_load_conditional|inputs|single_file" value="MM8.mzML,MM14.mzML" ftype="mzxml" /> | |
| 233 <output name="parametersOutput" file="MM_IPO_parameters4retgroup.tsv" /> | |
| 234 </test>--> | |
| 235 </tests> | |
| 236 | |
| 237 <help><![CDATA[ | |
| 238 | |
| 239 @HELP_AUTHORS@ | |
| 240 | |
| 241 =============== | |
| 242 IPO.ipo4xcmsSet | |
| 243 =============== | |
| 244 | |
| 245 ----------- | |
| 246 Description | |
| 247 ----------- | |
| 248 | |
| 249 A Tool for automated Optimization of XCMS Parameters | |
| 250 | |
| 251 | |
| 252 ----------------- | |
| 253 Workflow position | |
| 254 ----------------- | |
| 255 | |
| 256 **Upstream tools** | |
| 257 | |
| 258 ========================= ================= ======= ========= | |
| 259 Name output file format parameter | |
| 260 ========================= ================= ======= ========= | |
| 261 NA NA zip NA | |
| 262 ========================= ================= ======= ========= | |
| 263 | |
| 264 | |
| 265 **Downstream tools** | |
| 266 | |
| 267 +---------------------------+----------------------+-----------------+ | |
| 268 | Name | Output file | Format | | |
| 269 +===========================+======================+=================+ | |
| 270 |xcms.xcmsSet | parametersOutput.tsv | Tabular | | |
| 271 +---------------------------+--------------------+-------------------+ | |
| 272 | |
| 273 | |
| 274 | |
| 275 ----------- | |
| 276 Input files | |
| 277 ----------- | |
| 278 | |
| 279 +---------------------------+------------+ | |
| 280 | Parameter : num + label | Format | | |
| 281 +===========================+============+ | |
| 282 | 1 : Choose your inputs | zip | | |
| 283 +---------------------------+------------+ | |
| 284 | |
| 285 **Choose your inputs** | |
| 286 | |
| 287 You have two methods for your inputs: | |
| 288 | |
| 289 | Zip file (recommended): You can put a zip file containing your inputs: myinputs.zip (containing all your conditions as sub-directories). | |
| 290 | library folder: You must specify the name of your "library" (folder) created within your space project (for example: /projet/externe/institut/login/galaxylibrary/yourlibrary). Your library must contain all your conditions as sub-directories. | |
| 291 | |
| 292 Steps for creating the zip file | |
| 293 ------------------------------- | |
| 294 | |
| 295 **Step1: Creating your directory and hierarchize the subdirectories** | |
| 296 | |
| 297 | |
| 298 VERY IMPORTANT: If you zip your files under Windows, you must use the 7Zip software (http://www.7-zip.org/), otherwise your zip will not be well unzipped on the platform W4M (zip corrupted bug). | |
| 299 | |
| 300 Your zip should contain all your conditions as sub-directories. For example, two conditions (mutant and wild): | |
| 301 arabidopsis/wild/01.raw | |
| 302 arabidopsis/mutant/01.raw | |
| 303 | |
| 304 **Step2: Creating a zip file** | |
| 305 | |
| 306 Create your zip file (e.g.: arabidopsis.zip). | |
| 307 | |
| 308 **Step 3 : Uploading it to our Galaxy server** | |
| 309 | |
| 310 If your zip file is less than 2Gb, you get use the Get Data tool to upload it. | |
| 311 | |
| 312 Otherwise if your zip file is larger than 2Gb, please refer to the HOWTO on workflow4metabolomics.org (http://application.sb-roscoff.fr/download/w4m/howto/galaxy_upload_up_2Go.pdf). | |
| 313 | |
| 314 For more informations, don't hesitate to send us an email at supportATworkflow4metabolomics.org). | |
| 315 | |
| 316 Advices for converting your files for the XCMS input | |
| 317 ---------------------------------------------------- | |
| 318 | |
| 319 We recommend you to convert your raw files to **mzXML** in centroid mode (smaller files) and the files will be compatible with the xmcs centWave method. | |
| 320 | |
| 321 **We recommend you the following parameters:** | |
| 322 | |
| 323 Use Filtering: **True** | |
| 324 | |
| 325 Use Peak Picking: **True** | |
| 326 | |
| 327 Peak Peaking -Apply to MS Levels: **All Levels (1-)** : Centroid Mode | |
| 328 | |
| 329 Use zlib: **64** | |
| 330 | |
| 331 Binary Encoding: **64** | |
| 332 | |
| 333 m/z Encoding: **64** | |
| 334 | |
| 335 Intensity Encoding: **64** | |
| 336 | |
| 337 | |
| 338 ---------- | |
| 339 Parameters | |
| 340 ---------- | |
| 341 | |
| 342 Extraction method for peaks detection | |
| 343 ------------------------------------- | |
| 344 | |
| 345 **Matched Filter** | |
| 346 | |
| 347 | One parameter to consider is the Gaussian model peak width used for matched filtration,an integral part of the peak detection algorithm. | |
| 348 | For a discussion of how model peak width affects the signal to noise ratio, see Danielsson et al. (2002). | |
| 349 | |
| 350 | |
| 351 **cent Wave** | |
| 352 | |
| 353 | This algorithm is most suitable for high resolution LC/{TOF,OrbiTrap,FTICR}-MS data in centroid mode. | |
| 354 | Due to the fact that peak centroids are used, a binning step is not necessary. | |
| 355 | The method is capable of detecting close-by-peaks and also overlapping peaks. Some efforts are made to detect the exact peak boundaries to get precise peak integrals. | |
| 356 | |
| 357 | |
| 358 ------------ | |
| 359 Output files | |
| 360 ------------ | |
| 361 | |
| 362 IPO_parameters4xcmsSet.tsv | |
| 363 | |
| 364 | Optimal parameters for xcmsSet | |
| 365 | |
| 366 | |
| 367 --------------------------------------------------- | |
| 368 | |
| 369 Changelog/News | |
| 370 -------------- | |
| 371 | |
| 372 | |
| 373 | |
| 374 ]]></help> | |
| 375 | |
| 376 <expand macro="citation" /> | |
| 377 </tool> |
