comparison macros.xml @ 34:9714270678a7 draft

planemo upload for repository https://github.com/workflow4metabolomics/xcms commit f01148783819c37e474790dbd56619862960448a
author lecorguille
date Tue, 03 Apr 2018 11:39:48 -0400
parents 69b5a006fca1
children 67ee46ce9781
comparison
equal deleted inserted replaced
33:69b5a006fca1 34:9714270678a7
1 <?xml version="1.0"?> 1 <?xml version="1.0"?>
2 <macros> 2 <macros>
3 <token name="@WRAPPER_VERSION@">3.0.0</token>
4 <xml name="requirements">
5 <requirements>
6 <requirement type="package" version="@WRAPPER_VERSION@">bioconductor-xcms</requirement>
7 <requirement type="package" version="1.1_4">r-batch</requirement>
8 <requirement type="package" version="1.1_2">r-rcolorbrewer</requirement>
9 <requirement type="package" version="6.0">unzip</requirement>
10 <yield />
11 </requirements>
12 </xml>
13 <xml name="stdio"> 3 <xml name="stdio">
14 <stdio> 4 <stdio>
15 <exit_code range="1" level="fatal" /> 5 <exit_code range="1" level="fatal" />
16 </stdio> 6 </stdio>
17 </xml> 7 </xml>
18 8
19 <token name="@COMMAND_XCMS_SCRIPT@">LC_ALL=C Rscript $__tool_directory__/</token> 9 <!-- COMMAND -->
10 <token name="@COMMAND_RSCRIPT@">LC_ALL=C Rscript $__tool_directory__/</token>
20 11
21 <token name="@COMMAND_LOG_EXIT@"> 12 <token name="@COMMAND_LOG_EXIT@">
22 ; 13 ;
23 return=\$?; 14 return=\$?;
24 cat 'log.txt'; 15 cat 'log.txt';
25 sh -c "exit \$return" 16 sh -c "exit \$return"
26 </token> 17 </token>
27 18
19 <!-- INPUT_VALIDATORS -->
28 <xml name="input_validator_range_integer"> 20 <xml name="input_validator_range_integer">
29 <validator type="regex" message="The format is 'min,max'" >[0-9]+ *, *[0-9]+</validator> 21 <validator type="regex" message="The format is 'min,max'" >[0-9]+ *, *[0-9]+</validator>
30 </xml> 22 </xml>
31 23
32 <xml name="input_validator_range_float"> 24 <xml name="input_validator_range_float">
35 27
36 <xml name="input_validator_list_integer"> 28 <xml name="input_validator_list_integer">
37 <validator type="regex" message="The format is '1,2,4,6'" >[0-9, ]+</validator> 29 <validator type="regex" message="The format is '1,2,4,6'" >[0-9, ]+</validator>
38 </xml> 30 </xml>
39 31
32
40 <token name="@INPUT_IMAGE_LABEL@">RData file</token> 33 <token name="@INPUT_IMAGE_LABEL@">RData file</token>
41 <token name="@INPUT_IMAGE_HELP@">It contain a xcms3::XCMSnExp object (named xdata)</token> 34 <token name="@INPUT_IMAGE_HELP@">It contain a xcms3::XCMSnExp object (named xdata)</token>
42 35
43 <!-- zipfile load for planemo test -->
44 36
45 <token name="@COMMAND_FILE_LOAD@"> 37 <!-- MISC -->
46 #if $file_load_section.file_load_conditional.file_load_select == "yes": 38 <token name="@HELP_AUTHORS_WRAPPERS@">
47 #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"):
48 #set singlefile_galaxyPath = '|'.join( [ str( $single_file ) for $single_file in $file_load_section.file_load_conditional.input ] )
49 #set singlefile_sampleName = '|'.join( [ str( $single_file.name ) for $single_file in $file_load_section.file_load_conditional.input ] )
50
51 singlefile_galaxyPath '$singlefile_galaxyPath' singlefile_sampleName '$singlefile_sampleName'
52 #else
53 zipfile '$file_load_section.file_load_conditional.input'
54 #end if
55 #end if
56 </token>
57
58 <xml name="input_file_load">
59 <section name="file_load_section" title="Resubmit your raw dataset or your zip file">
60 <conditional name="file_load_conditional">
61 <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." >
62 <option value="no" >no need</option>
63 <option value="yes" >yes</option>
64 </param>
65 <when value="no">
66 </when>
67 <when value="yes">
68 <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." />
69 </when>
70 </conditional>
71 </section>
72 </xml>
73
74 <xml name="test_file_load_zip">
75 <section name="file_load_section">
76 <conditional name="file_load_conditional">
77 <param name="file_load_select" value="yes" />
78 <param name="input" value="faahKO_reduce.zip" ftype="zip" />
79 </conditional>
80 </section>
81 </xml>
82
83 <xml name="test_file_load_zip_sacuri">
84 <section name="file_load_section">
85 <conditional name="file_load_conditional">
86 <param name="file_load_select" value="yes" />
87 <param name="input" value="sacuri_dir_root.zip" ftype="zip" />
88 </conditional>
89 </section>
90 </xml>
91
92 <xml name="test_file_load_single">
93 <section name="file_load_section">
94 <conditional name="file_load_conditional">
95 <param name="file_load_select" value="yes" />
96 <param name="input" value="wt15.CDF,ko16.CDF,ko15.CDF,wt16.CDF" ftype="netcdf" />
97 </conditional>
98 </section>
99 </xml>
100
101 <token name="@COMMAND_PEAKLIST@">
102 #if $peaklist.peaklistBool
103 convertRTMinute $peaklist.convertRTMinute
104 numDigitsMZ $peaklist.numDigitsMZ
105 numDigitsRT $peaklist.numDigitsRT
106 intval $peaklist.intval
107 #end if
108 </token>
109
110 <xml name="input_peaklist">
111 <conditional name="peaklist">
112 <param name="peaklistBool" type="boolean" label="Get a Peak List" />
113 <when value="true">
114 <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"/>
115 <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" />
116 <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" />
117 <param name="intval" type="select" label="Reported intensity values" help="[intval] See the help section below">
118 <option value="into" selected="true">into</option>
119 <option value="maxo">maxo</option>
120 <option value="intb">intb</option>
121 </param>
122 </when>
123 <when value="false" />
124 </conditional>
125 </xml>
126
127 <xml name="output_peaklist" token_function="">
128 <data name="variableMetadata" format="tabular" label="${image.name[:-6]}.@FUNCTION@.variableMetadata.tsv" from_work_dir="variableMetadata.tsv" >
129 <filter>(peaklist['peaklistBool'])</filter>
130 </data>
131 <data name="dataMatrix" format="tabular" label="${image.name[:-6]}.@FUNCTION@.dataMatrix.tsv" from_work_dir="dataMatrix.tsv" >
132 <filter>(peaklist['peaklistBool'])</filter>
133 </data>
134 </xml>
135
136 <token name="@HELP_AUTHORS@">
137 .. class:: infomark
138
139 **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
140 39
141 .. class:: infomark 40 .. class:: infomark
142 41
143 **Galaxy integration** ABiMS TEAM - UPMC/CNRS - Station biologique de Roscoff and Yann Guitton yann.guitton@oniris-nantes.fr - part of Workflow4Metabolomics.org [W4M] 42 **Galaxy integration** ABiMS TEAM - SU/CNRS - Station biologique de Roscoff and Yann Guitton - LABERCA
43 Part of Workflow4Metabolomics.org [W4M]
144 44
145 | Contact support@workflow4metabolomics.org for any questions or concerns about the Galaxy implementation of this tool. 45 | Contact support@workflow4metabolomics.org for any questions or concerns about the Galaxy implementation of this tool.
146 46
147 ---------------------------------------------------
148
149 </token> 47 </token>
150 48
151 <token name="@HELP_XCMS_MANUAL@"> 49 <xml name="citation_w4m">
152
153 For details and explanations for all the parameters and the workflow of xcms_ package, see its manual_ and this example_
154
155 .. _xcms: https://bioconductor.org/packages/release/bioc/html/xcms.html
156 .. _manual: http://www.bioconductor.org/packages/release/bioc/manuals/xcms/man/xcms.pdf
157 .. _example: https://bioconductor.org/packages/release/bioc/vignettes/xcms/inst/doc/xcms.html
158
159 </token>
160
161 <token name="@HELP_PEAKLIST@">
162
163 Get a Peak List
164 ---------------
165
166 If 'true', the module generates two additional files corresponding to the peak list:
167 - the variable metadata file (corresponding to information about extracted ions such as mass or retention time)
168 - the data matrix (corresponding to related intensities)
169
170 **decimal places for [mass or retention time] values in identifiers**
171
172 | Ions' identifiers are constructed as MxxxTyyy where 'xxx' is the ion median mass and 'yyy' the ion median retention time.
173 | Two parameters are used to adjust the number of decimal places wanted in identifiers for mass and retention time respectively.
174 | Theses parameters do not affect decimal places in columns other than the identifier one.
175
176 **Reported intensity values**
177
178 | This parameter determines which values should be reported as intensities in the dataMatrix table; it correspond to xcms 'intval' parameter:
179 | - into: integrated area of original (raw) peak
180 | - maxo: maximum intensity of original (raw) peak
181 | - intb: baseline corrected integrated peak area (only available if peak detection was done by ‘findPeaks.centWave’)
182
183 </token>
184
185 <xml name="citation">
186 <citations>
187 <citation type="doi">10.1021/ac051437y</citation>
188 <citation type="doi">10.1093/bioinformatics/btu813</citation> 50 <citation type="doi">10.1093/bioinformatics/btu813</citation>
189 </citations>
190 </xml> 51 </xml>
191 </macros> 52 </macros>