view coordinates_of_roi.xml @ 2:24d9bd16c953 draft

planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/coordinates_of_roi/ commit bfae746780819634a014388ea4671a49fc5c178d
author imgteam
date Wed, 20 Mar 2019 09:18:06 -0400
parents 0d30ffea8874
children 02a686fc1654
line wrap: on
line source

<tool id="ip_coordinates_of_roi" name="Coordinates of ROI" version="0.0.4">
    <description></description>
    <requirements>
        <requirement type="package" version="0.14.2">scikit-image</requirement>
        <requirement type="package" version="0.23.4">pandas</requirement>
    </requirements>
    <command detect_errors="aggressive">
        <![CDATA[
            python '$__tool_directory__/coordinates_of_roi.py'
            '$im'
            '$pixel_table'
            $offset_x $offset_y
            $white_obj
            --threshold $threshold
        ]]>
    </command>
    <inputs>
        <param name="im" type="data" format="png" label="Source file" />
        <param name="white_obj" type="boolean" truevalue="--white_obj" falsevalue="" checked="false"
            label="Set to Yes if object is white and background black, otherwise set to No" />
        <param name="threshold" type="float" value="0.5" label="Threshold value" />
        <param name="offset_x" type="integer" value="0" label="Added offset in x direction (=width direction)" />
        <param name="offset_y" type="integer" value="0" label="Added offset in y direction (=height direction)" />
    </inputs>
    <outputs>
       <data format="tabular" name="pixel_table" />
    </outputs>
    <tests>
        <test>
            <param name="im" value="test.png"/>
            <param name="white_obj" value="true"/>
            <output name="pixel_table" value="newtable.tsv" ftype="tabular"/>
        </test>
        <test>
            <param name="im" value="test.png"/>
            <param name="white_obj" value="true"/>
            <param name="offset_x" value="1"/>
            <param name="offset_y" value="2"/>
            <output name="pixel_table" value="newtable2.tsv" ftype="tabular"/>
        </test>
    </tests>
    <help>
    **What it does**

    This tool creates a table containing the pixelcoordinates of the Region of Interest (ROI).
    </help>
    <citations>
        <citation type="doi">10.1016/j.jbiotec.2017.07.019</citation>
    </citations>
</tool>