view imagej2_convert_format.xml @ 2:cf9ed4ef641d draft

planemo upload commit 369e40078146d00608d52205bb8cee66ae735b76-dirty
author iuc
date Fri, 26 Jun 2015 05:28:18 -0400
parents 14d09b0ab9e1
children 9a24b7e68010
line wrap: on
line source

<?xml version='1.0' encoding='UTF-8'?>
<tool id="imagej2_convert_format" name="Convert image format" version="1.0.0">
    <description>with bioformats</description>
    <macros>
        <import>imagej2_macros.xml</import>
    </macros>
    <expand macro="python_bioformats_requirements" />
    <command interpreter="python">
<![CDATA[
        imagej2_convert_format.py
        --in_fname "$input"
        --input_datatype $input.ext
        @max_heap_size_args@
        --output_datatype $output_datatype
        --out_fname "$output"
]]>
    </command>
    <inputs>
        <expand macro="max_heap_size_type_conditional" />
        <param format="bmp,eps,gif,jpg,pcx,pgm,png,psd,tiff" name="input" type="data" label="Select image"/>
        <param name="output_datatype" type="select" label="Convert to format">
            <option value="jpg" selected="true">jpg</option>
            <option value="png">png</option>
            <option value="tiff">tiff</option>
        </param>
    </inputs>
    <outputs>
        <data name="output" format="jpg">
            <actions>
                <action type="format">
                    <option type="from_param" name="output_datatype" />
                 </action>
           </actions>
       </data>
    </outputs>
    <tests>
        <test>
            <param name="input" value="dot_blot.jpg" />
            <param name="input_datatype" value="jpg" />
            <param name="output_datatype" value="png" />
            <output name="output" file="dot_blot.png" compare="sim_size" />
        </test>
        <test>
            <param name="input" value="dot_blot.png" />
            <param name="input_datatype" value="png" />
            <param name="output_datatype" value="tiff" />
            <output name="output" file="dot_blot.tiff" compare="sim_size" />
        </test>
        <test>
            <param name="input" value="dot_blot.tiff" />
            <param name="input_datatype" value="tiff" />
            <param name="output_datatype" value="jpg" />
            <output name="output" file="dot_blot.jpg" compare="sim_size" />
        </test>
    </tests>
    <help>
**What it does**

<![CDATA[
Converts an image file from one format to another where supported input and output formats are the
intersection of the relative formats supported by both Galaxy and Bioformats.

Go `here <https://www.openmicroscopy.org/site/support/bio-formats5.1/supported-formats.html>`_ for Bioformats image formats.
]]>

    </help>
    <expand macro="bioformats_fiji_javabridge_citations" />
</tool>