comparison stacks_gstacks.xml @ 1:192f1d5f301e draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 8b047549e9e8791a5ca9424b1ef391e8980aba79-dirty
author matthias
date Fri, 30 Nov 2018 07:38:39 -0500
parents ce90584be117
children 4301ded2ea50
comparison
equal deleted inserted replaced
0:ce90584be117 1:192f1d5f301e
1 <tool id="stacks2_gstacks" name="Stacks2: gstacks" version="@WRAPPER_VERSION@"> 1 <tool id="stacks2_gstacks" name="Stacks2: gstacks" version="@STACKS_VERSION@+galaxy@WRAPPER_VERSION@">
2 <description>match stacks to a catalog</description> 2 <description>match stacks to a catalog</description>
3 <macros> 3 <macros>
4 <import>macros.xml</import> 4 <import>macros.xml</import>
5 </macros> 5 </macros>
6 <expand macro="requirements"/> 6 <expand macro="requirements"/>
14 #set count = len($input_type.input_bam) 14 #set count = len($input_type.input_bam)
15 #else 15 #else
16 #set count = len($input_type.input_bam.keys()) 16 #set count = len($input_type.input_bam.keys())
17 #end if 17 #end if
18 #if count == 1: 18 #if count == 1:
19 #for $bam in $input_type.input_bam: 19 #for $bam in $input_bam:
20 ln -s '$bam' bam_inputs/catalog.bam && 20 ln -s '$bam' bam_inputs/catalog.bam &&
21 #end for 21 #end for
22 #else 22 #else
23 >&2 echo "exactly one (merged) bam file is needed in denovo mode if no population map is given" && 23 >&2 echo "exactly one (merged) bam file is needed in denovo mode if no population map is given" &&
24 exit 1 && 24 exit 1 &&
174 </outputs> 174 </outputs>
175 175
176 <tests> 176 <tests>
177 <!-- denovomode, w popmap --> 177 <!-- denovomode, w popmap -->
178 <test> 178 <test>
179 <param name="input_type|input_type_selector" value="list"/> 179 <param name="input_bam">
180 <param name="input_type|input_bam">
181 <collection type="list"> 180 <collection type="list">
182 <element name="PopA_01.matches" ftype="bam" value="tsv2bam/PopA_01.matches.bam" /> 181 <element name="PopA_01.matches" ftype="bam" value="tsv2bam/PopA_01.matches.bam" />
183 <element name="PopA_02.matches" ftype="bam" value="tsv2bam/PopA_02.matches.bam" /> 182 <element name="PopA_02.matches" ftype="bam" value="tsv2bam/PopA_02.matches.bam" />
184 </collection> 183 </collection>
185 </param> 184 </param>
194 <element name="catalog.fa.gz" file="gstacks/catalog.fa.gz" ftype="fasta.gz" compare="sim_size"/> 193 <element name="catalog.fa.gz" file="gstacks/catalog.fa.gz" ftype="fasta.gz" compare="sim_size"/>
195 </output_collection> 194 </output_collection>
196 </test> 195 </test>
197 <!-- denovomode, wo popmap (allows for only one input), ignore PE, advanced, alt model --> 196 <!-- denovomode, wo popmap (allows for only one input), ignore PE, advanced, alt model -->
198 <test> 197 <test>
199 <param name="input_type|input_type_selector" value="manual"/> 198 <param name="input_bam" value="tsv2bam/PopA_01.matches.bam" ftype="bam"/>
200 <param name="input_type|input_bam" value="tsv2bam/PopA_01.matches.bam" ftype="bam"/>
201 <conditional name="mode_cond"> 199 <conditional name="mode_cond">
202 <param name="mode_select" value="denovo" /> 200 <param name="mode_select" value="denovo" />
203 <param name="ignore_pe_reads" value="--ignore-pe-reads" /> 201 <param name="ignore_pe_reads" value="--ignore-pe-reads" />
204 <conditional name="advanced_cond"> 202 <conditional name="advanced_cond">
205 <param name="advanced_select" value="yes"/> 203 <param name="advanced_select" value="yes"/>
227 <output name="output_log"><assert_contents><has_text text="gstacks is done." /></assert_contents></output> 225 <output name="output_log"><assert_contents><has_text text="gstacks is done." /></assert_contents></output>
228 <output_collection name="gstacks_out" type="list" count="2"/> 226 <output_collection name="gstacks_out" type="list" count="2"/>
229 </test> 227 </test>
230 <!-- refbased wo popmap, paired options, removing all unpaired reads results in an error --> 228 <!-- refbased wo popmap, paired options, removing all unpaired reads results in an error -->
231 <test expect_failure="true" expect_exit_code="1"> 229 <test expect_failure="true" expect_exit_code="1">
232 <param name="input_type|input_type_selector" value="manual"/> 230 <param name="input_bam" value="tsv2bam/PopA_01.matches.bam,tsv2bam/PopA_02.matches.bam"/>
233 <param name="input_type|input_bam" value="tsv2bam/PopA_01.matches.bam,tsv2bam/PopA_02.matches.bam"/>
234 <conditional name="mode_cond"> 231 <conditional name="mode_cond">
235 <param name="mode_select" value="refbased"/> 232 <param name="mode_select" value="refbased"/>
236 <conditional name="paired_cond"> 233 <conditional name="paired_cond">
237 <param name="paired_select" value=""/> 234 <param name="paired_select" value=""/>
238 <!--<param name="rm_unpaired_reads" value="\-\-rm-unpaired-reads" /> removes to much of the test data and gstacks fails--> 235 <!--<param name="rm_unpaired_reads" value="\-\-rm-unpaired-reads" /> removes to much of the test data and gstacks fails-->
247 <has_text text="--rm-pcr-duplicates" /> 244 <has_text text="--rm-pcr-duplicates" />
248 </assert_command> 245 </assert_command>
249 </test> 246 </test>
250 <!-- refbased w popmap (here bam names need to be equal to sample names in popmap), \-\-unpaired, advanced, snp model --> 247 <!-- refbased w popmap (here bam names need to be equal to sample names in popmap), \-\-unpaired, advanced, snp model -->
251 <test> 248 <test>
252 <param name="input_type|input_type_selector" value="list"/> 249 <param name="input_bam">
253 <param name="input_type|input_bam">
254 <collection type="list"> 250 <collection type="list">
255 <element name="PopA_01" ftype="bam" value="tsv2bam/PopA_01.matches.bam" /> 251 <element name="PopA_01" ftype="bam" value="tsv2bam/PopA_01.matches.bam" />
256 <element name="PopA_02" ftype="bam" value="tsv2bam/PopA_02.matches.bam" /> 252 <element name="PopA_02" ftype="bam" value="tsv2bam/PopA_02.matches.bam" />
257 </collection> 253 </collection>
258 </param> 254 </param>
292 <output name="output_log"><assert_contents><has_text text="gstacks is done." /></assert_contents></output> 288 <output name="output_log"><assert_contents><has_text text="gstacks is done." /></assert_contents></output>
293 <output_collection name="gstacks_out" type="list" count="2"/> 289 <output_collection name="gstacks_out" type="list" count="2"/>
294 </test> 290 </test>
295 <!-- refbased wo popmap (here bam names don't matter), \-\-ignorepe --> 291 <!-- refbased wo popmap (here bam names don't matter), \-\-ignorepe -->
296 <test> 292 <test>
297 <param name="input_type|input_type_selector" value="list"/> 293 <param name="input_bam">
298 <param name="input_type|input_bam">
299 <collection type="list"> 294 <collection type="list">
300 <element name="PopA_01.matches" ftype="bam" value="tsv2bam/PopA_01.matches.bam" /> 295 <element name="PopA_01.matches" ftype="bam" value="tsv2bam/PopA_01.matches.bam" />
301 <element name="PopA_02.matches" ftype="bam" value="tsv2bam/PopA_02.matches.bam" /> 296 <element name="PopA_02.matches" ftype="bam" value="tsv2bam/PopA_02.matches.bam" />
302 </collection> 297 </collection>
303 </param> 298 </param>