comparison macros.xml @ 3:f24b9c360a60 draft

planemo upload commit dc4b1363a3fe83f195167f1f0b25c9728006e364
author lecorguille
date Wed, 15 Feb 2017 11:45:26 -0500
parents 9541ba588de1
children a1b528cba999
comparison
equal deleted inserted replaced
2:9541ba588de1 3:f24b9c360a60
14 </xml> 14 </xml>
15 15
16 <token name="@COMMAND_CAMERA_SCRIPT@"> 16 <token name="@COMMAND_CAMERA_SCRIPT@">
17 LANG=C Rscript $__tool_directory__/probmetab.r 17 LANG=C Rscript $__tool_directory__/probmetab.r
18 </token> 18 </token>
19 19
20 <!-- zipfile load for planemo test --> 20 <token name="@COMMAND_LOG_EXIT@">
21 <token name="@COMMAND_ZIPFILE_LOAD@"> 21 ;
22 #if $zipfile_load_conditional.zipfile_load_select == "yes": 22 return=\$?;
23 #if $zipfile_load_conditional.zip_file: 23 mv log.txt '$log';
24 zipfile $zipfile_load_conditional.zip_file 24 cat '$log';
25 sh -c "exit \$return"
26 </token>
27
28 <!-- raw file load for planemo test -->
29 <token name="@COMMAND_FILE_LOAD_NEUTRAL@">
30 #if $file_load_section_selected.file_load_conditional.file_load_select == "yes":
31 #if $file_load_section_selected.file_load_conditional.inputs.input == "zip_file":
32 zipfile$polarity '$file_load_section_selected.file_load_conditional.inputs.zip_file'
33 #else
34 #set singlefile_galaxyPath = ','.join( [ str( $single_file ) for $single_file in $file_load_section_selected.file_load_conditional.inputs.single_file ] )
35 #set singlefile_sampleName = ','.join( [ str( $single_file.name ) for $single_file in $file_load_section_selected.file_load_conditional.inputs.single_file ] )
36
37 singlefile_galaxyPath$polarity '$singlefile_galaxyPath'
38 singlefile_sampleName$polarity '$singlefile_sampleName'
25 #end if 39 #end if
26 #end if 40 #end if
27 </token> 41 </token>
28 <xml name="zipfile_load"> 42
29 <conditional name="zipfile_load_conditional"> 43 <token name="@COMMAND_FILE_LOAD_ONE@">
30 <param name="zipfile_load_select" type="select" label="Resubmit your zip file" help="Use only if you get a message which say that your original zip file have been deleted on the server." > 44 #set file_load_section_selected = $file_load_section
31 <option value="no" >no need</option> 45 #set polarity=""
32 <option value="yes" selected="peakgroups">yes</option> 46 @COMMAND_FILE_LOAD_NEUTRAL@
33 </param> 47 </token>
34 <when value="no"> 48
35 </when> 49 <token name="@COMMAND_FILE_LOAD_POSITIVE@">
36 <when value="yes"> 50 #set file_load_section_selected = $file_load_sectionPositive
37 <param name="zip_file" type="data" format="no_unzip.zip,zip" label="Zip file" /> 51 #set polarity="Positive"
38 </when> 52 @COMMAND_FILE_LOAD_NEUTRAL@
39 </conditional> 53 </token>
54
55 <token name="@COMMAND_FILE_LOAD_NEGATIVE@">
56 #set file_load_section_selected = $file_load_sectionNegative
57 #set polarity="Negative"
58 @COMMAND_FILE_LOAD_NEUTRAL@
59 </token>
60
61 <xml name="input_file_load" token_polarity="">
62 <section name="file_load_section@POLARITY@" title="@POLARITY@ Resubmit your raw dataset or your zip file">
63 <conditional name="file_load_conditional">
64 <param name="file_load_select" type="select" label="@POLARITY@ 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." >
65 <option value="no" >no need</option>
66 <option value="yes" >yes</option>
67 </param>
68 <when value="no">
69 </when>
70 <when value="yes">
71 <conditional name="inputs">
72 <param name="input" type="select" label="Choose your inputs method" >
73 <option value="zip_file" selected="true">Zip file from your history containing your chromatograms</option>
74 <option value="single_file">A mzXML or netCDF file from your history</option>
75 </param>
76 <when value="zip_file">
77 <param name="zip_file" type="data" format="no_unzip.zip,zip" label="Zip file" />
78 </when>
79 <when value="single_file">
80 <param name="single_file" type="data" format="mzxml,netcdf" label="Single file" multiple="true"/>
81 </when>
82 </conditional>
83 </when>
84 </conditional>
85 </section>
40 </xml> 86 </xml>
41 87
88 <xml name="test_file_load_zip">
89 <section name="file_load_section">
90 <conditional name="file_load_conditional">
91 <param name="file_load_select" value="yes" />
92 <conditional name="inputs">
93 <param name="input" value="zip_file" />
94 <param name="zip_file" value="faahKO_reduce.zip" ftype="zip" />
95 </conditional>
96 </conditional>
97 </section>
98 </xml>
99
100 <xml name="test_file_load_single" token_polarity="">>
101 <section name="file_load_section@POLARITY@">
102 <conditional name="file_load_conditional">
103 <param name="file_load_select" value="yes" />
104 <conditional name="inputs">
105 <param name="input" value="single_file" />
106 <param name="single_file" value="wt15.CDF,ko16.CDF,ko15.CDF,wt16.CDF" ftype="netcdf" />
107 </conditional>
108 </conditional>
109 </section>
110 </xml>
111
42 <token name="@HELP_AUTHORS@"> 112 <token name="@HELP_AUTHORS@">
43 .. class:: infomark 113 .. class:: infomark
44 114
45 **Authors** Ricardo R. Silva et al. (2013) rsilvabioinfo@usp.br 115 **Authors** Ricardo R. Silva et al. (2013) rsilvabioinfo@usp.br
46 116