0
|
1 <tool id="gatk2_variant_annotator" name="Variant Annotator" version="0.0.7">
|
|
2 <description></description>
|
|
3 <expand macro="requirements" />
|
|
4 <macros>
|
|
5 <import>gatk2_macros.xml</import>
|
|
6 </macros>
|
|
7 <command interpreter="python">
|
|
8 gatk2_wrapper.py
|
|
9 --stdout "${output_log}"
|
|
10 #if str( $reference_source.input_bam ) != "None":
|
|
11 -d "-I" "${reference_source.input_bam}" "${reference_source.input_bam.ext}" "gatk_input"
|
|
12 #if str( $reference_source.input_bam.metadata.bam_index ) != "None":
|
|
13 -d "" "${reference_source.input_bam.metadata.bam_index}" "bam_index" "gatk_input" ##hardcode galaxy ext type as bam_index
|
|
14 #end if
|
|
15 #end if
|
|
16 -d "--variant" "${reference_source.input_variant}" "${reference_source.input_variant.ext}" "input_variant"
|
|
17 -p '
|
|
18 @JAR_PATH@
|
|
19 -T "VariantAnnotator"
|
|
20 \$GATK2_SITE_OPTIONS
|
|
21
|
|
22 @THREADS@
|
|
23
|
|
24 #if $reference_source.reference_source_selector != "history":
|
|
25 -R "${reference_source.ref_file.fields.path}"
|
|
26 #end if
|
|
27 -o "${output_vcf}"
|
|
28 #if str( $annotations_type.annotations_type_selector ) == "use_all_annotations":
|
|
29 --useAllAnnotations
|
|
30 #else:
|
|
31 #if $annotations_type.annotations:
|
|
32 #for $annotation in str( $annotations_type.annotations.fields.gatk_value ).split( ',' ):
|
|
33 --annotation "${annotation}"
|
|
34 #end for
|
|
35 #end if
|
|
36 #end if
|
|
37 #if $exclude_annotations:
|
|
38 #for $annotation in str( $exclude_annotations.fields.gatk_value ).split( ',' ):
|
|
39 --excludeAnnotation "${annotation}"
|
|
40 #end for
|
|
41 #end if
|
|
42 #for $additional_annotation in $additional_annotations:
|
|
43 --annotation "${additional_annotation.additional_annotation_name}"
|
|
44 #end for
|
|
45 '
|
|
46 #if $reference_source.input_variant_bti:
|
|
47 -d "--intervals" "${reference_source.input_variant}" "${reference_source.input_variant.ext}" "input_variant_bti"
|
|
48 #end if
|
|
49
|
|
50 #for $rod_binding in $comp_rod_bind:
|
|
51 -d "--comp:${rod_binding.comp_rod_name},%(file_type)s" "${rod_binding.comp_input_rod}" "${rod_binding.comp_input_rod.ext}" "input_comp_${rod_binding.comp_rod_name}"
|
|
52 #end for
|
|
53
|
2
|
54 @DBSNP_OPTIONS@
|
0
|
55
|
|
56 #for $rod_binding in $resource_rod_bind:
|
|
57 -d "--resource:${rod_binding.resource_rod_name},%(file_type)s" "${rod_binding.resource_input_rod}" "${rod_binding.resource_input_rod.ext}" "input_resource_${rod_binding.resource_rod_name}"
|
|
58 #end for
|
|
59
|
|
60 #if str( $snpEff_rod_bind_type.snpEff_rod_bind_type_selector ) == 'set_snpEff':
|
|
61 -p '--annotation "SnpEff"'
|
|
62 -d "--snpEffFile:${snpEff_rod_bind_type.snpEff_rod_name},%(file_type)s" "${snpEff_rod_bind_type.snpEff_input_rod}" "${snpEff_rod_bind_type.snpEff_input_rod.ext}" "input_snpEff_${snpEff_rod_bind_type.snpEff_rod_name}"
|
|
63 #else:
|
|
64 -p '--excludeAnnotation "SnpEff"'
|
|
65 #end if
|
|
66
|
|
67 #for $expression in $expressions:
|
|
68 -p '--expression "${expression.expression}"'
|
|
69 #end for
|
|
70
|
|
71 #include source=$standard_gatk_options#
|
|
72
|
|
73 -p '
|
|
74 #if str( $annotation_group ) != "None":
|
|
75 #for $group in str( $annotation_group ).split( ',' ):
|
|
76 --group "${group}"
|
|
77 #end for
|
|
78 #end if
|
|
79 #if str( $family_string ) != "":
|
|
80 --family_string "${family_string}"
|
|
81 #end if
|
|
82 --MendelViolationGenotypeQualityThreshold "${mendel_violation_genotype_quality_threshold}"
|
|
83 '
|
|
84 </command>
|
|
85 <inputs>
|
|
86 <conditional name="reference_source">
|
|
87 <expand macro="reference_source_selector_param" />
|
|
88 <when value="cached">
|
|
89 <param name="input_variant" type="data" format="vcf" label="Variant file to annotate" help="-V,--variant &lt;variant&gt;"/>
|
|
90 <param name="input_variant_bti" type="boolean" truevalue="-BTI variant" falsevalue="" label="Increase efficiency for small variant files." help="-BTI variant"/>
|
|
91 <param name="input_bam" type="data" format="bam" label="BAM file" optional="True" help="Not needed for all annotations. (-I,--input_file &lt;input_file&gt;)" >
|
|
92 <validator type="unspecified_build" />
|
|
93 <validator type="dataset_metadata_in_data_table" table_name="gatk2_picard_indexes" metadata_name="dbkey" metadata_column="dbkey" message="Sequences are not currently available for the specified build." /> <!-- fixme!!! this needs to be a select -->
|
|
94 </param>
|
|
95 <param name="ref_file" type="select" label="Using reference genome" help="-R,--reference_sequence &lt;reference_sequence&gt;">
|
|
96 <options from_data_table="gatk2_picard_indexes">
|
|
97 <filter type="data_meta" key="dbkey" ref="input_variant" column="dbkey"/>
|
|
98 </options>
|
|
99 <validator type="no_options" message="A built-in reference genome is not available for the build associated with the selected input file"/>
|
|
100 </param>
|
|
101 </when>
|
|
102 <when value="history"> <!-- FIX ME!!!! -->
|
|
103 <param name="input_variant" type="data" format="vcf" label="Variant file to annotate" help="-V,--variant &lt;variant&gt;"/>
|
|
104 <param name="input_variant_bti" type="boolean" truevalue="-BTI variant" falsevalue="" label="Increase efficiency for small variant files." help="-BTI variant"/>
|
|
105 <param name="input_bam" type="data" format="bam" label="BAM file" optional="True" help="Not needed for all annotations. (-I,--input_file &lt;input_file&gt;)" />
|
|
106 <param name="ref_file" type="data" format="fasta" label="Using reference file" help="-R,--reference_sequence &lt;reference_sequence&gt;" />
|
|
107 </when>
|
|
108 </conditional>
|
|
109 <conditional name="annotations_type">
|
|
110 <param name="annotations_type_selector" type="select" label="Use all possible annotations">
|
|
111 <option value="use_all_annotations">Use all</option>
|
|
112 <option value="choose" selected="True">Use selected</option>
|
|
113 </param>
|
|
114 <when value="use_all_annotations">
|
|
115 <!-- no extra options here -->
|
|
116 </when>
|
|
117 <when value="choose">
|
|
118 <param name="annotations" type="select" multiple="True" display="checkboxes" label="Annotations to apply" help="-A,--annotation &lt;annotation&gt;" >
|
|
119 <!-- load the available annotations from an external configuration file, since additional ones can be added to local installs -->
|
|
120 <options from_data_table="gatk2_annotations">
|
|
121 <filter type="multiple_splitter" column="tools_valid_for" separator=","/>
|
|
122 <filter type="static_value" value="VariantAnnotator" column="tools_valid_for"/>
|
|
123 </options>
|
|
124 </param>
|
|
125 </when>
|
|
126 </conditional>
|
|
127
|
|
128 <repeat name="additional_annotations" title="Additional annotation" help="-A,--annotation &lt;annotation&gt;">
|
|
129 <param name="additional_annotation_name" type="text" value="" label="Annotation name" />
|
|
130 </repeat>
|
|
131
|
|
132 <repeat name="comp_rod_bind" title="Binding for reference-ordered comparison data" help="-comp,--comp &lt;comp&gt;">
|
|
133 <param name="comp_input_rod" type="data" format="vcf" label="ROD file" />
|
|
134 <param name="comp_rod_name" type="text" value="Unnamed" label="ROD Name"/>
|
|
135 </repeat>
|
2
|
136 <expand macro="dbsnp_param" />
|
0
|
137
|
|
138 <repeat name="resource_rod_bind" title="Binding for reference-ordered resource data" help="-resource,--resource &lt;resource&gt;">
|
|
139 <param name="resource_input_rod" type="data" format="vcf" label="ROD file" />
|
|
140 <param name="resource_rod_name" type="text" value="Unnamed" label="ROD Name"/>
|
|
141 </repeat>
|
|
142
|
|
143 <conditional name="snpEff_rod_bind_type">
|
|
144 <param name="snpEff_rod_bind_type_selector" type="select" label="Provide a snpEff reference-ordered data file (VCF)" help="-snpEffFile,--snpEffFile &lt;snpEffFile&gt;">
|
|
145 <option value="set_snpEff">Set snpEff</option>
|
|
146 <option value="exclude_snpEff" selected="True">Don't set snpEff</option>
|
|
147 </param>
|
|
148 <when value="exclude_snpEff">
|
|
149 <!-- Do nothing here -->
|
|
150 </when>
|
|
151 <when value="set_snpEff">
|
|
152 <param name="snpEff_input_rod" type="data" format="vcf" label="ROD file" />
|
|
153 <param name="snpEff_rod_name" type="hidden" value="snpEff" label="ROD Name"/>
|
|
154 </when>
|
|
155 </conditional>
|
|
156
|
|
157 <repeat name="expressions" title="Expression" help="-E,--expression &lt;expression&gt;">
|
|
158 <param name="expression" type="text" value="" label="Expression"/>
|
|
159 </repeat>
|
|
160
|
|
161 <expand macro="gatk_param_type_conditional" />
|
|
162
|
|
163 <param name="annotation_group" type="select" multiple="True" display="checkboxes" label="annotation interfaces/groups to apply to variant calls" help="-G,--group &lt;group&gt;">
|
|
164 <option value="RodRequiringAnnotation">RodRequiringAnnotation</option>
|
|
165 <option value="Standard">Standard</option>
|
|
166 <option value="Experimental">Experimental</option>
|
|
167 <option value="WorkInProgress">WorkInProgress</option>
|
|
168 <option value="RankSumTest">RankSumTest</option>
|
|
169 </param>
|
|
170 <param name="family_string" type="text" value="" label="Family String" help="--family_string"/>
|
|
171 <param name="mendel_violation_genotype_quality_threshold" type="float" value="0.0" label="genotype quality treshold in order to annotate mendelian violation ratio." help="-mvq,--MendelViolationGenotypeQualityThreshold &lt;MendelViolationGenotypeQualityThreshold&gt;"/>
|
|
172 <param name="exclude_annotations" type="select" multiple="True" display="checkboxes" label="Annotations to exclude" help="-XA,--excludeAnnotation &lt;excludeAnnotation&gt;" >
|
|
173 <!-- load the available annotations from an external configuration file, since additional ones can be added to local installs -->
|
|
174 <options from_data_table="gatk2_annotations">
|
|
175 <filter type="multiple_splitter" column="tools_valid_for" separator=","/>
|
|
176 <filter type="static_value" value="VariantAnnotator" column="tools_valid_for"/>
|
|
177 </options>
|
|
178 </param>
|
|
179
|
|
180 </inputs>
|
|
181 <outputs>
|
|
182 <data format="vcf" name="output_vcf" label="${tool.name} on ${on_string} (Variant File)" />
|
|
183 <data format="txt" name="output_log" label="${tool.name} on ${on_string} (log)" />
|
|
184 </outputs>
|
|
185 <tests>
|
|
186 <test>
|
|
187 <param name="reference_source_selector" value="history" />
|
|
188 <param name="ref_file" value="phiX.fasta" ftype="fasta" />
|
|
189 <param name="input_bam" value="gatk/gatk_table_recalibration/gatk_table_recalibration_out_1.bam" ftype="bam" />
|
|
190 <param name="input_variant" value="gatk/gatk_unified_genotyper/gatk_unified_genotyper_out_1.vcf" ftype="vcf" />
|
|
191 <param name="input_variant_bti" />
|
|
192 <param name="annotations_type_selector" value="choose" />
|
|
193 <param name="annotations" value="AlleleBalance,BaseQualityRankSumTest,DepthOfCoverage,HomopolymerRun,MappingQualityRankSumTest,MappingQualityZero,QualByDepth,RMSMappingQuality,SpanningDeletions,HaplotypeScore" />
|
|
194 <param name="additional_annotations" value="0" />
|
|
195 <param name="dbsnp_rod_bind_type_selector" value="set_dbsnp" />
|
|
196 <param name="dbsnp_input_rod" value="gatk/fake_phiX_variant_locations.vcf" ftype="vcf" />
|
2
|
197 <param name="dbsnp_rod_name" value="dbsnp" />
|
0
|
198 <param name="snpEff_rod_bind_type_selector" value="exclude_snpEff" />
|
|
199 <param name="gatk_param_type_selector" value="basic" />
|
|
200 <output name="output_vcf" file="gatk/gatk_variant_annotator/gatk_variant_annotator_out_1.vcf" lines_diff="4" />
|
|
201 <output name="output_log" file="gatk/gatk_variant_annotator/gatk_variant_annotator_out_1.log.contains" compare="contains" />
|
|
202 <param name="comp_rod_bind" value="0" />
|
|
203 <param name="resource_rod_bind" value="0" />
|
|
204 <param name="expressions" value="0" />
|
|
205 <!-- <param name="annotation_group" /> -->
|
|
206 </test>
|
|
207 </tests>
|
|
208 <help>
|
|
209 **What it does**
|
|
210
|
|
211 Annotates variant calls with context information. Users can specify which of the available annotations to use.
|
|
212
|
|
213 For more information on using the VariantAnnotator, see this `tool specific page <http://www.broadinstitute.org/gatk/gatkdocs/org_broadinstitute_sting_gatk_walkers_annotator_VariantAnnotator.html>`_.
|
|
214
|
|
215 To learn about best practices for variant detection using GATK, see this `overview <http://www.broadinstitute.org/gatk/guide/topic?name=best-practices>`_.
|
|
216
|
|
217 If you encounter errors, please view the `GATK FAQ <http://www.broadinstitute.org/gatk/guide/topic?name=faqs>`_.
|
|
218
|
|
219 ------
|
|
220
|
|
221
|
|
222 **Inputs**
|
|
223
|
|
224 GenomeAnalysisTK: VariantAnnotator accepts a variant input file.
|
|
225
|
|
226
|
|
227 **Outputs**
|
|
228
|
|
229 The output is in VCF format.
|
|
230
|
|
231
|
|
232 Go `here <http://www.broadinstitute.org/gatk/guide/topic?name=intro>`_ for details on GATK file formats.
|
|
233
|
|
234 -------
|
|
235
|
|
236 **Settings**::
|
|
237
|
|
238
|
|
239 sampleName The sample (NA-ID) corresponding to the variant input (for non-VCF input only)
|
|
240 annotation One or more specific annotations to apply to variant calls
|
|
241 group One or more classes/groups of annotations to apply to variant calls
|
|
242 expression One or more specific expressions to apply to variant calls; see documentation for more details
|
|
243 useAllAnnotations Use all possible annotations (not for the faint of heart)
|
|
244
|
|
245 @CITATION_SECTION@
|
|
246 </help>
|
|
247 </tool>
|