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