annotate table_annovar.xml @ 5:7d2a81d29ca4 draft

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