comparison samtools_stats.xml @ 8:e28839a4b932 draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
author iuc
date Tue, 28 Sep 2021 16:17:39 +0000
parents 145f6d74ff5e
children 1cc79f49b8d5
comparison
equal deleted inserted replaced
7:145f6d74ff5e 8:e28839a4b932
1 <tool id="samtools_stats" name="Samtools stats" version="2.0.2+galaxy2"> 1 <tool id="samtools_stats" name="Samtools stats" version="2.0.3" profile="@PROFILE@">
2 <description>generate statistics for BAM dataset</description> 2 <description>generate statistics for BAM dataset</description>
3 <macros> 3 <macros>
4 <import>macros.xml</import> 4 <import>macros.xml</import>
5 </macros> 5 </macros>
6 <expand macro="requirements"/> 6 <expand macro="requirements"/>
14 #if $coverage_cond.coverage_select == 'yes': 14 #if $coverage_cond.coverage_select == 'yes':
15 --coverage ${coverage_cond.coverage_min},${coverage_cond.coverage_max},${coverage_cond.coverage_step} 15 --coverage ${coverage_cond.coverage_min},${coverage_cond.coverage_max},${coverage_cond.coverage_step}
16 #end if 16 #end if
17 ${remove_dups} 17 ${remove_dups}
18 #if str( $filter_by_flags.filter_flags ) == "filter": 18 #if str( $filter_by_flags.filter_flags ) == "filter":
19 #if $filter_by_flags.require_flags: 19 #set $filter = $filter_by_flags.require_flags
20 #set $filter = $filter_by_flags.require_flags 20 @FLAGS@
21 @FLAGS@ 21 --required-flag $flags
22 --required-flag $flags 22 #set $filter = $filter_by_flags.exclude_flags
23 #end if 23 @FLAGS@
24 #if $filter_by_flags.exclude_flags: 24 --filtering-flag $flags
25 #set $filter = $filter_by_flags.exclude_flags
26 @FLAGS@
27 --filtering-flag $flags
28 #end if
29 #end if 25 #end if
30 #if str($gc_depth): 26 #if str($gc_depth):
31 --GC-depth ${gc_depth} 27 --GC-depth ${gc_depth}
32 #end if 28 #end if
33 #if str($insert_size): 29 #if str($insert_size):
34 --insert-size ${insert_size} 30 --insert-size ${insert_size}
35 #end if 31 #end if
36 ## The code below is commented out because using -I/--id options causes 32 ## #if $read_group
37 ## in samtools up to 1.9 the following exception 33 ## -I '$read_group'
38 ## Samtools-htslib: init_group_id() header parsing not yet implemented 34 ## #end if
39 ##if str($read_group) != "":
40 ## -I "${read_group}"
41 ##end if
42 #if str($read_length): 35 #if str($read_length):
43 --read-length ${read_length} 36 --read-length ${read_length}
44 #end if 37 #end if
45 #if str($most_inserts): 38 #if str($most_inserts):
46 --most-inserts ${most_inserts} 39 --most-inserts ${most_inserts}
61 @REGIONS_FILE@ 54 @REGIONS_FILE@
62 $remove_overlaps 55 $remove_overlaps
63 #if str($cov_threshold): 56 #if str($cov_threshold):
64 -g $cov_threshold 57 -g $cov_threshold
65 #end if 58 #end if
66 -@ \$addthreads 59 -@ \$addthreads
67 infile 60 infile
68 @REGIONS_MANUAL@ 61 @REGIONS_MANUAL@
69 > '$output' 62 > '$output'
70 63
71 #if $split_output_cond.split_output_selector == "yes": 64 #if $split_output_cond.split_output_selector == "yes":
137 130
138 </conditional> 131 </conditional>
139 <!-- TODO I would like to set the default values of float and int parameters as on the samtools stats help page, but then the tests don't work. Hence I leave the optional and give the defaults in the help --> 132 <!-- TODO I would like to set the default values of float and int parameters as on the samtools stats help page, but then the tests don't work. Hence I leave the optional and give the defaults in the help -->
140 <param name="gc_depth" argument="--GC-depth" type="float" optional="True" label="Size of GC-depth bins" help="Decreasing bin size increases memory requirement. default=2e4" /> 133 <param name="gc_depth" argument="--GC-depth" type="float" optional="True" label="Size of GC-depth bins" help="Decreasing bin size increases memory requirement. default=2e4" />
141 <param name="insert_size" argument="--insert-size" type="integer" optional="True" label="Maximum insert size" help="default=8000" /> 134 <param name="insert_size" argument="--insert-size" type="integer" optional="True" label="Maximum insert size" help="default=8000" />
142 <!-- 135 <!-- TOOD https://github.com/samtools/samtools/issues/1489 -->
143 The -I option of samtools stats returns the following message up to version 1.9: 136 <param name="read_group" argument="--id" type="select" optional="true" label="Limit to a specific read group name" >
144 Samtools-htslib: init_group_id() header parsing not yet implemented 137 <options>
145 Because of this the section below is commented out until this stats bug is fixed 138 <filter type="data_meta" ref="input" key="read_groups" />
146 <param name="read_group" type="select" optional="true" label="Limit to a specific read group name" > 139 </options>
147 <options> 140 </param>
148 <filter type="data_meta" ref="input" key="read_groups" />
149 </options>
150 </param>
151 -->
152 <param name="read_length" argument="--read-length" type="integer" optional="true" label="Minimum read length to generate statistics for" help="No cutoff if left empty" /> 141 <param name="read_length" argument="--read-length" type="integer" optional="true" label="Minimum read length to generate statistics for" help="No cutoff if left empty" />
153 <param name="most_inserts" argument="--most-inserts" type="float" optional="true" label="Report only the main part of inserts" help="default=0.99" /> 142 <param name="most_inserts" argument="--most-inserts" type="float" optional="true" label="Report only the main part of inserts" help="default=0.99" />
154 <param name="trim_quality" argument="--trim-quality" type="integer" optional="true" label="BWA trim parameter" help="default=0" /> 143 <param name="trim_quality" argument="--trim-quality" type="integer" optional="true" label="BWA trim parameter" help="default=0" />
155 144
156 <conditional name="addref_cond"> 145 <expand macro="optional_reference" argument="--ref-seq" help="Required for GC-depth and mismatches-per-cycle calculation"/>
157 <param name="addref_select" type="select" label="Use a reference sequence" help="Required for GC-depth and mismatches-per-cycle calculation">
158 <option value="no">No</option>
159 <option value="cached">Locally cached</option>
160 <option value="history">History</option>
161 </param>
162 <when value="no"/>
163 <when value="cached">
164 <param name="ref" type="select" label="Using genome">
165 <options from_data_table="fasta_indexes">
166 <filter type="data_meta" ref="input" key="dbkey" column="dbkey" />
167 </options>
168 </param>
169 </when>
170 <when value="history">
171 <param name="ref" type="data" format="fasta" label="Using file" />
172 </when>
173 </conditional>
174 <!-- unfortunately -t takes tabular and not bed like view (otherwise a macro might have simplified this) --> 146 <!-- unfortunately -t takes tabular and not bed like view (otherwise a macro might have simplified this) -->
175 147
176 <expand macro="regions_macro"/> 148 <expand macro="regions_macro"/>
177 149
178 <param name="sparse" argument="-x/--sparse" type="boolean" truevalue="-x" falsevalue="" checked="False" label="Suppress absence of insertions" help="Suppress outputting IS rows where there are no insertions."/> 150 <param name="sparse" argument="-x/--sparse" type="boolean" truevalue="-x" falsevalue="" checked="False" label="Suppress absence of insertions" help="Suppress outputting IS rows where there are no insertions."/>
179 <param name="remove_overlaps" argument="-p/--remove-overlaps" type="boolean" truevalue="-p" falsevalue="" checked="False" label="Remove overlaps of paired-end reads from coverage and base count computations" /> 151 <param name="remove_overlaps" argument="-p/--remove-overlaps" type="boolean" truevalue="-p" falsevalue="" checked="False" label="Remove overlaps of paired-end reads from coverage and base count computations" />
180 <param name="cov_threshold" argument="-g/--cov-threshold" optional="true" type="integer" label="Only bases with coverage above this value will be included in the target percentage computation" /> 152 <param name="cov_threshold" argument="-g/--cov-threshold" optional="true" type="integer" label="Only bases with coverage above this value will be included in the target percentage computation" />
196 <param name="input" value="1_map_cigar.sam" ftype="sam" /> 168 <param name="input" value="1_map_cigar.sam" ftype="sam" />
197 <conditional name="addref_cond"> 169 <conditional name="addref_cond">
198 <param name="addref_select" value="history" /> 170 <param name="addref_select" value="history" />
199 <param name="ref" value="test.fa" ftype="fasta" /> 171 <param name="ref" value="test.fa" ftype="fasta" />
200 </conditional> 172 </conditional>
201 <output name="output" file="1.stats.expected" ftype="tabular" lines_diff="3" /> 173 <output name="output" file="1.stats.expected" ftype="tabular" lines_diff="2" />
202 </test> 174 </test>
203 <!-- test_cmd($opts,out=>'stat/1.stats.expected',cmd=>"$$opts{bin}/samtools stats -r $$opts{path}/stat/test.fa $$opts{path}/stat/1_map_cigar.sam | tail -n+4", exp_fix=>$efix);--> 175 <!-- test_cmd($opts,out=>'stat/1.stats.expected',cmd=>"$$opts{bin}/samtools stats -r $$opts{path}/stat/test.fa $$opts{path}/stat/1_map_cigar.sam | tail -n+4", exp_fix=>$efix);-->
204 <test> 176 <test>
205 <param name="input" value="2_equal_cigar_full_seq.sam" ftype="sam" /> 177 <param name="input" value="2_equal_cigar_full_seq.sam" ftype="sam" />
206 <conditional name="addref_cond"> 178 <conditional name="addref_cond">
207 <param name="addref_select" value="history" /> 179 <param name="addref_select" value="history" />
208 <param name="ref" value="test.fa" ftype="fasta" /> 180 <param name="ref" value="test.fa" ftype="fasta" />
209 </conditional> 181 </conditional>
210 <output name="output" file="2.stats.expected" ftype="tabular" lines_diff="3" /> 182 <output name="output" file="2.stats.expected" ftype="tabular" lines_diff="2" />
211 </test> 183 </test>
212 <!-- test_cmd($opts,out=>'stat/2.stats.expected',cmd=>"$$opts{bin}/samtools stats -r $$opts{path}/stat/test.fa $$opts{path}/stat/2_equal_cigar_full_seq.sam | tail -n+4", exp_fix=>$efix);--> 184 <!-- test_cmd($opts,out=>'stat/2.stats.expected',cmd=>"$$opts{bin}/samtools stats -r $$opts{path}/stat/test.fa $$opts{path}/stat/2_equal_cigar_full_seq.sam | tail -n+4", exp_fix=>$efix);-->
213 <!-- test_cmd($opts,out=>'stat/3.stats.expected',cmd=>"$$opts{bin}/samtools stats -r $$opts{path}/stat/test.fa $$opts{path}/stat/3_map_cigar_equal_seq.sam | tail -n+4", exp_fix=>$efix);--> 185 <!-- test_cmd($opts,out=>'stat/3.stats.expected',cmd=>"$$opts{bin}/samtools stats -r $$opts{path}/stat/test.fa $$opts{path}/stat/3_map_cigar_equal_seq.sam | tail -n+4", exp_fix=>$efix);-->
214 <!-- test_cmd($opts,out=>'stat/4.stats.expected',cmd=>"$$opts{bin}/samtools stats -r $$opts{path}/stat/test.fa $$opts{path}/stat/4_X_cigar_full_seq.sam | tail -n+4", exp_fix=>$efix);--> 186 <!-- test_cmd($opts,out=>'stat/4.stats.expected',cmd=>"$$opts{bin}/samtools stats -r $$opts{path}/stat/test.fa $$opts{path}/stat/4_X_cigar_full_seq.sam | tail -n+4", exp_fix=>$efix);-->
215 <!-- test_cmd($opts,out=>'stat/5.stats.expected',cmd=>"$$opts{bin}/samtools stats -r $$opts{path}/stat/test.fa $$opts{path}/stat/5_insert_cigar.sam | tail -n+4", exp_fix=>$efix); --> 187 <!-- test_cmd($opts,out=>'stat/5.stats.expected',cmd=>"$$opts{bin}/samtools stats -r $$opts{path}/stat/test.fa $$opts{path}/stat/5_insert_cigar.sam | tail -n+4", exp_fix=>$efix); -->
218 <param name="insert_size" value="0" /> 190 <param name="insert_size" value="0" />
219 <conditional name="addref_cond"> 191 <conditional name="addref_cond">
220 <param name="addref_select" value="history" /> 192 <param name="addref_select" value="history" />
221 <param name="ref" value="test.fa" ftype="fasta" /> 193 <param name="ref" value="test.fa" ftype="fasta" />
222 </conditional> 194 </conditional>
223 <output name="output" file="6.stats.expected" ftype="tabular" lines_diff="3" /> 195 <output name="output" file="6.stats.expected" ftype="tabular" lines_diff="2" />
224 </test> 196 </test>
225 <!-- test_cmd($opts,out=>'stat/6.stats.expected',cmd=>"$$opts{bin}/samtools stats -r $$opts{path}/stat/test.fa -i 0 $$opts{path}/stat/5_insert_cigar.sam | tail -n+4", exp_fix=>$efix); --> 197 <!-- test_cmd($opts,out=>'stat/6.stats.expected',cmd=>"$$opts{bin}/samtools stats -r $$opts{path}/stat/test.fa -i 0 $$opts{path}/stat/5_insert_cigar.sam | tail -n+4", exp_fix=>$efix); -->
226 <!-- test_cmd($opts,out=>'stat/7.stats.expected',cmd=>"$$opts{bin}/samtools stats -r $$opts{path}/stat/test.fa $$opts{path}/stat/7_supp.sam | tail -n+4", exp_fix=>$efix); --> 198 <!-- test_cmd($opts,out=>'stat/7.stats.expected',cmd=>"$$opts{bin}/samtools stats -r $$opts{path}/stat/test.fa $$opts{path}/stat/7_supp.sam | tail -n+4", exp_fix=>$efix); -->
227 <!-- test_cmd($opts,out=>'stat/8.stats.expected',cmd=>"$$opts{bin}/samtools stats -r $$opts{path}/stat/test.fa $$opts{path}/stat/8_secondary.sam | tail -n+4", exp_fix=>$efix);--> 199 <!-- test_cmd($opts,out=>'stat/8.stats.expected',cmd=>"$$opts{bin}/samtools stats -r $$opts{path}/stat/test.fa $$opts{path}/stat/8_secondary.sam | tail -n+4", exp_fix=>$efix);-->
228 <!-- test_cmd($opts,out=>'stat/9.stats.expected',cmd=>"$$opts{bin}/samtools stats -S RG -r $$opts{path}/stat/test.fa $$opts{path}/stat/1_map_cigar.sam | tail -n+4", exp_fix=>$efix,out_map=>{"stat/1_map_cigar.sam_s1_a_1.bamstat"=>"stat/1_map_cigar.sam_s1_a_1.expected.bamstat"},hskip=>3);--> 200 <!-- test_cmd($opts,out=>'stat/9.stats.expected',cmd=>"$$opts{bin}/samtools stats -S RG -r $$opts{path}/stat/test.fa $$opts{path}/stat/1_map_cigar.sam | tail -n+4", exp_fix=>$efix,out_map=>{"stat/1_map_cigar.sam_s1_a_1.bamstat"=>"stat/1_map_cigar.sam_s1_a_1.expected.bamstat"},hskip=>3);-->
234 </conditional> 206 </conditional>
235 <conditional name="cond_region"> 207 <conditional name="cond_region">
236 <param name="select_region" value="tab"/> 208 <param name="select_region" value="tab"/>
237 <param name="targetregions" value="11.stats.targets" ftype="tabular" /> 209 <param name="targetregions" value="11.stats.targets" ftype="tabular" />
238 </conditional> 210 </conditional>
239 <output name="output" file="11.stats.expected" ftype="tabular" lines_diff="3" /> 211 <output name="output" file="11.stats.expected" ftype="tabular" lines_diff="4" />
240 </test> 212 </test>
241 <!-- test_cmd($opts,out=>'stat/11.stats.expected',cmd=>"$$opts{bin}/samtools stats -t $$opts{path}/stat/11.stats.targets $$opts{path}/stat/11_target.sam | tail -n+4", exp_fix=>$efix); --> 213 <!-- test_cmd($opts,out=>'stat/11.stats.expected',cmd=>"$$opts{bin}/samtools stats -t $$opts{path}/stat/11.stats.targets $$opts{path}/stat/11_target.sam | tail -n+4", exp_fix=>$efix); -->
242 214
243 <test> 215 <test>
244 <param name="input" value="11_target.bam" ftype="bam" /> 216 <param name="input" value="11_target.bam" ftype="bam" />
249 <param name="select_region" value="text"/> 221 <param name="select_region" value="text"/>
250 <param name="regions_repeat_0|region" value="ref1:10-24"/> 222 <param name="regions_repeat_0|region" value="ref1:10-24"/>
251 <param name="regions_repeat_1|region" value="ref1:30-46"/> 223 <param name="regions_repeat_1|region" value="ref1:30-46"/>
252 <param name="regions_repeat_2|region" value="ref1:39-56"/> 224 <param name="regions_repeat_2|region" value="ref1:39-56"/>
253 </conditional> 225 </conditional>
254 <output name="output" file="11.stats.expected" ftype="tabular" lines_diff="3" /> 226 <output name="output" file="11.stats.expected" ftype="tabular" lines_diff="2" />
255 </test> 227 </test>
256 <!-- test_cmd($opts,out=>'stat/11.stats.expected',cmd=>"$$opts{bin}/samtools stats $$opts{path}/stat/11_target.bam ref1:10-24 ref1:30-46 ref1:39-56 | tail -n+4", exp_fix=>$efix); 228 <!-- test_cmd($opts,out=>'stat/11.stats.expected',cmd=>"$$opts{bin}/samtools stats $$opts{path}/stat/11_target.bam ref1:10-24 ref1:30-46 ref1:39-56 | tail -n+4", exp_fix=>$efix);
257 --> 229 -->
258 <test> 230 <test>
259 <param name="input" value="11_target.sam" ftype="sam" /> 231 <param name="input" value="11_target.sam" ftype="sam" />
263 <conditional name="cond_region"> 235 <conditional name="cond_region">
264 <param name="select_region" value="tab"/> 236 <param name="select_region" value="tab"/>
265 <param name="targetregions" value="11.stats.targets" ftype="tabular" /> 237 <param name="targetregions" value="11.stats.targets" ftype="tabular" />
266 </conditional> 238 </conditional>
267 <param name="cov_threshold" value="4" /> 239 <param name="cov_threshold" value="4" />
268 <output name="output" file="11.stats.g4.expected" ftype="tabular" lines_diff="3" /> 240 <output name="output" file="11.stats.g4.expected" ftype="tabular" lines_diff="4" />
269 </test> 241 </test>
270 <!-- test_cmd($opts,out=>'stat/11.stats.g4.expected',cmd=>"$$opts{bin}/samtools stats -g 4 -t $$opts{path}/stat/11.stats.targets $$opts{path}/stat/11_target.sam | tail -n+4", exp_fix=>$efix);--> 242 <!-- test_cmd($opts,out=>'stat/11.stats.g4.expected',cmd=>"$$opts{bin}/samtools stats -g 4 -t $$opts{path}/stat/11.stats.targets $$opts{path}/stat/11_target.sam | tail -n+4", exp_fix=>$efix);-->
271 <test> 243 <test>
272 <param name="input" value="11_target.bam" ftype="bam" /> 244 <param name="input" value="11_target.bam" ftype="bam" />
273 <conditional name="addref_cond"> 245 <conditional name="addref_cond">
278 <param name="regions_repeat_0|region" value="ref1:10-24"/> 250 <param name="regions_repeat_0|region" value="ref1:10-24"/>
279 <param name="regions_repeat_1|region" value="ref1:30-46"/> 251 <param name="regions_repeat_1|region" value="ref1:30-46"/>
280 <param name="regions_repeat_2|region" value="ref1:39-56"/> 252 <param name="regions_repeat_2|region" value="ref1:39-56"/>
281 </conditional> 253 </conditional>
282 <param name="cov_threshold" value="4" /> 254 <param name="cov_threshold" value="4" />
283 <output name="output" file="11.stats.g4.expected" ftype="tabular" lines_diff="3" /> 255 <output name="output" file="11.stats.g4.expected" ftype="tabular" lines_diff="2" />
284 </test> 256 </test>
285 <!-- test_cmd($opts,out=>'stat/11.stats.g4.expected',cmd=>"$$opts{bin}/samtools stats -g 4 $$opts{path}/stat/11_target.bam ref1:10-24 ref1:30-46 ref1:39-56 | tail -n+4", exp_fix=>$efix); --> 257 <!-- test_cmd($opts,out=>'stat/11.stats.g4.expected',cmd=>"$$opts{bin}/samtools stats -g 4 $$opts{path}/stat/11_target.bam ref1:10-24 ref1:30-46 ref1:39-56 | tail -n+4", exp_fix=>$efix); -->
286 <test> 258 <test>
287 <param name="input" value="12_overlaps.bam" ftype="bam" /> 259 <param name="input" value="12_overlaps.bam" ftype="bam" />
288 <conditional name="addref_cond"> 260 <conditional name="addref_cond">
290 </conditional> 262 </conditional>
291 <conditional name="cond_region"> 263 <conditional name="cond_region">
292 <param name="select_region" value="tab"/> 264 <param name="select_region" value="tab"/>
293 <param name="targetregions" value="12_3reads.bed" ftype="tabular" /> 265 <param name="targetregions" value="12_3reads.bed" ftype="tabular" />
294 </conditional> 266 </conditional>
295 <output name="output" file="12.3reads.overlap.expected" ftype="tabular" lines_diff="3" /> 267 <output name="output" file="12.3reads.overlap.expected" ftype="tabular" lines_diff="4" />
296 </test> 268 </test>
297 <!-- test_cmd($opts,out=>'stat/12.3reads.overlap.expected',cmd=>"$$opts{bin}/samtools stats $$opts{path}/stat/12_overlaps.bam -t $$opts{path}/stat/12_3reads.bed | tail -n+4", exp_fix=>$efix);--> 269 <!-- test_cmd($opts,out=>'stat/12.3reads.overlap.expected',cmd=>"$$opts{bin}/samtools stats $$opts{path}/stat/12_overlaps.bam -t $$opts{path}/stat/12_3reads.bed | tail -n+4", exp_fix=>$efix);-->
298 <test> 270 <test>
299 <param name="input" value="12_overlaps.bam" ftype="bam" /> 271 <param name="input" value="12_overlaps.bam" ftype="bam" />
300 <conditional name="addref_cond"> 272 <conditional name="addref_cond">
303 <conditional name="cond_region"> 275 <conditional name="cond_region">
304 <param name="select_region" value="tab"/> 276 <param name="select_region" value="tab"/>
305 <param name="targetregions" value="12_3reads.bed" ftype="tabular" /> 277 <param name="targetregions" value="12_3reads.bed" ftype="tabular" />
306 </conditional> 278 </conditional>
307 <param name="remove_overlaps" value="-p"/> 279 <param name="remove_overlaps" value="-p"/>
308 <output name="output" file="12.3reads.nooverlap.expected" ftype="tabular" lines_diff="3" /> 280 <output name="output" file="12.3reads.nooverlap.expected" ftype="tabular" lines_diff="4" />
309 </test> 281 </test>
310 <!-- test_cmd($opts,out=>'stat/12.3reads.nooverlap.expected',cmd=>"$$opts{bin}/samtools stats $$opts{path}/stat/12_overlaps.bam -p -t $$opts{path}/stat/12_3reads.bed | tail -n+4", exp_fix=>$efix);--> 282 <!-- test_cmd($opts,out=>'stat/12.3reads.nooverlap.expected',cmd=>"$$opts{bin}/samtools stats $$opts{path}/stat/12_overlaps.bam -p -t $$opts{path}/stat/12_3reads.bed | tail -n+4", exp_fix=>$efix);-->
311 <test> 283 <test>
312 <param name="input" value="12_overlaps.bam" ftype="bam" /> 284 <param name="input" value="12_overlaps.bam" ftype="bam" />
313 <conditional name="addref_cond"> 285 <conditional name="addref_cond">
315 </conditional> 287 </conditional>
316 <conditional name="cond_region"> 288 <conditional name="cond_region">
317 <param name="select_region" value="tab"/> 289 <param name="select_region" value="tab"/>
318 <param name="targetregions" value="12_2reads.bed" ftype="tabular" /> 290 <param name="targetregions" value="12_2reads.bed" ftype="tabular" />
319 </conditional> 291 </conditional>
320 <output name="output" file="12.2reads.overlap.expected" ftype="tabular" lines_diff="3" /> 292 <output name="output" file="12.2reads.overlap.expected" ftype="tabular" lines_diff="4" />
321 </test> 293 </test>
322 <!-- test_cmd($opts,out=>'stat/12.2reads.overlap.expected',cmd=>"$$opts{bin}/samtools stats $$opts{path}/stat/12_overlaps.bam -t $$opts{path}/stat/12_2reads.bed | tail -n+4", exp_fix=>$efix);--> 294 <!-- test_cmd($opts,out=>'stat/12.2reads.overlap.expected',cmd=>"$$opts{bin}/samtools stats $$opts{path}/stat/12_overlaps.bam -t $$opts{path}/stat/12_2reads.bed | tail -n+4", exp_fix=>$efix);-->
323 <test> 295 <test>
324 <param name="input" value="12_overlaps.bam" ftype="bam" /> 296 <param name="input" value="12_overlaps.bam" ftype="bam" />
325 <conditional name="addref_cond"> 297 <conditional name="addref_cond">
328 <conditional name="cond_region"> 300 <conditional name="cond_region">
329 <param name="select_region" value="tab"/> 301 <param name="select_region" value="tab"/>
330 <param name="targetregions" value="12_2reads.bed" ftype="tabular" /> 302 <param name="targetregions" value="12_2reads.bed" ftype="tabular" />
331 </conditional> 303 </conditional>
332 <param name="remove_overlaps" value="-p"/> 304 <param name="remove_overlaps" value="-p"/>
333 <output name="output" file="12.2reads.nooverlap.expected" ftype="tabular" lines_diff="3" /> 305 <output name="output" file="12.2reads.nooverlap.expected" ftype="tabular" lines_diff="4" />
334 </test> 306 </test>
335 <!-- test_cmd($opts,out=>'stat/12.2reads.nooverlap.expected',cmd=>"$$opts{bin}/samtools stats $$opts{path}/stat/12_overlaps.bam -p -t $$opts{path}/stat/12_2reads.bed | tail -n+4", exp_fix=>$efix);--> 307 <!-- test_cmd($opts,out=>'stat/12.2reads.nooverlap.expected',cmd=>"$$opts{bin}/samtools stats $$opts{path}/stat/12_overlaps.bam -p -t $$opts{path}/stat/12_2reads.bed | tail -n+4", exp_fix=>$efix);-->
336 <test> 308 <test>
337 <param name="input" value="samtools_stats_input.bam" ftype="bam" /> 309 <param name="input" value="samtools_stats_input.bam" ftype="bam" />
338 <conditional name="addref_cond"> 310 <conditional name="addref_cond">
355 <element name="ACGT content per cycle" ftype="tabular" file="samtools_stats_out1__gcc.tab"/> 327 <element name="ACGT content per cycle" ftype="tabular" file="samtools_stats_out1__gcc.tab"/>
356 <element name="Mismatches per cycle and quality" ftype="tabular" file="samtools_stats_out1__mpc.tab" /> 328 <element name="Mismatches per cycle and quality" ftype="tabular" file="samtools_stats_out1__mpc.tab" />
357 <element name="Summary Numbers" ftype="tabular" file="samtools_stats_out1__sn.tab" /> 329 <element name="Summary Numbers" ftype="tabular" file="samtools_stats_out1__sn.tab" />
358 </output_collection> 330 </output_collection>
359 </test> 331 </test>
332 <!-- test filtering by read group -->
333 <!-- <test>
334 <param name="input" value="11_target.sam" ftype="sam" />
335 <conditional name="addref_cond">
336 <param name="addref_select" value="no" />
337 </conditional>
338 <param name="read_group" value="grp1" />
339 <output name="output" file="11.stats.read_groups.expected" ftype="tabular" lines_diff="2" />
340 <assert_command>
341 <has_text text="-I 'grp1'"/>
342 </assert_command>
343 </test> -->
360 </tests> 344 </tests>
361 <help><![CDATA[ 345 <help><![CDATA[
362 **What it does** 346 **What it does**
363 347
364 This tool runs the ``samtools stats`` command. 348 This tool runs the ``samtools stats`` command.
365 349
366 The results of samtools stats can be visualized with MultiQC (for this the default of a single output file needs to be selected). 350 The results of samtools stats can be visualized with MultiQC (for this the default of a single output file needs to be selected).
367 ]]></help> 351 ]]></help>
368 <expand macro="citations"/> 352 <expand macro="citations"/>
369 </tool> 353 </tool>
370