|
1
|
1 <tool id="somatic_sniper_tool" name="Somatic Sniper" version="1.0.2">
|
|
|
2 <description>: identify single nucleotide positions that are different between tumor and normal</description>
|
|
|
3 <requirements>
|
|
|
4 <requirement type="package" version="0.1.6">samtools</requirement>
|
|
|
5 <requirement type="package" version="unstable">somatic-sniper</requirement>
|
|
|
6 </requirements>
|
|
|
7 <command interpreter="perl">
|
|
|
8 somatic_sniper_wrapper.pl
|
|
|
9
|
|
|
10 "NORMAL::$normal"
|
|
|
11 "TUMOR::$tumor"
|
|
|
12 "OUTPUT::$snp_output"
|
|
|
13 "OPTION::-F $output"
|
|
|
14
|
|
|
15 #if $option.option == "modify_parameters":
|
|
|
16 "OPTION::-q $option.readFilter"
|
|
|
17 "OPTION::-Q $option.somaticFilter"
|
|
|
18 "OPTION::-s $option.mutationPrior"
|
|
|
19 #if str($option.disablePriors) == "true"
|
|
|
20 "OPTION::-p"
|
|
|
21 #end if
|
|
|
22 #end if
|
|
|
23
|
|
|
24 "OPTION::-f $reference.fields.path"
|
|
|
25
|
|
|
26
|
|
|
27 </command>
|
|
|
28 <inputs>
|
|
|
29 <param name="reference" type="select" label="Select a reference genome">
|
|
|
30 <options from_data_table="all_fasta">
|
|
|
31 <filter type="sort_by" column="2" />
|
|
|
32 <validator type="no_options" message="No indexes are available" />
|
|
|
33 </options>
|
|
|
34 </param>
|
|
|
35
|
|
|
36 <param format="bam" name="normal" type="data" label="Normal sample" help=""/>
|
|
|
37 <param format="bam" name="tumor" type="data" label="Tumor Sample" help=""/>
|
|
|
38 <param name="output" type="select" label="Output Type" help="" optional="true">
|
|
|
39 <option value="classic" selected="true">Classic</option>
|
|
|
40 <option value="vcf">VCF</option>
|
|
|
41 <option value="bed">BED</option>
|
|
|
42 </param>
|
|
|
43
|
|
|
44
|
|
|
45 <conditional name="option">
|
|
|
46 <param name="option" type="select" label="Optional Parameters" help="" optional="true">
|
|
|
47 <option value="default_parameters" selected="true">Default Parameters</option>
|
|
|
48 <option value="modify_parameters">Modify Parameters</option>
|
|
|
49 </param>
|
|
|
50 <when value="modify_parameters">
|
|
|
51
|
|
|
52 <param name="readFilter" label="filtering reads with mapping quality less than" type="integer" value="0" optional="true" />
|
|
|
53 <param name="somaticFilter" label="filtering somatic snv output with somatic quality less than" type="integer" value="15" optional="true" />
|
|
|
54 <param name="disablePriors" type="select" label="disable priors in the somatic calculation. Increases sensitivity for solid tumors" help="" optional="true">
|
|
|
55 <option value="true" >true</option>
|
|
|
56 <option value="false" selected="true">false</option>
|
|
|
57 </param>
|
|
|
58 <param name="mutationPrior" label="prior probability of a somatic mutation" type="float" value="0.10000" optional="true" />
|
|
|
59
|
|
|
60 </when>
|
|
|
61
|
|
|
62 </conditional>
|
|
|
63
|
|
|
64 </inputs>
|
|
|
65 <outputs>
|
|
|
66 <data name="snp_output" format="text" label="${tool.name} result on ${on_string}" />
|
|
|
67 </outputs>
|
|
|
68 <help>
|
|
|
69 |
|
|
|
70
|
|
|
71
|
|
|
72 **Reference**
|
|
|
73
|
|
|
74 http://gmt.genome.wustl.edu/somatic-sniper/current/
|
|
|
75
|
|
|
76 -----
|
|
|
77
|
|
|
78 **What it does**
|
|
|
79
|
|
|
80 The purpose of this program is to identify single nucleotide positions that are different between tumor and normal
|
|
|
81 (or, in theory, any two bam files). It takes a tumor bam and a normal bam and compares the two to determine the
|
|
|
82 differences. It outputs a file in a format very similar to Samtools consensus format. It uses the genotype likelihood
|
|
|
83 model of MAQ (as implemented in Samtools) and then calculates the probability that the tumor and normal genotypes are
|
|
|
84 different. This probability is reported as a somatic score. The somatic score is the Phred-scaled probability (between 0 to 255)
|
|
|
85 that the Tumor and Normal genotypes are not different where 0 means there is no probability that the genotypes are different and
|
|
|
86 255 means there is a probability of 1 – 10(255/-10) that the genotypes are different between tumor and normal. This is consistent
|
|
|
87 with how the SAM format reports such probabilities.
|
|
|
88
|
|
|
89 bam-somaticsniper [options] -f ref.fasta tumor.bam normal.bam snp_output_file
|
|
|
90
|
|
|
91 Bam files must contain LB tag in @RG line.
|
|
|
92 Picard tools can be used to add lines to BAM headers.
|
|
|
93
|
|
|
94 -----
|
|
|
95
|
|
|
96 **Required Parameters**
|
|
|
97
|
|
|
98 ::
|
|
|
99
|
|
|
100 -f FILE REQUIRED reference sequence in the FASTA format
|
|
|
101
|
|
|
102 -----
|
|
|
103
|
|
|
104 **Options**
|
|
|
105
|
|
|
106 ::
|
|
|
107
|
|
|
108 -q INT filtering reads with mapping quality less than INT [0]
|
|
|
109
|
|
|
110 -Q INT filtering somatic snv output with somatic quality less than INT [15]
|
|
|
111
|
|
|
112 -p FLAG disable priors in the somatic calculation. Increases sensitivity for solid tumors
|
|
|
113
|
|
|
114 -J FLAG Use prior probabilities accounting for the somatic mutation rate
|
|
|
115
|
|
|
116 -s FLOAT prior probability of a somatic mutation (implies -J) [0.010000]
|
|
|
117
|
|
|
118 -T FLOAT theta in maq consensus calling model (for -c/-g) [0.850000]
|
|
|
119
|
|
|
120 -N INT number of haplotypes in the sample (for -c/-g) [2]
|
|
|
121
|
|
|
122 -r FLOAT prior of a difference between two haplotypes (for -c/-g) [0.001000]
|
|
|
123
|
|
|
124 -F STRING select output format [classic]
|
|
|
125 Available formats:
|
|
|
126 classic
|
|
|
127 vcf
|
|
|
128 bed
|
|
|
129
|
|
|
130 -----
|
|
|
131
|
|
|
132 **File Formats**
|
|
|
133
|
|
|
134 ::
|
|
|
135
|
|
|
136 Classic:
|
|
|
137
|
|
|
138 Each line contains the following tab-separated values:
|
|
|
139
|
|
|
140 1. Chromosome
|
|
|
141 2. Position
|
|
|
142 3. Reference base
|
|
|
143 4. IUB genotype of tumor
|
|
|
144 5. IUB genotype of normal
|
|
|
145 6. Somatic Score
|
|
|
146 7. Tumor Consensus quality
|
|
|
147 8. Tumor variant allele quality
|
|
|
148 9. Tumor mean mapping quality
|
|
|
149 10. Normal Consensus quality
|
|
|
150 11. Normal variant allele quality
|
|
|
151 12. Normal mean mapping quality
|
|
|
152 13. Depth in tumor (# of reads crossing the position)
|
|
|
153 14. Depth in normal (# of reads crossing the position)
|
|
|
154 15. Mean base quality of reads supporting reference in tumor
|
|
|
155 16. Mean mapping quality of reads supporting reference in tumor
|
|
|
156 17. Depth of reads supporting reference in tumor
|
|
|
157 18. Mean base quality of reads supporting variant(s) in tumor
|
|
|
158 19. Mean mapping quality of reads supporting variant(s) in tumor
|
|
|
159 20. Depth of reads supporting variant(s) in tumor
|
|
|
160 21. Mean base quality of reads supporting reference in normal
|
|
|
161 22. Mean mapping quality of reads supporting reference in normal
|
|
|
162 23. Depth of reads supporting reference in normal
|
|
|
163 24. Mean base quality of reads supporting variant(s) in normal
|
|
|
164 25. Mean mapping quality of reads supporting variant(s) in normal
|
|
|
165 26. Depth of reads supporting variant(s) in normal
|
|
|
166
|
|
|
167
|
|
|
168
|
|
|
169 </help>
|
|
|
170 </tool>
|
|
|
171
|
|
|
172
|