Mercurial > repos > lecorguille > xcms_fillpeaks
comparison macros_xcms.xml @ 34:d8bac1291473 draft
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit f01148783819c37e474790dbd56619862960448a
| author | lecorguille |
|---|---|
| date | Tue, 03 Apr 2018 11:40:32 -0400 |
| parents | |
| children | a3e80894efd3 |
comparison
equal
deleted
inserted
replaced
| 33:ea611367e1da | 34:d8bac1291473 |
|---|---|
| 1 <?xml version="1.0"?> | |
| 2 <macros> | |
| 3 | |
| 4 <token name="@WRAPPER_VERSION@">3.0.0</token> | |
| 5 <xml name="requirements"> | |
| 6 <requirements> | |
| 7 <requirement type="package" version="@WRAPPER_VERSION@">bioconductor-xcms</requirement> | |
| 8 <requirement type="package" version="1.1_4">r-batch</requirement> | |
| 9 <requirement type="package" version="1.1_2">r-rcolorbrewer</requirement> | |
| 10 <requirement type="package" version="6.0">unzip</requirement> | |
| 11 <yield /> | |
| 12 </requirements> | |
| 13 </xml> | |
| 14 | |
| 15 <!-- FILE_LOAD for planemo test --> | |
| 16 <token name="@COMMAND_FILE_LOAD@"> | |
| 17 #if $file_load_section.file_load_conditional.file_load_select == "yes": | |
| 18 #if $file_load_section.file_load_conditional.input[0].is_of_type("mzxml") or $file_load_section.file_load_conditional.input[0].is_of_type("mzml") or $file_load_section.file_load_conditional.input[0].is_of_type("mzdata") or $file_load_section.file_load_conditional.input[0].is_of_type("netcdf"): | |
| 19 #set singlefile_galaxyPath = '|'.join( [ str( $single_file ) for $single_file in $file_load_section.file_load_conditional.input ] ) | |
| 20 #set singlefile_sampleName = '|'.join( [ str( $single_file.name ) for $single_file in $file_load_section.file_load_conditional.input ] ) | |
| 21 | |
| 22 singlefile_galaxyPath '$singlefile_galaxyPath' singlefile_sampleName '$singlefile_sampleName' | |
| 23 #else | |
| 24 zipfile '$file_load_section.file_load_conditional.input' | |
| 25 #end if | |
| 26 #end if | |
| 27 </token> | |
| 28 | |
| 29 <xml name="input_file_load"> | |
| 30 <section name="file_load_section" title="Resubmit your raw dataset or your zip file"> | |
| 31 <conditional name="file_load_conditional"> | |
| 32 <param name="file_load_select" type="select" label="Resubmit your dataset or your zip file" help="Use only if you get a message which say that your original dataset or zip file have been deleted on the server." > | |
| 33 <option value="no" >no need</option> | |
| 34 <option value="yes" >yes</option> | |
| 35 </param> | |
| 36 <when value="no"> | |
| 37 </when> | |
| 38 <when value="yes"> | |
| 39 <param name="input" type="data" format="mzxml,mzml,mzdata,netcdf,no_unzip.zip,zip" multiple="true" label="File(s) from your history containing your chromatograms" help="Single file mode for the format: mzxml, mzml, mzdata and netcdf. Zip file mode for the format: no_unzip.zip, zip. See the help section below." /> | |
| 40 </when> | |
| 41 </conditional> | |
| 42 </section> | |
| 43 </xml> | |
| 44 | |
| 45 <xml name="test_file_load_zip"> | |
| 46 <section name="file_load_section"> | |
| 47 <conditional name="file_load_conditional"> | |
| 48 <param name="file_load_select" value="yes" /> | |
| 49 <param name="input" value="faahKO_reduce.zip" ftype="zip" /> | |
| 50 </conditional> | |
| 51 </section> | |
| 52 </xml> | |
| 53 | |
| 54 <xml name="test_file_load_zip_sacuri"> | |
| 55 <section name="file_load_section"> | |
| 56 <conditional name="file_load_conditional"> | |
| 57 <param name="file_load_select" value="yes" /> | |
| 58 <param name="input" value="sacuri_dir_root.zip" ftype="zip" /> | |
| 59 </conditional> | |
| 60 </section> | |
| 61 </xml> | |
| 62 | |
| 63 <xml name="test_file_load_single"> | |
| 64 <section name="file_load_section"> | |
| 65 <conditional name="file_load_conditional"> | |
| 66 <param name="file_load_select" value="yes" /> | |
| 67 <param name="input" value="wt15.CDF,ko16.CDF,ko15.CDF,wt16.CDF" ftype="netcdf" /> | |
| 68 </conditional> | |
| 69 </section> | |
| 70 </xml> | |
| 71 | |
| 72 <xml name="test_file_load_single_ko15"> | |
| 73 <section name="file_load_section"> | |
| 74 <conditional name="file_load_conditional"> | |
| 75 <param name="file_load_select" value="yes" /> | |
| 76 <param name="input" value="ko15.CDF" ftype="netcdf" /> | |
| 77 </conditional> | |
| 78 </section> | |
| 79 </xml> | |
| 80 | |
| 81 <!-- PEAKLIST --> | |
| 82 <token name="@COMMAND_PEAKLIST@"> | |
| 83 #if $peaklist.peaklistBool | |
| 84 convertRTMinute $peaklist.convertRTMinute | |
| 85 numDigitsMZ $peaklist.numDigitsMZ | |
| 86 numDigitsRT $peaklist.numDigitsRT | |
| 87 intval $peaklist.intval | |
| 88 #end if | |
| 89 </token> | |
| 90 | |
| 91 <xml name="input_peaklist"> | |
| 92 <conditional name="peaklist"> | |
| 93 <param name="peaklistBool" type="boolean" label="Get a Peak List" /> | |
| 94 <when value="true"> | |
| 95 <param name="convertRTMinute" type="boolean" checked="false" truevalue="TRUE" falsevalue="FALSE" label="Convert retention time (seconds) into minutes" help="Convert the columns rtmed, rtmin and rtmax into minutes"/> | |
| 96 <param name="numDigitsMZ" type="integer" value="4" label="Number of decimal places for mass values reported in ions' identifiers." help="A minimum of 4 decimal places is recommended. Useful to avoid duplicates within identifiers" /> | |
| 97 <param name="numDigitsRT" type="integer" value="0" label="Number of decimal places for retention time values reported in ions' identifiers." help="Useful to avoid duplicates within identifiers" /> | |
| 98 <param name="intval" type="select" label="Reported intensity values" help="[intval] See the help section below"> | |
| 99 <option value="into" selected="true">into</option> | |
| 100 <option value="maxo">maxo</option> | |
| 101 <option value="intb">intb</option> | |
| 102 </param> | |
| 103 </when> | |
| 104 <when value="false" /> | |
| 105 </conditional> | |
| 106 </xml> | |
| 107 | |
| 108 <xml name="output_peaklist" token_function=""> | |
| 109 <data name="variableMetadata" format="tabular" label="${image.name[:-6]}.@FUNCTION@.variableMetadata.tsv" from_work_dir="variableMetadata.tsv" > | |
| 110 <filter>(peaklist['peaklistBool'])</filter> | |
| 111 </data> | |
| 112 <data name="dataMatrix" format="tabular" label="${image.name[:-6]}.@FUNCTION@.dataMatrix.tsv" from_work_dir="dataMatrix.tsv" > | |
| 113 <filter>(peaklist['peaklistBool'])</filter> | |
| 114 </data> | |
| 115 </xml> | |
| 116 | |
| 117 <token name="@HELP_PEAKLIST@"> | |
| 118 | |
| 119 Get a Peak List | |
| 120 --------------- | |
| 121 | |
| 122 If 'true', the module generates two additional files corresponding to the peak list: | |
| 123 - the variable metadata file (corresponding to information about extracted ions such as mass or retention time) | |
| 124 - the data matrix (corresponding to related intensities) | |
| 125 | |
| 126 **decimal places for [mass or retention time] values in identifiers** | |
| 127 | |
| 128 | Ions' identifiers are constructed as MxxxTyyy where 'xxx' is the ion median mass and 'yyy' the ion median retention time. | |
| 129 | Two parameters are used to adjust the number of decimal places wanted in identifiers for mass and retention time respectively. | |
| 130 | Theses parameters do not affect decimal places in columns other than the identifier one. | |
| 131 | |
| 132 **Reported intensity values** | |
| 133 | |
| 134 | This parameter determines which values should be reported as intensities in the dataMatrix table; it correspond to xcms 'intval' parameter: | |
| 135 | - into: integrated area of original (raw) peak | |
| 136 | - maxo: maximum intensity of original (raw) peak | |
| 137 | - intb: baseline corrected integrated peak area (only available if peak detection was done by ‘findPeaks.centWave’) | |
| 138 | |
| 139 </token> | |
| 140 | |
| 141 <token name="@HELP_PEAKLIST_OUTPUT@"> | |
| 142 xset.variableMetadata.tsv : tabular format | |
| 143 | |
| 144 | Table containing information about ions; can be used as one input of **Quality_Metrics** or **Generic_filter** modules. | |
| 145 | |
| 146 xset.dataMatrix.tsv : tabular format | |
| 147 | |
| 148 | Table containing ions' intensities; can be used as one input of **Quality_Metrics** or **Generic_filter** modules. | |
| 149 </token> | |
| 150 | |
| 151 <!-- CENTWAVE --> | |
| 152 <token name="@COMMAND_CENTWAVE@"> | |
| 153 ppm $methods.ppm | |
| 154 peakwidth "c($methods.peakwidth)" | |
| 155 | |
| 156 ## Advanced | |
| 157 snthresh $methods.CentWaveAdv.snthresh | |
| 158 prefilter "c($methods.CentWaveAdv.prefilter)" | |
| 159 mzCenterFun $methods.CentWaveAdv.mzCenterFun | |
| 160 integrate $methods.CentWaveAdv.integrate | |
| 161 mzdiff $methods.CentWaveAdv.mzdiff | |
| 162 fitgauss $methods.CentWaveAdv.fitgauss | |
| 163 noise $methods.CentWaveAdv.noise | |
| 164 verboseColumns $methods.CentWaveAdv.verboseColumns | |
| 165 </token> | |
| 166 | |
| 167 <xml name="input_centwave"> | |
| 168 <param argument="ppm" type="integer" value="25" label="Max tolerated ppm m/z deviation in consecutive scans in ppm" help="for the initial ROI definition." /> | |
| 169 <param argument="peakwidth" type="text" value="20,50" label="Min,Max peak width in seconds" help="with the expected approximate peak width in chromatographic space."> | |
| 170 <expand macro="input_validator_range_float"/> | |
| 171 </param> | |
| 172 </xml> | |
| 173 | |
| 174 <xml name="input_centwaveAdv"> | |
| 175 <param argument="snthresh" type="integer" value="10" label="Signal to Noise ratio cutoff" /> | |
| 176 <param argument="prefilter" type="text" value="3,100" label="Prefilter step for for the first analysis step (ROI detection)" help="Separate by coma k, I. Mass traces are only retained if they contain at least ‘k‘ peaks with intensity ‘>= I‘."> | |
| 177 <expand macro="input_validator_range_integer"/> | |
| 178 </param> | |
| 179 <param argument="mzCenterFun" type="select" label="Name of the function to calculate the m/z center of the chromatographic peak" > | |
| 180 <option value="wMean">intensity weighted mean of the peak's m/z values</option> | |
| 181 <option value="mean">mean of the peak's m/z values</option> | |
| 182 <option value="apex">use the m/z value at the peak apex</option> | |
| 183 <option value="wMeanApex3">ntensity weighted mean of the m/z value at the peak apex and the m/z values left and right of it</option> | |
| 184 <option value="meanApex3">mean of the m/z value of the peak apex and the m/z values left and right of it</option> | |
| 185 </param> | |
| 186 <param argument="integrate" type="select" label="Integration method" > | |
| 187 <option value="1">peak limits are found through descent on the mexican hat filtered data (more robust, but less exact)</option> | |
| 188 <option value="2">peak limits based on real data (more accurate but prone to noise)</option> | |
| 189 </param> | |
| 190 <param argument="mzdiff" type="float" value="-0.001" label="Minimum difference in m/z for peaks with overlapping retention times" help="can be negative to allow overlap" /> | |
| 191 <param argument="fitgauss" type="boolean" checked="false" truevalue="TRUE" falsevalue="FALSE" label="fitgauss" help="whether or not a Gaussian should be fitted to each peak" /> | |
| 192 <param argument="noise" type="integer" value="0" label="Noise filter" help="allowing to set a minimum intensity required for centroids to be considered in the first analysis step (centroids with intensity lower than ‘noise’ are omitted from ROI detection)." /> | |
| 193 <param argument="verboseColumns" type="boolean" checked="false" truevalue="TRUE" falsevalue="FALSE" label="verbose Columns" help="whether additional peak meta data columns should be returned" /> | |
| 194 </xml> | |
| 195 | |
| 196 <token name="@COMMAND_CENTWAVEADVROI@"> | |
| 197 #if $sectionROI.roiList: | |
| 198 roiList '$sectionROI.roiList' | |
| 199 firstBaselineCheck $sectionROI.firstBaselineCheck | |
| 200 #if $sectionROI.roiScales != "": | |
| 201 roiScales "c($sectionROI.roiScales)" | |
| 202 #end if | |
| 203 #end if | |
| 204 </token> | |
| 205 | |
| 206 <xml name="input_centwaveAdvROI" token_optional="true"> | |
| 207 <param argument="roiList" type="data" format="tabular" optional="@OPTIONAL@" label="List of regions-of-interest (ROI) representing detected mass traces" help="If ROIs are submitted the first analysis step is omitted and chromatographic peak detection is performed on the submitted ROIs. Each ROI is expected to have the following elements specified: ‘scmin’ (start scan index), ‘scmax’ (end scan index), ‘mzmin’ (minimum m/z), ‘mzmax’ (maximum m/z), ‘length’ (number of scans), ‘intensity’ (summed intensity)." /> | |
| 208 <param argument="firstBaselineCheck" type="boolean" checked="true" truevalue="TRUE" falsevalue="FALSE" label="Is continuous data within regions of interest is checked to be above the first baseline." /> | |
| 209 <param argument="roiScales" type="text" value="" optional="true" label="Numeric vector defining the scale for each region of interest in ‘roiList’" help="Length equal to ‘roiList’ - Should be used for the centWave-wavelets (format 0.9,1,0.2)"> | |
| 210 <expand macro="input_validator_range_float"/> | |
| 211 </param> | |
| 212 </xml> | |
| 213 | |
| 214 <!-- MISC --> | |
| 215 <token name="@HELP_AUTHORS@"> | |
| 216 .. class:: infomark | |
| 217 | |
| 218 **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 | |
| 219 | |
| 220 @HELP_AUTHORS_WRAPPERS@ | |
| 221 | |
| 222 --------------------------------------------------- | |
| 223 | |
| 224 </token> | |
| 225 | |
| 226 <token name="@HELP_XCMS_MANUAL@"> | |
| 227 | |
| 228 For details and explanations for all the parameters and the workflow of xcms_ package, see its manual_ and this example_ | |
| 229 | |
| 230 .. _xcms: https://bioconductor.org/packages/release/bioc/html/xcms.html | |
| 231 .. _manual: http://www.bioconductor.org/packages/release/bioc/manuals/xcms/man/xcms.pdf | |
| 232 .. _example: https://bioconductor.org/packages/release/bioc/vignettes/xcms/inst/doc/xcms.html | |
| 233 | |
| 234 </token> | |
| 235 | |
| 236 <xml name="citation"> | |
| 237 <citations> | |
| 238 <citation type="doi">10.1021/ac051437y</citation> | |
| 239 <expand macro="citation_w4m"/> | |
| 240 </citations> | |
| 241 </xml> | |
| 242 </macros> |
