comparison das_tool.xml @ 5:b048a987dd7d draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/das_tool commit b50985039ff11e1779f9f48f13e3b74fa1c0e955
author iuc
date Mon, 29 Apr 2024 20:17:04 +0000
parents 7d997332582e
children
comparison
equal deleted inserted replaced
4:7d997332582e 5:b048a987dd7d
5 </macros> 5 </macros>
6 <expand macro="biotools"/> 6 <expand macro="biotools"/>
7 <expand macro="requirements"/> 7 <expand macro="requirements"/>
8 <expand macro="version"/> 8 <expand macro="version"/>
9 <command detect_errors="exit_code"><![CDATA[ 9 <command detect_errors="exit_code"><![CDATA[
10 #set $bins = "" 10 #import re
11 #set $labels = "" 11
12 #set $sep = "" 12 #set $bins = []
13 #set $labels = []
13 #for $i, $s in enumerate($binning) 14 #for $i, $s in enumerate($binning)
14 #set $bins += "%s%s" %($sep, $s.bins) 15 #silent $bins.append(str($s.bins))
15 #set $labels += "%s%s" %($sep, $s.labels) 16 #if $s.labels != ''
16 #set $sep = "," 17 #silent $labels.append(str($s.labels))
18 #else
19 #silent $labels.append(re.sub('[^\w\-_\.]', '_', $s.bins.element_identifier))
20 #end if
17 #end for 21 #end for
18 22
19 #if $adv.proteins 23 #if $adv.proteins
20 ln -s '$adv.proteins' 'proteins' && 24 ln -s '$adv.proteins' 'proteins' &&
21 #end if 25 #end if
26
27 #set $bins = ','.join($bins)
28 #set $labels = ','.join($labels)
22 29
23 DAS_Tool 30 DAS_Tool
24 --contigs '$contigs' 31 --contigs '$contigs'
25 --outputbasename 'outputs' 32 --outputbasename 'outputs'
26 --bins '$bins' 33 --bins '$bins'
44 ]]></command> 51 ]]></command>
45 <inputs> 52 <inputs>
46 <param argument="--contigs" type="data" format="fasta" label="Contig sequences"/> 53 <param argument="--contigs" type="data" format="fasta" label="Contig sequences"/>
47 <repeat name="binning" title="Bins" min="1"> 54 <repeat name="binning" title="Bins" min="1">
48 <param argument="--bins" type="data" format="tabular" label="Contigs-to-bin table" help="Tabular with two columns: contig-IDs and bin-IDs. Fasta_to_Contigs2Bin can be used to Converts genome bins in fasta format to Contigs-to-bin table"/> 55 <param argument="--bins" type="data" format="tabular" label="Contigs-to-bin table" help="Tabular with two columns: contig-IDs and bin-IDs. Fasta_to_Contigs2Bin can be used to Converts genome bins in fasta format to Contigs-to-bin table"/>
49 <param argument="--labels" type="text" value="" label="Name of binning prediction tool used to generate the table"/> 56 <param argument="--labels" type="text" value="" label="Name of binning prediction name" help="If left empty the identifier of the contig-to-bin table is used. Only alphanumeric characters, dash, underscore and dor are allowed. Other characters are replaced by underscore.">
57 <sanitizer invalid_char="_">
58 <valid initial="string.ascii_letters,string.digits">
59 <add value="-" />
60 <add value="_" />
61 <add value="." />
62 </valid>
63 </sanitizer>
64 </param>
50 </repeat> 65 </repeat>
51 <section name="adv" title="Advanced options"> 66 <section name="adv" title="Advanced options">
52 <param argument="--search_engine" type="select" label="Engine used for single copy gene identification"> 67 <param argument="--search_engine" type="select" label="Engine used for single copy gene identification">
53 <option value="diamond" selected="true">diamond</option> 68 <option value="diamond" selected="true">diamond</option>
54 <option value="blastp">blastp</option> 69 <option value="blastp">blastp</option>
137 <has_text text="unique_SCGs"/> 152 <has_text text="unique_SCGs"/>
138 <has_text text="metabat.8"/> 153 <has_text text="metabat.8"/>
139 </assert_contents> 154 </assert_contents>
140 </output> 155 </output>
141 </test> 156 </test>
157 <!-- like the first test, but with empty label -->
158 <test expect_num_outputs="4">
159 <param name="contigs" value="contigs.fasta"/>
160 <repeat name="binning">
161 <param name="bins" value="metabat.tabular"/>
162 <!-- <param name="labels" value="metabat"/> -->
163 </repeat>
164 <section name="adv">
165 <param name="search_engine" value="diamond"/>
166 <param name="proteins" value="proteins.fasta"/>
167 <param name="score_threshold" value="0.5"/>
168 <param name="duplicate_penalty" value="0.6"/>
169 <param name="megabin_penalty" value="0.5" />
170 </section>
171 <section name="output">
172 <param name="write_bin_evals" value="true"/>
173 <conditional name="write_bins">
174 <param name="write_bins" value=""/>
175 </conditional>
176 <param name="debug" value="true"/>
177 </section>
178 <output name="summary" ftype="tabular">
179 <assert_contents>
180 <has_text text="unique_SCGs"/>
181 <has_text text="metabat.8"/>
182 <has_text text="bacteria"/>
183 </assert_contents>
184 </output>
185 <output name="contigs2bin" ftype="tabular">
186 <assert_contents>
187 <has_text text="Ley3_66761_scaffold_6"/>
188 </assert_contents>
189 </output>
190 <output name="log" ftype="txt">
191 <assert_contents>
192 <has_text text="Skipping gene prediction"/>
193 <has_text text="#Target sequences to report alignments for: 1"/>
194 </assert_contents>
195 </output>
196 <output name="eval" ftype="tabular">
197 <assert_contents>
198 <has_text text="unique_SCGs"/>
199 <has_text text="metabat.8"/>
200 </assert_contents>
201 </output>
202 </test>
142 <test expect_num_outputs="6"> 203 <test expect_num_outputs="6">
143 <param name="contigs" value="contigs.fasta"/> 204 <param name="contigs" value="contigs.fasta"/>
144 <repeat name="binning"> 205 <repeat name="binning">
145 <param name="bins" value="metabat.tabular"/> 206 <param name="bins" value="metabat.tabular"/>
146 <param name="labels" value="metabat"/> 207 <param name="labels" value="metabat"/>