annotate stacks_gstacks.xml @ 6:7b72fde3d27e draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 2f4c9bfc48d63075ae18a1687e8d01ffea509084
author iuc
date Wed, 11 May 2022 06:40:42 +0000
parents f6e91108b7b1
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5
f6e91108b7b1 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 16654f3b3faaba994cea5fda8d4907ea4f059605"
iuc
parents: 4
diff changeset
1 <tool id="stacks2_gstacks" name="Stacks2: gstacks" profile="@PROFILE@" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@">
0
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
2 <description>Call variants, genotypes and haplotype</description>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
3 <macros>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
4 <import>macros.xml</import>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
5 </macros>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
6 <expand macro="requirements">
4
7370bb65bad4 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 75f83e7b16127aecc68a58df2cb75062f2a9296a"
iuc
parents: 3
diff changeset
7 <requirement type="package" version="1.13">samtools</requirement>
0
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
8 </expand>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
9 <expand macro="version_cmd"/>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
10 <command detect_errors="aggressive"><![CDATA[
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
11 @FASTQ_INPUT_FUNCTIONS@
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
12
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
13 mkdir bam_inputs stacks_outputs &&
1
27359c6bf3e3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit c300b84615660459bb0020fa74ccd3b874d329a4"
iuc
parents: 0
diff changeset
14
27359c6bf3e3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit c300b84615660459bb0020fa74ccd3b874d329a4"
iuc
parents: 0
diff changeset
15 ## annoyingly gstacks creates stacks_output/gstacks.log
27359c6bf3e3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit c300b84615660459bb0020fa74ccd3b874d329a4"
iuc
parents: 0
diff changeset
16 ## instead of just writing to stderr as the other tools
27359c6bf3e3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit c300b84615660459bb0020fa74ccd3b874d329a4"
iuc
parents: 0
diff changeset
17 ## hence we do not use the tokens and return populations.log as log file and take the stderr
27359c6bf3e3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit c300b84615660459bb0020fa74ccd3b874d329a4"
iuc
parents: 0
diff changeset
18 #if $output_log
27359c6bf3e3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit c300b84615660459bb0020fa74ccd3b874d329a4"
iuc
parents: 0
diff changeset
19 ln -s '$output_log' stacks_outputs/gstacks.log &&
27359c6bf3e3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit c300b84615660459bb0020fa74ccd3b874d329a4"
iuc
parents: 0
diff changeset
20 #end if
27359c6bf3e3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit c300b84615660459bb0020fa74ccd3b874d329a4"
iuc
parents: 0
diff changeset
21
0
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
22 #if $mode_cond.mode_select == "denovo" and not $popmap:
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
23 ## since collections have no len .. yet
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
24 #try:
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
25 #set count = len($input_bam)
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
26 #except:
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
27 #set count = len($input_bam.keys())
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
28 #end try
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
29 #if count == 1:
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
30 #for $bam in $input_bam:
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
31 ln -s '$bam' bam_inputs/catalog.bam &&
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
32 #end for
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
33 #else
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
34 >&2 echo "exactly one (merged) bam file is needed in denovo mode if no population map is given" &&
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
35 exit 1 &&
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
36 #end if
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
37 #else
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
38 @BAM_INPUT@
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
39 #end if
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
40
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
41 gstacks
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
42
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
43 #if $mode_cond.mode_select == "denovo":
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
44 -P bam_inputs
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
45 $mode_cond.ignore_pe_reads
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
46 #if $mode_cond.advanced_cond.advanced_select == "yes":
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
47 --kmer-length $mode_cond.advanced_cond.kmer_length
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
48 --max-debruijn-reads $mode_cond.advanced_cond.max_debruijn_reads
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
49 --min-kmer-cov $mode_cond.advanced_cond.min_kmer_cov
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
50 $mode_cond.advanced_cond.write_alignments
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
51 #end if
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
52 #else:
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
53 #if $popmap
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
54 -I bam_inputs
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
55 #else
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
56 $bamlist
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
57 #end if
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
58 #if $mode_cond.paired_cond.paired_select == ''
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
59 $mode_cond.paired_cond.rm_unpaired_reads
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
60 $mode_cond.paired_cond.rm_pcr_duplicates
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
61 #else:
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
62 $mode_cond.paired_cond.paired_select
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
63 #end if
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
64 #if $mode_cond.advanced_cond.advanced_select == "yes":
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
65 --min-mapq $mode_cond.advanced_cond.min_mapq
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
66 --max-clipped $mode_cond.advanced_cond.max_clipped
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
67 --max-insert-len $mode_cond.advanced_cond.max_insert_len
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
68 $mode_cond.advanced_cond.details
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
69 --phasing-cooccurrences-thr-range $mode_cond.advanced_cond.phasing_cooccurrences_thr_min,$mode_cond.advanced_cond.phasing_cooccurrences_thr_max
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
70 $mode_cond.advanced_cond.phasing_dont_prune_hets
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
71 #end if
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
72 #end if
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
73 #if $popmap
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
74 -M '$popmap'
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
75 #end if
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
76 -O stacks_outputs
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
77 -t \${GALAXY_SLOTS:-1}
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
78
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
79 ##Model options:
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
80 --model $model_cond.model
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
81 --var-alpha $model_cond.var_alpha
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
82 --gt-alpha $model_cond.gt_alpha
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
83
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
84
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
85 ## the bam files generated by gstacks (--write-alignments) are seemingly buggy
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
86 ## (https://groups.google.com/d/msg/stacks-users/CazwJY1DPGA/7vuahiB2GgAJ)
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
87 ## so we fix them temporarily by piping them through samtools view (disabling all
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
88 ## exit codes and stderr output) this adds the samtools requirement
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
89 ## for later versions where this is fixed the output bam files could just be moved
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
90 ## to stacks_outputs if this is still necessary
4
7370bb65bad4 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 75f83e7b16127aecc68a58df2cb75062f2a9296a"
iuc
parents: 3
diff changeset
91 #if $mode_cond.mode_select == "denovo" and $mode_cond.advanced_cond.advanced_select == "yes" and $mode_cond.advanced_cond.write_alignments
0
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
92 #if $popmap:
4
7370bb65bad4 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 75f83e7b16127aecc68a58df2cb75062f2a9296a"
iuc
parents: 3
diff changeset
93 && for b in stacks_outputs/*alns.bam; do (samtools view --no-PG -b "\$b" || true) 2> /dev/null > tmp && mv tmp "\$b"; done
0
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
94 #else
4
7370bb65bad4 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 75f83e7b16127aecc68a58df2cb75062f2a9296a"
iuc
parents: 3
diff changeset
95 && (samtools view --no-PG -b stacks_outputs/alignments.bam || true) 2> /dev/null > tmp && mv tmp stacks_outputs/alignments.bam
0
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
96 #end if
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
97 #end if
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
98
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
99 @EXTRACT_VCF@
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
100
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
101 ## TODO extract individual distributions from stacks_outputs/gstacks.log.distribs
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
102 ## alternative extra tool
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
103 ## for i in \$(stacks-dist-extract stacks_outputs/gstacks.log.distribs)
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
104 ## do
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
105 ## stacks-dist-extract stacks_outputs/gstacks.log.distribs $i > stacks_outputs/gstacks.log.\$i.tsv
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
106 ## done
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
107 ## TODO make optional output collection
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
108 ]]></command>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
109
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
110 <inputs>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
111 <expand macro="bam_input_macro"/>
2
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
112 <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"/>
0
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
113
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
114 <conditional name="mode_cond">
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
115 <param name="mode_select" type="select" label="Mode">
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
116 <option value="denovo" selected="true">De novo mode</option>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
117 <option value="refbased">Reference-based</option>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
118 </param>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
119 <when value="denovo">
4
7370bb65bad4 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 75f83e7b16127aecc68a58df2cb75062f2a9296a"
iuc
parents: 3
diff changeset
120 <param argument="--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"/>
0
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
121 <conditional name="advanced_cond">
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
122 <param name="advanced_select" type="select" label="Advanced options">
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
123 <option value="no">No</option>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
124 <option value="yes">Yes</option>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
125 </param>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
126 <when value="yes">
4
7370bb65bad4 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 75f83e7b16127aecc68a58df2cb75062f2a9296a"
iuc
parents: 3
diff changeset
127 <param argument="--kmer-length" type="integer" value="31" min="2" max="31" label="K-mer length for the de Bruijn graph"/>
7370bb65bad4 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 75f83e7b16127aecc68a58df2cb75062f2a9296a"
iuc
parents: 3
diff changeset
128 <param argument="--max-debruijn-reads" type="integer" value="1000" min="1" label="Maximum number of reads to use in the de Bruijn graph"/>
7370bb65bad4 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 75f83e7b16127aecc68a58df2cb75062f2a9296a"
iuc
parents: 3
diff changeset
129 <param argument="--min-kmer-cov" type="integer" value="2" label="Minimum coverage to consider a kmer"/>
7370bb65bad4 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 75f83e7b16127aecc68a58df2cb75062f2a9296a"
iuc
parents: 3
diff changeset
130 <param argument="--write-alignments" type="boolean" checked="false" truevalue="--write-alignments" falsevalue="" label="save read alignments" help="heavy BAM files"/>
0
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
131 </when>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
132 <when value="no"/>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
133 </conditional>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
134 </when>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
135 <when value="refbased">
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
136 <conditional name="paired_cond">
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
137 <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">
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
138 <option value="" selected="true">single/paired</option>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
139 <option value="--unpaired" selected="true">ignore read pairing (--unpaired)</option>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
140 <option value="--ignore-pe-reads" selected="true">ignore paired-end reads (--ignore-pe-reads)</option>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
141 </param>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
142 <when value="">
4
7370bb65bad4 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 75f83e7b16127aecc68a58df2cb75062f2a9296a"
iuc
parents: 3
diff changeset
143 <param argument="--rm-unpaired-reads" type="boolean" checked="false" truevalue="--rm-unpaired-reads" falsevalue="" label="Discard unpaired reads"/>
7370bb65bad4 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 75f83e7b16127aecc68a58df2cb75062f2a9296a"
iuc
parents: 3
diff changeset
144 <param argument="--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"/>
0
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
145 </when>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
146 <when value="--unpaired"/>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
147 <when value="--ignore-pe-reads"/>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
148 </conditional>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
149 <conditional name="advanced_cond">
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
150 <param name="advanced_select" type="select" label="Advanced options">
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
151 <option value="no">No</option>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
152 <option value="yes">Yes</option>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
153 </param>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
154 <when value="yes">
4
7370bb65bad4 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 75f83e7b16127aecc68a58df2cb75062f2a9296a"
iuc
parents: 3
diff changeset
155 <param argument="--min-mapq" type="integer" value="10" min="0" max="255" label="Minimum PHRED-scaled mapping quality to consider a read"/>
7370bb65bad4 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 75f83e7b16127aecc68a58df2cb75062f2a9296a"
iuc
parents: 3
diff changeset
156 <param argument="--max-clipped" type="float" value="0.2" min="0.0" max="1.1" label="Maximum soft-clipping level" help="in fraction of read length"/>
7370bb65bad4 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 75f83e7b16127aecc68a58df2cb75062f2a9296a"
iuc
parents: 3
diff changeset
157 <param argument="--max-insert-len" type="integer" value="1000" min="0" label="Maximum allowed sequencing insert length"/>
2
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
158 <param argument="--details" type="boolean" checked="false" truevalue="--details" falsevalue="" label="Write a heaview output"/>
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
159 <param name="phasing_cooccurrences_thr_min" type="integer" value="1" min="0" label="Edge coverage min" help="(--phasing-cooccurrences-thr-range)"/>
0
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
160 <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)"/>
4
7370bb65bad4 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 75f83e7b16127aecc68a58df2cb75062f2a9296a"
iuc
parents: 3
diff changeset
161 <param argument="--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"/>
0
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
162 </when>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
163 <when value="no"/>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
164 </conditional>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
165 </when>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
166 </conditional>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
167
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
168 <conditional name="model_cond">
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
169 <param argument="--model" type="select" label="Model to use to call variants and genotypes">
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
170 <option value="marukilow" selected="true">marukilow</option>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
171 <option value="marukihigh">marukihigh</option>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
172 <option value="snp">snp</option>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
173 </param>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
174 <when value="marukilow">
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
175 <expand macro="variant_calling_options_vg" varalpha_default="0.01"/>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
176 </when>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
177 <when value="marukihigh">
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
178 <expand macro="variant_calling_options_vg"/>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
179 </when>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
180 <when value="snp">
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
181 <expand macro="variant_calling_options_vg"/>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
182 </when>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
183 </conditional>
2
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
184 <param name="add_log_distribs" type="boolean" checked="false" truevalue="yes" falsevalue="no" label="Add log distribs output as dataset"/>
0
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
185 <expand macro="in_log"/>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
186 </inputs>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
187 <outputs>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
188 <expand macro="out_log"/>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
189 <expand macro="gstacks_outputs_full_macro"/>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
190 </outputs>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
191
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
192 <tests>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
193 <!-- denovomode, w popmap -->
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
194 <test expect_num_outputs="3">
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
195 <param name="input_bam" ftype="bam" value="tsv2bam/PopA_01.matches.bam,tsv2bam/PopA_02.matches.bam"/>
2
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
196 <param name="popmap" ftype="tabular" value="denovo_map/popmap_cstacks.tsv"/>
0
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
197 <conditional name="mode_cond">
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
198 <param name="mode_select" value="denovo"/>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
199 </conditional>
2
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
200 <param name="add_log" value="yes"/>
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
201 <param name="add_log_distribs" value="yes"/>
0
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
202 <output name="output_log" ftype="txt" file="gstacks/gstacks.log" lines_diff="8"/>
2
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
203 <output name="distribs" ftype="txt" file="gstacks/gstacks.log.distribs" compare="sim_size" delta="10"/>
0
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
204 <output_collection name="gstacks_out" type="list" count="2">
2
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
205 <element name="catalog.calls.vcf" file="gstacks/catalog.calls.vcf" ftype="vcf" lines_diff="4"/>
4
7370bb65bad4 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 75f83e7b16127aecc68a58df2cb75062f2a9296a"
iuc
parents: 3
diff changeset
206 <element name="catalog.fa.gz" file="gstacks/catalog.fa.gz" ftype="fasta.gz" decompress="true" compare="diff"/>
0
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
207 </output_collection>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
208 </test>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
209 <!-- denovomode, w popmap, write alignments -->
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
210 <test expect_num_outputs="3">
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
211 <param name="input_bam" ftype="bam" value="tsv2bam/PopA_01.matches.bam,tsv2bam/PopA_02.matches.bam"/>
2
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
212 <param name="popmap" ftype="tabular" value="denovo_map/popmap_cstacks.tsv"/>
0
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
213 <conditional name="mode_cond">
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
214 <param name="mode_select" value="denovo"/>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
215 <conditional name="advanced_cond">
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
216 <param name="advanced_select" value="yes"/>
4
7370bb65bad4 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 75f83e7b16127aecc68a58df2cb75062f2a9296a"
iuc
parents: 3
diff changeset
217 <param name="write_alignments" value="true"/>
0
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
218 </conditional>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
219 </conditional>
2
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
220 <param name="add_log" value="yes"/>
0
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
221 <assert_command>
2
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
222 <has_text text="--write-alignments"/>
0
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
223 </assert_command>
2
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
224 <output name="output_log" ftype="txt"><assert_contents><has_text text="done."/></assert_contents></output>
0
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
225 <output_collection name="gstacks_out" type="list" count="2"/>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
226 <output_collection name="gstacks_alns_out" type="list" count="2">
2
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
227 <element name="PopA_01" file="gstacks/PopA_01.alns.bam" ftype="bam"/>
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
228 <element name="PopA_02" file="gstacks/PopA_02.alns.bam" ftype="bam"/>
0
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
229 </output_collection>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
230 </test>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
231 <!-- denovomode, wo popmap (allows for only one input), ignore PE, advanced, alt model -->
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
232 <test expect_num_outputs="3">
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
233 <param name="input_bam" value="tsv2bam/PopA_01.matches.bam" ftype="bam"/>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
234 <conditional name="mode_cond">
2
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
235 <param name="mode_select" value="denovo"/>
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
236 <param name="ignore_pe_reads" value="--ignore-pe-reads"/>
0
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
237 <conditional name="advanced_cond">
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
238 <param name="advanced_select" value="yes"/>
2
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
239 <param name="kmer_length" value="23"/>
0
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
240 <param name="max_debruijn_reads" value="666"/>
2
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
241 <param name="min_kmer_cov" value="3"/>
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
242 <param name="write_alignments" value="--write-alignments"/>
0
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
243 </conditional>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
244 </conditional>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
245 <conditional name="model_cond">
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
246 <param name="model" value="marukihigh"/>
2
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
247 <param name="var_alpha" value="0.1"/>
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
248 <param name="gt_alpha" value="0.1"/>
0
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
249 </conditional>
2
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
250 <param name="add_log" value="yes"/>
0
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
251 <assert_command>
2
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
252 <has_text text="--ignore-pe-reads"/>
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
253 <has_text text="--kmer-length 23"/>
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
254 <has_text text="--max-debruijn-reads 666"/>
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
255 <has_text text="--min-kmer-cov 3"/>
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
256 <has_text text="--write-alignments"/>
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
257 <has_text text="--model marukihigh"/>
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
258 <has_text text="--var-alpha 0.1"/>
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
259 <has_text text="--gt-alpha 0.1"/>
0
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
260 </assert_command>
2
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
261 <output name="output_log" ftype="txt"><assert_contents><has_text text="done."/></assert_contents></output>
0
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
262 <output_collection name="gstacks_out" type="list" count="2"/>
2
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
263 <output name="gstacks_aln_out" ftype="bam" file="gstacks/alignments.bam"/>
0
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
264 </test>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
265 <!-- refbased wo popmap, paired options, removing all unpaired reads results in an error -->
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
266 <test expect_failure="true" expect_exit_code="1">
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
267 <param name="input_bam" value="tsv2bam/PopA_01.bam,tsv2bam/PopA_02.bam"/>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
268 <conditional name="mode_cond">
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
269 <param name="mode_select" value="refbased"/>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
270 <conditional name="paired_cond">
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
271 <param name="paired_select" value=""/>
2
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
272 <!--<param name="rm_unpaired_reads" value="\-\-rm-unpaired-reads"/> removes too much of the test data and gstacks fails-->
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
273 <param name="rm_pcr_duplicates" value="--rm-pcr-duplicates"/>
0
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
274 </conditional>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
275 </conditional>
2
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
276 <param name="add_log" value="yes"/>
0
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
277 <assert_command>
2
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
278 <not_has_text text="-I bam_inputs"/>
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
279 <has_text text="-B "/>
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
280 <not_has_text text="--rm-unpaired-reads"/>
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
281 <has_text text="--rm-pcr-duplicates"/>
0
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
282 </assert_command>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
283 </test>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
284 <!-- refbased w popmap (here bam names need to be equal to sample names in popmap), \-\-unpaired, advanced, snp model -->
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
285 <test expect_num_outputs="2">
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
286 <param name="input_bam" ftype="bam" value="tsv2bam/PopA_01.bam,tsv2bam/PopA_02.bam"/>
2
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
287 <param name="popmap" ftype="tabular" value="denovo_map/popmap_cstacks.tsv"/>
0
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
288 <conditional name="mode_cond">
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
289 <param name="mode_select" value="refbased"/>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
290 <conditional name="paired_cond">
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
291 <param name="paired_select" value="--unpaired"/>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
292 </conditional>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
293 <conditional name="advanced_cond">
2
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
294 <param name="advanced_select" value="yes"/>
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
295 <param name="min_mapq" value="23"/>
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
296 <param name="max_clipped" value="0.23"/>
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
297 <param name="max_insert_len" value="666"/>
1
27359c6bf3e3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit c300b84615660459bb0020fa74ccd3b874d329a4"
iuc
parents: 0
diff changeset
298 <param name="details" value="--details"/>
0
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
299 <param name="phasing_cooccurrences_thr_min" value="2"/>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
300 <param name="phasing_cooccurrences_thr_max" value="3"/>
2
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
301 <param name="phasing_dont_prune_hets" value="--phasing-dont-prune-hets"/>
0
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
302 </conditional>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
303 </conditional>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
304 <param name="model_cond|model" value="snp"/>
2
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
305 <param name="model_cond|gt_alpha" value="0.1"/>
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
306 <param name="model_cond|var_alpha" value="0.1"/>
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
307 <param name="add_log" value="yes"/>
0
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
308 <assert_command>
2
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
309 <has_text text="-I bam_inputs"/>
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
310 <not_has_text text="-B "/>
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
311 <has_text text="--unpaired"/>
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
312 <has_text text="--min-mapq 23"/>
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
313 <has_text text="--max-clipped 0.23"/>
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
314 <has_text text="--max-insert-len 666"/>
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
315 <has_text text="--details"/>
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
316 <has_text text="--phasing-cooccurrences-thr-range 2,3"/>
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
317 <has_text text="--phasing-dont-prune-hets"/>
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
318 <has_text text="--model snp"/>
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
319 <has_text text="--gt-alpha 0.1"/>
0
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
320 </assert_command>
2
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
321 <output name="output_log" ftype="txt"><assert_contents><has_text text="done."/></assert_contents></output>
0
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
322 <output_collection name="gstacks_out" type="list" count="2"/>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
323 </test>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
324 <!-- refbased wo popmap (here bam names don't matter), \-\-ignorepe -->
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
325 <test expect_num_outputs="2">
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
326 <param name="input_bam" ftype="bam" value="tsv2bam/PopA_01.bam,tsv2bam/PopA_02.bam"/>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
327 <conditional name="mode_cond">
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
328 <param name="mode_select" value="refbased"/>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
329 <conditional name="paired_cond">
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
330 <param name="paired_select" value="--ignore-pe-reads"/>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
331 </conditional>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
332 </conditional>
2
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
333 <param name="add_log" value="yes"/>
0
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
334 <assert_command>
2
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
335 <not_has_text text="-I bam_inputs"/>
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
336 <has_text text="-B "/>
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
337 <has_text text="--ignore-pe-reads"/>
0
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
338 </assert_command>
2
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
339 <output name="output_log"><assert_contents><has_text text="gstacks is done."/></assert_contents></output>
0
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
340 <output_collection name="gstacks_out" type="list" count="2"/>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
341 </test>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
342 </tests>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
343
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
344 <help>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
345 <![CDATA[
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
346 .. class:: infomark
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
347
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
348 **What it does**
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
349
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
350 For de novo analyses, this program will pull in paired-end reads, if available,
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
351 assemble the paired-end contig and merge it with the single-end locus, align
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
352 reads to the locus, and call SNPs.
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
353
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
354 For reference-aligned analyses, this program will build loci from the single
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
355 and/or paired-end reads before calling SNPs. The single- and paired-end reads
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
356 must be aligned and stored together in the intput BAM or SAM files and the
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
357 reads must be sorted. The gstacks program will detect if single- or paired-end
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
358 reads are present.
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
359
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
360 In either mode, gstacks is able to remove PCR duplicates if requested.
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
361
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
362 --------
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
363
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
364 **Input files**
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
365
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
366 If a population map is given BAM records must be assigned to samples using BAM "reads groups"
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
367 (gstacks uses the ID/identifier and SM/sample name fields). Read groups
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
368 must be consistent if repeated different files.
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
369 Otherwise read groups are unneeded and ignored.
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
370
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
371 **Output files**
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
372
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
373 - Assembled contigs and variant sites
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
374
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
375 - Optional outputs: Read alignments and log.distribs
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
376
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
377 @STACKS_INFOS@
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
378 ]]>
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
379 </help>
2
1d839ead7ad3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit f55e2407891a3c1f73f14a77b7ddadcd6f5eb1f8"
iuc
parents: 1
diff changeset
380 <expand macro="citation"/>
0
d35cb34f2b85 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit b395fa36fa826e26085820ba3a9faacaeddcb460
iuc
parents:
diff changeset
381 </tool>