view mergeneighboursinlabelimage.xml @ 2:9cbddb13fb9e draft default tip

planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/\mergeneighboursinlabelimage commit 2286a6c9da88596349ed9d967c51541409c0a7bf
author imgteam
date Mon, 13 Nov 2023 22:11:27 +0000
parents c6a6ab7c9940
children
line wrap: on
line source

<tool id="ip_merge_neighbours_in_label" name="Merge neighbors in label map" version="0.3-2"> 
    <description></description>
    <edam_operations>
        <edam_operation>operation_3443</edam_operation>
    </edam_operations>
    <xrefs>
        <xref type="bio.tools">galaxy_image_analysis</xref>
    </xrefs>
    <requirements>
        <requirement type="package" version="0.14.2">scikit-image</requirement>
        <requirement type="package" version="1.15.4">numpy</requirement>
        <requirement type="package" version="0.15.1">tifffile</requirement>
    </requirements>
    <command detect_errors="aggressive">
        <![CDATA[
        python '$__tool_directory__/mergeneighboursinlabelimage.py' '$input' ./tmp.tiff -c $c
        ]]>
    </command>
    <inputs>
        <param name="input" type="data" format="tiff,png,jpg,bmp" label="Label Image File"/>
        <param  label="Distance in pixel of objects which are merged" name="c" type="integer" value="50"/>
    </inputs>
    <outputs>
        <data format="tiff" name="output" from_work_dir="tmp.tiff"/>
    </outputs>
    <tests>
        <test>
          <param name="input" value="galaxyIcon_noText.tif"/>
          <param name="c" value="10"/>
          <output name="output" file="out.tiff" ftype="tiff" compare="sim_size"/>
        </test> 
    </tests>
    <help>
    **What it does**

    This tools merges nearby objects in a label image using the minimum pixel distance.
    </help>
    <citations>
        <citation type="doi">10.1016/j.jbiotec.2017.07.019</citation>
    </citations>
</tool>