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