comparison macros.xml @ 0:47f9b1fd5ce6 draft

planemo upload for repository https://github.com/workflow4metabolomics/xcms commit a6f5f18b3d6130f7d7fbb9f2df856838c6217797
author lecorguille
date Thu, 20 Apr 2017 05:41:32 -0400
parents
children 090cf284d9ff
comparison
equal deleted inserted replaced
-1:000000000000 0:47f9b1fd5ce6
1 <?xml version="1.0"?>
2 <macros>
3 <xml name="requirements">
4 <requirements>
5 <requirement type="package" version="0.4_1">r-snow</requirement>
6 <requirement type="package" version="1.46.0">bioconductor-xcms</requirement>
7 <requirement type="package" version="1.1_4">r-batch</requirement>
8 </requirements>
9 </xml>
10 <xml name="requirements_light">
11 <requirements>
12 <requirement type="package" version="1.46.0">bioconductor-xcms</requirement>
13 </requirements>
14 </xml>
15 <xml name="stdio">
16 <stdio>
17 <exit_code range="1" level="fatal" />
18 </stdio>
19 </xml>
20
21 <token name="@COMMAND_XCMS_SCRIPT@">
22 LANG=C Rscript $__tool_directory__/xcms.r
23 </token>
24
25 <token name="@COMMAND_LOG_EXIT@">
26 ;
27 return=\$?;
28 mv log.txt '$log';
29 cat '$log';
30 sh -c "exit \$return"
31 </token>
32
33 <!-- zipfile load for planemo test -->
34
35 <token name="@COMMAND_FILE_LOAD@">
36 #if $file_load_section.file_load_conditional.file_load_select == "yes":
37 #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"):
38 #set singlefile_galaxyPath = ','.join( [ str( $single_file ) for $single_file in $file_load_section.file_load_conditional.input ] )
39 #set singlefile_sampleName = ','.join( [ str( $single_file.name ) for $single_file in $file_load_section.file_load_conditional.input ] )
40
41 singlefile_galaxyPath '$singlefile_galaxyPath' singlefile_sampleName '$singlefile_sampleName'
42 #else
43 zipfile '$file_load_section.file_load_conditional.input'
44 #end if
45 #end if
46 </token>
47
48 <xml name="input_file_load">
49 <section name="file_load_section" title="Resubmit your raw dataset or your zip file">
50 <conditional name="file_load_conditional">
51 <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." >
52 <option value="no" >no need</option>
53 <option value="yes" >yes</option>
54 </param>
55 <when value="no">
56 </when>
57 <when value="yes">
58 <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." />
59 </when>
60 </conditional>
61 </section>
62 </xml>
63
64 <xml name="test_file_load_zip">
65 <section name="file_load_section">
66 <conditional name="file_load_conditional">
67 <param name="file_load_select" value="yes" />
68 <param name="input" value="faahKO_reduce.zip" ftype="zip" />
69 </conditional>
70 </section>
71 </xml>
72
73 <xml name="test_file_load_single">
74 <section name="file_load_section">
75 <conditional name="file_load_conditional">
76 <param name="file_load_select" value="yes" />
77 <param name="input" value="wt15.CDF,ko16.CDF,ko15.CDF,wt16.CDF" ftype="netcdf" />
78 </conditional>
79 </section>
80 </xml>
81
82 <token name="@COMMAND_PEAKLIST@">
83 #if $peaklist.peaklistBool
84 variableMetadataOutput '$variableMetadata'
85 dataMatrixOutput '$dataMatrix'
86 convertRTMinute $peaklist.convertRTMinute
87 numDigitsMZ $peaklist.numDigitsMZ
88 numDigitsRT $peaklist.numDigitsRT
89 intval $peaklist.intval
90 #end if
91 </token>
92
93 <xml name="input_peaklist">
94 <conditional name="peaklist">
95 <param name="peaklistBool" type="boolean" label="Get a Peak List" />
96 <when value="true">
97 <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"/>
98 <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" />
99 <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" />
100 <param name="intval" type="select" label="Reported intensity values" help="[intval] See the help section below">
101 <option value="into" selected="true">into</option>
102 <option value="maxo">maxo</option>
103 <option value="intb">intb</option>
104 </param>
105 </when>
106 <when value="false" />
107 </conditional>
108 </xml>
109
110 <xml name="output_peaklist" token_function="">
111 <data name="variableMetadata" format="tabular" label="${image.name[:-6]}.@FUNCTION@.variableMetadata.tsv">
112 <filter>(peaklist['peaklistBool'])</filter>
113 </data>
114 <data name="dataMatrix" format="tabular" label="${image.name[:-6]}.@FUNCTION@.dataMatrix.tsv" >
115 <filter>(peaklist['peaklistBool'])</filter>
116 </data>
117 </xml>
118
119 <token name="@HELP_AUTHORS@">
120 .. class:: infomark
121
122 **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
123
124 .. class:: infomark
125
126 **Galaxy integration** ABiMS TEAM - UPMC/CNRS - Station biologique de Roscoff and Yann Guitton yann.guitton@oniris-nantes.fr - part of Workflow4Metabolomics.org [W4M]
127
128 | Contact support@workflow4metabolomics.org for any questions or concerns about the Galaxy implementation of this tool.
129
130 ---------------------------------------------------
131
132 </token>
133
134
135 <xml name="citation">
136 <citations>
137 <citation type="doi">10.1021/ac051437y</citation>
138 <citation type="doi">10.1093/bioinformatics/btu813</citation>
139 </citations>
140 </xml>
141 </macros>