annotate srst2.xml @ 2:e59fdf6145db draft default tip

planemo upload commit 158a919b3605123af3b7c8d720a776fa62b9cba6
author nml
date Wed, 25 Oct 2017 12:03:56 -0400
parents 599a4dc309aa
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
599a4dc309aa planemo upload commit 1ea98fb88a93a571beda5bbd56449c946860a258
nml
parents: 0
diff changeset
1 <tool id="srst2" name="SRST2" version="0.3.7">
0
6f870ed59b6e Uploaded
nml
parents:
diff changeset
2 <description>Short Read Sequence Typing for Bacterial Pathogens</description>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
3 <requirements>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
4 <requirement type="package" version="0.1.4.6">srst2</requirement>
2
e59fdf6145db planemo upload commit 158a919b3605123af3b7c8d720a776fa62b9cba6
nml
parents: 1
diff changeset
5 <requirement type="package" version="08-07-2014">vfdb</requirement>
0
6f870ed59b6e Uploaded
nml
parents:
diff changeset
6 </requirements>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
7 <stdio>
1
599a4dc309aa planemo upload commit 1ea98fb88a93a571beda5bbd56449c946860a258
nml
parents: 0
diff changeset
8 <exit_code range="1:" level="fatal" description="Unknown error has occurred"/>
0
6f870ed59b6e Uploaded
nml
parents:
diff changeset
9 </stdio>
1
599a4dc309aa planemo upload commit 1ea98fb88a93a571beda5bbd56449c946860a258
nml
parents: 0
diff changeset
10 <command><![CDATA[
599a4dc309aa planemo upload commit 1ea98fb88a93a571beda5bbd56449c946860a258
nml
parents: 0
diff changeset
11 $__tool_directory__/srst2.pl $bam_results $scores $pileup
0
6f870ed59b6e Uploaded
nml
parents:
diff changeset
12
6f870ed59b6e Uploaded
nml
parents:
diff changeset
13 #if $mlst_or_genedb.job_type == "mlst_only"
6f870ed59b6e Uploaded
nml
parents:
diff changeset
14 m $txt_results $alleles
6f870ed59b6e Uploaded
nml
parents:
diff changeset
15 #if ($mlst_or_genedb.allele_choice.allele_report=="all")
6f870ed59b6e Uploaded
nml
parents:
diff changeset
16 all
6f870ed59b6e Uploaded
nml
parents:
diff changeset
17 #else if ($mlst_or_genedb.allele_choice.allele_report=="new")
6f870ed59b6e Uploaded
nml
parents:
diff changeset
18 new
6f870ed59b6e Uploaded
nml
parents:
diff changeset
19 #end if
6f870ed59b6e Uploaded
nml
parents:
diff changeset
20 #else if $mlst_or_genedb.job_type == "custom_only"
6f870ed59b6e Uploaded
nml
parents:
diff changeset
21 g $genes_results $fullgenes_results
1
599a4dc309aa planemo upload commit 1ea98fb88a93a571beda5bbd56449c946860a258
nml
parents: 0
diff changeset
22 #*
599a4dc309aa planemo upload commit 1ea98fb88a93a571beda5bbd56449c946860a258
nml
parents: 0
diff changeset
23 to allow multiple custom databases join all db names into comma separated variable then send that variable to the perl script to be parsed
599a4dc309aa planemo upload commit 1ea98fb88a93a571beda5bbd56449c946860a258
nml
parents: 0
diff changeset
24 make the database names an array and then join
599a4dc309aa planemo upload commit 1ea98fb88a93a571beda5bbd56449c946860a258
nml
parents: 0
diff changeset
25 *#
0
6f870ed59b6e Uploaded
nml
parents:
diff changeset
26 #set $dbs = ','.join([$database.gene_db.name for $database in ( $mlst_or_genedb.databases )])
6f870ed59b6e Uploaded
nml
parents:
diff changeset
27 "$dbs"
6f870ed59b6e Uploaded
nml
parents:
diff changeset
28 #else if $mlst_or_genedb.job_type == "vfdb_only"
6f870ed59b6e Uploaded
nml
parents:
diff changeset
29 g $genes_results $fullgenes_results $mlst_or_genedb.vfdb_in.name
6f870ed59b6e Uploaded
nml
parents:
diff changeset
30 #else if $mlst_or_genedb.job_type == "mlst_custom"
6f870ed59b6e Uploaded
nml
parents:
diff changeset
31 b $txt_results $genes_results $fullgenes_results
6f870ed59b6e Uploaded
nml
parents:
diff changeset
32 #set $dbs = ','.join([$database.gene_db.name for $database in ( $mlst_or_genedb.databases )])
6f870ed59b6e Uploaded
nml
parents:
diff changeset
33 "$dbs"
6f870ed59b6e Uploaded
nml
parents:
diff changeset
34 #else if $mlst_or_genedb.job_type == "mlst_vfdb"
6f870ed59b6e Uploaded
nml
parents:
diff changeset
35 b $txt_results $genes_results $fullgenes_results $mlst_or_genedb.vfdb_in.name
6f870ed59b6e Uploaded
nml
parents:
diff changeset
36 #end if
6f870ed59b6e Uploaded
nml
parents:
diff changeset
37
6f870ed59b6e Uploaded
nml
parents:
diff changeset
38 #if $single_or_paired.type == "single"
6f870ed59b6e Uploaded
nml
parents:
diff changeset
39 "$single_or_paired.input_se.element_identifier"
6f870ed59b6e Uploaded
nml
parents:
diff changeset
40 --input_se "$input_se"
6f870ed59b6e Uploaded
nml
parents:
diff changeset
41 #elif $single_or_paired.type == "paired"
6f870ed59b6e Uploaded
nml
parents:
diff changeset
42 "$single_or_paired.forward_pe.name"
6f870ed59b6e Uploaded
nml
parents:
diff changeset
43 --input_pe "$single_or_paired.forward_pe" "$single_or_paired.reverse_pe"
6f870ed59b6e Uploaded
nml
parents:
diff changeset
44 #else
6f870ed59b6e Uploaded
nml
parents:
diff changeset
45 "$single_or_paired.fastq_collection.forward.name"
6f870ed59b6e Uploaded
nml
parents:
diff changeset
46 --input_pe "$single_or_paired.fastq_collection.forward" "$single_or_paired.fastq_collection.reverse"
6f870ed59b6e Uploaded
nml
parents:
diff changeset
47 #end if
6f870ed59b6e Uploaded
nml
parents:
diff changeset
48
6f870ed59b6e Uploaded
nml
parents:
diff changeset
49 #if ($mlst_or_genedb.job_type=="mlst_only")
6f870ed59b6e Uploaded
nml
parents:
diff changeset
50 --mlst_db $mlst_db
6f870ed59b6e Uploaded
nml
parents:
diff changeset
51 --mlst_definition $mlst_defs
6f870ed59b6e Uploaded
nml
parents:
diff changeset
52 --mlst_delimiter "'$mlst_or_genedb.mlst_delim'"
6f870ed59b6e Uploaded
nml
parents:
diff changeset
53 --mlst_max_mismatch $mlst_or_genedb.mlst_max_mismatch
6f870ed59b6e Uploaded
nml
parents:
diff changeset
54 --report_all_consensus
6f870ed59b6e Uploaded
nml
parents:
diff changeset
55 #else if ($mlst_or_genedb.job_type=="mlst_vfdb")
6f870ed59b6e Uploaded
nml
parents:
diff changeset
56 --mlst_db $mlst_db
6f870ed59b6e Uploaded
nml
parents:
diff changeset
57 --mlst_definition $mlst_defs
6f870ed59b6e Uploaded
nml
parents:
diff changeset
58 --mlst_delimiter "'$mlst_or_genedb.mlst_delim'"
6f870ed59b6e Uploaded
nml
parents:
diff changeset
59 --mlst_max_mismatch $mlst_or_genedb.mlst_max_mismatch
6f870ed59b6e Uploaded
nml
parents:
diff changeset
60 --gene_max_mismatch $mlst_or_genedb.gene_max_mismatch
6f870ed59b6e Uploaded
nml
parents:
diff changeset
61 --gene_db \$VF_PATH/${mlst_or_genedb.vfdb_in.fields.path}
6f870ed59b6e Uploaded
nml
parents:
diff changeset
62 #else if ($mlst_or_genedb.job_type=="mlst_custom")
6f870ed59b6e Uploaded
nml
parents:
diff changeset
63 --gene_db
6f870ed59b6e Uploaded
nml
parents:
diff changeset
64 #for $i, $database in enumerate( $mlst_or_genedb.databases )
6f870ed59b6e Uploaded
nml
parents:
diff changeset
65 $database.gene_db
6f870ed59b6e Uploaded
nml
parents:
diff changeset
66 #end for
6f870ed59b6e Uploaded
nml
parents:
diff changeset
67 --mlst_db $mlst_db
6f870ed59b6e Uploaded
nml
parents:
diff changeset
68 --mlst_delimiter "'$mlst_or_genedb.mlst_delim'"
6f870ed59b6e Uploaded
nml
parents:
diff changeset
69 --mlst_max_mismatch $mlst_or_genedb.mlst_max_mismatch
6f870ed59b6e Uploaded
nml
parents:
diff changeset
70 --gene_max_mismatch $mlst_or_genedb.gene_max_mismatch
6f870ed59b6e Uploaded
nml
parents:
diff changeset
71 --mlst_definition $mlst_defs
6f870ed59b6e Uploaded
nml
parents:
diff changeset
72 #else if ($mlst_or_genedb.job_type=="vfdb_only")
6f870ed59b6e Uploaded
nml
parents:
diff changeset
73 --gene_db \$VF_PATH/${mlst_or_genedb.vfdb_in.fields.path}
6f870ed59b6e Uploaded
nml
parents:
diff changeset
74 --gene_max_mismatch $mlst_or_genedb.gene_max_mismatch
6f870ed59b6e Uploaded
nml
parents:
diff changeset
75 #else if ($mlst_or_genedb.job_type=="custom_only")
6f870ed59b6e Uploaded
nml
parents:
diff changeset
76 --gene_db
6f870ed59b6e Uploaded
nml
parents:
diff changeset
77 #for $i, $database in enumerate( $mlst_or_genedb.databases )
6f870ed59b6e Uploaded
nml
parents:
diff changeset
78 $database.gene_db
6f870ed59b6e Uploaded
nml
parents:
diff changeset
79 #end for
6f870ed59b6e Uploaded
nml
parents:
diff changeset
80 --gene_max_mismatch $mlst_or_genedb.gene_max_mismatch
6f870ed59b6e Uploaded
nml
parents:
diff changeset
81 #end if
6f870ed59b6e Uploaded
nml
parents:
diff changeset
82
6f870ed59b6e Uploaded
nml
parents:
diff changeset
83 --read_type q
6f870ed59b6e Uploaded
nml
parents:
diff changeset
84
6f870ed59b6e Uploaded
nml
parents:
diff changeset
85 --save_scores
6f870ed59b6e Uploaded
nml
parents:
diff changeset
86
6f870ed59b6e Uploaded
nml
parents:
diff changeset
87 #if $options.select == "advanced"
6f870ed59b6e Uploaded
nml
parents:
diff changeset
88 #if $options.min_coverage
6f870ed59b6e Uploaded
nml
parents:
diff changeset
89 --min_coverage $options.min_coverage
6f870ed59b6e Uploaded
nml
parents:
diff changeset
90 #end if
6f870ed59b6e Uploaded
nml
parents:
diff changeset
91 #if $options.max_divergence
6f870ed59b6e Uploaded
nml
parents:
diff changeset
92 --max_divergence $options.max_divergence
6f870ed59b6e Uploaded
nml
parents:
diff changeset
93 #end if
6f870ed59b6e Uploaded
nml
parents:
diff changeset
94 #if $options.min_depth
6f870ed59b6e Uploaded
nml
parents:
diff changeset
95 --min_depth $options.min_depth
6f870ed59b6e Uploaded
nml
parents:
diff changeset
96 #end if
6f870ed59b6e Uploaded
nml
parents:
diff changeset
97 #if $options.min_edge_depth
6f870ed59b6e Uploaded
nml
parents:
diff changeset
98 --min_edge_depth $options.min_edge_depth
6f870ed59b6e Uploaded
nml
parents:
diff changeset
99 #end if
6f870ed59b6e Uploaded
nml
parents:
diff changeset
100 #if $options.prob_err
6f870ed59b6e Uploaded
nml
parents:
diff changeset
101 --prob_err $options.prob_err
6f870ed59b6e Uploaded
nml
parents:
diff changeset
102 #end if
6f870ed59b6e Uploaded
nml
parents:
diff changeset
103 #if $options.stop_after
6f870ed59b6e Uploaded
nml
parents:
diff changeset
104 --stop_after $options.stop_after
6f870ed59b6e Uploaded
nml
parents:
diff changeset
105 #end if
6f870ed59b6e Uploaded
nml
parents:
diff changeset
106 --other "'-p \${GALAXY_SLOTS:-1}
6f870ed59b6e Uploaded
nml
parents:
diff changeset
107 #if $options.maxins
6f870ed59b6e Uploaded
nml
parents:
diff changeset
108 --maxins $options.maxins
6f870ed59b6e Uploaded
nml
parents:
diff changeset
109 --minins $options.minins
6f870ed59b6e Uploaded
nml
parents:
diff changeset
110 #end if
6f870ed59b6e Uploaded
nml
parents:
diff changeset
111 '"
6f870ed59b6e Uploaded
nml
parents:
diff changeset
112 #if $options.mapq
6f870ed59b6e Uploaded
nml
parents:
diff changeset
113 --mapq $options.mapq
6f870ed59b6e Uploaded
nml
parents:
diff changeset
114 #end if
6f870ed59b6e Uploaded
nml
parents:
diff changeset
115 #if $options.baseq
6f870ed59b6e Uploaded
nml
parents:
diff changeset
116 --baseq $options.baseq
6f870ed59b6e Uploaded
nml
parents:
diff changeset
117 #end if
6f870ed59b6e Uploaded
nml
parents:
diff changeset
118 #else
6f870ed59b6e Uploaded
nml
parents:
diff changeset
119 --other "'-p \${GALAXY_SLOTS:-1}'"
6f870ed59b6e Uploaded
nml
parents:
diff changeset
120 #end if
6f870ed59b6e Uploaded
nml
parents:
diff changeset
121
1
599a4dc309aa planemo upload commit 1ea98fb88a93a571beda5bbd56449c946860a258
nml
parents: 0
diff changeset
122 --output \${PWD}/out
599a4dc309aa planemo upload commit 1ea98fb88a93a571beda5bbd56449c946860a258
nml
parents: 0
diff changeset
123 ]]></command>
0
6f870ed59b6e Uploaded
nml
parents:
diff changeset
124 <inputs>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
125 <conditional name="single_or_paired">
6f870ed59b6e Uploaded
nml
parents:
diff changeset
126 <param name="type" type="select" label="Read type">
6f870ed59b6e Uploaded
nml
parents:
diff changeset
127 <option value="single">Single-end</option>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
128 <option value="paired">Paired-end</option>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
129 <option value="collection">Collection Paired-end</option>
1
599a4dc309aa planemo upload commit 1ea98fb88a93a571beda5bbd56449c946860a258
nml
parents: 0
diff changeset
130 </param>
0
6f870ed59b6e Uploaded
nml
parents:
diff changeset
131 <when value="single">
6f870ed59b6e Uploaded
nml
parents:
diff changeset
132 <param name="input_se" type="data" format="fastqsanger" label="Single end read file(s)"/>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
133 </when>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
134 <when value="paired">
6f870ed59b6e Uploaded
nml
parents:
diff changeset
135 <param name="forward_pe" type="data" format="fastqsanger" label="Forward paired-end read file"/>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
136 <param name="reverse_pe" type="data" format="fastqsanger" label="Reverse paired-end read file"/>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
137 </when>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
138 <when value="collection">
1
599a4dc309aa planemo upload commit 1ea98fb88a93a571beda5bbd56449c946860a258
nml
parents: 0
diff changeset
139 <param name="fastq_collection" type="data_collection" label="Paired-end reads collection" optional="false" format="fastqsanger" collection_type="paired" />
0
6f870ed59b6e Uploaded
nml
parents:
diff changeset
140 </when>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
141 </conditional>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
142
6f870ed59b6e Uploaded
nml
parents:
diff changeset
143 <conditional name="mlst_or_genedb">
6f870ed59b6e Uploaded
nml
parents:
diff changeset
144 <param name="job_type" type="select" label="Job type">
6f870ed59b6e Uploaded
nml
parents:
diff changeset
145 <option value="mlst_only">MLST only</option>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
146 <option value="mlst_vfdb">MLST and VFDB</option>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
147 <option value="mlst_custom">MLST and custom database</option>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
148 <option value="vfdb_only">VFDB only</option>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
149 <option value="custom_only">Custom database only</option>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
150 </param>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
151 <when value="mlst_only">
6f870ed59b6e Uploaded
nml
parents:
diff changeset
152 <param name="mlst_defs" type="data" format="tabular" label="ST definitions for MLST scheme"/>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
153 <param name="mlst_db" type="data" format="fasta" label="Fasta file of MLST alleles"/>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
154 <param name="mlst_max_mismatch" type="integer" label="Maximum number of mismatches per read for MLST allele calling" value="" help="SRST2.1 default value is 10 however our testing indicates that the value should be set to 250 to prevent erroneous allele calls."/>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
155 <conditional name="allele_choice">
6f870ed59b6e Uploaded
nml
parents:
diff changeset
156 <param name="allele_report" type="select" label="Reported Alleles" >
6f870ed59b6e Uploaded
nml
parents:
diff changeset
157 <option value="all">All</option>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
158 <option value="new">Only New</option>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
159 </param>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
160 <when value="all"/>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
161 <when value="new"/>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
162 </conditional>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
163 <param name="mlst_delim" type="text" label="Character(s) separating gene name from allele number in MLST database" value="" help="Typically _ or -" optional="false" >
6f870ed59b6e Uploaded
nml
parents:
diff changeset
164 <validator type="expression" message="Must enter a delimiter.">len(value) >= 1</validator>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
165 </param>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
166 </when>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
167 <when value="mlst_vfdb">
6f870ed59b6e Uploaded
nml
parents:
diff changeset
168 <param name="mlst_defs" type="data" format="tabular" label="ST definitions for MLST scheme"/>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
169 <param name="mlst_db" type="data" format="fasta" label="Fasta file of MLST alleles"/>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
170 <param name="vfdb_in" type="select" label="Choose a VFDB strain">
1
599a4dc309aa planemo upload commit 1ea98fb88a93a571beda5bbd56449c946860a258
nml
parents: 0
diff changeset
171 <options from_data_table="vfdb_fasta_files" />
0
6f870ed59b6e Uploaded
nml
parents:
diff changeset
172 </param>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
173 <param name="mlst_max_mismatch" type="integer" label="Maximum number of mismatches per read for MLST allele calling" value="" help="SRST2.1 default value is 10 however our testing indicates that the value should be set to 250 to prevent erroneous allele calls."/>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
174 <param name="gene_max_mismatch" type="integer" label="Maximum number of mismatches per read for gene allele calling" value="" help="SRST2.1 default value is 10 however our testing indicates that the value should be set to 250 to prevent erroneous allele calls."/>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
175 <param name="mlst_delim" type="text" label="Character(s) separating gene name from allele number in MLST database" value="" help="Typically _ or -" optional="false" >
6f870ed59b6e Uploaded
nml
parents:
diff changeset
176 <validator type="expression" message="Must enter a delimiter.">len(value) >= 1</validator>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
177 </param>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
178 </when>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
179 <when value="mlst_custom">
6f870ed59b6e Uploaded
nml
parents:
diff changeset
180 <param name="mlst_defs" type="data" format="tabular" label="ST definitions for MLST scheme"/>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
181 <param name="mlst_db" type="data" format="fasta" label="Fasta file of MLST alleles"/>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
182 <repeat name="databases" title="Databases" min="1">
6f870ed59b6e Uploaded
nml
parents:
diff changeset
183 <param name="gene_db" type="data" format="fasta" label="Fasta file for gene database" />
6f870ed59b6e Uploaded
nml
parents:
diff changeset
184 </repeat>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
185 <param name="mlst_max_mismatch" type="integer" label="Maximum number of mismatches per read for MLST allele calling" value="" help="SRST2.1 default value is 10 however our testing indicates that the value should be set to 250 to prevent erroneous allele calls."/>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
186 <param name="gene_max_mismatch" type="integer" label="Maximum number of mismatches per read for gene allele calling" value="" help="SRST2.1 default value is 10 however our testing indicates that the value should be set to 250 to prevent erroneous allele calls."/>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
187 <param name="mlst_delim" type="text" label="Character(s) separating gene name from allele number in MLST database" value="" help="Typically _ or -" optional="false" >
6f870ed59b6e Uploaded
nml
parents:
diff changeset
188 <validator type="expression" message="Must enter a delimiter.">len(value) >= 1</validator>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
189 </param>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
190 </when>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
191 <when value="vfdb_only">
6f870ed59b6e Uploaded
nml
parents:
diff changeset
192 <param name="vfdb_in" type="select" label="Choose a VFDB strain">
6f870ed59b6e Uploaded
nml
parents:
diff changeset
193 <options from_data_table="vfdb_fasta_files" >
6f870ed59b6e Uploaded
nml
parents:
diff changeset
194 <filter type="sort_by" column="2" />
6f870ed59b6e Uploaded
nml
parents:
diff changeset
195 <validator type="no_options" message="No strains are available" />
6f870ed59b6e Uploaded
nml
parents:
diff changeset
196 </options>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
197 </param>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
198 <param name="gene_max_mismatch" type="integer" label="Maximum number of mismatches per read for gene allele calling" value="" help="SRST2.1 default value is 10 however our testing indicates that the value should be set to 250 to prevent erroneous allele calls."/>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
199 </when>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
200 <when value="custom_only">
6f870ed59b6e Uploaded
nml
parents:
diff changeset
201 <param name="gene_max_mismatch" type="integer" label="Maximum number of mismatches per read for gene allele calling" value="" help="SRST2.1 default value is 10 however our testing indicates that the value should be set to 250 to prevent erroneous allele calls."/>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
202 <repeat name="databases" title="Databases" min="1">
6f870ed59b6e Uploaded
nml
parents:
diff changeset
203 <param name="gene_db" type="data" format="fasta" label="Fasta file for gene database" />
6f870ed59b6e Uploaded
nml
parents:
diff changeset
204 </repeat>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
205 </when>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
206 </conditional>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
207 <conditional name="options">
6f870ed59b6e Uploaded
nml
parents:
diff changeset
208 <param name="select" type="select" label="Options Type">
6f870ed59b6e Uploaded
nml
parents:
diff changeset
209 <option value="basic">Basic</option>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
210 <option value="advanced">Advanced</option>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
211 </param>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
212 <when value="advanced">
6f870ed59b6e Uploaded
nml
parents:
diff changeset
213 <param name="min_coverage" type="integer" label="Minimum %coverage cutoff for gene reporting" value="90"/>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
214 <param name="max_divergence" type="integer" label="Maximum %divergence cutoff for gene reporting" value="10"/>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
215 <param name="min_depth" type="integer" label="Minimum mean depth to flag as dubious allele call" value="5"/>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
216 <param name="min_edge_depth" type="integer" label="Minimum edge depth to flag as dubious allele call" value="2"/>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
217 <param name="prob_err" type="float" label="Probability of sequencing error" value="0.01"/>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
218 <param name="stop_after" type="integer" label="Stop mapping after this number of reads have been mapped (otherwise map all)" optional="true"/>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
219 <param name="mapq" type="integer" label="Samtools -q parameter" value="1"/>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
220 <param name="baseq" type="integer" label="Samtools -Q parameter" value="20"/>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
221 <param name="minins" type="integer" label="Bowtie 2 -I parameter. The minimum fragment length for valid paired-end alignments." value="0" >
6f870ed59b6e Uploaded
nml
parents:
diff changeset
222 <validator type="in_range" message="Must be less than -X parameter." min="0"/>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
223 </param>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
224 <param name="maxins" type="integer" label="Bowtie 2 -X parameter. The maximum fragment length for valid paired-end alignments." value="1000" >
6f870ed59b6e Uploaded
nml
parents:
diff changeset
225 <validator type="in_range" message="Must be greater than -I parameter." min="0"/>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
226 </param>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
227
6f870ed59b6e Uploaded
nml
parents:
diff changeset
228 </when>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
229 <when value="basic"/>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
230 </conditional>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
231 </inputs>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
232
6f870ed59b6e Uploaded
nml
parents:
diff changeset
233 <outputs>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
234 <data format="bam" name="bam_results" label="Bam Results"/>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
235 <data format="tabular" name="scores" label="Scores"/>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
236 <data format="tabular" name="pileup" label="Pileup"/>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
237 <data format="fasta" name="alleles" label="Alleles">
6f870ed59b6e Uploaded
nml
parents:
diff changeset
238 <filter>mlst_or_genedb['job_type']=="mlst_only"</filter>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
239 </data>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
240 <data format="tabular" name="txt_results" label="Text Results" >
6f870ed59b6e Uploaded
nml
parents:
diff changeset
241 <filter>mlst_or_genedb['job_type']!="vfdb_only"</filter>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
242 <filter>mlst_or_genedb['job_type']!="custom_only"</filter>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
243 </data>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
244 <data format="tabular" name="genes_results" label="Genes Results" >
6f870ed59b6e Uploaded
nml
parents:
diff changeset
245 <filter>mlst_or_genedb['job_type']!="mlst_only"</filter>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
246 </data>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
247 <data format="tabular" name="fullgenes_results" label="Full Genes Results" >
6f870ed59b6e Uploaded
nml
parents:
diff changeset
248 <filter>mlst_or_genedb['job_type']!= "mlst_only"</filter>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
249 </data>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
250 </outputs>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
251
6f870ed59b6e Uploaded
nml
parents:
diff changeset
252 <tests>
1
599a4dc309aa planemo upload commit 1ea98fb88a93a571beda5bbd56449c946860a258
nml
parents: 0
diff changeset
253 <test>
599a4dc309aa planemo upload commit 1ea98fb88a93a571beda5bbd56449c946860a258
nml
parents: 0
diff changeset
254 <param name="type" value="collection" />
599a4dc309aa planemo upload commit 1ea98fb88a93a571beda5bbd56449c946860a258
nml
parents: 0
diff changeset
255 <param name="fastq_collection">
599a4dc309aa planemo upload commit 1ea98fb88a93a571beda5bbd56449c946860a258
nml
parents: 0
diff changeset
256 <collection type="paired">
599a4dc309aa planemo upload commit 1ea98fb88a93a571beda5bbd56449c946860a258
nml
parents: 0
diff changeset
257 <element name="forward" value="ERR028678_sampled_1.fastq" />
599a4dc309aa planemo upload commit 1ea98fb88a93a571beda5bbd56449c946860a258
nml
parents: 0
diff changeset
258 <element name="reverse" value="ERR028678_sampled_2.fastq" />
599a4dc309aa planemo upload commit 1ea98fb88a93a571beda5bbd56449c946860a258
nml
parents: 0
diff changeset
259 </collection>
599a4dc309aa planemo upload commit 1ea98fb88a93a571beda5bbd56449c946860a258
nml
parents: 0
diff changeset
260 </param>
599a4dc309aa planemo upload commit 1ea98fb88a93a571beda5bbd56449c946860a258
nml
parents: 0
diff changeset
261 <param name="job_type" value="mlst_only" />
599a4dc309aa planemo upload commit 1ea98fb88a93a571beda5bbd56449c946860a258
nml
parents: 0
diff changeset
262 <param name="mlst_defs" value="ecoli.txt" />
599a4dc309aa planemo upload commit 1ea98fb88a93a571beda5bbd56449c946860a258
nml
parents: 0
diff changeset
263 <param name="mlst_db" value="Escherichia_coli#1.fasta" />
599a4dc309aa planemo upload commit 1ea98fb88a93a571beda5bbd56449c946860a258
nml
parents: 0
diff changeset
264 <param name="mlst_max_mismatch" value="10" />
599a4dc309aa planemo upload commit 1ea98fb88a93a571beda5bbd56449c946860a258
nml
parents: 0
diff changeset
265 <param name="mlst_delim" value="-" />
599a4dc309aa planemo upload commit 1ea98fb88a93a571beda5bbd56449c946860a258
nml
parents: 0
diff changeset
266 <output name="bam_results" file="ERR028678_sampled.bam" ftype="bam" lines_diff="2" />
599a4dc309aa planemo upload commit 1ea98fb88a93a571beda5bbd56449c946860a258
nml
parents: 0
diff changeset
267 <output name="scores" file="ERR028678_sampled_scores.tabular" />
599a4dc309aa planemo upload commit 1ea98fb88a93a571beda5bbd56449c946860a258
nml
parents: 0
diff changeset
268 <!-- Don't test pileup as it is too large of a file > 90 MB -->
599a4dc309aa planemo upload commit 1ea98fb88a93a571beda5bbd56449c946860a258
nml
parents: 0
diff changeset
269 <!-- <output name="pileup" file="ERR028678_sampled_pileup.tabular" />-->
599a4dc309aa planemo upload commit 1ea98fb88a93a571beda5bbd56449c946860a258
nml
parents: 0
diff changeset
270 <output name="alleles" file="ERR028678_sampled_alleles.fasta" />
599a4dc309aa planemo upload commit 1ea98fb88a93a571beda5bbd56449c946860a258
nml
parents: 0
diff changeset
271 <output name="txt_results" file="ERR028678_sampled_text_results.tabular" />
599a4dc309aa planemo upload commit 1ea98fb88a93a571beda5bbd56449c946860a258
nml
parents: 0
diff changeset
272 </test>
0
6f870ed59b6e Uploaded
nml
parents:
diff changeset
273 </tests>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
274
6f870ed59b6e Uploaded
nml
parents:
diff changeset
275
6f870ed59b6e Uploaded
nml
parents:
diff changeset
276 <help>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
277 What it does
6f870ed59b6e Uploaded
nml
parents:
diff changeset
278 ============
6f870ed59b6e Uploaded
nml
parents:
diff changeset
279
6f870ed59b6e Uploaded
nml
parents:
diff changeset
280 Short Read Sequence Typing for Bacterial Pathogens
6f870ed59b6e Uploaded
nml
parents:
diff changeset
281
6f870ed59b6e Uploaded
nml
parents:
diff changeset
282 This program is designed to take Illumina sequence data, a MLST database and/or a database of gene sequences (e.g. resistance genes, virulence genes, etc) and report the presence of STs and/or reference genes. The tool has a database of virulence factors that was extracted from http://www.mgc.ac.cn/VFs/ .
6f870ed59b6e Uploaded
nml
parents:
diff changeset
283
6f870ed59b6e Uploaded
nml
parents:
diff changeset
284 For more information about SRST2 and for instructions on how to format custom databases, visit https://github.com/katholt/srst2
6f870ed59b6e Uploaded
nml
parents:
diff changeset
285
6f870ed59b6e Uploaded
nml
parents:
diff changeset
286
6f870ed59b6e Uploaded
nml
parents:
diff changeset
287 Usage
6f870ed59b6e Uploaded
nml
parents:
diff changeset
288 =====
6f870ed59b6e Uploaded
nml
parents:
diff changeset
289
6f870ed59b6e Uploaded
nml
parents:
diff changeset
290 Basic Options
6f870ed59b6e Uploaded
nml
parents:
diff changeset
291 -------------
6f870ed59b6e Uploaded
nml
parents:
diff changeset
292
6f870ed59b6e Uploaded
nml
parents:
diff changeset
293 **Read Type**
6f870ed59b6e Uploaded
nml
parents:
diff changeset
294 - Single-end: Single end read file(s) for analysing (--input_se)
6f870ed59b6e Uploaded
nml
parents:
diff changeset
295 - Paired-end: Paired end read file(s) for analysing (--input_pe)
6f870ed59b6e Uploaded
nml
parents:
diff changeset
296
6f870ed59b6e Uploaded
nml
parents:
diff changeset
297 **Job Type**
6f870ed59b6e Uploaded
nml
parents:
diff changeset
298 - MLST only: Reports Sequence Types
6f870ed59b6e Uploaded
nml
parents:
diff changeset
299 - MLST and VFDB: Reports Sequence Types and user can choose one of the built-in Virulence Factor Datebase (VFDB) strains
6f870ed59b6e Uploaded
nml
parents:
diff changeset
300 - MLST and custom database: Reports Sequence Types and user can upload their own custom database
6f870ed59b6e Uploaded
nml
parents:
diff changeset
301 - VFDB only: Use can choose one of the built-in Virulence Factor Databasse (VFDB) strains
6f870ed59b6e Uploaded
nml
parents:
diff changeset
302 - Custom database only: Use can upload their own custom database
6f870ed59b6e Uploaded
nml
parents:
diff changeset
303
6f870ed59b6e Uploaded
nml
parents:
diff changeset
304 **ST definitions for MLST scheme:**
6f870ed59b6e Uploaded
nml
parents:
diff changeset
305 - Required if you want to calculate STs (--mlst_definitions)
6f870ed59b6e Uploaded
nml
parents:
diff changeset
306
6f870ed59b6e Uploaded
nml
parents:
diff changeset
307 **Fasta file of MLST alleles:**
6f870ed59b6e Uploaded
nml
parents:
diff changeset
308 - Required if you want to calculate STs (--mlst_db)
6f870ed59b6e Uploaded
nml
parents:
diff changeset
309
6f870ed59b6e Uploaded
nml
parents:
diff changeset
310 **Fasta file for gene database:**
6f870ed59b6e Uploaded
nml
parents:
diff changeset
311 - Required if you want details of the sequences. The user must provide their own database (--gene_db)
6f870ed59b6e Uploaded
nml
parents:
diff changeset
312
6f870ed59b6e Uploaded
nml
parents:
diff changeset
313 **VFDB strain:**
6f870ed59b6e Uploaded
nml
parents:
diff changeset
314 - Required if you want details of the sequences. The use may choose one of the listed strains (--gene_db)
6f870ed59b6e Uploaded
nml
parents:
diff changeset
315
6f870ed59b6e Uploaded
nml
parents:
diff changeset
316 **Read file type:**
6f870ed59b6e Uploaded
nml
parents:
diff changeset
317 - fastq
6f870ed59b6e Uploaded
nml
parents:
diff changeset
318 - solexa
6f870ed59b6e Uploaded
nml
parents:
diff changeset
319 - fasta
6f870ed59b6e Uploaded
nml
parents:
diff changeset
320
6f870ed59b6e Uploaded
nml
parents:
diff changeset
321 **Character(s) separating gene name from allele number in MLST database:**
6f870ed59b6e Uploaded
nml
parents:
diff changeset
322 - Required for all MLST job types
6f870ed59b6e Uploaded
nml
parents:
diff changeset
323 - Typically either _ or -
6f870ed59b6e Uploaded
nml
parents:
diff changeset
324 - The output from getMLST will identify the delimiter.
6f870ed59b6e Uploaded
nml
parents:
diff changeset
325
6f870ed59b6e Uploaded
nml
parents:
diff changeset
326 **Maximum number of mismatches per read for MLST allele calling:**
6f870ed59b6e Uploaded
nml
parents:
diff changeset
327 - Required for all MLST job types
6f870ed59b6e Uploaded
nml
parents:
diff changeset
328 - For MLST schemas with inserts this number should be set to a high value (recommended: 250)
6f870ed59b6e Uploaded
nml
parents:
diff changeset
329
6f870ed59b6e Uploaded
nml
parents:
diff changeset
330 **Maximum number of mismatches per read for gene allele calling:**
6f870ed59b6e Uploaded
nml
parents:
diff changeset
331 - Required for all VDFB or custom database job types
6f870ed59b6e Uploaded
nml
parents:
diff changeset
332 - For genes with inserts this number should be set to a high value (recommended: 250).
6f870ed59b6e Uploaded
nml
parents:
diff changeset
333
6f870ed59b6e Uploaded
nml
parents:
diff changeset
334 **Option Type:**
6f870ed59b6e Uploaded
nml
parents:
diff changeset
335 - Basic: Includes only the options listed above
6f870ed59b6e Uploaded
nml
parents:
diff changeset
336 - Advanced: Includes the options listed below
6f870ed59b6e Uploaded
nml
parents:
diff changeset
337
6f870ed59b6e Uploaded
nml
parents:
diff changeset
338 -------------------------------
6f870ed59b6e Uploaded
nml
parents:
diff changeset
339
6f870ed59b6e Uploaded
nml
parents:
diff changeset
340 Advanced Options
6f870ed59b6e Uploaded
nml
parents:
diff changeset
341 ----------------
6f870ed59b6e Uploaded
nml
parents:
diff changeset
342
6f870ed59b6e Uploaded
nml
parents:
diff changeset
343 **Minimum %coverage cutoff for gene reporting:**
6f870ed59b6e Uploaded
nml
parents:
diff changeset
344 - Default is 90 (--min_coverage)
6f870ed59b6e Uploaded
nml
parents:
diff changeset
345
6f870ed59b6e Uploaded
nml
parents:
diff changeset
346 **Maximum %divergence cutoff for gene reporting:**
6f870ed59b6e Uploaded
nml
parents:
diff changeset
347 - Default is 10 (--max_divergence)
6f870ed59b6e Uploaded
nml
parents:
diff changeset
348
6f870ed59b6e Uploaded
nml
parents:
diff changeset
349 **Minimum mean depth to flag as dubious allele call:**
6f870ed59b6e Uploaded
nml
parents:
diff changeset
350 - Default is 5 (--min_depth)
6f870ed59b6e Uploaded
nml
parents:
diff changeset
351
6f870ed59b6e Uploaded
nml
parents:
diff changeset
352 **Minimum edge depth to flag as dubious allele call:**
6f870ed59b6e Uploaded
nml
parents:
diff changeset
353 - Default is 2 (--min_edge_depth)
6f870ed59b6e Uploaded
nml
parents:
diff changeset
354
6f870ed59b6e Uploaded
nml
parents:
diff changeset
355 **Probability of sequencing error:**
6f870ed59b6e Uploaded
nml
parents:
diff changeset
356 - Default is 0.01 (--prob_err)
6f870ed59b6e Uploaded
nml
parents:
diff changeset
357
6f870ed59b6e Uploaded
nml
parents:
diff changeset
358 **Stop mapping after this number of reads have been mapped (otherwise map all):**
6f870ed59b6e Uploaded
nml
parents:
diff changeset
359 - Default maps all (--stop_after)
6f870ed59b6e Uploaded
nml
parents:
diff changeset
360
6f870ed59b6e Uploaded
nml
parents:
diff changeset
361 **Other arguments to pass to bowtie2:**
6f870ed59b6e Uploaded
nml
parents:
diff changeset
362 --other
6f870ed59b6e Uploaded
nml
parents:
diff changeset
363
6f870ed59b6e Uploaded
nml
parents:
diff changeset
364 **Samtools -q parameter:**
6f870ed59b6e Uploaded
nml
parents:
diff changeset
365 - Default is 1 (--mapq)
6f870ed59b6e Uploaded
nml
parents:
diff changeset
366
6f870ed59b6e Uploaded
nml
parents:
diff changeset
367 **Samtools -Q parameter:**
6f870ed59b6e Uploaded
nml
parents:
diff changeset
368 - Default is 20 (--baseq)
6f870ed59b6e Uploaded
nml
parents:
diff changeset
369
6f870ed59b6e Uploaded
nml
parents:
diff changeset
370 **Bowtie2 -I/--minins:**
6f870ed59b6e Uploaded
nml
parents:
diff changeset
371 - The minimum fragment length for valid paired-end alignments. E.g. if -I 60 is specified and a paired-end alignment consists of two 20-bp alignments in the appropriate orientation with a 20-bp gap between them, that alignment is considered valid (as long as -X is also satisfied). A 19-bp gap would not be valid in that case. If trimming options -3 or -5 are also used, the -I constraint is applied with respect to the untrimmed mates.
6f870ed59b6e Uploaded
nml
parents:
diff changeset
372 - The larger the difference between -I and -X, the slower Bowtie 2 will run. This is because larger differences bewteen -I and -X require that Bowtie 2 scan a larger window to determine if a concordant alignment exists. For typical fragment length ranges (200 to 400 nucleotides), Bowtie 2 is very efficient.
6f870ed59b6e Uploaded
nml
parents:
diff changeset
373 - Default: 0 (essentially imposing no minimum)
6f870ed59b6e Uploaded
nml
parents:
diff changeset
374
6f870ed59b6e Uploaded
nml
parents:
diff changeset
375 **Bowtie2 -X/--maxins:**
6f870ed59b6e Uploaded
nml
parents:
diff changeset
376 - The maximum fragment length for valid paired-end alignments. E.g. if -X 100 is specified and a paired-end alignment consists of two 20-bp alignments in the proper orientation with a 60-bp gap between them, that alignment is considered valid (as long as -I is also satisfied). A 61-bp gap would not be valid in that case. If trimming options -3 or -5 are also used, the -X constraint is applied with respect to the untrimmed mates, not the trimmed mates.
6f870ed59b6e Uploaded
nml
parents:
diff changeset
377 - The larger the difference between -I and -X, the slower Bowtie 2 will run. This is because larger differences bewteen -I and -X require that Bowtie 2 scan a larger window to determine if a concordant alignment exists. For typical fragment length ranges (200 to 400 nucleotides), Bowtie 2 is very efficient.
6f870ed59b6e Uploaded
nml
parents:
diff changeset
378 - Default: 500.
6f870ed59b6e Uploaded
nml
parents:
diff changeset
379
6f870ed59b6e Uploaded
nml
parents:
diff changeset
380 **Acknowledgments**
6f870ed59b6e Uploaded
nml
parents:
diff changeset
381 Original Author: Mariam Iskander
6f870ed59b6e Uploaded
nml
parents:
diff changeset
382
6f870ed59b6e Uploaded
nml
parents:
diff changeset
383 Jen Cabral
6f870ed59b6e Uploaded
nml
parents:
diff changeset
384
6f870ed59b6e Uploaded
nml
parents:
diff changeset
385 Philip Mabon
6f870ed59b6e Uploaded
nml
parents:
diff changeset
386
6f870ed59b6e Uploaded
nml
parents:
diff changeset
387 Mark Iskander
6f870ed59b6e Uploaded
nml
parents:
diff changeset
388
1
599a4dc309aa planemo upload commit 1ea98fb88a93a571beda5bbd56449c946860a258
nml
parents: 0
diff changeset
389 Eric Enns
599a4dc309aa planemo upload commit 1ea98fb88a93a571beda5bbd56449c946860a258
nml
parents: 0
diff changeset
390
0
6f870ed59b6e Uploaded
nml
parents:
diff changeset
391 </help>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
392 <citations>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
393 <citation type="doi">10.1128/AAC.01310-13</citation>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
394 </citations>
6f870ed59b6e Uploaded
nml
parents:
diff changeset
395 </tool>