annotate tools/mytools/meme.xml @ 0:9071e359b9a3

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