view graphlan.xml @ 2:6e8eb0c0d91f draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/humann2/ commit fb23555b3087ca4022f0d186dfea40c2407ca211
author iuc
date Fri, 09 Feb 2024 21:29:49 +0000
parents a490b70e46fc
children
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="bio_tools"/>
    <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 expect_num_outputs="1">
            <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://github.com/biobakery/graphlan>`_.

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