annotate stacks_gstacks.xml @ 2:4301ded2ea50 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
author matthias
date Tue, 18 Dec 2018 12:58:51 -0500
parents 192f1d5f301e
children 285e1f85c11a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
192f1d5f301e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 8b047549e9e8791a5ca9424b1ef391e8980aba79-dirty
matthias
parents: 0
diff changeset
1 <tool id="stacks2_gstacks" name="Stacks2: gstacks" version="@STACKS_VERSION@+galaxy@WRAPPER_VERSION@">
0
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
2 <description>match stacks to a catalog</description>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
3 <macros>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
4 <import>macros.xml</import>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
5 </macros>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
6 <expand macro="requirements"/>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
7 <expand macro="stdio"/>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
8 <command><![CDATA[
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
9 @CLEAN_EXT@
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
10
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
11 mkdir bam_inputs stacks_outputs &&
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
12 #if $mode_cond.mode_select == "denovo" and not $popmap:
2
4301ded2ea50 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents: 1
diff changeset
13 ## since collections have no len .. yet
4301ded2ea50 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents: 1
diff changeset
14 #try:
4301ded2ea50 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents: 1
diff changeset
15 #set count = len($input_bam)
4301ded2ea50 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents: 1
diff changeset
16 #except:
4301ded2ea50 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents: 1
diff changeset
17 #set count = len($input_bam.keys())
4301ded2ea50 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents: 1
diff changeset
18 #end try
0
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
19 #if count == 1:
1
192f1d5f301e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 8b047549e9e8791a5ca9424b1ef391e8980aba79-dirty
matthias
parents: 0
diff changeset
20 #for $bam in $input_bam:
0
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
21 ln -s '$bam' bam_inputs/catalog.bam &&
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
22 #end for
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
23 #else
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
24 >&2 echo "exactly one (merged) bam file is needed in denovo mode if no population map is given" &&
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
25 exit 1 &&
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
26 #end if
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
27 #else
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
28 @BAM_INPUT@
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
29 #end if
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
30
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
31 gstacks
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
32
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
33 #if $mode_cond.mode_select == "denovo":
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
34 -P bam_inputs
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
35 $mode_cond.ignore_pe_reads
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
36 #if $mode_cond.advanced_cond.advanced_select == "yes":
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
37 --kmer-length $mode_cond.advanced_cond.kmer_length
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
38 --max-debruijn-reads $mode_cond.advanced_cond.max_debruijn_reads
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
39 --min-kmer-cov $mode_cond.advanced_cond.min_kmer_cov
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
40 #end if
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
41 #else:
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
42 #if $popmap
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
43 -I bam_inputs
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
44 #else
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
45 $bamlist
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
46 #end if
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
47 #if $mode_cond.paired_cond.paired_select == ''
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
48 $mode_cond.paired_cond.rm_unpaired_reads
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
49 $mode_cond.paired_cond.rm_pcr_duplicates
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
50 #else:
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
51 $mode_cond.paired_cond.paired_select
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
52 #end if
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
53 #if $mode_cond.advanced_cond.advanced_select == "yes":
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
54 --min-mapq $mode_cond.advanced_cond.min_mapq
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
55 --max-clipped $mode_cond.advanced_cond.max_clipped
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
56 --max-insert-len $mode_cond.advanced_cond.max_insert_len
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
57 $mode_cond.advanced_cond.details
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
58 --phasing-cooccurrences-thr-range $mode_cond.advanced_cond.phasing_cooccurrences_thr_min,$mode_cond.advanced_cond.phasing_cooccurrences_thr_max
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
59 $mode_cond.advanced_cond.phasing_dont_prune_hets
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
60 #end if
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
61 #end if
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
62 #if $popmap
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
63 -M '$popmap'
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
64 #end if
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
65 -O stacks_outputs
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
66 -t \${GALAXY_SLOTS:-1}
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
67
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
68 ##Model options:
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
69 --model $model_cond.model
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
70 #if $model_cond.model != "snp":
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
71 --var-alpha $model_cond.var_alpha
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
72 #end if
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
73 --gt-alpha $model_cond.gt_alpha
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
74
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
75 ## annoyingly gstacks creates stacks_output/population.log
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
76 ## instead of just writing to stderr as the other tools
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
77 ## hence we do not use the tokens and return populations.log as log file and take the stderr
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
78 && mv stacks_outputs/gstacks.log $output_log
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
79
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
80 ## the catalog.calls output is a gzip-ed vcf extract it
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
81 ## to make it usable in Galaxy (with the downside that we
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
82 ## need to gzip it again for downstream calls like populations)
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
83 && gunzip -c stacks_outputs/catalog.calls > stacks_outputs/catalog.calls.vcf
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
84
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
85
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
86 ## TODO extract individual distributions from stacks_outputs/gstacks.log.distribs
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
87 ## alternative extra tool
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
88 ## for i in \$(stacks-dist-extract stacks_outputs/gstacks.log.distribs)
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
89 ## do
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
90 ## stacks-dist-extract stacks_outputs/gstacks.log.distribs $i > stacks_outputs/gstacks.log.\$i.tsv
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
91 ## done
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
92 ## TODO make optional output collection
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
93 ]]></command>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
94
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
95 <inputs>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
96 <expand macro="bam_input_macro"/>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
97 <param name="popmap" type="data" format="tabular,txt" label="Population map" help="If set, matching will be done only for samples listed in this file" optional="true" argument="-M" />
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
98
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
99 <conditional name="mode_cond">
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
100 <param name="mode_select" type="select" label="Mode">
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
101 <option value="denovo" selected="true">De novo mode</option>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
102 <option value="refbased">Reference-based</option>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
103 </param>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
104 <when value="denovo">
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
105 <param argument="--ignore-pe-reads" name="ignore_pe_reads" type="boolean" checked="false" truevalue="--ignore-pe-reads" falsevalue="" label="ignore paired-end reads" help="ignore paired-end reads even if present in the input" />
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
106 <conditional name="advanced_cond">
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
107 <param name="advanced_select" type="select" label="Advanced options">
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
108 <option value="no">No</option>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
109 <option value="yes">Yes</option>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
110 </param>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
111 <when value="yes">
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
112 <param argument="--kmer-length" name="kmer_length" type="integer" value="31" min="2" max="31" label="kmer length for the de Bruijn graph" />
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
113 <param argument="--max-debruijn-reads" name="max_debruijn_reads" type="integer" value="1000" min="1" label="maximum number of reads to use in the de Bruijn graph" />
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
114 <param argument="--min-kmer-cov" name="min_kmer_cov" type="integer" value="2" label="minimum coverage to consider a kmer" />
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
115 </when>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
116 <when value="no"/>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
117 </conditional>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
118 </when>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
119 <when value="refbased">
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
120 <conditional name="paired_cond">
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
121 <param name="paired_select" type="select" label="paired end options" help="select single/paired for single end data or to select advanced paired end options, --unpaired: treat reverse reads as if they were forward reads; --ignore-pe-reads: ignore paired-end reads even if present in the input">
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
122 <option value="" selected="true">single/paired</option>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
123 <option value="--unpaired" selected="true">ignore read pairing (--unpaired)</option>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
124 <option value="--ignore-pe-reads" selected="true">ignore paired-end reads (--ignore-pe-reads)</option>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
125 </param>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
126 <when value="">
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
127 <param argument="--rm-unpaired-reads" name="rm_unpaired_reads" type="boolean" checked="false" truevalue="--rm-unpaired-reads" falsevalue="" label="discard unpaired reads" />
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
128 <param argument="--rm-pcr-duplicates" name="rm_pcr_duplicates" type="boolean" checked="false" truevalue="--rm-pcr-duplicates" falsevalue="" label="remove read pairs of the same sample that have the same insert length" help="implies --rm-unpaired-reads" />
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
129 </when>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
130 <when value="--unpaired"/>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
131 <when value="--ignore-pe-reads"/>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
132 </conditional>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
133 <conditional name="advanced_cond">
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
134 <param name="advanced_select" type="select" label="Advanced options">
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
135 <option value="no">No</option>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
136 <option value="yes">Yes</option>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
137 </param>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
138 <when value="yes">
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
139 <param argument="--min-mapq" name="min_mapq" type="integer" value="10" min="0" max="255" label="minimum PHRED-scaled mapping quality to consider a read" />
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
140 <param argument="--max-clipped" name="max_clipped" type="float" value="0.2" min="0.0" max="1.1" label="maximum soft-clipping level" help="in fraction of read length" />
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
141 <param argument="--max-insert-len" name="max_insert_len" type="integer" value="1000" min="0" label="maximum allowed sequencing insert length" />
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
142 <param argument="--details" type="boolean" checked="false" truevalue="--details" falsevalue="" label="write a heaview output" />
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
143 <param name="phasing_cooccurrences_thr_min" type="integer" value="1" min="0" label="edge coverage min" help="(--phasing-cooccurrences-thr-range)" />
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
144 <param name="phasing_cooccurrences_thr_max" type="integer" value="2" min="0" label="edge coverage max" help="range of edge coverage thresholds to iterate over when building the graph of allele cooccurrences for SNP phasing (--phasing-cooccurrences-thr-range)"/>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
145 <param argument="--phasing-dont-prune-hets" name="phasing_dont_prune_hets" type="boolean" checked="false" truevalue="--phasing-dont-prune-hets" falsevalue="" label="don't try to ignore dubious heterozygote genotypes during phasing" />
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
146 </when>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
147 <when value="no"/>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
148 </conditional>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
149 </when>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
150 </conditional>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
151
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
152 <conditional name="model_cond">
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
153 <param argument="--model" type="select" label="model to use to call variants and genotypes">
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
154 <option value="marukilow" selected="true">marukilow</option>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
155 <option value="marukihigh">marukihigh</option>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
156 <option value="snp">snp</option>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
157 </param>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
158 <when value="marukilow">
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
159 <expand macro="variant_calling_options_vg"/>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
160 </when>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
161 <when value="marukihigh">
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
162 <expand macro="variant_calling_options_vg"/>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
163 </when>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
164 <when value="snp">
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
165 <expand macro="variant_calling_options_g"/>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
166 </when>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
167 </conditional>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
168
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
169 <expand macro="in_log"/>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
170 </inputs>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
171 <outputs>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
172 <expand macro="out_log"/>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
173 <data format="txt" name="distribs" label="${tool.name} on ${on_string} distribs" from_work_dir="gstacks.log.distribs" />
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
174 <expand macro="gstacks_outputs_macro"/>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
175 </outputs>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
176
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
177 <tests>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
178 <!-- denovomode, w popmap -->
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
179 <test>
2
4301ded2ea50 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents: 1
diff changeset
180 <param name="input_bam" ftype="bam" value="tsv2bam/PopA_01.matches.bam,tsv2bam/PopA_02.matches.bam"/>
0
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
181 <param name="popmap" ftype="tabular" value="denovo_map/popmap_cstacks.tsv" />
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
182 <conditional name="mode_cond">
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
183 <param name="mode_select" value="denovo"/>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
184 </conditional>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
185 <param name="add_log" value="yes" />
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
186 <output name="output_log" ftype="txt" file="gstacks/gstacks.log" lines_diff="8"/>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
187 <output_collection name="gstacks_out" type="list" count="2">
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
188 <element name="catalog.calls.vcf" file="gstacks/catalog.calls.tsv" ftype="vcf" lines_diff="2"/>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
189 <element name="catalog.fa.gz" file="gstacks/catalog.fa.gz" ftype="fasta.gz" compare="sim_size"/>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
190 </output_collection>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
191 </test>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
192 <!-- denovomode, wo popmap (allows for only one input), ignore PE, advanced, alt model -->
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
193 <test>
1
192f1d5f301e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 8b047549e9e8791a5ca9424b1ef391e8980aba79-dirty
matthias
parents: 0
diff changeset
194 <param name="input_bam" value="tsv2bam/PopA_01.matches.bam" ftype="bam"/>
0
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
195 <conditional name="mode_cond">
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
196 <param name="mode_select" value="denovo" />
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
197 <param name="ignore_pe_reads" value="--ignore-pe-reads" />
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
198 <conditional name="advanced_cond">
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
199 <param name="advanced_select" value="yes"/>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
200 <param name="kmer_length" value="23" />
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
201 <param name="max_debruijn_reads" value="666"/>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
202 <param name="min_kmer_cov" value="3" />
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
203 </conditional>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
204 </conditional>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
205 <conditional name="model_cond">
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
206 <param name="model" value="marukihigh"/>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
207 <param name="var_alpha" value="0.1" />
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
208 <param name="gt_alpha" value="0.1" />
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
209 </conditional>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
210 <param name="add_log" value="yes" />
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
211 <assert_command>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
212 <has_text text="--ignore-pe-reads" />
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
213 <has_text text="--rm-pcr-duplicates" />
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
214 <has_text text="--kmer-length 23" />
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
215 <has_text text="--max-debruijn-reads 666" />
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
216 <has_text text="--min-kmer-cov 3" />
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
217 <has_text text="--model marukihigh" />
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
218 <has_text text="--var-alpha 0.1" />
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
219 <has_text text="--gt-alpha 0.1" />
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
220 </assert_command>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
221 <output name="output_log"><assert_contents><has_text text="gstacks is done." /></assert_contents></output>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
222 <output_collection name="gstacks_out" type="list" count="2"/>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
223 </test>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
224 <!-- refbased wo popmap, paired options, removing all unpaired reads results in an error -->
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
225 <test expect_failure="true" expect_exit_code="1">
1
192f1d5f301e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 8b047549e9e8791a5ca9424b1ef391e8980aba79-dirty
matthias
parents: 0
diff changeset
226 <param name="input_bam" value="tsv2bam/PopA_01.matches.bam,tsv2bam/PopA_02.matches.bam"/>
0
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
227 <conditional name="mode_cond">
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
228 <param name="mode_select" value="refbased"/>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
229 <conditional name="paired_cond">
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
230 <param name="paired_select" value=""/>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
231 <!--<param name="rm_unpaired_reads" value="\-\-rm-unpaired-reads" /> removes to much of the test data and gstacks fails-->
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
232 <param name="rm_pcr_duplicates" value="--rm-pcr-duplicates" />
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
233 </conditional>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
234 </conditional>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
235 <param name="add_log" value="yes" />
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
236 <assert_command>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
237 <has_text text="-I bam_inputs" />
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
238 <not_has_text text="-B " />
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
239 <has_text text="--rm-unpaired-reads" />
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
240 <has_text text="--rm-pcr-duplicates" />
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
241 </assert_command>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
242 </test>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
243 <!-- refbased w popmap (here bam names need to be equal to sample names in popmap), \-\-unpaired, advanced, snp model -->
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
244 <test>
2
4301ded2ea50 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents: 1
diff changeset
245 <param name="input_bam" ftype="bam" value="refmap/PopA_01.bam,refmap/PopA_02.bam"/>
0
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
246 <param name="popmap" ftype="tabular" value="denovo_map/popmap_cstacks.tsv" />
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
247 <conditional name="mode_cond">
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
248 <param name="mode_select" value="refbased"/>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
249 <conditional name="paired_cond">
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
250 <param name="paired_select" value="--unpaired"/>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
251 </conditional>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
252 <conditional name="advanced_cond">
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
253 <param name="advanced_select" value="yes" />
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
254 <param name="min_mapq" value="23" />
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
255 <param name="max_clipped" value="0.23" />
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
256 <param name="max_insert_len" value="666" />
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
257 <param name="details" value="--detailed"/>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
258 <param name="phasing_cooccurrences_thr_min" value="2"/>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
259 <param name="phasing_cooccurrences_thr_max" value="3"/>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
260 <param name="phasing_dont_prune_hets" value="--phasing-dont-prune-hets" />
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
261 </conditional>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
262 </conditional>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
263 <param name="model_cond|model" value="snp"/>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
264 <param name="model_cond|gt_alpha" value="0.1" />
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
265 <param name="add_log" value="yes" />
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
266 <assert_command>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
267 <not_has_text text="-I bam_inputs" />
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
268 <has_text text="-B " />
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
269 <has_text text="--unpaired" />
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
270 <has_text text="--min-mapq 23" />
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
271 <has_text text="--max-clipped 0.23" />
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
272 <has_text text="--max-insert-len 666" />
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
273 <has_text text="--detailed" />
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
274 <has_text text="--phasing-cooccurrences-thr-range 2,3" />
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
275 <has_text text="--phasing-dont-prune-hets" />
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
276 <has_text text="--model snp" />
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
277 <has_text text="--gt-alpha 0.1" />
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
278 </assert_command>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
279 <output name="output_log"><assert_contents><has_text text="gstacks is done." /></assert_contents></output>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
280 <output_collection name="gstacks_out" type="list" count="2"/>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
281 </test>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
282 <!-- refbased wo popmap (here bam names don't matter), \-\-ignorepe -->
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
283 <test>
2
4301ded2ea50 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents: 1
diff changeset
284 <param name="input_bam" ftype="bam" value="tsv2bam/PopA_01.matches.bam,tsv2bam/PopA_02.matches.bam"/>
0
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
285 <conditional name="mode_cond">
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
286 <param name="mode_select" value="refbased"/>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
287 <conditional name="paired_cond">
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
288 <param name="paired_select" value="--ignore-pe-reads"/>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
289 </conditional>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
290 </conditional>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
291 <param name="add_log" value="yes" />
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
292 <assert_command>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
293 <has_text text="-I bam_inputs" />
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
294 <not_has_text text="-B " />
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
295 <has_text text="--ignore-pe-reads" />
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
296 </assert_command>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
297 <output name="output_log"><assert_contents><has_text text="gstacks is done." /></assert_contents></output>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
298 <output_collection name="gstacks_out" type="list" count="2">
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
299 <element name="catalog.calls.vcf" file="gstacks/catalog.calls.tsv" ftype="vcf" lines_diff="2"/>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
300 <element name="catalog.fa.gz" file="gstacks/catalog.fa.gz" ftype="fasta.gz" compare="sim_size"/>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
301 </output_collection>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
302 </test>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
303 </tests>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
304
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
305 <help>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
306 <![CDATA[
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
307 .. class:: infomark
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
308
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
309 **What it does**
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
310
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
311 For de novo analyses, this program will pull in paired-end reads, if available,
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
312 assemble the paired-end contig and merge it with the single-end locus, align
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
313 reads to the locus, and call SNPs.
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
314
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
315 For reference-aligned analyses, this program will build loci from the single
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
316 and/or paired-end reads before calling SNPs. The single- and paired-end reads
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
317 must be aligned and stored together in the intput BAM or SAM files and the
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
318 reads must be sorted. The gstacks program will detect if single- or paired-end
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
319 reads are present.
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
320
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
321 In either mode, gstacks is able to remove PCR duplicates if requested.
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
322
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
323 --------
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
324
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
325 **Input files**
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
326
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
327 If a population map is given BAM records must be assigned to samples using BAM "reads groups"
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
328 (gstacks uses the ID/identifier and SM/sample name fields). Read groups
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
329 must be consistent if repeated different files.
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
330 Otherwise read groups are unneeded and ignored.
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
331
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
332 **Output files**
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
333
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
334 TODO
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
335
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
336 @STACKS_INFOS@
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
337 ]]>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
338 </help>
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
339 <expand macro="citation" />
ce90584be117 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 98327d2948ae1ccb5aef5db9ab88605fd74a0de7-dirty
matthias
parents:
diff changeset
340 </tool>