2
|
1 <tool id="config_builder" name="PathOGiST - Config Builder" version="1.0.0">
|
|
2 <description>: Creates and populates the config file to run PathOGiST</description>
|
|
3 <requirements>
|
6
|
4 <requirement type="package" version="0.3">pathogist</requirement>
|
2
|
5 </requirements>
|
|
6
|
|
7 <command><![CDATA[
|
|
8 $__tool_directory__/config_builder
|
|
9
|
5
|
10 #if $snippy.snippy_checkbox
|
2
|
11 --snippy
|
|
12 --reference $snippy.reference
|
5
|
13 #if $snippy.snippy_adv.snippy_adv_checkbox
|
|
14 --mapqual $snippy.snippy_adv.mapqual
|
|
15 --basequal $snippy.snippy_adv.basequal
|
|
16 --mincov $snippy.snippy_adv.mincov
|
|
17 --minfrac $snippy.snippy_adv.minfrac
|
4
|
18 #end if
|
2
|
19 $snippy.snp_fine
|
|
20 --snp_thresh $snippy.snp_threshold
|
4
|
21 #end if
|
2
|
22
|
5
|
23 #if $mentalist.mentalist_checkbox
|
2
|
24 --mentalist
|
5
|
25 #if $mentalist.db_loc.db_selector == "local_file"
|
2
|
26 --local_file
|
5
|
27 --local_db $mentalist.db_loc.mlst_database
|
4
|
28 #end if
|
5
|
29 #if $mentalist.db_loc.db_selector == "build_db"
|
2
|
30 --build_db
|
5
|
31 --kmer $mentalist.db_loc.k
|
|
32 --fasta_files $mentalist.db_loc.fasta_files
|
|
33 --profile $mentalist.db_loc.profile
|
4
|
34 #end if
|
5
|
35 #if $mentalist.db_loc.db_selector == "download_pubmlst"
|
2
|
36 --download_pubmlst
|
5
|
37 --kmer $mentalist.db_loc.k
|
|
38 --scheme $mentalist.db_loc.scheme
|
4
|
39 #end if
|
5
|
40 #if $mentalist.db_loc.db_selector == "download_cgmlst"
|
2
|
41 --download_cgmlst
|
5
|
42 --kmer $mentalist.db_loc.k
|
|
43 --scheme $mentalist.db_loc.scheme
|
4
|
44 #end if
|
5
|
45 #if $mentalist.db_loc.db_selector == "download_enterobase"
|
|
46 --download_enterobase $mentalist.db_loc.k
|
|
47 --entero_scheme $mentalist.db_loc.scheme
|
|
48 --entero_type $mentalist.db_loc.type
|
4
|
49 #end if
|
5
|
50 #if $mentalist.mentalist_adv.mentalist_adv_checkbox
|
|
51 --mutation_threshold $mentalist.mentalist_adv.mutation_thresh
|
|
52 --kt $mentalist.mentalist_adv.kt
|
4
|
53 #end if
|
2
|
54 $mentalist.mlst_fine
|
|
55 --mlst_thresh $mentalist.mlst_threshold
|
4
|
56 #end if
|
2
|
57
|
5
|
58 #if $prince.prince_checkbox
|
2
|
59 --prince
|
|
60 $prince.cnv_fine
|
|
61 --cnv_thresh $prince.cnv_threshold
|
4
|
62 #end if
|
2
|
63
|
5
|
64 #if $kwip.kwip_checkbox
|
2
|
65 --kwip
|
5
|
66 #if $kwip.kwip_adv.kwip_adv_checkbox
|
|
67 --N $kwip.kwip_adv.N
|
|
68 --x $kwip.kwip_adv.x
|
|
69 --ksize $kwip.kwip_adv.ksize
|
|
70 --unique_kmers $kwip.kwip_adv.unique_kmers
|
4
|
71 #end if
|
2
|
72 $kwip.kwip_fine
|
|
73 --kwip_thresh $kwip.kwip_threshold
|
4
|
74 #end if
|
2
|
75
|
5
|
76 #if $spotyping.spotyping_checkbox
|
2
|
77 --spotyping
|
|
78 $spotyping.spoligo_fine
|
|
79 --spoligo_thresh $spotyping.spoligo_threshold
|
4
|
80 #end if
|
2
|
81
|
5
|
82 #if $adv_clustering.adv_clustering_checkbox
|
2
|
83 $adv_clustering.all_constraints
|
|
84 --method $adv_clustering.method
|
|
85 $adv_clustering.presolve
|
|
86 $adv_clustering.visualize
|
4
|
87 #end if
|
3
|
88
|
|
89 $forward
|
|
90 $reverse
|
|
91 config.yaml
|
2
|
92 ]]></command>
|
|
93
|
|
94
|
|
95 <inputs>
|
3
|
96 <param name="forward" type="data" format="txt,tabular" label="List of forward reads"/>
|
|
97 <param name="reverse" type="data" format="txt,tabular" label="List of reverse reads"/>
|
2
|
98
|
|
99 <conditional name="snippy">
|
|
100 <param name="snippy_checkbox" type="boolean" label="Run Snippy"/>
|
|
101 <when value="true">
|
|
102 <param name="reference" type="data" format="fasta,fa,fasta.gz,fa.gz" label="Reference Genome"/>
|
|
103 <conditional name="snippy_adv">
|
|
104 <param name="snippy_adv_checkbox" type="boolean" label="Advanced Snippy Parameters"/>
|
|
105 <when value="true">
|
|
106 <param name="mapqual" type="integer" value="60" min="0" label="Minimum read mapping
|
|
107 quality to consider"/>
|
|
108 <param name="basequal" type="integer" value="20" min="0" label="Minimum base quality
|
|
109 to consider"/>
|
|
110 <param name="mincov" type="integer" value="10" min="0" label="Minimum coverage of
|
|
111 variant site"/>
|
|
112 <param name="minfrac" type="float" value="0.9" min="0" label="Minimum proportion of
|
|
113 variant evidence"/>
|
|
114 </when>
|
|
115 </conditional>
|
7
|
116 <param name="snp_fine" type="boolean" checked="true" falsevalue="" truevalue="--fine_snp"
|
|
117 label="Consider SNP as a fine datatype"/>
|
2
|
118 <param name="snp_threshold" type="integer" value="2500" min="0"
|
|
119 label="Correlation clustering threshold for MLST"/>
|
|
120 </when>
|
|
121 </conditional>
|
|
122
|
|
123 <conditional name="mentalist">
|
|
124 <param name="mentalist_checkbox" type="boolean" label="Run MentaLiST"/>
|
|
125 <when value="true">
|
|
126 <conditional name="db_loc">
|
|
127 <param name="db_selector" type="select" label="Option for obtaining MLST database">
|
|
128 <option value="local_file">Local File</option>
|
|
129 <option value="build_db">Build DB</option>
|
|
130 <option value="download_pubmlst">Download PubMLST Scheme</option>
|
|
131 <option value="download_cgmlst">Download cgMLST Scheme</option>
|
|
132 <option value="download_enterobase">Download Enterobase Scheme</option>
|
|
133 </param>
|
|
134 <when value="local_file">
|
|
135 <param name="mlst_database" format="db" type="data" label="MLST database file"/>
|
|
136 </when>
|
|
137 <when value="build_db">
|
|
138 <param name="k" type="integer" value="31" min="1" label="kmer size"/>
|
|
139 <param name="fasta_files" type="data" format="txt,tabular" label="List of FASTA files"/>
|
|
140 <param name="profile" type="data" format="txt" label="Profile file for known
|
|
141 genotypes"/>
|
|
142 </when>
|
|
143 <when value="download_pubmlst">
|
|
144 <param name="k" type="integer" value="31" min="1" label="kmer size"/>
|
|
145 <param name="scheme" type="text" label="Species name or scheme ID"/>
|
|
146 </when>
|
|
147 <when value="download_cgmlst">
|
|
148 <param name="k" type="integer" value="31" min="1" label="kmer size"/>
|
|
149 <param name="scheme" type="text" label="Species name or scheme ID"/>
|
|
150 </when>
|
|
151 <when value="download_enterobase">
|
|
152 <param name="k" type="integer" value="31" min="1" label="kmer size"/>
|
|
153 <param name="scheme" type="text" label="(S)almonella, (Y)ersinia, or
|
|
154 (E)scherichia/Shigella"/>
|
|
155 <param name="type" type="text" label="'cg' or 'wg' for cgMLST or wgMLST, respectively"/>
|
|
156 </when>
|
|
157 </conditional>
|
|
158
|
|
159 <conditional name="mentalist_adv">
|
|
160 <param name="mentalist_adv_checkbox" type="boolean" label="Advanced MentaLiST Parameters"/>
|
|
161 <when value="true">
|
|
162 <param name="mutation_thresh" type="integer" min="1" value="6" label="Maximum number of
|
|
163 mutations when looking for novel alleles"/>
|
|
164 <param name="kt" type="integer" value="10" min="1" label="Minimum number of times a
|
|
165 kmer is seen to be considered present in the sample"/>
|
|
166 </when>
|
|
167 </conditional>
|
7
|
168 <param name="mlst_fine" type="boolean" checked="false" falsevalue="" truevalue="--fine_mlst"
|
|
169 label="Consider MLST as a fine datatype"/>
|
2
|
170 <param name="mlst_threshold" type="integer" value="300" min="0"
|
|
171 label="Correlation clustering threshold for MLST"/>
|
|
172 </when>
|
|
173 </conditional>
|
|
174
|
|
175 <conditional name="prince">
|
|
176 <param name="prince_checkbox" type="boolean" label="Run PRINCE"/>
|
|
177 <when value="true">
|
7
|
178 <param name="cnv_fine" type="boolean" checked="false" falsevalue="" truevalue="--fine_cnv"
|
|
179 label="Consider CNV as a fine datatype"/>
|
2
|
180 <param name="cnv_threshold" type="integer" value="100" min="0"
|
|
181 label="Correlation clustering threshold for CNV"/>
|
|
182 </when>
|
|
183 </conditional>
|
|
184
|
|
185 <conditional name="kwip">
|
|
186 <param name="kwip_checkbox" type="boolean" label="Run kWIP"/>
|
|
187 <when value="true">
|
|
188 <conditional name="kwip_adv">
|
3
|
189 <param name="kwip_adv_checkbox" type="boolean" label="Advanced kWIP Parameters"/>
|
2
|
190 <when value="true">
|
|
191 <param name="N" type="integer" value="1" min="1" label="Number of tables"/>
|
|
192 <param name="x" type="float" value="1e9" min="1" label="Maximum table size"/>
|
|
193 <param name="ksize" type="integer" value="31" min="1" label="kmer size"/>
|
|
194 <param name="unique_kmers" type="integer" value="0" min="0" label="Approximate number
|
|
195 of unique kmers in the input set"/>
|
|
196 </when>
|
|
197 </conditional>
|
7
|
198 <param name="kwip_fine" type="boolean" checked="false" falsevalue="" truevalue="--fine_kwip"
|
|
199 label="Consider kWIP as a fine datatype"/>
|
2
|
200 <param name="kwip_threshold" type="float" value="0.4" min="0"
|
|
201 label="Correlation clustering threshold for kWIP"/>
|
|
202 </when>
|
|
203 </conditional>
|
|
204
|
|
205 <conditional name="spotyping">
|
|
206 <param name="spotyping_checkbox" type="boolean" label="Run SpoTyping"/>
|
|
207 <when value="true">
|
7
|
208 <param name="spoligo_fine" type="boolean" checked="false" falsevalue="" truevalue="--fine_spoligo"
|
|
209 label="Consider spoligotype as a fine datatype"/>
|
2
|
210 <param name="spoligo_threshold" type="integer" value="8" min="0"
|
|
211 label="Correlation clustering threshold for Spoligotyping"/>
|
|
212 </when>
|
|
213 </conditional>
|
|
214
|
|
215 <conditional name="adv_clustering">
|
|
216 <param name="adv_clustering_checkbox" type="boolean"
|
|
217 label="Advanced settings for correlation and consensus clustering"/>
|
|
218 <when value="true">
|
|
219 <param name="all_constraints" type="boolean" checked="true" falsevalue="--less_constraints"
|
|
220 truevalue="" label="Use all constraints when performing clustering"/>
|
|
221 <param name="method" type="text" value="C4" size="3"
|
|
222 label="`C4` or `ILP` method for clustering algorithm"/>
|
|
223 <param name="presolve" type="boolean" checked="true" falsevalue="--no_presolve" truevalue=""
|
|
224 label="Perform presolving for clustering"/>
|
|
225 <param name="visualize" type="boolean" checked="false" falsevalue="" truevalue="--visualize"
|
|
226 label="Visualize clusters"/>
|
|
227 </when>
|
|
228 </conditional>
|
|
229 </inputs>
|
|
230
|
|
231 <outputs>
|
|
232 <data name="output" label="PathOGiST Config File" format="yaml" from_work_dir="config.yaml"/>
|
|
233 </outputs>
|
|
234
|
|
235 <help>
|
|
236
|
|
237 </help>
|
|
238
|
|
239 <citations>
|
|
240
|
|
241 </citations>
|
|
242 </tool>
|