comparison meme_chip_wrapper.xml @ 0:aac8d1c22fc4 draft

first version
author kevyin
date Mon, 29 Oct 2012 03:50:09 -0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:aac8d1c22fc4
1 <tool id="meme_chip_wrapper" name="meme-chip" version="0.0.3">
2 <requirements>
3 <requirement type="package" version="4.9.0">meme-chip</requirement>
4 </requirements>
5 <description></description>
6 <version_command>echo "MEME version r4.9.0"</version_command>
7 <command> meme-chip $input_file -o ${memechip_out.files_path}
8 #if str( $options_type.options_type_selector ) == 'advanced':
9 #if str( $options_type.bg_type.bg_type_selector) == 'bg_user':
10 -bfile "${ str( $options_type.bg_type.bfile ) }"
11 #end if
12
13 #if str( $options_type.ccut ) != '-1':
14 -ccut "${ str( $options_type.ccut ) }"
15 #end if
16
17 #if str( $options_type.time ) != '-1':
18 -time "${ str( $options_type.time ) }"
19 #end if
20
21 -desc "${ str( $options_type.desc ) }"
22
23 #if str( $options_type.meme_mod ) != '':
24 -meme-mod "${ str($options_type.meme_mod) }"
25 #end if
26
27 #if str( $options_type.meme_minw ) != '-1':
28 -meme-minw "${ str($options_type.meme_minw) }"
29 #end if
30
31 #if str( $options_type.meme_maxw ) != '-1':
32 -meme-maxw "${ str($options_type.meme_maxw) }"
33 #end if
34
35 #if str( $options_type.meme_nmotifs ) != '-1':
36 -meme-nmotifs "${ str($options_type.meme_nmotifs) }"
37 #end if
38
39 #if str( $options_type.meme_minsites ) != '-1':
40 -meme-minsites "${ str($options_type.meme_minsites) }"
41 #end if
42
43 #if str( $options_type.meme_maxsites ) != '-1':
44 -meme-maxsites "${ str($options_type.meme_maxsites) }"
45 #end if
46
47 #if $options_type.meme_pal:
48 -meme-pal "${ str($options_type.meme_pal) }"
49 #end if
50
51 #if str( $options_type.dreme_e ) != '-1.0':
52 -dreme-e "${ str($options_type.dreme_e) }"
53 #end if
54
55 #if str( $options_type.dreme_m ) != '-1':
56 -dreme-m "${ str($options_type.dreme_m) }"
57 #end if
58
59 #if $options_type.centrimo_score != -1:
60 -centrimo-score "${ str($options_type.centrimo_score) }"
61 #end if
62
63 #if str( $options_type.centrimo_maxreg ) != '-1':
64 -centrimo-maxreg "${ str($options_type.centrimo_maxreg) }"
65 #end if
66
67 #if str( $options_type.centrimo_ethresh ) != '-1.0':
68 -centrimo-ethresh "${ str($options_type.centrimo_ethresh) }"
69 #end if
70
71 #if $options_type.centrimo_noseq:
72 -centrimo-noseq
73 #end if
74
75 #end if
76 <!--pipe stderr to stdout because of annoying log4perl warnings. Error when exit status-->
77 2&gt;&amp;1 || echo "Error running MEME."
78 <!--&amp;&amp; mv ${html_outfile.files_path}/index.html ${html_outfile}-->
79 <!--&amp;&amp; zip -r result $html_outfile.files_path-->
80 &amp;&amp; cd ${memechip_out.files_path}
81 &amp;&amp; zip -rp memechip_out ./
82 &amp;&amp; mv memechip_out.zip ${memechip_out}
83 </command>
84 <inputs>
85 <param format="fasta" name="input_file" type="data" label="Sequences in fasta format" />
86 <param name="non_commercial_use" label="I certify that I am not using this tool for commercial purposes." type="boolean" truevalue="NON_COMMERCIAL_USE" falsevalue="COMMERCIAL_USE" checked="True">
87 <validator type="expression" message="This tool is only available for non-commercial use.">value == True</validator>
88 </param>
89 <conditional name="options_type">
90 <param name="options_type_selector" type="select" label="Options Configuration">
91 <option value="basic" selected="true">Basic</option>
92 <option value="advanced">Advanced</option>
93 </param>
94 <when value="basic">
95 <!-- do nothing here -->
96 </when>
97 <when value="advanced">
98 <!--bfile-->
99 <conditional name="bg_type">
100 <param name="bg_type_selector" type="select" label="Custom background">
101 <option value="bg_default" selected="True">Default Background</option>
102 <option value="bg_user">Background in your History</option>
103 </param>
104 <when value="bg_default">
105 <!--do nothing here-->
106 </when>
107 <when value="bg_user">
108 <param name="bfile" type="data" label="-bfile: Background File" />
109 </when>
110 </conditional>
111 <!--ccut-->
112 <param name="ccut" type="integer" value="100" label="-ccut: Max size of a seq before it is cut down; 0: do not cut; -1: do not specify" />
113 <!--tine-->
114 <param name="time" type="integer" value="-1" label="-time: Maximum time (minutes) that this program has to run and create output in; -1: no limit" />
115 <!--desc-->
116 <param name="desc" type="text" value="Galaxy MEME-Chip" label="-desc: Description of the analysis" >
117 <sanitizer>
118 <valid initial="string.printable">
119 <remove value="&apos;"/>
120 </valid>
121 <mapping initial="none">
122 <add source="&apos;" target=""/>
123 </mapping>
124 </sanitizer>
125 </param>
126 <!--MEME options-->
127 <param name="meme_mod" type="select" label="-meme-mod: Sites used in a single sequence" >
128 <option value="" selected="True"/>
129 <option value="oops" />
130 <option value="zoops" />
131 <option value="anr" />
132 </param>
133 <param name="meme_minw" type="integer" value="-1" label="-meme-minw: minimum motif width; -1: don't specify" />
134 <param name="meme_maxw" type="integer" value="-1" label="-meme-maxw: maximum motif width; -1: don't specify" />
135 <param name="meme_nmotifs" type="integer" value="-1" label="-meme-nmotifs: maximum number of motifs to find; -1: don't specify" />
136 <param name="meme_minsites" type="integer" value="-1" label="-meme-minsites: minimum number of sites per motif; -1: don't specify" />
137 <param name="meme_maxsites" type="integer" value="-1" label="-meme-maxsites: maximum number of sites per motif; -1: don't specify" />
138 <param name="meme_pal" type="boolean" label="-meme-pal: look for palindromes only" />
139 <!--DREME options-->
140 <param name="dreme_e" type="float" value="-1" label="-dreme-e: stop searching after reaching this E-value threshold; -1: don't specify" />
141 <param name="dreme_m" type="integer" value="-1" label="-dreme-e: stop searching after finding this many motifs; -1: don't specify" />
142 <!--CentriMo options-->
143 <param name="centrimo_score" type="float" value="-1" label="-centrimo-score: set the minimum allowed match score; -1: don't specify" />
144 <param name="centrimo_maxreg" type="integer" value="-1" label="-centrimo-maxreg: set the maximum region size to be considered; -1: don't specify" />
145 <param name="centrimo_ethresh" type="float" value="-1" label="-centrimo-ethresh: set the E-value threshold for reporting; -1: don't specify" />
146 <param name="centrimo_noseq" type="boolean" label="-centrimo-noseq: don't store sequence IDs in the output" />
147
148 </when>
149 </conditional>
150 </inputs>
151 <outputs>
152 <!--<data format="html" name="html_outfile" label="index" />-->
153 <!--<data format="html" hidden="True" name="html_outfile" label="index.html" />-->
154 <data format="zip" name="memechip_out" label="${tool.name} on ${on_string}" />
155 </outputs>
156
157
158 <tests>
159 <test>
160 <param name="input_file" value="extract_genomic_dna.fa" />
161 <output name="html_file" file="sample_output.html" ftype="html" />
162 </test>
163 </tests>
164
165 <help>
166
167 .. class:: infomark
168
169 **Meme-Chip**
170
171
172 </help>
173 </tool>