view voronoi_tessellation.xml @ 2:412d7478ec92 draft

planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/voronoi_tesselation commit c86a1b93cb7732f7331a981d13465653cc1a2790
author imgteam
date Wed, 24 Apr 2024 08:13:41 +0000
parents e7fdea8385f0
children 1944b0fccdbd
line wrap: on
line source

<tool id="voronoi_tessellation" name="Compute Voronoi tessellation" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="23.0">
    <description>with scikit-image</description>
    <macros>
        <import>creators.xml</import>
        <token name="@TOOL_VERSION@">0.22.0</token>
        <token name="@VERSION_SUFFIX@">2</token>
    </macros>
    <edam_operations>
        <edam_operation>operation_3443</edam_operation>
    </edam_operations>
    <xrefs>
        <xref type="bio.tools">scikit-image</xref>
        <xref type="biii">scikit-image</xref>
    </xrefs>
    <requirements>
        <requirement type="package" version="@TOOL_VERSION@">scikit-image</requirement>
        <requirement type="package" version="1.26.4">numpy</requirement>
        <requirement type="package" version="1.12.0">scipy</requirement>
        <requirement type="package" version="0.1">giatools</requirement>
    </requirements>
    <command><![CDATA[
    
    ## Inputs
    
    python '$__tool_directory__/voronoi_tessellation.py' '$input'
    
    ## Outputs
    
    ./result.tiff
    
    ]]>
    </command>
    <inputs>
        <param name="input" type="data" format="png,tiff" label="Input image" help="Must be a label map." />
    </inputs>
    <outputs>
       <data format="tiff" name="result" from_work_dir="result.tiff" />
    </outputs>
    <tests>
        <test>
            <param name="input" value="input1.tiff" />
            <output name="result" ftype="tiff">
                <assert_contents>

                    <has_image_width width="10"/>
                    <has_image_height height="10"/>
                    <has_image_channels channels="1"/>
                    <has_image_n_labels n="4"/>
                    <has_image_n_labels n="0" labels="0"/>

                </assert_contents>
            </output>
        </test>
    </tests>
    <help>

        **Computes Voronoi tessellations for labeled images.**

        Voronoi tessellations are also known as Vornoi diagrams, or Dirichlet tessellations.
        Zero labels are treated as image background.

    </help>
    <citations>
        <citation type="doi">10.7717/peerj.453</citation>
    </citations>
</tool>