annotate mytools/meme.xml @ 5:84e2c77a6abd

Uploaded
author xuebing
date Fri, 16 Mar 2012 14:01:16 -0400
parents 39217fa39ff2
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
1 <tool id="meme_meme" name="MEME" version="1.0.0">
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
2 <requirements><requirement type='package'>meme</requirement></requirements>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
3 <description>motif discovery</description>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
4 <command>meme "$input1" -o "${html_outfile.files_path}"
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
5 -nostatus
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
6
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
7 ##-p 8 ##number of processors
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
8
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
9 #if str( $options_type.options_type_selector ) == 'advanced':
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
10 -sf "${ str( $options_type.sf ).replace( ' ', '_' ) }"
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
11 -${options_type.alphabet_type.alphabet_type_selector}
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
12 -mod "${options_type.mod_type.mod_type_selector}"
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
13 -nmotifs "${options_type.nmotifs}"
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
14 -wnsites "${options_type.wnsites}"
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
15 -maxsize "${options_type.maxsize}"
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
16
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
17 #if $options_type.evt &lt; float('inf'):
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
18 -evt "${options_type.evt}"
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
19 #end if
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
20
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
21 #if str( $options_type.mod_type.mod_type_selector ) != 'oops':
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
22 #if str( $options_type.mod_type.motif_occurrence_type.motif_occurrence_type_selector ) == 'nsites':
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
23 -nsites "${options_type.mod_type.motif_occurrence_type.nsites}"
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
24 #elif str( $options_type.mod_type.motif_occurrence_type.motif_occurrence_type_selector ) == 'min_max_sites':
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
25 -minsites "${options_type.mod_type.motif_occurrence_type.minsites}" -maxsites "${options_type.mod_type.motif_occurrence_type.maxsites}"
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
26 #end if
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
27 #end if
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
28
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
29 #if str( $options_type.motif_width_type.motif_width_type_selector ) == 'exact':
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
30 -w "${options_type.motif_width_type.width}"
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
31 #else
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
32 -minw "${options_type.motif_width_type.minw}" -maxw "${options_type.motif_width_type.maxw}"
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
33 #end if
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
34
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
35 #if str( $options_type.motif_trim_type.motif_trim_type_selector ) == 'nomatrim':
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
36 -nomatrim
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
37 #else
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
38 -wg "${options_type.motif_trim_type.wg}" -ws "${options_type.motif_trim_type.ws}" ${options_type.motif_trim_type.noendgaps}
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
39 #end if
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
40
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
41 #if str( $options_type.bfile ) != 'None':
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
42 -bfile "${options_type.bfile}"
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
43 #end if
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
44
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
45 #if str( $options_type.pspfile ) != 'None':
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
46 -psp "${options_type.pspfile}"
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
47 #end if
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
48
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
49 #if str( $options_type.alphabet_type.alphabet_type_selector ) == "dna":
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
50 ${options_type.alphabet_type.revcomp} ${options_type.alphabet_type.pal}
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
51 #end if
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
52
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
53 -maxiter "${options_type.maxiter}" -distance "${options_type.distance}"
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
54
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
55 -prior "${options_type.alphabet_type.prior_type.prior_type_selector}"
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
56 #if str( $options_type.alphabet_type.prior_type.prior_type_selector ) != 'addone':
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
57 -b "${options_type.alphabet_type.prior_type.prior_b}"
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
58 #if str( $options_type.alphabet_type.prior_type.plib ) != 'None':
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
59 -plib "${options_type.alphabet_type.prior_type.plib}"
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
60 #end if
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
61 #end if
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
62
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
63 #if str( $options_type.alphabet_type.spmap_type.spmap_type_selector ) == 'cons':
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
64 -cons "${options_type.alphabet_type.spmap_type.cons}"
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
65 #else
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
66 -spmap "${options_type.alphabet_type.spmap_type.spmap_type_selector}"
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
67 -spfuzz "${options_type.alphabet_type.spmap_type.spfuzz}"
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
68 #end if
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
69
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
70 #if str( $options_type.branching_type.branching_type_selector ) == 'x_branch':
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
71 -x_branch -bfactor "${options_type.branching_type.bfactor}" -heapsize "${options_type.branching_type.heapsize}"
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
72 #end if
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
73
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
74 ##-maxsize "1000000" ##remove hardcoded maxsize? should increase number of processors instead
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
75
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
76 #end if
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
77
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
78 2&gt;&amp;1 || echo "Error running MEME."
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
79
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
80
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
81 &amp;&amp; mv ${html_outfile.files_path}/meme.html ${html_outfile}
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
82
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
83 &amp;&amp; mv ${html_outfile.files_path}/meme.txt ${txt_outfile}
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
84
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
85 &amp;&amp; mv ${html_outfile.files_path}/meme.xml ${xml_outfile}
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
86
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
87 </command>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
88 <inputs>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
89 <param format="fasta" name="input1" type="data" label="Sequences"/>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
90
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
91 <conditional name="options_type">
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
92 <param name="options_type_selector" type="select" label="Options Configuration">
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
93 <option value="basic" selected="true">Basic</option>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
94 <option value="advanced">Advanced</option>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
95 </param>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
96 <when value="basic">
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
97 <!-- do nothing here -->
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
98 </when>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
99 <when value="advanced">
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
100
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
101 <param name="sf" type="text" value="Galaxy FASTA Input" label="Name of sequence set" />
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
102
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
103 <conditional name="alphabet_type">
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
104 <param name="alphabet_type_selector" type="select" label="Sequence Alphabet">
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
105 <option value="protein">Protein</option>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
106 <option value="dna" selected="true">DNA</option>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
107 </param>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
108 <when value="protein">
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
109 <conditional name="prior_type">
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
110 <param name="prior_type_selector" type="select" label="Choice of prior">
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
111 <option value="dirichlet">simple Dirichlet prior</option>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
112 <option value="dmix" selected="true">mixture of Dirichlets prior</option>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
113 <option value="mega">extremely low variance dmix</option>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
114 <option value="megap">mega for all but last iteration of EM; dmix on last iteration</option>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
115 <option value="addone">add +1 to each observed count</option>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
116 </param>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
117 <when value="dirichlet">
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
118 <param name="prior_b" type="float" value="0.01" label="strength of prior on model parameters" />
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
119 <param name="plib" type="data" format="txt" optional="True" label="Dirichlet prior file" />
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
120 </when>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
121 <when value="dmix">
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
122 <param name="prior_b" type="float" value="0" label="strength of prior on model parameters" />
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
123 <param name="plib" type="data" format="txt" optional="True" label="Dirichlet prior file" />
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
124 </when>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
125 <when value="mega">
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
126 <param name="prior_b" type="float" value="0" label="strength of prior on model parameters" />
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
127 <param name="plib" type="data" format="txt" optional="True" label="Dirichlet prior file" />
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
128 </when>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
129 <when value="megap">
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
130 <param name="prior_b" type="float" value="0" label="strength of prior on model parameters" />
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
131 <param name="plib" type="data" format="txt" optional="True" label="Dirichlet prior file" />
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
132 </when>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
133 <when value="addone">
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
134 <!-- no values here? -->
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
135 </when>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
136 </conditional>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
137 <conditional name="spmap_type">
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
138 <param name="spmap_type_selector" type="select" label="EM starting points">
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
139 <option value="uni">uni</option>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
140 <option value="pam" selected="true">pam</option>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
141 <option value="cons">Use starting point from string</option>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
142 </param>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
143 <when value="uni">
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
144 <param name="spfuzz" type="float" value="0.5" label="Fuzziness of the mapping" />
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
145 </when>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
146 <when value="pam">
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
147 <param name="spfuzz" type="integer" value="120" label="Fuzziness of the mapping" />
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
148 </when>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
149 <when value="cons">
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
150 <param name="cons" type="text" value="" label="Starting point from string" />
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
151 </when>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
152 </conditional>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
153 </when>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
154 <when value="dna">
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
155 <param name="revcomp" label="Check reverse complement" type="boolean" truevalue="-revcomp" falsevalue="" checked="False"/>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
156 <param name="pal" label="Check for palindromes" type="boolean" truevalue="-pal" falsevalue="" checked="False"/>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
157 <conditional name="prior_type">
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
158 <param name="prior_type_selector" type="select" label="Sequence Alphabet">
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
159 <option value="dirichlet" selected="true">simple Dirichlet prior</option>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
160 <option value="dmix">mixture of Dirichlets prior</option>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
161 <option value="mega">extremely low variance dmix</option>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
162 <option value="megap">mega for all but last iteration of EM; dmix on last iteration</option>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
163 <option value="addone">add +1 to each observed count</option>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
164 </param>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
165 <when value="dirichlet">
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
166 <param name="prior_b" type="float" value="0.01" label="strength of prior on model parameters" />
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
167 <param name="plib" type="data" format="txt" optional="True" label="Dirichlet prior file" />
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
168 </when>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
169 <when value="dmix">
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
170 <param name="prior_b" type="float" value="0" label="strength of prior on model parameters" />
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
171 <param name="plib" type="data" format="txt" optional="True" label="Dirichlet prior file" />
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
172 </when>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
173 <when value="mega">
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
174 <param name="prior_b" type="float" value="0" label="strength of prior on model parameters" />
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
175 <param name="plib" type="data" format="txt" optional="True" label="Dirichlet prior file" />
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
176 </when>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
177 <when value="megap">
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
178 <param name="prior_b" type="float" value="0" label="strength of prior on model parameters" />
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
179 <param name="plib" type="data" format="txt" optional="True" label="Dirichlet prior file" />
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
180 </when>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
181 <when value="addone">
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
182 <!-- no values here? -->
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
183 </when>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
184 </conditional>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
185 <conditional name="spmap_type">
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
186 <param name="spmap_type_selector" type="select" label="EM starting points">
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
187 <option value="uni" selected="true">uni</option>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
188 <option value="pam">pam</option>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
189 <option value="cons">Use starting point from string</option>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
190 </param>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
191 <when value="uni">
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
192 <param name="spfuzz" type="float" value="0.5" label="Fuzziness of the mapping" />
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
193 </when>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
194 <when value="pam">
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
195 <param name="spfuzz" type="integer" value="120" label="Fuzziness of the mapping" />
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
196 </when>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
197 <when value="cons">
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
198 <param name="cons" type="text" value="" label="Starting point from string" />
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
199 </when>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
200 </conditional>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
201 </when>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
202 </conditional>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
203
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
204 <param name="nmotifs" type="integer" value="1" label="Number of different motifs to search" />
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
205 <param name="maxsize" type="integer" value="1000000" label="Max number of characters in the sequence file"/>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
206 <param name="evt" type="float" value="inf" label="E-value to stop looking for motifs" />
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
207 <conditional name="mod_type">
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
208 <param name="mod_type_selector" type="select" label="Expected motif distribution">
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
209 <option value="oops">One Occurrence Per Sequence</option>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
210 <option value="zoops" selected="true">Zero or One Occurrence Per Sequence</option>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
211 <option value="anr">Any Number of Repetitions</option>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
212 </param>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
213 <when value="oops">
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
214 <!-- no values here -->
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
215 </when>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
216 <when value="zoops">
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
217 <conditional name="motif_occurrence_type">
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
218 <param name="motif_occurrence_type_selector" type="select" label="Number of motif occurrences">
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
219 <option value="default" selected="true">Use defaults</option>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
220 <option value="nsites">nsites</option>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
221 <option value="min_max_sites">min and max sites</option>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
222 </param>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
223 <when value="default">
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
224 <!-- no values here -->
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
225 </when>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
226 <when value="nsites">
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
227 <param name="nsites" type="integer" value="1" label="Search nsites number of occurrences" />
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
228 </when>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
229 <when value="min_max_sites">
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
230 <param name="minsites" type="integer" value="1" label="minsites" />
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
231 <param name="maxsites" type="integer" value="50" label="maxsites" />
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
232 </when>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
233 </conditional>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
234 </when>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
235 <when value="anr">
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
236 <conditional name="motif_occurrence_type">
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
237 <param name="motif_occurrence_type_selector" type="select" label="Number of motif occurrences">
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
238 <option value="default" selected="true">Use defaults</option>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
239 <option value="nsites">nsites</option>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
240 <option value="min_max_sites">min and max sites</option>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
241 </param>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
242 <when value="default">
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
243 <!-- no values here -->
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
244 </when>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
245 <when value="nsites">
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
246 <param name="nsites" type="integer" value="1" label="Search nsites number of occurrences" />
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
247 </when>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
248 <when value="min_max_sites">
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
249 <param name="minsites" type="integer" value="1" label="minsites" />
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
250 <param name="maxsites" type="integer" value="50" label="maxsites" />
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
251 </when>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
252 </conditional>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
253 </when>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
254 </conditional>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
255 <param name="wnsites" type="float" value="0.8" label="Weight on the prior on nsites" />
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
256
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
257 <conditional name="motif_width_type">
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
258 <param name="motif_width_type_selector" type="select" label="Motif width type">
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
259 <option value="exact">Exact width</option>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
260 <option value="range" selected="true">Specify a range</option>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
261 </param>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
262 <when value="exact">
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
263 <param name="width" type="integer" value="10" label="Width of motif to search" />
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
264 </when>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
265 <when value="range">
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
266 <param name="minw" type="integer" value="8" label="Min width of motif to search" />
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
267 <param name="maxw" type="integer" value="50" label="Max width of motif to search" />
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
268 </when>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
269 </conditional>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
270
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
271 <conditional name="motif_trim_type">
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
272 <param name="motif_trim_type_selector" type="select" label="Motif trim type">
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
273 <option value="nomatrim">No motif trim</option>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
274 <option value="trim" selected="true">Trim motif</option>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
275 </param>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
276 <when value="nomatrim">
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
277 <!-- no values here -->
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
278 </when>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
279 <when value="trim">
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
280 <param name="wg" type="integer" value="11" label="Gap cost" />
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
281 <param name="ws" type="integer" value="1" label="Space cost" />
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
282 <param name="noendgaps" label="Do not penalize endgaps" type="boolean" truevalue="-noendgaps" falsevalue="" checked="False"/>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
283 </when>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
284 </conditional>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
285
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
286 <param name="bfile" type="data" format="txt" optional="True" label="Background Model" />
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
287 <param name="pspfile" type="data" format="txt" optional="True" label="Position-Specific Prior" />
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
288
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
289 <param name="maxiter" type="integer" value="50" label="Number of iterations of EM to run" />
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
290 <param name="distance" type="float" value="0.001" label="Convergence criterion" />
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
291
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
292 <conditional name="branching_type">
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
293 <param name="branching_type_selector" type="select" label="x-branching type">
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
294 <option value="x_branch">Perform x-branching</option>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
295 <option value="no_x_branch" selected="true">No x-branching</option>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
296 </param>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
297 <when value="no_x_branch">
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
298 <!-- no values here -->
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
299 </when>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
300 <when value="x_branch">
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
301 <param name="bfactor" type="integer" value="3" label="Number of iterations of branching" />
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
302 <param name="heapsize" type="integer" value="64" label="Maximum number of heaps to use" />
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
303 </when>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
304 </conditional>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
305
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
306 </when>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
307 </conditional>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
308
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
309 <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="False">
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
310 <validator type="expression" message="This tool is only available for non-commercial use.">value == True</validator>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
311 </param>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
312
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
313 </inputs>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
314 <outputs>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
315 <data format="html" name="html_outfile" label="${tool.name} on ${on_string} (html)"/>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
316 <data format="txt" name="txt_outfile" label="${tool.name} on ${on_string} (text)"/>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
317 <data format="memexml" name="xml_outfile" label="${tool.name} on ${on_string} (xml)"/>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
318 </outputs>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
319 <tests>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
320 <test>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
321 <param name="input1" value="meme/meme/meme_input_1.fasta" ftype="fasta" dbkey="hg19"/>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
322 <param name="options_type_selector" value="basic"/>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
323 <param name="non_commercial_use" value="True"/>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
324 <output name="html_outfile" file="meme/meme/meme_output_html_1.html" lines_diff="12"/>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
325 <output name="txt_outfile" file="meme/meme/meme_output_txt_1.txt" lines_diff="12"/>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
326 <output name="xml_outfile" file="meme/meme/meme_output_xml_1.xml" lines_diff="8"/>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
327 </test>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
328 </tests>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
329 <help>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
330
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
331 .. class:: warningmark
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
332
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
333 **WARNING: This tool is only available for non-commercial use. Use for educational, research and non-profit purposes is permitted. Before using, be sure to review, agree, and comply with the license.**
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
334
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
335 If you want to specify sequence weights, you must include them at the top of your input FASTA file.
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
336
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
337 .. class:: infomark
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
338
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
339 **To cite MEME:**
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
340 Timothy L. Bailey and Charles Elkan, "Fitting a mixture model by expectation maximization to discover motifs in biopolymers", Proceedings of the Second International Conference on Intelligent Systems for Molecular Biology, pp. 28-36, AAAI Press, Menlo Park, California, 1994.
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
341
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
342
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
343 For detailed information on MEME, click here_. To view the license_.
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
344
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
345 .. _here: http://meme.nbcr.net/meme/meme-intro.html
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
346 .. _license: http://meme.nbcr.net/meme/COPYRIGHT.html
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
347
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
348 </help>
39217fa39ff2 Uploaded
xuebing
parents:
diff changeset
349 </tool>