comparison ipo4xcmsSet.xml @ 3:9f1e18bc8ce3 draft

planemo upload commit ceb25d29a013b58d3476323f202276e7c876648a-dirty
author lecorguille
date Thu, 28 Jul 2016 11:03:04 -0400
parents
children 9fa5856f6184
comparison
equal deleted inserted replaced
2:27319c399f07 3:9f1e18bc8ce3
1 <tool id="ipo4xcmsSet" name="IPO for xcmsSet" version="2.0.8">
2
3 <description>Filtration and Peak Identification using xcmsSet function from xcms R package to preprocess LC/MS data for relative quantification and statistical analysis </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 @COMMAND_SCRIPT@
14
15 #if $inputs.input == "zip_file":
16 zipfile $inputs.zip_file
17 #elif $inputs.input == "single_file":
18 singlefile_galaxyPath $inputs.single_file singlefile_sampleName $inputs.single_file.name
19 #end if
20
21 parametersOutput $parametersOutput
22
23 samplebyclass $samplebyclass
24
25 ## profmethod $profmethod
26 nSlaves \${GALAXY_SLOTS:-1} method $methods.method
27 #if $methods.method == "centWave":
28 ppm $methods.ppm
29 min_peakwidth "c($methods.min_peakwidth)"
30 max_peakwidth "c($methods.max_peakwidth)"
31 #elif $methods.method == "matchedFilter":
32 step $methods.step
33 fwhm $methods.fwhm
34 #end if
35
36 @COMMAND_LOG_EXIT@ 2> /tmp/log.err
37 ]]></command>
38
39 <inputs>
40
41 <conditional name="inputs">
42 <param name="input" type="select" label="Choose your inputs method" >
43 <option value="zip_file" selected="true">Zip file from your history containing your chromatograms</option>
44 <option value="single_file">mzXML file from your history</option>
45 </param>
46 <when value="zip_file">
47 <param name="zip_file" type="data" format="no_unzip.zip,zip" label="Zip file" />
48 </when>
49 <when value="single_file">
50 <param name="single_file" type="data" format="mzxml" label="Single file" />
51 </when>
52 </conditional>
53
54 <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" />
55
56 <conditional name="methods">
57 <param name="method" type="select" label="Extraction method for peaks detection" help="[method] See the help section below">
58 <option value="centWave" >centWave</option>
59 <option value="matchedFilter" selected="true">matchedFilter</option>
60 </param>
61
62 <!-- centWave Filter options -->
63 <when value="centWave">
64 <param name="ppm" type="text" value="5,25" label="Max tolerated ppm m/z deviation in consecutive scans in ppm" help="[ppm]" optional="false" />
65 <param name="min_peakwidth" type="text" value="15,25" label="Min peak width range in seconds" help="[peakwidth]" optional="true" />
66 <param name="max_peakwidth" type="text" value="45,55" label="Max peak width range in seconds" help="[peakwidth]" optional="true" />
67 </when>
68
69 <!-- matched Filter options -->
70 <when value="matchedFilter">
71 <param name="step" type="float" value="0.01" label="Step size to use for profile generation" help="[step] The peak detection algorithm creates extracted ion base peak chromatograms (EIBPC) on a fixed step size" optional="true" />
72 <param name="fwhm" type="integer" value="30" label="Full width at half maximum of matched filtration gaussian model peak" help="[fwhm] Only used to calculate the actual sigma" optional="true" />
73 </when>
74 </conditional>
75
76
77 </inputs>
78
79 <outputs>
80 <data name="parametersOutput" format="tabular" label="IPO_parameters4xcmsSet.tsv" />
81 <data name="log" format="txt" label="ipo4xcmsSet.log.txt" />
82 </outputs>
83
84 <tests>
85 <test>
86 <param name="inputs|input" value="single_file" />
87 <param name="inputs|single_file" value="MM14.mzML" ftype="mzxml" />
88 <param name="methods|method" value="centWave" />
89 <param name="methods|ppm" value="56" />
90 <param name="methods|min_peakwidth" value="3,9.5" />
91 <param name="methods|max_peakwidth" value="10,20" />
92 <output name="parametersOutput" file="MM14_IPO_parameters4xcmsSet.tsv" />
93 </test>
94 <!--Failed:
95 Error in resultIncreased(history) :
96 No isotopes have been detected, peak picking not optimizable by IPO!-->
97 <!--<test>
98 <param name="inputs|input" value="zip_file" />
99 <param name="inputs|zip_file" value="sacuri_2files.zip" ftype="zip" />
100 <param name="samplebyclass" value="1" />
101 <param name="methods|method" value="centWave" />
102 <param name="methods|ppm" value="25" />
103 <param name="methods|min_peakwidth" value="20,30" />
104 <param name="methods|max_peakwidth" value="45,55" />
105 <output name="parametersOutput" file="sacuri_2files_centWave_IPO_parameters4xcmsSet.tsv" />
106 </test>-->
107 <!-- Too long for Travis CI -->
108 <!--<test>
109 <param name="inputs|input" value="zip_file" />
110 <param name="inputs|zip_file" value="sacuri_2files.zip" ftype="zip" />
111 <param name="samplebyclass" value="1" />
112 <param name="methods|method" value="matchedFilter" />
113 <param name="methods|step" value="0.01" />
114 <param name="methods|fwhm" value="4" />
115 <output name="parametersOutput" file="sacuri_2files_matchedFilter_IPO_parameters4xcmsSet.tsv" />
116 </test>-->
117 </tests>
118
119 <help><![CDATA[
120
121 @HELP_AUTHORS@
122
123 ===============
124 IPO.ipo4xcmsSet
125 ===============
126
127 -----------
128 Description
129 -----------
130
131 A Tool for automated Optimization of XCMS Parameters
132
133
134 -----------------
135 Workflow position
136 -----------------
137
138 **Upstream tools**
139
140 ========================= ================= ======= =========
141 Name output file format parameter
142 ========================= ================= ======= =========
143 NA NA zip NA
144 ========================= ================= ======= =========
145
146
147 **Downstream tools**
148
149 +---------------------------+----------------------+-----------------+
150 | Name | Output file | Format |
151 +===========================+======================+=================+
152 |xcms.xcmsSet | parametersOutput.tsv | Tabular |
153 +---------------------------+--------------------+-------------------+
154
155
156
157 -----------
158 Input files
159 -----------
160
161 +---------------------------+------------+
162 | Parameter : num + label | Format |
163 +===========================+============+
164 | 1 : Choose your inputs | zip |
165 +---------------------------+------------+
166
167 **Choose your inputs**
168
169 You have two methods for your inputs:
170
171 | Zip file (recommended): You can put a zip file containing your inputs: myinputs.zip (containing all your conditions as sub-directories).
172 | 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.
173
174 Steps for creating the zip file
175 -------------------------------
176
177 **Step1: Creating your directory and hierarchize the subdirectories**
178
179
180 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).
181
182 Your zip should contain all your conditions as sub-directories. For example, two conditions (mutant and wild):
183 arabidopsis/wild/01.raw
184 arabidopsis/mutant/01.raw
185
186 **Step2: Creating a zip file**
187
188 Create your zip file (e.g.: arabidopsis.zip).
189
190 **Step 3 : Uploading it to our Galaxy server**
191
192 If your zip file is less than 2Gb, you get use the Get Data tool to upload it.
193
194 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).
195
196 For more informations, don't hesitate to send us an email at supportATworkflow4metabolomics.org).
197
198 Advices for converting your files for the XCMS input
199 ----------------------------------------------------
200
201 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.
202
203 **We recommend you the following parameters:**
204
205 Use Filtering: **True**
206
207 Use Peak Picking: **True**
208
209 Peak Peaking -Apply to MS Levels: **All Levels (1-)** : Centroid Mode
210
211 Use zlib: **64**
212
213 Binary Encoding: **64**
214
215 m/z Encoding: **64**
216
217 Intensity Encoding: **64**
218
219
220 ----------
221 Parameters
222 ----------
223
224 Extraction method for peaks detection
225 -------------------------------------
226
227 **Matched Filter**
228
229 | One parameter to consider is the Gaussian model peak width used for matched filtration,an integral part of the peak detection algorithm.
230 | For a discussion of how model peak width affects the signal to noise ratio, see Danielsson et al. (2002).
231
232
233 **cent Wave**
234
235 | This algorithm is most suitable for high resolution LC/{TOF,OrbiTrap,FTICR}-MS data in centroid mode.
236 | Due to the fact that peak centroids are used, a binning step is not necessary.
237 | 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.
238
239
240 ------------
241 Output files
242 ------------
243
244 IPO_parameters4xcmsSet.tsv
245
246 | Optimal parameters for xcmsSet
247
248
249 ---------------------------------------------------
250
251 Changelog/News
252 --------------
253
254
255
256 ]]></help>
257
258 <expand macro="citation" />
259 </tool>