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