# HG changeset patch # User devteam # Date 1429761121 14400 # Node ID 08b003ee9db7273818cdd1d8d4e6ea07a43ef705 # Parent 091154194ce8931af4beb57deb1a6dd639400a5a Uploaded diff -r 091154194ce8 -r 08b003ee9db7 table_annovar.xml --- a/table_annovar.xml Wed Feb 12 16:32:16 2014 -0500 +++ b/table_annovar.xml Wed Apr 22 23:52:01 2015 -0400 @@ -1,4 +1,4 @@ - + with functional information using ANNOVAR @@ -8,9 +8,14 @@ ## Convert VCF to AV input format. - convert2annovar.pl -format vcf4 -includeinfo ${input} > input.avinput + #if str($out_format) == "tabular": + convert2annovar.pl -format vcf4 -includeinfo ${input} > input.avinput ; + #set tab_anno_input = "input.avinput" + #else: + #set tab_anno_input = $input + #end if - ## Variant annotation; make sure to include entry in indexes table for build database. + ## Variant annotation; make sure to include entry in indexes table for build database. #set protocol = [] #set operation = [] @@ -34,13 +39,23 @@ #end if #set protocol = ','.join( $protocol ) - #set operation = ','.join( $operation ) + #set operation = ','.join( $operation ) + + ## Annotate variants. + table_annovar.pl ${tab_anno_input} ${__get_data_table_entry__('annovar_indexes', 'dbkey', $input.dbkey, 'path')} -protocol ${protocol} -operation ${operation} -nastring '.' -buildver ${input.dbkey} --outfile output - ## Reduce variants. - ; 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 + ## Add option to consume/produce VCF. + #if str($out_format) == "vcf": + --vcfinput + #end if - ## Process annotated table to remove "NA" strings from numerical columns and copy to output. - ; cat output.${input.dbkey}_multianno.txt | python \$SCRIPT_PATH/replace_NA.py > ${output} + ## Post-processing: process annotated table to remove "NA" strings from numerical columns if + ## tabular. Copy to output. + #if str($out_format) == "tabular": + ; cat output.${input.dbkey}_multianno.txt | python \${SCRIPT_PATH}/replace_NA.py > ${output} + #else: + ; cp output.${input.dbkey}_multianno.vcf ${output} + #end if @@ -61,13 +76,19 @@ - + + + + + + + @@ -75,7 +96,11 @@ - + + + + + @@ -84,8 +109,8 @@ **What it does** -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 -VCF dataset. +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 +VCF dataset or a VCF dataset with the annotations in INFO fields. **ANNOVAR Website and Documentation**