Mercurial > repos > iuc > bcftools_consensus
view bcftools_consensus.xml @ 10:f867422772d6 draft
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bcftools commit 851f81495c875ac09d936537ffd2b32e6af2c8c5"
author | iuc |
---|---|
date | Thu, 17 Oct 2019 02:49:33 -0400 |
parents | 70b8e9908ea8 |
children | a87ae767b01d |
line wrap: on
line source
<?xml version='1.0' encoding='utf-8'?> <tool name="bcftools @EXECUTABLE@" id="bcftools_@EXECUTABLE@" version="@TOOL_VERSION@+galaxy1"> <description>Create consensus sequence by applying VCF variants to a reference fasta file</description> <macros> <token name="@EXECUTABLE@">consensus</token> <import>macros.xml</import> </macros> <expand macro="requirements"> <expand macro="samtools_requirement"/> </expand> <expand macro="version_command" /> <command detect_errors="aggressive"><![CDATA[ @PREPARE_ENV@ @PREPARE_INPUT_FILE@ #set $section = $reference_source @PREPARE_FASTA_REF@ bcftools @EXECUTABLE@ @FASTA_REF@ ## Default section #set $section = $sec_default ${section.iupac_codes} #if $section.mask: --mask "${section.mask}" #end if #if $section.select_haplotype: --haplotype "${section.select_haplotype}" #end if @SAMPLE@ #if $chain: --chain "$chain_file" #end if ## Primary Input/Outputs --output "$output_file" @INPUT_FILE@ ]]> </command> <inputs> <expand macro="macro_input" /> <expand macro="macro_fasta_ref" /> <section name="sec_default" expanded="true" title="Default Options"> <param name="mask" type="data" format="tabular" label="Mask" optional="True" help="Replace regions with N" /> <param name="iupac_codes" type="boolean" truevalue="--iupac-codes" falsevalue="" label="Iupac Codes" help="Output variants in the form of IUPAC ambiguity codes" /> <expand macro="macro_sample" /> <param name="select_haplotype" type="select" optional="true"> <option value="1">1</option> <option value="2">2</option> </param> </section> <param name="chain" type="boolean" truevalue="yes" falsevalue="no" label="Write a chain file for liftover" /> </inputs> <outputs> <data name="output_file" format="fasta" label="${tool.name} on ${on_string}: consensus fasta"/> <data name="chain_file" format="txt" label="${tool.name} on ${on_string}: chain"> <filter>chain</filter> </data> </outputs> <tests> <test> <expand macro="test_using_reference" ref="consensus.fa" /> <param name="input_file" ftype="vcf" value="consensus.vcf" /> <param name="mask" ftype="tabular" value="consensus.tab" /> <param name="chain" value="True" /> <output name="output_file"> <assert_contents> <has_text text="NNNNNNNNNNNNNNNNNNNNNNNNNN" /> </assert_contents> </output> <output name="chain_file"> <assert_contents> <has_text text="chain 497 1 501 + 1 501 1 502 + 1 502 1" /> </assert_contents> </output> </test> <test> <expand macro="test_using_reference" select_from="cached" ref="consensus" /> <param name="input_file" ftype="vcf" dbkey="?" value="consensus.vcf" /> <param name="mask" ftype="tabular" value="consensus.tab" /> <param name="chain" value="True" /> <output name="output_file"> <assert_contents> <has_text text="NNNNNNNNNNNNNNNNNNNNNNNNNN" /> </assert_contents> </output> <output name="chain_file"> <assert_contents> <has_text text="chain 497 1 501 + 1 501 1 502 + 1 502 1" /> </assert_contents> </output> </test> </tests> <help><![CDATA[ ===================================== bcftools @EXECUTABLE@ plugin ===================================== Create consensus sequence by applying VCF variants to a reference fasta file. @BCFTOOLS_MANPAGE@#@EXECUTABLE@ @BCFTOOLS_WIKI@ ]]> </help> <expand macro="citations" /> </tool>