Mercurial > repos > devteam > vcftools_annotate
diff vcftools_annotate.xml @ 0:765f626ebd5a draft
Initial upload.
author | devteam |
---|---|
date | Wed, 20 Nov 2013 11:12:58 -0500 |
parents | |
children | a6e0edfcfdae |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/vcftools_annotate.xml Wed Nov 20 11:12:58 2013 -0500 @@ -0,0 +1,54 @@ +<tool id="vcftools_annotate" name="Annotate" version="0.1"> + <description>a VCF dataset with filters</description> + + <requirements> + <requirement type="binary">echo</requirement> + <requirement type="package" version="0.1.11">vcftools</requirement> + </requirements> + + <command> + ## Generate filter file. + echo "{ tag => '${tag}', name => '${filter}', desc => '${description}', test => sub { my @t = split('%', @\\$MATCH[0]); return @t[0] $condition ? \\$PASS : \\$FAIL }, }," > f.txt ; + + ## Annotate. + vcf-annotate -f f.txt ${input} > ${output} + </command> + <inputs> + <param name="input" label="Input" type="data" format="vcf"/> + <param name="tag" label="Tag name" type="text"/> + <param name="description" label="Tag description" type="text"> + <sanitizer sanitize="False"/> + </param> + <param name="filter" label="Filter name" type="text"/> + <param name="condition" label="Filter condition" type="text"> + <sanitizer sanitize="False"/> + </param> + </inputs> + + <outputs> + <data name="output" format="vcf"/> + </outputs> + + <stdio> + <regex match=".*" source="both" level="log" description="tool progress"/> + </stdio> + + <tests> + <test> + <param name="input" value="test_in1.vcf" /> + <param name="tag" value="FORMAT/FREQ" /> + <param name="description" value="MinAF [7]"/> + <param name="filter" value="MinAF" /> + <param name="condition" value=">= 7" /> + <!-- 2 lines diff because command line with full file path is included in output VCF, and + it not possible to match full file path. --> + <output name="output" file="test_out1.vcf" lines_diff="2" /> + </test> + </tests> + + <help> + Please see the VCFtools `documentation`__ for help and further information. + + .. __: http://vcftools.sourceforge.net/docs.html + </help> +</tool>