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[
|
|
8 PATHOGIST all config.yaml --new_config
|
|
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
|
|
90 ]]></command>
|
|
91
|
|
92
|
|
93 <inputs>
|
|
94 <!--<conditional name="task">-->
|
|
95 <!--<param name="task_selector" type="select" label="Create Blank Config or Populate Config File">-->
|
|
96 <!--<option value="create">Create Blank Config File</option>-->
|
|
97 <!--<option value="populate">Populate Config File</option>-->
|
|
98 <!--</param>-->
|
|
99 <!--<when value="create">-->
|
|
100
|
|
101 <!--</when>-->
|
|
102 <!--<when value="populate">-->
|
|
103 <conditional name="snippy">
|
|
104 <param name="snippy_checkbox" type="boolean" label="Run Snippy"/>
|
|
105 <when value="true">
|
|
106 <param name="reference" type="data" format="fasta,fa,fasta.gz,fa.gz" label="Reference Genome"/>
|
|
107 <conditional name="snippy_adv">
|
|
108 <param name="snippy_adv_checkbox" type="boolean" label="Advanced Snippy Parameters"/>
|
|
109 <when value="true">
|
|
110 <param name="mapqual" type="integer" value="60" min="0" label="Minimum read mapping
|
|
111 quality to consider"/>
|
|
112 <param name="basequal" type="integer" value="20" min="0" label="Minimum base quality
|
|
113 to consider"/>
|
|
114 <param name="mincov" type="integer" value="10" min="0" label="Minimum coverage of
|
|
115 variant site"/>
|
|
116 <param name="minfrac" type="float" value="0.9" min="0" label="Minimum proportion of
|
|
117 variant evidence"/>
|
|
118 </when>
|
|
119 </conditional>
|
|
120 <param name="snp_fine" type="boolean" label="Consider SNP as a fine datatype"/>
|
|
121 <param name="snp_threshold" type="integer" value="2500" min="0"
|
|
122 label="Correlation clustering threshold for MLST"/>
|
|
123 </when>
|
|
124 </conditional>
|
|
125
|
|
126 <conditional name="mentalist">
|
|
127 <param name="mentalist_checkbox" type="boolean" label="Run MentaLiST"/>
|
|
128 <when value="true">
|
|
129 <conditional name="db_loc">
|
|
130 <param name="db_selector" type="select" label="Option for obtaining MLST database">
|
|
131 <option value="local_file">Local File</option>
|
|
132 <option value="build_db">Build DB</option>
|
|
133 <option value="download_pubmlst">Download PubMLST Scheme</option>
|
|
134 <option value="download_cgmlst">Download cgMLST Scheme</option>
|
|
135 <option value="download_enterobase">Download Enterobase Scheme</option>
|
|
136 </param>
|
|
137 <when value="local_file">
|
|
138 <param name="mlst_database" format="db" type="data" label="MLST database file"/>
|
|
139 </when>
|
|
140 <when value="build_db">
|
|
141 <param name="k" type="integer" value="31" min="1" label="kmer size"/>
|
|
142 <param name="fasta_files" type="data" format="txt,tabular" label="List of FASTA files"/>
|
|
143 <param name="profile" type="data" format="txt" label="Profile file for known
|
|
144 genotypes"/>
|
|
145 </when>
|
|
146 <when value="download_pubmlst">
|
|
147 <param name="k" type="integer" value="31" min="1" label="kmer size"/>
|
|
148 <param name="scheme" type="text" label="Species name or scheme ID"/>
|
|
149 </when>
|
|
150 <when value="download_cgmlst">
|
|
151 <param name="k" type="integer" value="31" min="1" label="kmer size"/>
|
|
152 <param name="scheme" type="text" label="Species name or scheme ID"/>
|
|
153 </when>
|
|
154 <when value="download_enterobase">
|
|
155 <param name="k" type="integer" value="31" min="1" label="kmer size"/>
|
|
156 <param name="scheme" type="text" label="(S)almonella, (Y)ersinia, or
|
|
157 (E)scherichia/Shigella"/>
|
|
158 <param name="type" type="text" label="'cg' or 'wg' for cgMLST or wgMLST, respectively"/>
|
|
159 </when>
|
|
160 </conditional>
|
|
161
|
|
162 <conditional name="mentalist_adv">
|
|
163 <param name="mentalist_adv_checkbox" type="boolean" label="Advanced MentaLiST Parameters"/>
|
|
164 <when value="true">
|
|
165 <param name="mutation_thresh" type="integer" min="1" value="6" label="Maximum number of
|
|
166 mutations when looking for novel alleles"/>
|
|
167 <param name="kt" type="integer" value="10" min="1" label="Minimum number of times a
|
|
168 kmer is seen to be considered present in the sample"/>
|
|
169 </when>
|
|
170 </conditional>
|
|
171 <param name="mlst_fine" type="boolean" label="Consider MLST as a fine datatype"/>
|
|
172 <param name="mlst_threshold" type="integer" value="300" min="0"
|
|
173 label="Correlation clustering threshold for MLST"/>
|
|
174 </when>
|
|
175 </conditional>
|
|
176
|
|
177 <conditional name="prince">
|
|
178 <param name="prince_checkbox" type="boolean" label="Run PRINCE"/>
|
|
179 <when value="true">
|
|
180 <param name="cnv_fine" type="boolean" label="Consider CNV as a fine datatype"/>
|
|
181 <param name="cnv_threshold" type="integer" value="100" min="0"
|
|
182 label="Correlation clustering threshold for CNV"/>
|
|
183 </when>
|
|
184 </conditional>
|
|
185
|
|
186 <conditional name="kwip">
|
|
187 <param name="kwip_checkbox" type="boolean" label="Run kWIP"/>
|
|
188 <when value="true">
|
|
189 <conditional name="kwip_adv">
|
|
190 <param name="kwip_adv_checkbox" type="boolean" label="Advance kWIP Parameters"/>
|
|
191 <when value="true">
|
|
192 <param name="N" type="integer" value="1" min="1" label="Number of tables"/>
|
|
193 <param name="x" type="float" value="1e9" min="1" label="Maximum table size"/>
|
|
194 <param name="ksize" type="integer" value="31" min="1" label="kmer size"/>
|
|
195 <param name="unique_kmers" type="integer" value="0" min="0" label="Approximate number
|
|
196 of unique kmers in the input set"/>
|
|
197 </when>
|
|
198 </conditional>
|
|
199 <param name="kwip_fine" type="boolean" label="Consider kWIP as a fine datatype"/>
|
|
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">
|
|
208 <param name="spoligo_fine" type="boolean" label="Consider spoligotype as a fine datatype"/>
|
|
209 <param name="spoligo_threshold" type="integer" value="8" min="0"
|
|
210 label="Correlation clustering threshold for Spoligotyping"/>
|
|
211 </when>
|
|
212 </conditional>
|
|
213
|
|
214 <conditional name="adv_clustering">
|
|
215 <param name="adv_clustering_checkbox" type="boolean"
|
|
216 label="Advanced settings for correlation and consensus clustering"/>
|
|
217 <when value="true">
|
|
218 <param name="all_constraints" type="boolean" checked="true" falsevalue="--less_constraints"
|
|
219 truevalue="" label="Use all constraints when performing clustering"/>
|
|
220 <param name="method" type="text" value="C4" size="3"
|
|
221 label="`C4` or `ILP` method for clustering algorithm"/>
|
|
222 <param name="presolve" type="boolean" checked="true" falsevalue="--no_presolve" truevalue=""
|
|
223 label="Perform presolving for clustering"/>
|
|
224 <param name="visualize" type="boolean" checked="false" falsevalue="" truevalue="--visualize"
|
|
225 label="Visualize clusters"/>
|
|
226 </when>
|
|
227 </conditional>
|
|
228 <!--</when>-->
|
|
229 <!--</conditional>-->
|
|
230 </inputs>
|
|
231
|
|
232 <outputs>
|
|
233 <data name="output" label="PathOGiST Config File" format="yaml" from_work_dir="config.yaml"/>
|
|
234 </outputs>
|
|
235
|
|
236 <help>
|
|
237
|
|
238 </help>
|
|
239
|
|
240 <citations>
|
|
241
|
|
242 </citations>
|
|
243 </tool>
|