2
|
1 <tool id="table_annovar" name="ANNOVAR Annotate VCF" version="0.1">
|
0
|
2 <description>with functional information using ANNOVAR</description>
|
|
3
|
|
4 <requirements>
|
|
5 <requirement type="package">annovar</requirement>
|
|
6 </requirements>
|
|
7
|
|
8 <command>
|
|
9 ## Convert VCF to AV input format.
|
|
10 convert2annovar.pl -format vcf4 -includeinfo ${input} > input.avinput
|
|
11
|
|
12 ## Variant annotation; make sure to include entry in indexes table for build database.
|
|
13
|
|
14 #set protocol = []
|
|
15 #set operation = []
|
|
16
|
|
17 ## Add gene annotations.
|
|
18 #if $gene_anns:
|
|
19 #silent protocol.append( str( $gene_anns ) )
|
|
20 #silent operation.append( ','.join( ['g' for t in range( str($gene_anns).count(',') + 1 )] ) )
|
|
21 #end if
|
|
22
|
|
23 ## Add regions.
|
|
24 #if $regions:
|
|
25 #silent protocol.append( str( $regions ) )
|
|
26 #silent operation.append( ','.join( ['r' for t in range( str($regions).count(',') + 1 )] ) )
|
|
27 #end if
|
|
28
|
|
29 ## Add filters.
|
|
30 #if $filters:
|
|
31 #silent protocol.append( str( $filters ) )
|
|
32 #silent operation.append( ','.join( ['f' for t in range( str($filters).count(',') + 1 )] ) )
|
|
33 #end if
|
|
34
|
|
35 #set protocol = ','.join( $protocol )
|
|
36 #set operation = ','.join( $operation )
|
|
37
|
|
38 ## Reduce variants.
|
|
39 ; table_annovar.pl input.avinput ${__get_data_table_entry__('annovar_indexes', 'dbkey', $input.dbkey, 'path')} -protocol ${protocol} -operation ${operation} -nastring NA -buildver ${input.dbkey} --outfile output
|
|
40
|
2
|
41 ## Process annotated table to remove "NA" strings from numerical columns and copy to output.
|
|
42 ; cat output.${input.dbkey}_multianno.txt | replace_NA.py > ${output}
|
0
|
43 </command>
|
|
44
|
|
45 <inputs>
|
|
46 <param name="input" type="data" format="vcf" metadata_name="dbkey" label="Variants" help="">
|
|
47 <validator type="unspecified_build" />
|
|
48 </param>
|
|
49
|
|
50 <param name="gene_anns" type="select" multiple="True" optional="True" label="Gene Annotations" help="" >
|
|
51 <options from_data_table="annovar_indexes">
|
|
52 <filter type="data_meta" key="dbkey" ref="input" column="1"/>
|
|
53 <filter type="static_value" name="type" value="gene_ann" column="2"/>
|
|
54 </options>
|
|
55 </param>
|
|
56
|
|
57 <param name="regions" type="select" multiple="True" optional="True" label="Annotation Regions" help="" >
|
|
58 <options from_data_table="annovar_indexes">
|
|
59 <filter type="data_meta" key="dbkey" ref="input" column="1"/>
|
|
60 <filter type="static_value" name="type" value="region" column="2"/>
|
|
61 </options>
|
|
62 </param>
|
|
63
|
|
64 <param name="filters" type="select" multiple="True" label="Annotation Databases" help="" >
|
|
65 <options from_data_table="annovar_indexes">
|
|
66 <filter type="data_meta" key="dbkey" ref="input" column="1"/>
|
|
67 <filter type="static_value" name="type" value="filter" column="2"/>
|
|
68 </options>
|
|
69 </param>
|
|
70 </inputs>
|
|
71
|
|
72 <stdio>
|
|
73 <regex match=".*" source="both" level="log" description="tool progress"/>
|
|
74 </stdio>
|
|
75
|
|
76 <outputs>
|
|
77 <data name="output" format="tabular"/>
|
|
78 </outputs>
|
|
79
|
|
80 <tests>
|
|
81 </tests>
|
|
82
|
|
83 <help>
|
2
|
84 **What it does**
|
|
85
|
|
86 This tool will annotate variants using specified gene annotations, regions, and filtering databases. Input is a VCF dataset, and output is a table of annotations for each variant in the
|
|
87 VCF dataset.
|
|
88
|
|
89 **ANNOVAR Website and Documentation**
|
|
90
|
|
91 Website: http://www.openbioinformatics.org/annovar/
|
|
92
|
|
93 Paper: http://nar.oxfordjournals.org/content/38/16/e164
|
|
94
|
|
95 **Important Usage Note**
|
|
96
|
|
97 ANNOVAR is open-source and free for non-profit use. If you use it for commercial purposes, please contact BIOBASE (info@biobase-international.com) directly for license related issues. Also see http://www.openbioinformatics.org/annovar/annovar_faq.html#license
|
|
98
|
0
|
99 </help>
|
|
100 </tool>
|