view graphlan.xml @ 1:a490b70e46fc draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/humann2/ commit b5bd1ab6e4f3a14819dbc2bdad33006bc6131b3c"
author iuc
date Fri, 24 Jan 2020 16:26:12 -0500
parents 8f62f666dcb6
children 6e8eb0c0d91f
line wrap: on
line source

<tool id="graphlan" name="GraPhlAn" version="@WRAPPER_VERSION@">
    <description>to produce graphical output of an input tree</description>
    <macros>
        <import>graphlan_macros.xml</import>
    </macros>
    <expand macro="requirements"/>
    <stdio>
        <regex match="Warning"
               source="stderr"
               level="warning"
               description="" />
    </stdio>
    <version_command>graphlan.py -v</version_command>
    <command>
<![CDATA[        
        graphlan.py
            --format '$image_format.format'
            --size '$size'
            #if $pad
                --pad '$pad'
            #end if
            #if str($image_format.format) == "png" and $image_format.dpi
                --dpi '$image_format.dpi'
            #end if
            '$input_tree'
            #if str($image_format.format) == "png"
                '$png_output_image'
            #else if str($image_format.format) == "pdf"
                '$pdf_output_image'
            #else if str($image_format.format) == "ps"
                '$ps_output_image'
            #else if str($image_format.format) == "eps"
                '$eps_output_image'
            #else
                '$svg_output_image'
            #end if
]]>
    </command>
    <inputs>
        <param name="input_tree" type="data" format="txt,nhx,phyloxml" label="Input tree"/>
        <conditional name="image_format">
            <param argument='--format' type="select" label="Output format">
                <option value="png" selected="true">PNG</option>
                <option value="pdf">PDF</option>
                <option value="ps">PS</option>
                <option value="eps">EPS</option>
                <option value="svg">SVG</option>
            </param>
            <when value="png">
                <param argument="--dpi" type="integer" label="Dpi of the output image" optional="True"/>
            </when>
            <when value="pdf"/>
            <when value="ps"/>
            <when value="eps"/>
            <when value="svg"/>
        </conditional>
        <param argument="--size" type="integer" value="7" label="Size of the output image"/>
        <param argument="--pad" type="integer" label="Distance between the most external graphical element and the border of the image" optional="True"/>
    </inputs>
    <outputs>
        <data format="png" name="png_output_image" label="${tool.name} on ${on_string}: PNG">
            <filter>image_format['format']=="png"</filter>
        </data>
        <data format="pdf" name="pdf_output_image" label="${tool.name} on ${on_string}: PDF">
            <filter>image_format['format']=="pdf"</filter>
        </data>
        <data format="ps" name="ps_output_image" label="${tool.name} on ${on_string}: PS">
            <filter>image_format['format']=="ps"</filter>
        </data>
        <data format="eps" name="eps_output_image" label="${tool.name} on ${on_string}: EPS">
            <filter>image_format['format']=="eps"</filter>
        </data>
        <data format="svg" name="svg_output_image" label="${tool.name} on ${on_string}: SVG">
            <filter>image_format['format']=="svg"</filter>
        </data>
    </outputs>
    <tests>
        <test>
            <param name="input_tree" value="intermediary_tree"/>
            <param name="format" value="png"/>
            <param name="dpi" value="100"/>
            <param name="size" value="7"/>
            <param name="pad" value="2"/>
            <output name="png_output_image" file="png_image.png" compare="sim_size" delta="20000"/>
        </test>
    </tests>
    <help><![CDATA[
**What it does**

GraPhlAn is a software tool for producing high-quality circular representations of taxonomic and phylogenetic trees. GraPhlAn focuses on concise, integrative, informative, and publication-ready representations of phylogenetically- and taxonomically-driven investigation.

For more information, check the `user manual <https://bitbucket.org/nsegata/graphlan/overview>`_.

    ]]></help>
    <expand macro="citations"/>
</tool>