19
|
1 <tool id="strelka" name="Strelka" version="1.0.1">
|
10
|
2 <!-- Made by Gregoire Seguin-Henry for geviteam in 2014 -->
|
|
3 <description>Strelka</description>
|
6
|
4 <requirements>
|
14
|
5 <requirement type="set_environment">SCRIPT_PATH_STRELKA</requirement>
|
6
|
6 <requirement type="package" version="0.1.18">samtools</requirement>
|
|
7 <requirement type="package" version="0.1.11">vcftools</requirement>
|
|
8 </requirements>
|
18
|
9 <command interpreter="python">strelka_wrapper.py --tumorBam $tumorBam --normalBam $normalBam
|
|
10 #if $genomeSource.refGenomeSource == "history":
|
|
11 --refFile "${genomeSource.ownFile}"
|
|
12 #else:
|
|
13 --refFile "${genomeSource.index.fields.path}"
|
|
14 #end if
|
|
15
|
|
16 #if $configuration.configuration_switch == 'Default for Bwa':
|
|
17 --configFile strelka_config_bwa_default.ini
|
|
18 #else if $configuration.configuration_switch == 'Default for Isaac':
|
|
19 --configFile strelka_config_isaac_default.ini
|
|
20 #else if $configuration.configuration_switch == 'Default for Eland':
|
|
21 --configFile strelka_config_eland_default.ini
|
6
|
22 #else if $configuration.configuration_switch == 'Path':
|
|
23 --configFile $configuration.configFile
|
|
24 #else:
|
|
25 --configFile Custom
|
|
26 --depthFilterMultiple $configuration.depthFilterMultiple
|
|
27 --snvMaxFilteredBasecallFrac $configuration.snvMaxFilteredBasecallFrac
|
|
28 --snvMaxSpanningDeletionFrac $configuration.snvMaxSpanningDeletionFrac
|
|
29 --indelMaxRefRepeat $configuration.indelMaxRefRepeat
|
|
30 --indelMaxWindowFilteredBasecallFrac $configuration.indelMaxWindowFilteredBasecallFrac
|
|
31 --indelMaxIntHpolLength $configuration.indelMaxIntHpolLength
|
|
32 --ssnvPrior $configuration.ssnvPrior
|
|
33 --sindelPrior $configuration.sindelPrior
|
|
34 --ssnvNoise $configuration.ssnvNoise
|
|
35 --sindelNoise $configuration.sindelNoise
|
|
36 --ssnvNoiseStrandBiasFrac $configuration.ssnvNoiseStrandBiasFrac
|
|
37 --minTier1Mapq $configuration.minTier1Mapq
|
|
38 --minTier2Mapq $configuration.minTier2Mapq
|
|
39 --ssnvQuality_LowerBound $configuration.ssnvQuality_LowerBound
|
|
40 --sindelQuality_LowerBound $configuration.sindelQuality_LowerBound
|
|
41 --isWriteRealignedBam $configuration.isWriteRealignedBam
|
|
42 --binSize $configuration.binSize
|
|
43 --isSkipDepthFilters $configuration.isSkipDepthFilters
|
|
44 --maxInputDepth $configuration.maxInputDepth
|
|
45 #if $configuration.extra_arguments.extra_arguments_switch == 'Yes':
|
|
46 --extraStrelkaArguments $configuration.extra_arguments.extraStrelkaArguments
|
|
47 #end if
|
|
48 #end if
|
16
|
49 --scriptPath \$SCRIPT_PATH_STRELKA
|
6
|
50 </command>
|
|
51
|
|
52 <inputs>
|
18
|
53 <param format="bam" name="tumorBam" type="data" label="Tumor bam file"/>
|
|
54 <param format="bam" name="normalBam" type="data" label="Normal bam file"/>
|
6
|
55
|
18
|
56 <conditional name="genomeSource">
|
|
57 <param name="refGenomeSource" type="select" label="Choose the reference genome">
|
|
58 <option value="cached">Built-in genome</option>
|
|
59 <option value="history">use a genome (fasta format) from history</option>
|
|
60 </param>
|
|
61 <when value="cached">
|
|
62 <param name="index" type="select" label="Select a built-in reference genome" help="This list contains genomes cached at this Galaxy instance. If your genome of interest is not present here request it by using 'Help' link at the top of Galaxy interface or use the 'Use a genome (fasta format) from my history' option of the 'Select Reference Genome' dropdown.">
|
|
63 <options from_data_table="all_fasta"/>
|
|
64 </param>
|
|
65 </when>
|
|
66 <when value="history">
|
|
67 <param format="fasta" name="ownFile" type="data" metadata_name="dbkey" label="Using reference file" help="This option works best for relatively small genomes. If you are working with large human-sized genomes, send request to Galaxy team for adding your reference to this Galaxy instance by using 'Help' link at the top of Galaxy interface."/>
|
|
68 </when>
|
|
69 </conditional>
|
6
|
70 <conditional name="configuration">
|
|
71 <param name="configuration_switch" type="select" label="how do you want to configure strelka">
|
18
|
72 <option value="Default for Bwa" selected="true">Default for Bwa</option>
|
|
73 <option value="Default for Eland">Default for Eland</option>
|
|
74 <option value="Default for Isaac">Default for Isaac</option>
|
6
|
75 <option value="Path">Use a config file</option>
|
|
76 <option value="Custom">Custom</option>
|
|
77 </param>
|
|
78 <when value="Default">
|
|
79 <!-- do nothing -->
|
|
80 </when>
|
|
81 <when value="Path">
|
|
82 <param format="ini" name="configFile" type="data" label="config file"/>
|
|
83 </when>
|
|
84 <when value="Custom">
|
18
|
85 <param name="binSize" type="integer" value="25000000" label="binSize" help="Jobs are parallelized over segments of the reference genome no larger than this size:"/>
|
|
86 <param name="minTier1Mapq" type="integer" value="20" min="0" max="40" help="between 0 and 40, minimum MAPQ score for PE reads at tier1:" label="minTier1Mapq" />
|
|
87 <param name="minTier2Mapq" type="integer" value="5" min="0" max="5" help="between 0 and 5, minimum MAPQ score for PE and SE reads at tier2:" label="minTier2Mapq" />
|
|
88 <param name="isWriteRealignedBam" type="boolean" checked="false" truevalue="1" falsevalue="0" label="isWriteRealignedBam" help="Optionally write out read alignments which were altered during the realignment step. At the completion of the workflow run, the realigned reads can be found in:"/>
|
|
89 <param name="ssnvPrior" type="float" value="0.000001" label="ssnvPrior" help="prior probability of a somatic snv or indel"/>
|
|
90 <param name="sindelPrior" type="float" value="0.000001" label="sindelPrior" help="prior probability of a somatic snv or indel"/>
|
|
91 <param name="ssnvNoise" type="float" value="0.0000005" label="ssnvNoise" help="probability of an snv or indel noise allele NB: in the calling model a noise allele is shared in tumor and normal samples, but occurs at any frequency."/>
|
|
92 <param name="sindelNoise" type="float" value="0.000001" label="sindelNoise" help="probability of an snv or indel noise allele NB: in the calling model a noise allele is shared in tumor and normal samples, but occurs at any frequency."/>
|
|
93 <param name="ssnvNoiseStrandBiasFrac" type="float" value="0.5" label="ssnvNoiseStrandBiasFrac" help="Fraction of snv noise attributed to strand-bias. It is not recommended to change this setting. However, if it is essential to turn the strand bias penalization off, the following is recommended: Assuming the current value of ssnvNoiseStrandBiasFrac is 0.5,
|
|
94 (1) set ssnvNoiseStrandBiasFrac = 0
|
|
95 (2) divide the current ssnvNoise value by 2"/>
|
|
96 <param name="ssnvQuality_LowerBound" type="integer" value="15" label="ssnvQuality_LowerBound" help="Somatic quality score (QSS_NT, NT=ref) below which somatic SNVs are marked as filtered:"/>
|
|
97 <param name="sindelQuality_LowerBound" type="integer" value="30" label="sindelQuality_LowerBound" help="Somatic quality score (QSI_NT, NT=ref) below which somatic indels are marked as filtered:"/>
|
|
98 <param name="isSkipDepthFilters" type="integer" value="1" label="isSkipDepthFilters" help="isSkipDepthFilters should be set to 1 to skip depth filtration for whole exome or other targeted sequencing data"/>
|
|
99 <param name="depthFilterMultiple" type="float" value="3.0" label="depthFilterMultiple" help="If the depth filter is not skipped, all variants which occur at a depth greater than depthFilterMultiple*chromosome mean depth will be filtered out."/>
|
|
100 <param name="snvMaxFilteredBasecallFrac" type="float" value="0.4" label="snvMaxFilteredBasecallFrac" help="Somatic SNV calls are filtered at sites where greater than this fraction of basecalls have been removed by the mismatch density filter in either sample."/>
|
|
101 <param name="snvMaxSpanningDeletionFrac" type="float" value="0.75" label="snvMaxSpanningDeletionFrac" help="Somatic SNV calls are filtered at sites where greater than this fraction of overlapping reads contain deletions which span the SNV call site."/>
|
|
102 <param name="indelMaxRefRepeat" type="integer" value="8" label="indelMaxRefRepeat" help="Somatic indel calls are filtered if they represent an expansion or contraction of a repeated pattern with a repeat count greater than indelMaxRefRepeat in the reference (ie. if indelMaxRefRepeat is 8, then the indel is filtered when it is an expansion/contraction of a homopolymer longer than 8 bases, a dinucleotide repeat longer than 16 bases, etc.)"/>
|
|
103 <param name="indelMaxWindowFilteredBasecallFrac" type="float" value="0.3" label="indelMaxWindowFilteredBasecallFrac" help="Somatic indel calls are filtered if greater than this fraction of basecalls in a window extending 50 bases to each side of an indel's call position have been removed by the mismatch density filter."/>
|
|
104 <param name="indelMaxIntHpolLength" type="integer" value="14" label="indelMaxIntHpolLength" help="Somatic indels are filtered if they overlap ’interrupted homopolymers’ greater than this length. The term 'interrupted homopolymer' is used to indicate the longest homopolymer which can be found intersecting or adjacent to the called indel when a single non-homopolymer base is allowed."/>
|
|
105 <param name="maxInputDepth" type="integer" value="10000" label="maxInputDepth" help="strelka will not accept input reads above this depth (they will be skipped until the depth drops below this value). Set this value <= 0 to disable this feature. Using this filter will bound memory usage given extremely high depth input, but may be problematic in high-depth targeted sequencing applications."/>
|
6
|
106 <conditional name="extra_arguments">
|
|
107 <param name="extra_arguments_switch" type="select" label="Do you Want to add extraStrelkaArguments?">
|
|
108 <option value="No" selected="true">No</option>
|
|
109 <option value="Yes">Yes</option>
|
|
110 </param>
|
|
111 <when value="No">
|
|
112 <!-- do nothing -->
|
|
113 </when>
|
|
114 <when value="Yes">
|
18
|
115 <param name="extraStrelkaArguments" type="text" value="" label="extraStrelkaArguments" help="Additional arguments passed to strelka."/>
|
6
|
116 </when>
|
|
117 </conditional>
|
|
118 </when>
|
|
119 </conditional>
|
18
|
120 <param name="conf_file_check" type="boolean" label="output conf file" checked="False" help="Show configuration file on history"/>
|
|
121 <param name="output1_file_check" type="boolean" label="passed snvs(filtred)" checked="True" help="Show filtred snvs"/>
|
|
122 <param name="output2_file_check" type="boolean" label="passed indels(filtred)" checked="True" help="Show filtred indels"/>
|
|
123 <param name="output3_file_check" type="boolean" label="all snvs" checked="True" help="Show snvs"/>
|
|
124 <param name="output4_file_check" type="boolean" label="all indels" checked="True" help="Show indels"/>
|
|
125 <param name="output5_file_check" type="boolean" label="Show normal realigned bam" help="only if isWriteRealignedBam option is checked" checked="False"/>
|
|
126 <param name="output6_file_check" type="boolean" label="Show tumor realigned bam" help="only if isWriteRealignedBam option is checked" checked="False"/>
|
6
|
127
|
|
128 </inputs>
|
|
129
|
|
130 <outputs>
|
10
|
131 <data format="vcf" name="output1_vcf" label="${tool.name} on ${on_string}(passed.somatic.snvs.vcf)" from_work_dir="StrelkaAnalysis/results/passed.somatic.snvs.vcf">
|
|
132 <filter>output1_file_check == True</filter>
|
|
133 </data>
|
|
134 <data format="vcf" name="output2_vcf" label="${tool.name} on ${on_string}(passed.somatic.indels.vcf)" from_work_dir="StrelkaAnalysis/results/passed.somatic.indels.vcf">
|
|
135 <filter>output2_file_check == True</filter>
|
|
136 </data>
|
|
137 <data format="vcf" name="output3_vcf" label="${tool.name} on ${on_string}(all.somatic.snvs.vcf)" from_work_dir="StrelkaAnalysis/results/all.somatic.snvs.vcf">
|
|
138 <filter>output3_file_check == True</filter>
|
|
139 </data>
|
|
140 <data format="vcf" name="output4_vcf" label="${tool.name} on ${on_string}(all.somatic.indels.vcf)" from_work_dir="StrelkaAnalysis/results/all.somatic.indels.vcf">
|
|
141 <filter>output4_file_check == True</filter>
|
|
142 </data>
|
17
|
143 <data format="tabular" name="conf_file.ini" label="conf_file.ini" from_work_dir="StrelkaAnalysis/config.ini">
|
10
|
144 <filter>conf_file_check == True</filter>
|
|
145 </data>
|
|
146 <data format="bam" name="output5_bam" label="${tool.name} on ${on_string}(normal.realigned.bam)" from_work_dir="StrelkaAnalysis/realigned/normal.realigned.bam">
|
|
147 <filter>output5_file_check == True</filter>
|
|
148 </data>
|
|
149 <data format="bam" name="output6_bam" label="${tool.name} on ${on_string}(tumor.realigned.bam)" from_work_dir="StrelkaAnalysis/realigned/tumor.realigned.bam">
|
|
150 <filter>output6_file_check == True</filter>
|
6
|
151 </data>
|
|
152 </outputs>
|
|
153
|
|
154 <tests>
|
|
155 <test>
|
|
156 <param name="normalBam" ftype="bam" value="NA12891_dupmark_chr20_region.bam"/>
|
|
157 <param name="tumorBam" ftype="bam" value="NA12892_dupmark_chr20_region.bam"/>
|
|
158 <param name="refFile" ftype="fasta" value="chr20_860k_only.fa"/>
|
|
159 <param name="configuration_switch" value="Default"/>
|
|
160 <output name="output1_vcf" file="passed.somatic.snvs.vcf"/>
|
|
161 <output name="output2_vcf" file="passed.somatic.indels.vcf"/>
|
|
162 <output name="output3_vcf" file="all.somatic.snvs.vcf"/>
|
|
163 <output name="output4_vcf" file="all.somatic.indels.vcf"/>
|
|
164 </test>
|
|
165 </tests>
|
|
166
|
|
167 <help>
|
13
|
168 Strelka, a method for somatic SNV and small indel detection from sequencing data of matched tumor-normal samples.
|
18
|
169 You can see more information at : https://sites.google.com/site/strelkasomaticvariantcaller.
|
6
|
170 </help>
|
|
171
|
|
172 </tool>
|