comparison varscan_somatic.xml @ 9:4e97191a1ff7 draft

"planemo upload for repository https://github.com/galaxyproject/iuc/tree/master/tools/varscan commit fcf5ac14629c694f0f64773fab0428b1e78fe156"
author iuc
date Fri, 16 Aug 2019 15:49:54 -0400
parents b79bb8b09822
children a57606054bd7
comparison
equal deleted inserted replaced
8:b79bb8b09822 9:4e97191a1ff7
1 <tool id="varscan_somatic" name="VarScan somatic" version="@VERSION@.4"> 1 <tool id="varscan_somatic" name="VarScan somatic" version="@VERSION@.5">
2 <description>Call germline/somatic and LOH variants from tumor-normal sample pairs</description> 2 <description>Call germline/somatic and LOH variants from tumor-normal sample pairs</description>
3 <macros> 3 <macros>
4 <import>macros.xml</import> 4 <import>macros.xml</import>
5 <macro name="test_mentions_contig"> 5 <macro name="test_mentions_contig">
6 <assert_contents> 6 <assert_contents>
25 <not_has_text 25 <not_has_text
26 text="##FILTER=&lt;ID=ReadLenDiff,Description=" /> 26 text="##FILTER=&lt;ID=ReadLenDiff,Description=" />
27 <not_has_text 27 <not_has_text
28 text="##FILTER=&lt;ID=RefDist3,Description=" /> 28 text="##FILTER=&lt;ID=RefDist3,Description=" />
29 </assert_contents> 29 </assert_contents>
30 </macro>
31 <macro name="filter_compat_options">
32 <section name="experts_only" title="Compatibility options for experts" expanded="false">
33 <param name="compat_opts" type="select" display="checkboxes" multiple="true" optional="true"
34 label="Compatibility Options for Posterior Variant Filtering"
35 help="">
36 <option value="--ignore-md" selected="true">Always determine mismatch quality statistics from recalculated read to reference alignments. Ignore read MD tags if present.</option>
37 <option value="--detect-q2-runs" selected="false">Treat runs of base qualities of value 2 at the 3' end of reads as quality control indicator (Illumina 1.5 compatibility setting)</option>
38 </param>
39 </section>
30 </macro> 40 </macro>
31 </macros> 41 </macros>
32 <expand macro="requirements"> 42 <expand macro="requirements">
33 <requirement type="package" version="3.6.7">python</requirement> 43 <requirement type="package" version="3.6.7">python</requirement>
34 <requirement type="package" version="0.15.1">pysam</requirement> 44 <requirement type="package" version="0.15.1">pysam</requirement>
61 --ofile '$output' 71 --ofile '$output'
62 #end if 72 #end if
63 --threads \${GALAXY_SLOTS:-2} 73 --threads \${GALAXY_SLOTS:-2}
64 #if str($call_params.settings) == "custom": 74 #if str($call_params.settings) == "custom":
65 ## samtools mpileup parameters 75 ## samtools mpileup parameters
66 --min-basequal ${call_params.min_avg_qual} 76 --min-basequal ${call_params.read_selection.min_basequal}
67 --min-mapqual ${call_params.min_mapqual} 77 --min-mapqual ${call_params.read_selection.min_mapqual}
78 ${call_params.read_selection.count_orphans}
79 ${call_params.read_selection.detect_overlaps}
80 --max-pileup-depth ${call_params.read_selection.max_pileup_depth}
68 ## VarScan parameters 81 ## VarScan parameters
69 --min-coverage ${call_params.min_coverage} 82 --min-coverage ${call_params.min_coverage}
70 --min-var-count ${call_params.min_reads2} 83 --min-var-count ${call_params.min_reads2}
71 --min-var-freq ${call_params.min_var_freq} 84 --min-var-freq ${call_params.min_var_freq}
72 --min-hom-freq ${call_params.min_freq_for_hom} 85 --min-hom-freq ${call_params.min_freq_for_hom}
73 --p-value ${call_params.p_value} 86 --p-value ${call_params.p_value}
74 --somatic-p-value ${call_params.somatic_p_value} 87 --somatic-p-value ${call_params.somatic_p_value}
75 #end if 88 #end if
76 #if str($filter_params.settings) == "no_filter": 89 #if str($filter_params.settings) == "no_filter":
77 --no-filters 90 --no-filters
78 #elif str($filter_params.settings) == "dream3_settings": 91 #else:
79 --min-var-count2 3 92 #if str($filter_params.settings) == "dream3_settings":
80 --min-var-count2-lc 1 93 --min-var-count2 3
81 --min-var-freq2 0.05 94 --min-var-count2-lc 1
82 --max-somatic-p 0.05 95 --min-var-count2-depth 10
83 --max-somatic-p-depth 10 96 --min-var-freq2 0.05
84 --min-ref-readpos 0.2 97 --min-ref-readpos 0.2
85 --min-var-readpos 0.15 98 --min-var-readpos 0.15
86 --min-ref-dist3 0.2 99 --min-ref-dist3 0.2
87 --min-var-dist3 0.15 100 --min-var-dist3 0.15
88 --min-ref-len 90 101 --min-ref-len 90
89 --min-var-len 90 102 --min-var-len 90
90 --max-len-diff 0.05 103 --max-len-diff 0.05
91 --min-strandedness 0 104 --min-strandedness 0
92 --min-strand-reads 5 105 --min-strand-reads 5
93 --min-ref-basequal 15 106 --min-ref-basequal 15
94 --min-var-basequal 30 107 --min-var-basequal 30
95 --max-basequal-diff 50 108 --max-basequal-diff 50
96 --min-ref-mapqual 20 109 --min-ref-mapqual 20
97 --min-var-mapqual 30 110 --min-var-mapqual 30
98 --max-mapqual-diff 10 111 --max-mapqual-diff 10
99 --max-ref-mmqs 50 112 --max-ref-mmqs 50
100 --max-var-mmqs 100 113 --max-var-mmqs 100
101 --min-mmqs-diff 0 114 --min-mmqs-diff 0
102 --max-mmqs-diff 50 115 --max-mmqs-diff 50
103 #elif str($filter_params.settings) == "custom": 116 #elif str($filter_params.settings) == "custom":
104 --min-var-count2 ${filter_params.min_var_count} 117 --min-var-count2 ${filter_params.min_var_count}
105 --min-var-count2-lc ${filter_params.min_var_count_lc} 118 --min-var-count2-lc ${filter_params.min_var_count_lc}
106 --min-var-freq2 ${filter_params.min_var_freq2} 119 --min-var-count2-depth ${filter_params.min_var_count_depth}
107 --max-somatic-p ${filter_params.max_somatic_p} 120 --min-var-freq2 ${filter_params.min_var_freq2}
108 --max-somatic-p-depth ${filter_params.max_somatic_p_depth} 121 --min-ref-readpos ${filter_params.min_ref_readpos}
109 --min-ref-readpos ${filter_params.min_ref_readpos} 122 --min-var-readpos ${filter_params.min_var_readpos}
110 --min-var-readpos ${filter_params.min_var_readpos} 123 --min-ref-dist3 ${filter_params.min_ref_dist3}
111 --min-ref-dist3 ${filter_params.min_ref_dist3} 124 --min-var-dist3 ${filter_params.min_var_dist3}
112 --min-var-dist3 ${filter_params.min_var_dist3} 125 --min-ref-len ${filter_params.min_ref_len}
113 --min-ref-len ${filter_params.min_ref_len} 126 --min-var-len ${filter_params.min_var_len}
114 --min-var-len ${filter_params.min_var_len} 127 --max-len-diff ${filter_params.max_len_diff}
115 --max-len-diff ${filter_params.max_len_diff} 128 --min-strandedness ${filter_params.min_strandedness}
116 --min-strandedness ${filter_params.min_strandedness} 129 --min-strand-reads ${filter_params.min_strand_reads}
117 --min-strand-reads ${filter_params.min_strand_reads} 130 --min-ref-basequal ${filter_params.min_ref_basequal}
118 --min-ref-basequal ${filter_params.min_ref_basequal} 131 --min-var-basequal ${filter_params.min_var_basequal}
119 --min-var-basequal ${filter_params.min_var_basequal} 132 --max-basequal-diff ${filter_params.max_basequal_diff}
120 --max-basequal-diff ${filter_params.max_basequal_diff} 133 --min-ref-mapqual ${filter_params.min_ref_mapqual}
121 --min-ref-mapqual ${filter_params.min_ref_mapqual} 134 --min-var-mapqual ${filter_params.min_var_mapqual}
122 --min-var-mapqual ${filter_params.min_var_mapqual} 135 --max-mapqual-diff ${filter_params.max_mapqual_diff}
123 --max-mapqual-diff ${filter_params.max_mapqual_diff} 136 --max-ref-mmqs ${filter_params.max_ref_mmqs}
124 --max-ref-mmqs ${filter_params.max_ref_mmqs} 137 --max-var-mmqs ${filter_params.max_var_mmqs}
125 --max-var-mmqs ${filter_params.max_var_mmqs} 138 --min-mmqs-diff ${filter_params.min_mmqs_diff}
126 --min-mmqs-diff ${filter_params.min_mmqs_diff} 139 --max-mmqs-diff ${filter_params.max_mmqs_diff}
127 --max-mmqs-diff ${filter_params.max_mmqs_diff} 140 #end if
141 #if $filter_params.experts_only.compat_opts:
142 #for $opt in str($filter_params.experts_only.compat_opts).split(','):
143 $opt
144 #end for
145 #end if
128 #end if 146 #end if
129 --verbose 147 --verbose
130 '$ref_genome' 148 '$ref_genome'
131 ]]></command> 149 ]]></command>
132 150
164 <param name="settings" label="Settings for Variant Calling" type="select"> 182 <param name="settings" label="Settings for Variant Calling" type="select">
165 <option value="varscan_defaults" selected="true">Use default values</option> 183 <option value="varscan_defaults" selected="true">Use default values</option>
166 <option value="custom">Customize settings</option> 184 <option value="custom">Customize settings</option>
167 </param> 185 </param>
168 <when value="custom"> 186 <when value="custom">
169 <param argument="samtools mpileup -Q" name="min_avg_qual" type="integer" value="13" min="0" max="50" 187 <section name="read_selection" title="Read selection" expanded="true"
170 label="Minimum base quality" 188 help="The settings in this section control which mapped reads will be used for variant calling.">
171 help="The minimum base quality at the variant position required to use a read for calling" /> 189 <param argument="samtools mpileup -Q" name="min_basequal" type="integer" value="13" min="1" max="50"
172 <param argument="samtools mpileup -q" name="min_mapqual" type="integer" value="0" min="0" max="60" 190 label="Minimum base quality"
173 label="Minimum mapping quality" 191 help="The minimum base quality (default: 13) at a given position required to use a read for calling variants at that site" />
174 help="The minimum mapping quality required for a read to be considered in variant calling" /> 192 <param argument="samtools mpileup -q" name="min_mapqual" type="integer" value="0" min="0" max="60"
193 label="Minimum mapping quality"
194 help="The minimum mapping quality (default: 0) required for a read to be considered in variant calling" />
195 <param argument="samtools mpileup -A" name="count_orphans" type="boolean" truevalue="--count-orphans" falsevalue="" checked="false"
196 label="Use reads from anomalously mapped pairs"
197 help="Applies to paired-end reads only. If set to true, reads from pairs that are flagged as non-proper pairs (SAM/BAM FLAG field 2) will be used in variant calling. The default is to ignore such reads." />
198 <param argument="samtools mpileup -x" name="detect_overlaps" type="boolean" truevalue="" falsevalue="--no-detect-overlaps" checked="true"
199 label="Try to correct for read-pair overlaps"
200 help="Applies to paired-end reads only. If the reads of a pair overlap on the reference, then with this option (on by default), the bases for which both reads provide evidence will be counted only once in variant calling (of the two sequenced bases in the reads, the base with the better base quality will be used)." />
201 <param argument="samtools mpileup -d" name="max_pileup_depth" type="integer" value="8000" min="4000"
202 label="Maximum number of reads per site"
203 help="Restrict the number of reads used for variant calling at a site to this maximum (default: 8000) for each sample. Helps protect against excessive memory usage (and slow tool runs) at sites of extraordinary high coverage." />
204 </section>
175 <expand macro="min_coverage" 205 <expand macro="min_coverage"
176 help="Minimum site coverage required in the normal and in the tumor sample to call a variant. This threshold gets applied after eliminating reads with low base and mapping qualitiy as defined above." /> 206 help="Minimum site coverage (default: 8) required in the normal and in the tumor sample to call a variant. This threshold gets applied after eliminating reads based on the read selection criteria above." />
177 <expand macro="min_reads2" /> 207 <expand macro="min_reads2"
208 help="Minimum number (default: 2) of variant-supporting reads (after read selection) at a position required to make a call"/>
178 <expand macro="min_var_freq" value="0.1" /> 209 <expand macro="min_var_freq" value="0.1" />
179 <expand macro="min_freq_for_hom" /> 210 <expand macro="min_freq_for_hom" />
180 <expand macro="p_value" value="0.99" 211 <expand macro="p_value" value="0.99"
181 help="The p-value threshold used to determine if a variant should be called for either sample" /> 212 help="The p-value threshold (default: 0.99) used to determine if a variant should be called for either sample" />
182 <param argument="--somatic-p-value" name="somatic_p_value" type="float" value="0.05" min="0" max="1" 213 <param argument="--somatic-p-value" name="somatic_p_value" type="float" value="0.05" min="0" max="1"
183 label="P-value threshold for calling somatic variants and LOH events" 214 label="P-value threshold for calling somatic variants and LOH events"
184 help="The p-value threshold used to determine if read count differences between the normal and the tumor sample justify classification of a variant as somatic or as an LOH event" /> 215 help="The p-value threshold (default: 0.05) used to determine if read count differences between the normal and the tumor sample justify classification of a variant as somatic or as an LOH event" />
185 </when> 216 </when>
186 <when value="varscan_defaults" /> 217 <when value="varscan_defaults" />
187 </conditional> 218 </conditional>
188 <conditional name="filter_params"> 219 <conditional name="filter_params">
189 <param name="settings" label="Settings for Posterior Variant Filtering" type="select"> 220 <param name="settings" label="Settings for Posterior Variant Filtering" type="select">
190 <option value="varscan_defaults" selected="true">Use default values</option> 221 <option value="varscan_defaults" selected="true">Use default values</option>
191 <option value="dream3_settings">Use settings optimized for DREAM-3</option> 222 <option value="dream3_settings">Use settings optimized for DREAM-3</option>
192 <option value="no_filter">Do not perform posterior filtering</option> 223 <option value="no_filter">Do not perform posterior filtering</option>
193 <option value="custom">Customize settings</option> 224 <option value="custom">Customize settings</option>
194 </param> 225 </param>
195 <when value="varscan_defaults" />
196 <when value="dream3_settings" />
197 <when value="no_filter" /> 226 <when value="no_filter" />
227 <when value="varscan_defaults">
228 <expand macro="filter_compat_options" />
229 </when>
230 <when value="dream3_settings">
231 <expand macro="filter_compat_options" />
232 </when>
198 <when value="custom"> 233 <when value="custom">
199 <param argument="--min-var-count" name="min_var_count" type="integer" value="4" min="1" max="200" 234 <param argument="--min-var-count" name="min_var_count" type="integer" value="4" min="1" max="200"
200 label="Minimum number of variant-supporting reads" 235 label="Minimum number of variant-supporting reads"
201 help="" /> 236 help="(default: 4)" />
202 <param argument="--min-var-count-lc" name="min_var_count_lc" type="integer" value="2" min="1" max="200" 237 <param argument="--min-var-count-lc" name="min_var_count_lc" type="integer" value="2" min="1" max="200"
203 label="Low coverage minimum number of variant-supporting reads" 238 label="Low coverage minimum number of variant-supporting reads"
204 help="Will be applied instead of the --min-var-count limit for sites with poor overall (less than --max-somatic-p-depth) coverage" /> 239 help="This setting (default: 2) will be applied instead of the --min-var-count limit for sites with poor overall (see threshold below) coverage." />
240 <param argument="--max-somatic-p-depth" name="min_var_count_depth" type="integer" value="10" min="2" max="200"
241 label="Minimum variant allele count threshold"
242 help="Combined depth (default: 10) of ref- and variant-supporting reads required at variant site to apply the (stricter) --min-var-count filter instead of --min-var-count-lc" />
205 <param argument="--min-var-freq" name="min_var_freq2" type="float" value="0.05" min="0" max="1" 243 <param argument="--min-var-freq" name="min_var_freq2" type="float" value="0.05" min="0" max="1"
206 label="Minimum variant allele frequency" 244 label="Minimum variant allele frequency"
207 help="" /> 245 help="(default: 0.05)" />
208 <param argument="--max-somatic-p" name="max_somatic_p" type="float" value="0.05" min="0" max="1"
209 label="Maximum somatic p-value allowed for a somatic call"
210 help="" />
211 <param argument="--max-somatic-p-depth" name="max_somatic_p_depth" type="integer" value="10" min="2" max="200"
212 label="Depth required at variant site to run --max-somatic-p filter"
213 help="" />
214 <param argument="--min-ref-readpos" name="min_ref_readpos" type="float" value="0.1" min="0" max="1" 246 <param argument="--min-ref-readpos" name="min_ref_readpos" type="float" value="0.1" min="0" max="1"
215 label="Minimum relative variant position in ref-supporting reads" 247 label="Minimum relative variant position in ref-supporting reads"
216 help="The minimum average relative distance from the ends of ref-supporting reads required for variant sites" /> 248 help="The minimum average relative distance from either end of ref-supporting reads (default: 0.1) required for variant sites" />
217 <param argument="--min-var-readpos" name="min_var_readpos" type="float" value="0.1" min="0" max="1" 249 <param argument="--min-var-readpos" name="min_var_readpos" type="float" value="0.1" min="0" max="1"
218 label="Minimum relative variant position in variant-supporting reads" 250 label="Minimum relative variant position in variant-supporting reads"
219 help="The minimum average relative distance from the ends of variant-supporting reads required for variant sites" /> 251 help="The minimum average relative distance from either end of variant-supporting reads (default: 0.1) required for variant sites" />
220 <param argument="--min-ref-dist3" name="min_ref_dist3" type="float" value="0.1" min="0" max="1" 252 <param argument="--min-ref-dist3" name="min_ref_dist3" type="float" value="0.1" min="0" max="1"
221 label="Minimum distance of variant site from 3'-end of ref-supporting reads" 253 label="Minimum distance of variant site from 3'-end of ref-supporting reads"
222 help="The minimum average relative distance from the effective 3'end of ref-supporting reads required for variant sites" /> 254 help="The minimum average relative distance from the effective 3'end of ref-supporting reads (default: 0.1) required for variant sites. The effective 3'end is defined by the end of the alignment of the read to the reference (or, if the Illumina 1.5 compatibility setting is used, by the first base in 3'->5' direction with a base quality > 2)." />
223 <param argument="--min-var-dist3" name="min_var_dist3" type="float" value="0.1" min="0" max="1" 255 <param argument="--min-var-dist3" name="min_var_dist3" type="float" value="0.1" min="0" max="1"
224 label="Minimum distance of variant site from 3'-end of variant-supporting reads" 256 label="Minimum distance of variant site from 3'-end of variant-supporting reads"
225 help="The minimum average relative distance from the effective 3'end of variant-supporting reads required for variant sites" /> 257 help="The minimum average relative distance from the effective 3'end of variant-supporting reads (default: 0.1) required for variant sites. The effective 3'end is defined as above." />
226 <param argument="--min-ref-avgrl" name="min_ref_len" type="integer" value="90" min="0" max="200" 258 <param argument="--min-ref-avgrl" name="min_ref_len" type="integer" value="90" min="0" max="200"
227 label="Minimum length of ref-supporting reads" 259 label="Minimum length of ref-supporting reads"
228 help="The minimum average trimmed length required for reads supporting the reference allele" /> 260 help="The minimum average trimmed length (default: 90) required for reads supporting the reference allele" />
229 <param argument="--min-var-avgrl" name="min_var_len" type="integer" value="90" min="0" max="200" 261 <param argument="--min-var-avgrl" name="min_var_len" type="integer" value="90" min="0" max="200"
230 label="Minimum length of variant-supporting reads" 262 label="Minimum length of variant-supporting reads"
231 help="The minimum average trimmed length required for reads supporting the variant allele" /> 263 help="The minimum average trimmed length (default: 90) required for reads supporting the variant allele" />
232 <param argument="--max-rl-diff" name="max_len_diff" type="float" value="0.25" min="0" max="1" 264 <param argument="--max-rl-diff" name="max_len_diff" type="float" value="0.25" min="0" max="1"
233 label="Maximum relative read length difference" 265 label="Maximum relative read length difference"
234 help="The maximum allowed average relative read length difference (ref - var) between reads supporting the reference and the variant allele" /> 266 help="The maximum allowed difference (default: 0.25) in the average relative read length (ref - var) between reads supporting the reference and the variant allele" />
235 <param argument="--min-strandedness" name="min_strandedness" type="float" value="0.01" min="0" max="0.5" 267 <param argument="--min-strandedness" name="min_strandedness" type="float" value="0.01" min="0" max="0.5"
236 label="Minimum fraction of variant reads from each strand" 268 label="Minimum fraction of variant reads from each strand"
237 help="The minimum fraction of variant reads that are required to come from the forward and from the reverse strand" /> 269 help="The minimum fraction (default: 0.01) of variant reads that are required to come from the forward and from the reverse strand" />
238 <param argument="--min-strand-reads" name="min_strand_reads" type="integer" value="5" min="2" max="200" 270 <param argument="--min-strand-reads" name="min_strand_reads" type="integer" value="5" min="2" max="200"
239 label="Minimum variant allele depth required to apply the --min-strandedness filter" 271 label="Minimum variant allele depth required to apply the --min-strandedness filter"
240 help="" /> 272 help="(default: 5)" />
241 <param argument="--min-ref-basequal" name="min_ref_basequal" type="integer" value="15" min="1" max="50" 273 <param argument="--min-ref-basequal" name="min_ref_basequal" type="integer" value="15" min="1" max="50"
242 label="Minimum average base quality for the ref allele" 274 label="Minimum average base quality for the ref allele"
243 help="The minimum average base quality required at the variant site for reads supporting the reference allele" /> 275 help="The minimum average base quality (default: 15) required at the variant site for reads supporting the reference allele" />
244 <param argument="--min-var-basequal" name="min_var_basequal" type="integer" value="15" min="1" max="50" 276 <param argument="--min-var-basequal" name="min_var_basequal" type="integer" value="15" min="1" max="50"
245 label="Minimum average base quality for the variant allele" 277 label="Minimum average base quality for the variant allele"
246 help="The minimum average base quality required at the variant site for reads supporting the variant allele" /> 278 help="The minimum average base quality (default: 15) required at the variant site for reads supporting the variant allele" />
247 <param argument="max-basequal-diff" name="max_basequal_diff" type="integer" value="50" min="0" max="50" 279 <param argument="max-basequal-diff" name="max_basequal_diff" type="integer" value="50" min="0" max="50"
248 label="Maximum base quality difference between ref- and variant-supporting reads" 280 label="Maximum base quality difference between ref- and variant-supporting reads"
249 help="The maximum average base quality difference (ref - var) allowed between the variant site positions of reads supporting the reference and the variant allele" /> 281 help="The maximum difference (default: 50) in the average base quality (ref - var) allowed between the variant site positions of reads supporting the reference and the variant allele" />
250 <param argument="--min-ref-mapqual" name="min_ref_mapqual" type="integer" value="15" min="1" max="60" 282 <param argument="--min-ref-mapqual" name="min_ref_mapqual" type="integer" value="15" min="1" max="60"
251 label="Minimum average mapping quality of ref-supporting reads" 283 label="Minimum average mapping quality of ref-supporting reads"
252 help="The minimum average mapping quality required for reads supporting the reference allele" /> 284 help="The minimum average mapping quality (default: 15) required for reads supporting the reference allele" />
253 <param argument="--min-var-mapqual" name="min_var_mapqual" type="integer" value="15" min="1" max="60" 285 <param argument="--min-var-mapqual" name="min_var_mapqual" type="integer" value="15" min="1" max="60"
254 label="Minimum average mapping quality of variant-supporting reads" 286 label="Minimum average mapping quality of variant-supporting reads"
255 help="The minimum average mapping quality required for reads supporting the variant allele" /> 287 help="The minimum average mapping quality (default: 15) required for reads supporting the variant allele" />
256 <param argument="--max-mapqual-diff" name="max_mapqual_diff" type="integer" value="50" min="0" max="60" 288 <param argument="--max-mapqual-diff" name="max_mapqual_diff" type="integer" value="50" min="0" max="60"
257 label="Maximum mapping quality difference between ref- and variant-supporting reads" 289 label="Maximum mapping quality difference between ref- and variant-supporting reads"
258 help="The maximum average mapping quality difference (ref - var) allowed between reads supporting the reference and the variant allele" /> 290 help="The maximum difference (default: 50) in the average mapping quality (ref - var) allowed between reads supporting the reference and the variant allele" />
259 <param argument="--max-ref-mmqs" name="max_ref_mmqs" type="integer" value="100" min="0" 291 <param argument="--max-ref-mmqs" name="max_ref_mmqs" type="integer" value="100" min="0"
260 label="Maximum mismatch base quality sum of ref-supporting reads" 292 label="Maximum mismatch base quality sum of ref-supporting reads"
261 help="The maximum mismatch base quality sum allowed for reads supporting the reference allele" /> 293 help="The maximum mismatch base quality sum (default: 100) allowed for reads supporting the reference allele" />
262 <param argument="--max-var-mmqs" name="max_var_mmqs" type="integer" value="100" min="0" 294 <param argument="--max-var-mmqs" name="max_var_mmqs" type="integer" value="100" min="0"
263 label="Maximum mismatch base quality sum of var-supporting reads" 295 label="Maximum mismatch base quality sum of var-supporting reads"
264 help="The maximum mismatch base quality sum allowed for reads supporting the variant allele" /> 296 help="The maximum mismatch base quality sum (default: 100) allowed for reads supporting the variant allele" />
265 <param argument="--min-mmqs-diff" name="min_mmqs_diff" type="integer" value="0" min="0" 297 <param argument="--min-mmqs-diff" name="min_mmqs_diff" type="integer" value="0" min="0"
266 label="Minimum difference between mismatch base quality sums of variant- and ref-supporting reads" 298 label="Minimum difference between mismatch base quality sums of variant- and ref-supporting reads"
267 help="The minimum difference in the mismatch base quality sums (var - ref) required between reads supporting the variant and the reference allele" /> 299 help="The minimum difference (default: 0) in the mismatch base quality sums (var - ref) required between reads supporting the variant and the reference allele" />
268 <param argument="--max-mmqs-diff" name="max_mmqs_diff" type="integer" value="50" min="1" 300 <param argument="--max-mmqs-diff" name="max_mmqs_diff" type="integer" value="50" min="1"
269 label="Maximum difference between mismatch base quality sums of variant- and ref-supporting reads" 301 label="Maximum difference between mismatch base quality sums of variant- and ref-supporting reads"
270 help="The maximum difference in the mismatch base quality sums (var - ref) allowed between reads supporting the variant and the reference allele" /> 302 help="The maximum difference (default: 50) in the mismatch base quality sums (var - ref) allowed between reads supporting the variant and the reference allele" />
303 <expand macro="filter_compat_options" />
271 </when> 304 </when>
272 </conditional> 305 </conditional>
273 </inputs> 306 </inputs>
274 <outputs> 307 <outputs>
275 <data name="output" format="vcf"> 308 <data name="output" format="vcf">
284 <filter>split_output</filter> 317 <filter>split_output</filter>
285 </data> 318 </data>
286 </outputs> 319 </outputs>
287 <tests> 320 <tests>
288 <test expect_num_outputs="1"> 321 <test expect_num_outputs="1">
322 <!-- run with default settings and genome from history -->
289 <conditional name="reference"> 323 <conditional name="reference">
290 <param name="source" value="history" /> 324 <param name="source" value="history" />
291 <param name="genome" value="hg19_chrM.fa" /> 325 <param name="genome" value="hg19_chrM.fa" />
292 </conditional> 326 </conditional>
293 <param name="normal_bam" value="control_chrM.bam" /> 327 <param name="normal_bam" value="control_chrM.bam" />
303 <expand macro="test_mentions_contig" /> 337 <expand macro="test_mentions_contig" />
304 <expand macro="test_mentions_filters" /> 338 <expand macro="test_mentions_filters" />
305 </output> 339 </output>
306 </test> 340 </test>
307 <test expect_num_outputs="1"> 341 <test expect_num_outputs="1">
342 <!-- run with default settings and cached genome -->
308 <conditional name="reference"> 343 <conditional name="reference">
309 <param name="source" value="cached" /> 344 <param name="source" value="cached" />
310 <param name="genome" value="hg19mito" /> 345 <param name="genome" value="hg19mito" />
311 </conditional> 346 </conditional>
312 <param name="normal_bam" dbkey="hg19" value="control_chrM.bam" /> 347 <param name="normal_bam" dbkey="hg19" value="control_chrM.bam" />
322 <expand macro="test_mentions_contig" /> 357 <expand macro="test_mentions_contig" />
323 <expand macro="test_mentions_filters" /> 358 <expand macro="test_mentions_filters" />
324 </output> 359 </output>
325 </test> 360 </test>
326 <test expect_num_outputs="2"> 361 <test expect_num_outputs="2">
362 <!-- run with default settings and split output -->
327 <conditional name="reference"> 363 <conditional name="reference">
328 <param name="source" value="history" /> 364 <param name="source" value="history" />
329 <param name="genome" value="hg19_chrM.fa" /> 365 <param name="genome" value="hg19_chrM.fa" />
330 </conditional> 366 </conditional>
331 <param name="normal_bam" value="control_chrM.bam" /> 367 <param name="normal_bam" value="control_chrM.bam" />
345 <expand macro="test_mentions_contig" /> 381 <expand macro="test_mentions_contig" />
346 <expand macro="test_mentions_filters" /> 382 <expand macro="test_mentions_filters" />
347 </output> 383 </output>
348 </test> 384 </test>
349 <test expect_num_outputs="1"> 385 <test expect_num_outputs="1">
386 <!-- run with custom params for variant calling -->
350 <conditional name="reference"> 387 <conditional name="reference">
351 <param name="source" value="history" /> 388 <param name="source" value="history" />
352 <param name="genome" value="hg19_chrM.fa" /> 389 <param name="genome" value="hg19_chrM.fa" />
353 </conditional> 390 </conditional>
354 <param name="normal_bam" value="control_chrM.bam" /> 391 <param name="normal_bam" value="control_chrM.bam" />
355 <param name="tumor_bam" value="tumor_chrM.bam" /> 392 <param name="tumor_bam" value="tumor_chrM.bam" />
356 <param name="split_output" value="false" /> 393 <param name="split_output" value="false" />
357 <conditional name="call_params"> 394 <conditional name="call_params">
395 <section name="read_selection">
396 <param name="min_basequal" value="5" />
397 </section>
358 <param name="settings" value="custom" /> 398 <param name="settings" value="custom" />
359 <param name="min_coverage" value="2" /> 399 <param name="min_coverage" value="2" />
360 <param name="min_reads2" value="1" /> 400 <param name="min_reads2" value="1" />
361 <param name="min_avg_qual" value="5" />
362 <param name="min_var_freq" value="0.01" /> 401 <param name="min_var_freq" value="0.01" />
363 <param name="min_freq_for_hom" value="0.66" /> 402 <param name="min_freq_for_hom" value="0.66" />
364 <param name="p_value" value="0.97" /> 403 <param name="p_value" value="0.97" />
365 <param name="somatic_p_value" value="0.09" /> 404 <param name="somatic_p_value" value="0.09" />
366 </conditional> 405 </conditional>
393 <expand macro="test_mentions_contig" /> 432 <expand macro="test_mentions_contig" />
394 <expand macro="test_mentions_filters" /> 433 <expand macro="test_mentions_filters" />
395 </output> 434 </output>
396 </test> 435 </test>
397 <test expect_num_outputs="1"> 436 <test expect_num_outputs="1">
437 <!-- run with preconfigured dream3 post-filter settings -->
398 <conditional name="reference"> 438 <conditional name="reference">
399 <param name="source" value="history" /> 439 <param name="source" value="history" />
400 <param name="genome" value="hg19_chrM.fa" /> 440 <param name="genome" value="hg19_chrM.fa" />
401 </conditional> 441 </conditional>
402 <param name="normal_bam" value="control_chrM.bam" /> 442 <param name="normal_bam" value="control_chrM.bam" />
412 <expand macro="test_mentions_contig" /> 452 <expand macro="test_mentions_contig" />
413 <expand macro="test_mentions_filters" /> 453 <expand macro="test_mentions_filters" />
414 </output> 454 </output>
415 </test> 455 </test>
416 <test expect_num_outputs="1"> 456 <test expect_num_outputs="1">
457 <!-- run without post-filters -->
417 <conditional name="reference"> 458 <conditional name="reference">
418 <param name="source" value="history" /> 459 <param name="source" value="history" />
419 <param name="genome" value="hg19_chrM.fa" /> 460 <param name="genome" value="hg19_chrM.fa" />
420 </conditional> 461 </conditional>
421 <param name="normal_bam" value="control_chrM.bam" /> 462 <param name="normal_bam" value="control_chrM.bam" />
431 <expand macro="test_mentions_contig" /> 472 <expand macro="test_mentions_contig" />
432 <expand macro="test_not_mentions_filters" /> 473 <expand macro="test_not_mentions_filters" />
433 </output> 474 </output>
434 </test> 475 </test>
435 <test expect_num_outputs="1"> 476 <test expect_num_outputs="1">
477 <!-- run with custom post-filters -->
436 <conditional name="reference"> 478 <conditional name="reference">
437 <param name="source" value="history" /> 479 <param name="source" value="history" />
438 <param name="genome" value="hg19_chrM.fa" /> 480 <param name="genome" value="hg19_chrM.fa" />
439 </conditional> 481 </conditional>
440 <param name="normal_bam" value="control_chrM.bam" /> 482 <param name="normal_bam" value="control_chrM.bam" />
487 529
488 **The Varscan Somatic tool for Galaxy** 530 **The Varscan Somatic tool for Galaxy**
489 531
490 This tool wraps the functionality of the ``varscan somatic`` and the 532 This tool wraps the functionality of the ``varscan somatic`` and the
491 ``varscan fpfilter`` command line tools. 533 ``varscan fpfilter`` command line tools.
492
493 .. class:: infomark
494
495 The wrapper aims at providing the same functionality as the
496 ``varscan fpfilter`` tool, but implements it using ``pysam`` internally.
497 Note that, as one limitation compared to the original ``varscan`` tool,
498 the current version does not apply filters to indels!
499 534
500 The tool is designed to detect genetic variants in a **pair of samples** 535 The tool is designed to detect genetic variants in a **pair of samples**
501 representing normal and tumor tissue from the same individual. It classifies 536 representing normal and tumor tissue from the same individual. It classifies
502 the variants, according to their most likely origin, as **somatic** (variant is 537 the variants, according to their most likely origin, as **somatic** (variant is
503 found in the tumor, but not in the normal sample, *i.e.*, is the consequence of 538 found in the tumor, but not in the normal sample, *i.e.*, is the consequence of