annotate table_annovar.xml @ 1:a6c64723f5ce

Uploaded
author devteam
date Mon, 02 Dec 2013 15:31:17 -0500
parents 75b252cf390e
children 9c75a9b5ecd2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
75b252cf390e Uploaded
devteam
parents:
diff changeset
1 <tool id="table_annovar" name="Annotate VCF" version="0.1">
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
75b252cf390e Uploaded
devteam
parents:
diff changeset
41 ## Copy annotated table to output.
75b252cf390e Uploaded
devteam
parents:
diff changeset
42 ; cp output.${input.dbkey}_multianno.txt ${output}
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>
75b252cf390e Uploaded
devteam
parents:
diff changeset
84 </help>
75b252cf390e Uploaded
devteam
parents:
diff changeset
85 </tool>