Mercurial > repos > devteam > vcftools_merge
changeset 0:76ff5512748c draft
Uploaded
author | devteam |
---|---|
date | Sun, 24 Nov 2013 17:10:57 -0500 |
parents | |
children | 71e19ddf52f5 |
files | tool_dependencies.xml vcftools_merge.xml |
diffstat | 2 files changed, 59 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tool_dependencies.xml Sun Nov 24 17:10:57 2013 -0500 @@ -0,0 +1,6 @@ +<?xml version="1.0"?> +<tool_dependency> + <package name="vcftools" version="0.1.11"> + <repository changeset_revision="61f9ddecde82" name="package_vcftools_0_1_11" owner="devteam" toolshed="http://toolshed.g2.bx.psu.edu" /> + </package> +</tool_dependency>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/vcftools_merge.xml Sun Nov 24 17:10:57 2013 -0500 @@ -0,0 +1,53 @@ +<tool id="vcftools_merge" name="Merge" version="0.1"> + <description>multiple VCF datasets</description> + + <requirements> + <requirement type="package">tabix</requirement> + <requirement type="package" version="0.1.11">vcftools</requirement> + </requirements> + + <command> + ## Preprocessing for each dataset. + #set dataset_names = [] + #for i, $input in enumerate( $inputs ): + ## Sort file. + vcf-sort ${input.file} > ${i}.vcf.sorted ; + + ## Compress. + bgzip ${i}.vcf.sorted ; + + ## Index. + tabix -p vcf ${i}.vcf.sorted.gz ; + + #silent dataset_names.append( str($i) + '.vcf.sorted.gz' ) + #end for + + ## Merge. + vcf-merge + #echo ' '.join( dataset_names ) # > ${output} + + </command> + <inputs> + <repeat name="inputs" title="Datasets to Merge" min="2"> + <param name="file" label="Dataset" type="data" format="vcf"/> + </repeat> + </inputs> + + <outputs> + <data name="output" format="vcf"/> + </outputs> + + <stdio> + <regex match=".*" source="both" level="log" description="tool progress"/> + </stdio> + + <tests> + <!-- Cannot specify multiple repeats in test framework right now, so no tests possible. --> + </tests> + + <help> + Please see the VCFtools `documentation`__ for help and further information. + + .. __: http://vcftools.sourceforge.net/docs.html + </help> +</tool>