annotate meme_chip_wrapper.xml @ 18:2948554ae3d7 draft default tip

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