Mercurial > repos > sanbi-uwc > vcf_to_alignment
diff vcf_to_alignment.xml @ 3:62fbd3f96b30 draft
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc commit 8a59904b63da8bcb647c8afbc2a88070c51a697e
author | sanbi-uwc |
---|---|
date | Fri, 03 Feb 2017 05:56:11 -0500 |
parents | a0c85f2d74a5 |
children | f58178c0f00d |
line wrap: on
line diff
--- a/vcf_to_alignment.xml Wed Feb 01 08:45:12 2017 -0500 +++ b/vcf_to_alignment.xml Fri Feb 03 05:56:11 2017 -0500 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8" ?> -<tool id="vcf_to_alignment" name="Generate FASTA alignment from VCF collection" version="0.2"> +<tool id="vcf_to_alignment" name="Generate FASTA alignment from VCF collection" version="0.3"> <description>Generate a multiple sequence alignment given a collection of variants and a reference sequence</description> <requirements> <requirement type="package" version="1.67">biopython</requirement> @@ -10,7 +10,9 @@ #if str($reference.source) == 'history': ln -s '${reference.history}' reference.fasta && #end if - python $__tool_directory__/vcf_to_msa.py --vcf_files + python $__tool_directory__/vcf_to_msa.py + $remove_invariant_sites + --vcf_files #for $vcf_file in $vcf_inputs: '${vcf_file.element_identifier}^^^${vcf_file}' #end for @@ -25,6 +27,7 @@ </command> <inputs> <param name="vcf_inputs" type="data_collection" format="vcf" collection_type="list" label="Variants (VCF format)" /> + <param name="remove_invariant_sites" type="boolean" truevalue="--remove_invariant" falsevalue="" label="Remove invariant sites from alignment" /> <conditional name="reference" label="Reference sequence source"> <param name="source" type="select"> <option value="history" selected="True">History</option> @@ -46,6 +49,7 @@ </outputs> <tests> <test> + <param name="remove_invariant_sites" value="False" /> <param name="vcf_inputs"> <collection type="list"> <element name="vcf_inputs.vcf1" value="vcf1.vcf" /> @@ -56,6 +60,18 @@ <param name="history" value="reference.fasta" ftype="fasta" /> <output name="output_alignment" value="output1.fasta" /> </test> + <test> + <param name="remove_invariant_sites" value="True" /> + <param name="vcf_inputs"> + <collection type="list"> + <element name="vcf_inputs.vcf1" value="vcf1.vcf" /> + <element name="vcf_inputs.vcf2" value="vcf2.vcf" /> + <element name="vcf_inputs.vcf3" value="vcf3.vcf" /> + </collection> + </param> + <param name="history" value="reference.fasta" ftype="fasta" /> + <output name="output_alignment" value="output2.fasta" /> + </test> </tests> <help><![CDATA[ Using the SNPs identified by the VCF files given as input, generates a sequence including the