view spot_detection_2d.xml @ 4:14f9986800fa draft

planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/spot_detection_2d/ commit 2286a6c9da88596349ed9d967c51541409c0a7bf
author imgteam
date Mon, 13 Nov 2023 22:12:30 +0000
parents a9972c993bed
children e8c9e104e109
line wrap: on
line source

<tool id="ip_spot_detection_2d" name="Perform 2D spot detection" version="0.0.3-2" profile="20.05">
    <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="2.9.0">imageio</requirement>
        <requirement type="package" version="1.20.2">numpy</requirement>
        <requirement type="package" version="1.2.4">pandas</requirement>
        <requirement type="package" version="0.18.1">scikit-image</requirement>
    </requirements>
    <command detect_errors="aggressive">
    <![CDATA[
         python '$__tool_directory__/spot_detection_2d.py'
         '$fn_in'
         '$fn_out'
         '$frame_1st'
         '$frame_end'
         '$filter'
         '$ssig'
         '$thres'
         '$typ_intens'
         '$bndy'
    ]]>
    </command>
    <inputs>
        <param name="fn_in" type="data" format="tiff" label="Image sequence (stack)" />
        <param name="frame_1st" type="integer" value="1" label="Starting time point (1 for the first frame of the stack)" />
        <param name="frame_end" type="integer" value="0" label="Ending time point (0 for the last frame of the stack)" />
        <param name="filter" type="select" label="Choose a detection filter">
            <option value="Gauss" selected="True">Gaussian</option>
            <option value="LoG">Laplacian-of-Gaussian, LoG (more accurate when spots have similar sizes)</option>
        </param>
        <param name="ssig" type="float" value="1.0" min="0.5" max="10" label="Sigma of the Gaussian (for noise suppression)" />
        <param name="thres" type="float" value="10.0" min="0" max="100" label="Percentage of the global maximal as the threshold for candidate spots" />
        <param name="typ_intens" type="select" label="How to measure the intensities">
            <option value="smoothed" selected="True">Smoothed</option>
            <option value="robust">Robust</option>
        </param>
        <param name="bndy" type="integer" value="10" min="0" max="50" label="Width (in pixel) of image boundaries where spots will be ignored" />
    </inputs>
    <outputs>
        <data format="tabular" name="fn_out" />
    </outputs>
    <tests>
        <test>
            <param name="fn_in" value="test_img1.tif"/>
            <param name="frame_1st" value="1"/>
            <param name="frame_end" value="0"/>
            <param name="filter" value="Gauss"/>
            <param name="ssig" value="1"/>
            <param name="thres" value="10"/>
            <param name="typ_intens" value="smoothed"/>
            <param name="bndy" value="10"/>
            <output name="fn_out" value="spots_detected.tsv" ftype="tabular" />
        </test>
    </tests>
    <help>
    **What it does**

    This tool detects spots and measures the intensities in a 2D image (sequence).
    </help>
    <citations>
        <citation type="doi">10.1097/j.pain.0000000000002642</citation>
    </citations>
</tool>