annotate meme_chip_wrapper.xml @ 5:31fbc8623795 draft

Uploaded
author kevyin
date Tue, 06 Nov 2012 23:01:45 -0500
parents
children d2a005d25e98
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
1 <tool id="meme_chip_wrapper" name="meme-chip" version="1.0.0">
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
2 <requirements>
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
3 <requirement type="package" version="4.9.0">meme-chip</requirement>
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
4 </requirements>
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
5 <description></description>
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
6 <version_command>echo "MEME version r4.9.0"</version_command>
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
7 <command> meme-chip $input_file -o ${memechip_out.files_path}
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
8 #for p in str.split($motif_dbs.fields.path,","):
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
9 -db $p
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
10 #end for
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
11
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
12 #if str( $options_type.options_type_selector ) == 'advanced':
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
13 #if str( $options_type.bg_type.bg_type_selector) == 'bg_user':
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
14 -bfile "${ str( $options_type.bg_type.bfile ) }"
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
15 #end if
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
16
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
17 #if str( $options_type.ccut ) != '-1':
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
18 -ccut "${ str( $options_type.ccut ) }"
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
19 #end if
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
20
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
21 #if str( $options_type.time ) != '-1':
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
22 -time "${ str( $options_type.time ) }"
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
23 #end if
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
24
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
25 -desc "${ str( $options_type.desc ) }"
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
26
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
27 #if str( $options_type.meme_mod ) != '':
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
28 -meme-mod "${ str($options_type.meme_mod) }"
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
29 #end if
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
30
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
31 #if str( $options_type.meme_minw ) != '-1':
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
32 -meme-minw "${ str($options_type.meme_minw) }"
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
33 #end if
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
34
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
35 #if str( $options_type.meme_maxw ) != '-1':
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
36 -meme-maxw "${ str($options_type.meme_maxw) }"
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
37 #end if
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
38
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
39 #if str( $options_type.meme_nmotifs ) != '-1':
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
40 -meme-nmotifs "${ str($options_type.meme_nmotifs) }"
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
41 #end if
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
42
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
43 #if str( $options_type.meme_minsites ) != '-1':
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
44 -meme-minsites "${ str($options_type.meme_minsites) }"
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
45 #end if
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
46
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
47 #if str( $options_type.meme_maxsites ) != '-1':
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
48 -meme-maxsites "${ str($options_type.meme_maxsites) }"
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
49 #end if
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
50
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
51 #if $options_type.meme_pal:
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
52 -meme-pal "${ str($options_type.meme_pal) }"
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
53 #end if
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
54
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
55 #if str( $options_type.dreme_e ) != '-1.0':
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
56 -dreme-e "${ str($options_type.dreme_e) }"
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
57 #end if
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
58
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
59 #if str( $options_type.dreme_m ) != '-1':
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
60 -dreme-m "${ str($options_type.dreme_m) }"
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
61 #end if
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
62
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
63 #if str($options_type.centrimo_score) != '-1.0':
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
64 -centrimo-score "${ str($options_type.centrimo_score) }"
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
65 #end if
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
66
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
67 #if str( $options_type.centrimo_maxreg ) != '-1':
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
68 -centrimo-maxreg "${ str($options_type.centrimo_maxreg) }"
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
69 #end if
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
70
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
71 #if str( $options_type.centrimo_ethresh ) != '-1.0':
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
72 -centrimo-ethresh "${ str($options_type.centrimo_ethresh) }"
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
73 #end if
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
74
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
75 #if $options_type.centrimo_noseq:
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
76 -centrimo-noseq
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
77 #end if
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
78
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
79 #end if
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
80 <!--pipe stderr to stdout because of annoying log4perl warnings. Error when exit status-->
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
81 2&gt;&amp;1 || echo "Error running MEME."
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
82 <!--&amp;&amp; mv ${html_outfile.files_path}/index.html ${html_outfile}-->
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
83 <!--&amp;&amp; zip -r result $html_outfile.files_path-->
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
84 &amp;&amp; cd ${memechip_out.files_path}
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
85 &amp;&amp; zip -rp memechip_out ./
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
86 &amp;&amp; mv memechip_out.zip ${memechip_out}
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
87 </command>
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
88 <inputs>
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
89 <param format="fasta" name="input_file" type="data" label="Sequences in fasta format" />
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
90 <param name="motif_dbs" label="MEME Motif databases" type="select" multiple="true" display="checkboxes" help="Use CTRL to select multiple databases">
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
91 <options from_data_table="meme_chip_motifs">
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
92 <filter type="sort_by" column="1"/>
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
93 <validator type="no_options" message="No indexes are available for the selected dataset"/>
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
94 </options>
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
95
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
96 </param>
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
97 <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">
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
98 <validator type="expression" message="This tool is only available for non-commercial use.">value == True</validator>
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
99 </param>
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
100 <conditional name="options_type">
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
101 <param name="options_type_selector" type="select" label="Options Configuration">
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
102 <option value="basic" selected="true">Basic</option>
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
103 <option value="advanced">Advanced</option>
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
104 </param>
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
105 <when value="basic">
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
106 <!-- do nothing here -->
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
107 </when>
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
108 <when value="advanced">
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
109 <!--bfile-->
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
110 <conditional name="bg_type">
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
111 <param name="bg_type_selector" type="select" label="Custom background">
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
112 <option value="bg_default" selected="True">Default Background</option>
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
113 <option value="bg_user">Background in your History</option>
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
114 </param>
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
115 <when value="bg_default">
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
116 <!--do nothing here-->
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
117 </when>
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
118 <when value="bg_user">
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
119 <param name="bfile" type="data" label="-bfile: Background File" />
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
120 </when>
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
121 </conditional>
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
122 <!--ccut-->
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
123 <param name="ccut" type="integer" value="-1" label="-ccut: Max size of a seq before it is cut down; 0: do not cut; -1: Default behaviour" />
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
124 <!--tine-->
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
125 <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" />
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
126 <!--desc-->
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
127 <param name="desc" type="text" value="Galaxy MEME-Chip" label="-desc: Description of the analysis" >
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
128 <sanitizer>
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
129 <valid initial="string.printable">
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
130 <remove value="&apos;"/>
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
131 </valid>
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
132 <mapping initial="none">
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
133 <add source="&apos;" target=""/>
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
134 </mapping>
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
135 </sanitizer>
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
136 </param>
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
137 <!--MEME options-->
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
138 <param name="meme_mod" type="select" label="-meme-mod: Sites used in a single sequence" >
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
139 <option value="" selected="True"/>
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
140 <option value="oops" />
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
141 <option value="zoops" />
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
142 <option value="anr" />
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
143 </param>
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
144 <param name="meme_minw" type="integer" value="-1" label="-meme-minw: minimum motif width; -1: Default behaviour" />
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
145 <param name="meme_maxw" type="integer" value="-1" label="-meme-maxw: maximum motif width; -1: Default behaviour" />
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
146 <param name="meme_nmotifs" type="integer" value="-1" label="-meme-nmotifs: maximum number of motifs to find; -1: Default behaviour" />
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
147 <param name="meme_minsites" type="integer" value="-1" label="-meme-minsites: minimum number of sites per motif; -1: Default behaviour" />
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
148 <param name="meme_maxsites" type="integer" value="-1" label="-meme-maxsites: maximum number of sites per motif; -1: Default behaviour" />
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
149 <param name="meme_pal" type="boolean" label="-meme-pal: look for palindromes only" />
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
150 <!--DREME options-->
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
151 <param name="dreme_e" type="float" value="-1" label="-dreme-e: stop searching after reaching this E-value threshold; -1: Default behaviour" />
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
152 <param name="dreme_m" type="integer" value="-1" label="-dreme-e: stop searching after finding this many motifs; -1: Default behaviour" />
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
153 <!--CentriMo options-->
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
154 <param name="centrimo_score" type="float" value="-1" label="-centrimo-score: set the minimum allowed match score; -1: Default behaviour" />
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
155 <param name="centrimo_maxreg" type="integer" value="-1" label="-centrimo-maxreg: set the maximum region size to be considered; -1: Default behaviour" />
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
156 <param name="centrimo_ethresh" type="float" value="-1" label="-centrimo-ethresh: set the E-value threshold for reporting; -1: Default behaviour" />
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
157 <param name="centrimo_noseq" type="boolean" label="-centrimo-noseq: don't store sequence IDs in the output" />
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
158
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
159 </when>
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
160 </conditional>
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
161 </inputs>
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
162 <outputs>
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
163 <!--<data format="html" name="html_outfile" label="index" />-->
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
164 <!--<data format="html" hidden="True" name="html_outfile" label="index.html" />-->
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
165 <data format="zip" name="memechip_out" label="${tool.name} on ${on_string} SAVE ME" />
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
166 </outputs>
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
167
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
168
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
169 <tests>
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
170 <test>
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
171 <param name="input_file" value="extract_genomic_dna.fa" />
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
172 <output name="html_file" file="sample_output.html" ftype="html" />
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
173 </test>
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
174 </tests>
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
175
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
176 <help>
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
177
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
178 .. class:: infomark
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
179
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
180 After the job finishes, save the zip file, unzip and open "index.html"
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
181
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
182 The actual meme-chip command is displayed under "Command line summary"
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
183
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
184 Defaults:
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
185 http://meme.nbcr.net/meme/doc/meme-chip.html
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
186
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
187 </help>
31fbc8623795 Uploaded
kevyin
parents:
diff changeset
188 </tool>