Mercurial > repos > iracooke > msconvert
comparison msconvert2.xml @ 0:d44fecaf27a2 draft
Uploaded
| author | iracooke |
|---|---|
| date | Tue, 18 Mar 2014 19:08:54 -0400 |
| parents | |
| children | 1fb81e9d0ab9 |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:d44fecaf27a2 |
|---|---|
| 1 <tool id="msconvert2" name="msconvert2" version="0.2.1"> | |
| 2 <!-- BEGIN_VERSION_DEFAULT --> | |
| 3 <description>Convert and filter a mass spec peak list</description> | |
| 4 <!-- END_VERSION_DEFAULT --> | |
| 5 <requirements> | |
| 6 <requirement type="package">proteowizard</requirement> | |
| 7 </requirements> | |
| 8 <command interpreter="python"> | |
| 9 #set $ext = $input.ext | |
| 10 #if $ext.startswith("m:") | |
| 11 #set $ext = $ext[len("m:"):] | |
| 12 #end if | |
| 13 msconvert_wrapper.py | |
| 14 --input=${input} | |
| 15 #if hasattr($input, 'display_name') | |
| 16 --input_name='${input.display_name}' | |
| 17 #end if | |
| 18 --output=${output} | |
| 19 ## BEGIN_VERSION_DEFAULT | |
| 20 --fromextension=$ext | |
| 21 ## END_VERSION_DEFAULT | |
| 22 | |
| 23 | |
| 24 --toextension=${output_type} | |
| 25 | |
| 26 #if $settings.settingsType == "full" | |
| 27 --binaryencoding=${settings.binary_encoding} | |
| 28 --mzencoding=${settings.mz_encoding} | |
| 29 --intensityencoding=${settings.intensity_encoding} | |
| 30 --zlib=${settings.zlib} | |
| 31 #end if | |
| 32 | |
| 33 #if $filtering.filtering_use | |
| 34 | |
| 35 #if $filtering.precursor_recalculation.value | |
| 36 --filter "precursorRecalculation" | |
| 37 #end if | |
| 38 | |
| 39 #if $filtering.peak_picking.pick_peaks | |
| 40 --filter "peakPicking $filtering.peak_picking.prefer_vendor_peaks $filtering.peak_picking.ms_levels" | |
| 41 #end if | |
| 42 | |
| 43 #if str($filtering.activation) != "false" | |
| 44 --filter "activation $filtering.activation" | |
| 45 #end if | |
| 46 | |
| 47 #if len($filtering.indices) > 0 | |
| 48 --filter "index | |
| 49 #for $index in $filtering.indices | |
| 50 [${index.from},${index.to}] | |
| 51 #end for | |
| 52 " | |
| 53 #end if | |
| 54 | |
| 55 #if len($filtering.scan_numbers) > 0 | |
| 56 --filter "scanNumber | |
| 57 #for $scan_number in $filtering.scan_numbers | |
| 58 [${scan_number.from},${scan_number.to}] | |
| 59 #end for | |
| 60 " | |
| 61 #end if | |
| 62 | |
| 63 #for threshold_entry in $filtering.threshold_repeat | |
| 64 --filter "threshold $threshold_entry.threshold.threshold_type $threshold_entry.threshold.value $threshold_entry.orientation" | |
| 65 #end for | |
| 66 | |
| 67 | |
| 68 #if $filtering.strip_it.value | |
| 69 --filter "stripIT" | |
| 70 #end if | |
| 71 | |
| 72 #if $filtering.filter_mz_windows.do_filter | |
| 73 --filter "mzWindow [$filtering.filter_mz_windows.from,$filtering.filter_mz_windows.to]" | |
| 74 #end if | |
| 75 | |
| 76 | |
| 77 #if $filtering.filter_ms_levels.do_filter | |
| 78 --filter "msLevel [$filtering.filter_ms_levels.from, $filtering.filter_ms_levels.to]" | |
| 79 #end if | |
| 80 | |
| 81 #if str($filtering.etd_filtering.do_etd_filtering) == "default" | |
| 82 --filter "ETDFilter" | |
| 83 #end if | |
| 84 | |
| 85 #if str($filtering.etd_filtering.do_etd_filtering) == "advanced" | |
| 86 --filter "ETDFilter removePrecursor:$filtering.etd_filtering.remove_precursor removeChargeReduced:$filtering.etd_filtering.remove_charge_reduced removeNeutralLoss:$filtering.etd_filtering.remove_neutral_loss blanketRemoval:$filtering.etd_filtering.blanket_removal MatchingTolerance:$filtering.etd_filtering.matching_tolerance $filtering.etd_filtering.matching_tolerance_units" | |
| 87 #end if | |
| 88 | |
| 89 | |
| 90 #end if | |
| 91 | |
| 92 </command> | |
| 93 | |
| 94 <inputs> | |
| 95 | |
| 96 <!-- BEGIN_VERSION_DEFAULT --> | |
| 97 <conditional name="type"> | |
| 98 <param name="input_type" type="select" label="Input Type"> | |
| 99 <option value="mzml">mzML</option> | |
| 100 <option value="mzxml">mzXML</option> | |
| 101 <option value="mgf">mgf</option> | |
| 102 <option value="ms2">ms2</option> | |
| 103 </param> | |
| 104 <when value="mzml"> | |
| 105 <param format="mzml" name="input" type="data" label="Input mzML"/> | |
| 106 </when> | |
| 107 <when value="mzxml"> | |
| 108 <param format="mzxml" name="input" type="data" label="Input mzXML"/> | |
| 109 </when> | |
| 110 <when value="mgf"> | |
| 111 <param format="mgf" name="input" type="data" label="Input mgf"/> | |
| 112 </when> | |
| 113 <when value="ms2"> | |
| 114 <param format="ms2" name="input" type="data" label="Input ms2"/> | |
| 115 </when> | |
| 116 </conditional> | |
| 117 <!-- END_VERSION_DEFAULT --> | |
| 118 <param name="output_type" type="select" label="Output Type"> | |
| 119 <option value="mzML">mzML (indexed)</option> | |
| 120 <option value="unindexed_mzML">mzML (unindexed)</option> | |
| 121 <option value="mzXML">mzXML (indexed)</option> | |
| 122 <option value="unindexed_mzXML">mzXML (unindexed)</option> | |
| 123 <option value="mgf">mgf</option> | |
| 124 <option value="ms2">ms2</option> | |
| 125 </param> | |
| 126 <conditional name="filtering"> | |
| 127 <param name="filtering_use" type="boolean" label="Use Filtering?" help="" truevalue="true" falsevalue="false" /> | |
| 128 <when value="false" /> | |
| 129 <when value="true"> | |
| 130 <param type="boolean" name="precursor_recalculation" label="Recalculate Precursor?" /> | |
| 131 | |
| 132 | |
| 133 <conditional name="peak_picking"> | |
| 134 <param type="boolean" name="pick_peaks" label="Use Peak Picking?" truevalue="true" falsevalue="false" /> | |
| 135 <when value="false" /> | |
| 136 <when value="true"> | |
| 137 <param name="ms_levels" type="select" label="Peak Peaking - Apply to MS Levels"> | |
| 138 <option value="1">MS1 Only (1)</option> | |
| 139 <option value="2">MS2 Only (2)</option> | |
| 140 <option value="2-">MS2 and on (2-)</option> | |
| 141 <option value="1-">All Levels (1-)</option> | |
| 142 </param> | |
| 143 <param type="boolean" name="prefer_vendor_peaks" label="Peak Picking - Prefer Vendor Peaks?" truevalue="true" falsevalue="false" checked="true"/> | |
| 144 </when> | |
| 145 </conditional> | |
| 146 | |
| 147 <repeat name="threshold_repeat" title="Filter by Threshold"> | |
| 148 <conditional name="threshold"> | |
| 149 <param type="select" label="Specify threshold on" name="threshold_type" help=""> | |
| 150 <option value="count">Peak count</option> | |
| 151 <option value="count-after-ties">Peak count (after ties)</option> | |
| 152 <option value="absolute">Peak absolute intensity</option><!-- TODO: absolute what? m/z --> | |
| 153 <option value="bpi-relative">Percent of base peak intensity</option> | |
| 154 <option value="tic-relative">Percent of total ion current</option> | |
| 155 <option value="tic-fraction">Aggregate percent of total ion current</option> | |
| 156 </param> | |
| 157 <when value="count"> | |
| 158 <param type="integer" name="value" label="Number of peaks to keep" value="100" /> | |
| 159 </when> | |
| 160 <when value="count-after-ties"> | |
| 161 <param type="integer" name="value" label="Number of peaks to keep (after ties)" value="100" /> | |
| 162 </when> | |
| 163 <when value="absolute"> | |
| 164 <param type="float" name="value" label="Absolute intensity cut-off" value="100.0" /> | |
| 165 </when> | |
| 166 <when value="bpi-relative"> | |
| 167 <param type="float" name="value" label="Keep peaks above (or below) this fraction of base peak intensity" value="0.2" | |
| 168 /> | |
| 169 </when> | |
| 170 <when value="tic-relative"> | |
| 171 <param type="float" name="value" label="Keep peaks above (or below) this fraction of total ion current" value="0.2" | |
| 172 /> | |
| 173 </when> | |
| 174 <when value="tic-fraction"> | |
| 175 <param type="float" name="value" label="Keep peaks until this fraction of total ion current is accounted for" value="0.8" /> | |
| 176 </when> | |
| 177 </conditional> | |
| 178 <param type="select" label="Keep" name="orientation"> | |
| 179 <option value="most-intense">Most intense peaks</option> | |
| 180 <option value="least-intense">Least intense peaks</option> | |
| 181 </param> | |
| 182 </repeat> | |
| 183 | |
| 184 | |
| 185 <param name="activation" type="select" label="Filter by Activation"> | |
| 186 <option value="false" selected="true">no</option> | |
| 187 <option value="ETD">ETD</option> | |
| 188 <option value="CID">CID</option> | |
| 189 <option value="SA">SA</option> | |
| 190 <option value="HCD">HCD</option> | |
| 191 </param> | |
| 192 | |
| 193 <repeat name="indices" title="Filter Scan Indices"> | |
| 194 <param name="from" type="integer" label="Filter Scan Index From" value="0" optional="false" /> | |
| 195 <param name="to" type="integer" label="Filter Scan Index To" value="0" optional="true" /> | |
| 196 </repeat> | |
| 197 | |
| 198 <repeat name="scan_numbers" title="Filter Scan Numbers"> | |
| 199 <param name="from" type="integer" label="Filter Scan Number From" value="0" optional="false" /> | |
| 200 <param name="to" type="integer" label="Filter Scan Number To" value="0" optional="true" /> | |
| 201 </repeat> | |
| 202 | |
| 203 <conditional name="filter_mz_windows"> | |
| 204 <param name="do_filter" type="boolean" truevalue="true" falsevalue="false" label="Filter m/z Window" help="" /> | |
| 205 <when value="false" /> | |
| 206 <when value="true"> | |
| 207 <param name="from" type="float" label="Filter m/z From" value="0.0" optional="false" /> | |
| 208 <param name="to" type="float" label="Filter m/z To" value="0.0" optional="true" /> | |
| 209 </when> | |
| 210 </conditional> | |
| 211 | |
| 212 <param type="boolean" name="strip_it" label="Strip Ion Trap MS1 Scans" /> | |
| 213 | |
| 214 <conditional name="filter_ms_levels"> | |
| 215 <param name="do_filter" type="boolean" label="Filter MS Levels" /> | |
| 216 <when value="false" /> | |
| 217 <when value="true"> | |
| 218 <param name="from" type="integer" label="Filter MS Level From" value="0" optional="false" /> | |
| 219 <param name="to" type="integer" label="Filter MS Level To" value="0" optional="true" /> | |
| 220 </when> | |
| 221 </conditional> | |
| 222 | |
| 223 <conditional name="etd_filtering"> | |
| 224 <param name="do_etd_filtering" type="select" label="ETD Filtering"> | |
| 225 <option value="none" selected="true">none</option> | |
| 226 <option value="default">yes (with default options)</option> | |
| 227 <option value="advanced">yes (show advanced options) </option> | |
| 228 </param> | |
| 229 <when value="none" /> | |
| 230 <when value="default" /> | |
| 231 <when value="advanced"> | |
| 232 <param name="matching_tolerance" type="float" label="ETD Matching Tolernace" value="3.1"> | |
| 233 </param> | |
| 234 <param name="matching_tolerance_units" type="select" label="Units for ETD Matching Tolerance"> | |
| 235 <option value="MZ" selected="true">mz</option> | |
| 236 <option value="PPM">ppm</option> | |
| 237 </param> | |
| 238 <param name="remove_precursor" type="select" label="ETD Remove Precursor"> | |
| 239 <option value="true" selected="true">yes</option> | |
| 240 <option value="false">no</option> | |
| 241 </param> | |
| 242 <param name="remove_charge_reduced" type="select" label="ETD Remove Charge Reduced"> | |
| 243 <option value="true" selected="true">yes</option> | |
| 244 <option value="false">no</option> | |
| 245 </param> | |
| 246 <param name="remove_neutral_loss" type="select" label="ETD Remove Neutral Loss"> | |
| 247 <option value="true" selected="true">yes</option> | |
| 248 <option value="false">no</option> | |
| 249 </param> | |
| 250 <param name="blanket_removal" type="select" label="ETD Blanket Removal"> | |
| 251 <option value="true" selected="true">yes</option> | |
| 252 <option value="false">no</option> | |
| 253 </param> | |
| 254 </when> | |
| 255 </conditional> | |
| 256 | |
| 257 | |
| 258 </when> | |
| 259 </conditional> | |
| 260 | |
| 261 <conditional name="settings"> | |
| 262 <param name="settingsType" type="select" label="Advanced Settings" help=""> | |
| 263 <option value="default">Use Defaults</option> | |
| 264 <option value="full">Full Parameter List</option> | |
| 265 </param> | |
| 266 <when value="default" /> | |
| 267 <when value="full"> | |
| 268 <param type="select" name="binary_encoding" label="Binary Encoding Precision"> | |
| 269 <option value="64" selected="true">64</option> | |
| 270 <option value="32">32</option> | |
| 271 </param> | |
| 272 <param type="select" name="mz_encoding" label="m/z Encoding Precision"> | |
| 273 <option value="64" selected="true">64</option> | |
| 274 <option value="32">32</option> | |
| 275 </param> | |
| 276 <param type="select" name="intensity_encoding" label="Intensity Encoding Precision" value="32"> | |
| 277 <option value="64">64</option> | |
| 278 <option value="32" selected="true">32</option> | |
| 279 </param> | |
| 280 <param type="boolean" name="zlib" label="Use zlib"> | |
| 281 </param> | |
| 282 </when> | |
| 283 </conditional> | |
| 284 | |
| 285 | |
| 286 </inputs> | |
| 287 <outputs> | |
| 288 <data format="mzml" name="output"> | |
| 289 <change_format> | |
| 290 <when input="output_type" value="mzXML" format="mzxml" /> | |
| 291 <when input="output_type" value="unindexed_mzXML" format="mzxml" /> | |
| 292 <when input="output_type" value="ms2" format="ms2" /> | |
| 293 <when input="output_type" value="mgf" format="mgf" /> | |
| 294 </change_format> | |
| 295 </data> | |
| 296 </outputs> | |
| 297 <help> | |
| 298 **What it does** | |
| 299 | |
| 300 Converts between various mass spectrometry peak list representations. Additional options such as filtering and/or precursor recalculation are available. | |
| 301 | |
| 302 You can view the original documentation here_. | |
| 303 | |
| 304 .. _here: http://proteowizard.sourceforge.net/tools/msconvert.html | |
| 305 | |
| 306 ------ | |
| 307 | |
| 308 **Citation** | |
| 309 | |
| 310 For the underlying tool, please cite `ProteoWizard: Open Source Software for Rapid Proteomics Tools Development. Darren Kessner; Matt Chambers; Robert Burke; David Agus; Parag Mallick. Bioinformatics 2008; doi: 10.1093/bioinformatics/btn323.` | |
| 311 | |
| 312 If you use this tool in Galaxy, please cite Chilton J, et al. https://bitbucket.org/galaxyp/galaxyp-toolshed-msconvert | |
| 313 | |
| 314 </help> | |
| 315 </tool> |
