annotate table_annovar.xml @ 2:9c75a9b5ecd2

Add help to tool.
author jeremy goecks <jeremy.goecks@emory.edu>
date Mon, 27 Jan 2014 11:32:02 -0500
parents 75b252cf390e
children 7d2a81d29ca4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
9c75a9b5ecd2 Add help to tool.
jeremy goecks <jeremy.goecks@emory.edu>
parents: 0
diff changeset
1 <tool id="table_annovar" name="ANNOVAR Annotate VCF" version="0.1">
0
75b252cf390e Uploaded
devteam
parents:
diff changeset
2 <description>with functional information using ANNOVAR</description>
75b252cf390e Uploaded
devteam
parents:
diff changeset
3
75b252cf390e Uploaded
devteam
parents:
diff changeset
4 <requirements>
75b252cf390e Uploaded
devteam
parents:
diff changeset
5 <requirement type="package">annovar</requirement>
75b252cf390e Uploaded
devteam
parents:
diff changeset
6 </requirements>
75b252cf390e Uploaded
devteam
parents:
diff changeset
7
75b252cf390e Uploaded
devteam
parents:
diff changeset
8 <command>
75b252cf390e Uploaded
devteam
parents:
diff changeset
9 ## Convert VCF to AV input format.
75b252cf390e Uploaded
devteam
parents:
diff changeset
10 convert2annovar.pl -format vcf4 -includeinfo ${input} > input.avinput
75b252cf390e Uploaded
devteam
parents:
diff changeset
11
75b252cf390e Uploaded
devteam
parents:
diff changeset
12 ## Variant annotation; make sure to include entry in indexes table for build database.
75b252cf390e Uploaded
devteam
parents:
diff changeset
13
75b252cf390e Uploaded
devteam
parents:
diff changeset
14 #set protocol = []
75b252cf390e Uploaded
devteam
parents:
diff changeset
15 #set operation = []
75b252cf390e Uploaded
devteam
parents:
diff changeset
16
75b252cf390e Uploaded
devteam
parents:
diff changeset
17 ## Add gene annotations.
75b252cf390e Uploaded
devteam
parents:
diff changeset
18 #if $gene_anns:
75b252cf390e Uploaded
devteam
parents:
diff changeset
19 #silent protocol.append( str( $gene_anns ) )
75b252cf390e Uploaded
devteam
parents:
diff changeset
20 #silent operation.append( ','.join( ['g' for t in range( str($gene_anns).count(',') + 1 )] ) )
75b252cf390e Uploaded
devteam
parents:
diff changeset
21 #end if
75b252cf390e Uploaded
devteam
parents:
diff changeset
22
75b252cf390e Uploaded
devteam
parents:
diff changeset
23 ## Add regions.
75b252cf390e Uploaded
devteam
parents:
diff changeset
24 #if $regions:
75b252cf390e Uploaded
devteam
parents:
diff changeset
25 #silent protocol.append( str( $regions ) )
75b252cf390e Uploaded
devteam
parents:
diff changeset
26 #silent operation.append( ','.join( ['r' for t in range( str($regions).count(',') + 1 )] ) )
75b252cf390e Uploaded
devteam
parents:
diff changeset
27 #end if
75b252cf390e Uploaded
devteam
parents:
diff changeset
28
75b252cf390e Uploaded
devteam
parents:
diff changeset
29 ## Add filters.
75b252cf390e Uploaded
devteam
parents:
diff changeset
30 #if $filters:
75b252cf390e Uploaded
devteam
parents:
diff changeset
31 #silent protocol.append( str( $filters ) )
75b252cf390e Uploaded
devteam
parents:
diff changeset
32 #silent operation.append( ','.join( ['f' for t in range( str($filters).count(',') + 1 )] ) )
75b252cf390e Uploaded
devteam
parents:
diff changeset
33 #end if
75b252cf390e Uploaded
devteam
parents:
diff changeset
34
75b252cf390e Uploaded
devteam
parents:
diff changeset
35 #set protocol = ','.join( $protocol )
75b252cf390e Uploaded
devteam
parents:
diff changeset
36 #set operation = ','.join( $operation )
75b252cf390e Uploaded
devteam
parents:
diff changeset
37
75b252cf390e Uploaded
devteam
parents:
diff changeset
38 ## Reduce variants.
75b252cf390e Uploaded
devteam
parents:
diff changeset
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
75b252cf390e Uploaded
devteam
parents:
diff changeset
40
2
9c75a9b5ecd2 Add help to tool.
jeremy goecks <jeremy.goecks@emory.edu>
parents: 0
diff changeset
41 ## Process annotated table to remove "NA" strings from numerical columns and copy to output.
9c75a9b5ecd2 Add help to tool.
jeremy goecks <jeremy.goecks@emory.edu>
parents: 0
diff changeset
42 ; cat output.${input.dbkey}_multianno.txt | replace_NA.py > ${output}
0
75b252cf390e Uploaded
devteam
parents:
diff changeset
43 </command>
75b252cf390e Uploaded
devteam
parents:
diff changeset
44
75b252cf390e Uploaded
devteam
parents:
diff changeset
45 <inputs>
75b252cf390e Uploaded
devteam
parents:
diff changeset
46 <param name="input" type="data" format="vcf" metadata_name="dbkey" label="Variants" help="">
75b252cf390e Uploaded
devteam
parents:
diff changeset
47 <validator type="unspecified_build" />
75b252cf390e Uploaded
devteam
parents:
diff changeset
48 </param>
75b252cf390e Uploaded
devteam
parents:
diff changeset
49
75b252cf390e Uploaded
devteam
parents:
diff changeset
50 <param name="gene_anns" type="select" multiple="True" optional="True" label="Gene Annotations" help="" >
75b252cf390e Uploaded
devteam
parents:
diff changeset
51 <options from_data_table="annovar_indexes">
75b252cf390e Uploaded
devteam
parents:
diff changeset
52 <filter type="data_meta" key="dbkey" ref="input" column="1"/>
75b252cf390e Uploaded
devteam
parents:
diff changeset
53 <filter type="static_value" name="type" value="gene_ann" column="2"/>
75b252cf390e Uploaded
devteam
parents:
diff changeset
54 </options>
75b252cf390e Uploaded
devteam
parents:
diff changeset
55 </param>
75b252cf390e Uploaded
devteam
parents:
diff changeset
56
75b252cf390e Uploaded
devteam
parents:
diff changeset
57 <param name="regions" type="select" multiple="True" optional="True" label="Annotation Regions" help="" >
75b252cf390e Uploaded
devteam
parents:
diff changeset
58 <options from_data_table="annovar_indexes">
75b252cf390e Uploaded
devteam
parents:
diff changeset
59 <filter type="data_meta" key="dbkey" ref="input" column="1"/>
75b252cf390e Uploaded
devteam
parents:
diff changeset
60 <filter type="static_value" name="type" value="region" column="2"/>
75b252cf390e Uploaded
devteam
parents:
diff changeset
61 </options>
75b252cf390e Uploaded
devteam
parents:
diff changeset
62 </param>
75b252cf390e Uploaded
devteam
parents:
diff changeset
63
75b252cf390e Uploaded
devteam
parents:
diff changeset
64 <param name="filters" type="select" multiple="True" label="Annotation Databases" help="" >
75b252cf390e Uploaded
devteam
parents:
diff changeset
65 <options from_data_table="annovar_indexes">
75b252cf390e Uploaded
devteam
parents:
diff changeset
66 <filter type="data_meta" key="dbkey" ref="input" column="1"/>
75b252cf390e Uploaded
devteam
parents:
diff changeset
67 <filter type="static_value" name="type" value="filter" column="2"/>
75b252cf390e Uploaded
devteam
parents:
diff changeset
68 </options>
75b252cf390e Uploaded
devteam
parents:
diff changeset
69 </param>
75b252cf390e Uploaded
devteam
parents:
diff changeset
70 </inputs>
75b252cf390e Uploaded
devteam
parents:
diff changeset
71
75b252cf390e Uploaded
devteam
parents:
diff changeset
72 <stdio>
75b252cf390e Uploaded
devteam
parents:
diff changeset
73 <regex match=".*" source="both" level="log" description="tool progress"/>
75b252cf390e Uploaded
devteam
parents:
diff changeset
74 </stdio>
75b252cf390e Uploaded
devteam
parents:
diff changeset
75
75b252cf390e Uploaded
devteam
parents:
diff changeset
76 <outputs>
75b252cf390e Uploaded
devteam
parents:
diff changeset
77 <data name="output" format="tabular"/>
75b252cf390e Uploaded
devteam
parents:
diff changeset
78 </outputs>
75b252cf390e Uploaded
devteam
parents:
diff changeset
79
75b252cf390e Uploaded
devteam
parents:
diff changeset
80 <tests>
75b252cf390e Uploaded
devteam
parents:
diff changeset
81 </tests>
75b252cf390e Uploaded
devteam
parents:
diff changeset
82
75b252cf390e Uploaded
devteam
parents:
diff changeset
83 <help>
2
9c75a9b5ecd2 Add help to tool.
jeremy goecks <jeremy.goecks@emory.edu>
parents: 0
diff changeset
84 **What it does**
9c75a9b5ecd2 Add help to tool.
jeremy goecks <jeremy.goecks@emory.edu>
parents: 0
diff changeset
85
9c75a9b5ecd2 Add help to tool.
jeremy goecks <jeremy.goecks@emory.edu>
parents: 0
diff changeset
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
9c75a9b5ecd2 Add help to tool.
jeremy goecks <jeremy.goecks@emory.edu>
parents: 0
diff changeset
87 VCF dataset.
9c75a9b5ecd2 Add help to tool.
jeremy goecks <jeremy.goecks@emory.edu>
parents: 0
diff changeset
88
9c75a9b5ecd2 Add help to tool.
jeremy goecks <jeremy.goecks@emory.edu>
parents: 0
diff changeset
89 **ANNOVAR Website and Documentation**
9c75a9b5ecd2 Add help to tool.
jeremy goecks <jeremy.goecks@emory.edu>
parents: 0
diff changeset
90
9c75a9b5ecd2 Add help to tool.
jeremy goecks <jeremy.goecks@emory.edu>
parents: 0
diff changeset
91 Website: http://www.openbioinformatics.org/annovar/
9c75a9b5ecd2 Add help to tool.
jeremy goecks <jeremy.goecks@emory.edu>
parents: 0
diff changeset
92
9c75a9b5ecd2 Add help to tool.
jeremy goecks <jeremy.goecks@emory.edu>
parents: 0
diff changeset
93 Paper: http://nar.oxfordjournals.org/content/38/16/e164
9c75a9b5ecd2 Add help to tool.
jeremy goecks <jeremy.goecks@emory.edu>
parents: 0
diff changeset
94
9c75a9b5ecd2 Add help to tool.
jeremy goecks <jeremy.goecks@emory.edu>
parents: 0
diff changeset
95 **Important Usage Note**
9c75a9b5ecd2 Add help to tool.
jeremy goecks <jeremy.goecks@emory.edu>
parents: 0
diff changeset
96
9c75a9b5ecd2 Add help to tool.
jeremy goecks <jeremy.goecks@emory.edu>
parents: 0
diff changeset
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
9c75a9b5ecd2 Add help to tool.
jeremy goecks <jeremy.goecks@emory.edu>
parents: 0
diff changeset
98
0
75b252cf390e Uploaded
devteam
parents:
diff changeset
99 </help>
75b252cf390e Uploaded
devteam
parents:
diff changeset
100 </tool>