Mercurial > repos > imgteam > spot_detection_2d
comparison spot_detection_2d.xml @ 4:d77f71572fc4 draft default tip
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/spot_detection_2d/ commit f1b9207ec23c0af1681c929281bcbf1d0638368e
author | imgteam |
---|---|
date | Wed, 25 Sep 2024 08:19:22 +0000 |
parents | b47931e176c3 |
children |
comparison
equal
deleted
inserted
replaced
3:b47931e176c3 | 4:d77f71572fc4 |
---|---|
1 <tool id="ip_spot_detection_2d" name="Spot Detection" version="0.0.3" profile="20.05"> | 1 <tool id="ip_spot_detection_2d" name="Perform 2-D spot detection" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="20.05"> |
2 <description>in a 2D image (sequence)</description> | 2 <description></description> |
3 <macros> | |
4 <import>creators.xml</import> | |
5 <token name="@TOOL_VERSION@">0.1</token> | |
6 <token name="@VERSION_SUFFIX@">0</token> | |
7 </macros> | |
8 <creator> | |
9 <expand macro="creators/bmcv" /> | |
10 </creator> | |
11 <edam_operations> | |
12 <edam_operation>operation_3443</edam_operation> | |
13 </edam_operations> | |
14 <xrefs> | |
15 <xref type="bio.tools">galaxy_image_analysis</xref> | |
16 </xrefs> | |
3 <requirements> | 17 <requirements> |
4 <requirement type="package" version="2.9.0">imageio</requirement> | 18 <requirement type="package" version="0.2.0">giatools</requirement> |
5 <requirement type="package" version="1.20.2">numpy</requirement> | 19 <requirement type="package" version="1.26.4">numpy</requirement> |
6 <requirement type="package" version="1.2.4">pandas</requirement> | 20 <requirement type="package" version="1.2.4">pandas</requirement> |
7 <requirement type="package" version="0.18.1">scikit-image</requirement> | 21 <requirement type="package" version="0.21">scikit-image</requirement> |
22 <requirement type="package" version="2024.6.18">tifffile</requirement> | |
8 </requirements> | 23 </requirements> |
9 <command detect_errors="aggressive"> | 24 <command detect_errors="aggressive"> |
10 <![CDATA[ | 25 <![CDATA[ |
11 python '$__tool_directory__/spot_detection_2d.py' | 26 python '$__tool_directory__/spot_detection_2d.py' |
12 '$fn_in' | 27 '$fn_in' |
13 '$fn_out' | 28 '$fn_out' |
14 '$frame_1st' | 29 '$frame_1st' |
15 '$frame_end' | 30 '$frame_end' |
16 '$filter' | 31 '$filter_type' |
17 '$ssig' | 32 '$min_scale' |
18 '$thres' | 33 '$max_scale' |
19 '$typ_intens' | 34 '$abs_threshold' |
20 '$bndy' | 35 '$rel_threshold' |
36 '$boundary' | |
21 ]]> | 37 ]]> |
22 </command> | 38 </command> |
23 <inputs> | 39 <inputs> |
24 <param name="fn_in" type="data" format="tiff" label="Image sequence (stack)" /> | 40 <param name="fn_in" type="data" format="tiff" label="Intensity image or a stack of images" /> |
25 <param name="frame_1st" type="integer" value="1" label="Starting time point (1 for the first frame of the stack)" /> | 41 <param name="frame_1st" type="integer" value="1" label="Starting time point (1 for the first frame of the stack)" /> |
26 <param name="frame_end" type="integer" value="0" label="Ending time point (0 for the last frame of the stack)" /> | 42 <param name="frame_end" type="integer" value="0" label="Ending time point (0 for the last frame of the stack)" /> |
27 <param name="filter" type="select" label="Choose a detection filter"> | 43 <param name="filter_type" type="select" label="Detection filter"> |
28 <option value="Gauss" selected="True">Gaussian</option> | 44 <option value="LoG" selected="True">Laplacian of Gaussian</option> |
29 <option value="LoG">Laplacian-of-Gaussian, LoG (more accurate when spots have similar sizes)</option> | 45 <option value="DoG">Difference of Gaussians</option> |
46 <option value="DoH">Determinant of Hessian</option> | |
30 </param> | 47 </param> |
31 <param name="ssig" type="float" value="1.0" min="0.5" max="10" label="Sigma of the Gaussian (for noise suppression)" /> | 48 <param name="min_scale" type="float" value="1.0" min="1.0" label="Minimum scale" /> |
32 <param name="thres" type="float" value="10.0" min="0" max="100" label="Percentage of the global maximal as the threshold for candidate spots" /> | 49 <param name="max_scale" type="float" value="2.0" min="1.0" label="Maximum scale" /> |
33 <param name="typ_intens" type="select" label="How to measure the intensities"> | 50 <param name="abs_threshold" type="float" value=".25" min="0" label="Minimum filter response (absolute)" help="Filter responses below this threshold will be ignored. Only filter responses above this thresholding will be considered as blobs. This threshold is ignored if the relative threshold (below) corresponds to a higher response." /> |
34 <option value="smoothed" selected="True">Smoothed</option> | 51 <param name="rel_threshold" type="float" value="0" min="0" max="1" label="Minimum filter response (relative)" help="Same as the absolute threshold (above), but as a fraction of the overall maximum filter response of an image. This threshold is ignored if it corresponds to a response below the absolute threshold." /> |
35 <option value="robust">Robust</option> | 52 <param name="boundary" type="integer" value="10" min="0" label="Image boundary" help="Width of image boundaries (in pixel) where spots will be ignored." /> |
36 </param> | |
37 <param name="bndy" type="integer" value="10" min="0" max="50" label="Width (in pixel) of image boundaries where spots will be ignored" /> | |
38 </inputs> | 53 </inputs> |
39 <outputs> | 54 <outputs> |
40 <data format="tabular" name="fn_out" /> | 55 <data format="tabular" name="fn_out" /> |
41 </outputs> | 56 </outputs> |
42 <tests> | 57 <tests> |
58 <!-- Multi-frame input --> | |
43 <test> | 59 <test> |
44 <param name="fn_in" value="test_img1.tif"/> | 60 <param name="fn_in" value="input1.tif"/> |
45 <param name="frame_1st" value="1"/> | 61 <param name="frame_1st" value="1"/> |
46 <param name="frame_end" value="0"/> | 62 <param name="frame_end" value="0"/> |
47 <param name="filter" value="Gauss"/> | 63 <param name="filter_type" value="LoG"/> |
48 <param name="ssig" value="1"/> | 64 <param name="min_scale" value="1"/> |
49 <param name="thres" value="10"/> | 65 <param name="max_scale" value="2"/> |
50 <param name="typ_intens" value="smoothed"/> | 66 <param name="abs_threshold" value="0"/> |
51 <param name="bndy" value="10"/> | 67 <param name="rel_threshold" value="0.1"/> |
52 <output name="fn_out" value="spots_detected.tsv" ftype="tabular" /> | 68 <param name="boundary" value="10"/> |
69 <output name="fn_out" value="output1.tsv" ftype="tabular" /> | |
70 </test> | |
71 <!-- Single-frame input --> | |
72 <test> | |
73 <param name="fn_in" value="input2.tif"/> | |
74 <param name="frame_1st" value="1"/> | |
75 <param name="frame_end" value="0"/> | |
76 <param name="filter_type" value="LoG"/> | |
77 <param name="min_scale" value="1"/> | |
78 <param name="max_scale" value="2"/> | |
79 <param name="abs_threshold" value="0.04"/> | |
80 <param name="rel_threshold" value="0"/> | |
81 <param name="boundary" value="10"/> | |
82 <output name="fn_out" value="output2.tsv" ftype="tabular" /> | |
53 </test> | 83 </test> |
54 </tests> | 84 </tests> |
55 <help> | 85 <help> |
56 **What it does** | |
57 | 86 |
58 This tool detects spots and measures the intensities in a 2D image (sequence). | 87 **Perform spot detection and measure the image intensities.** |
88 | |
89 This tool detects spots (blobs) and measures the image intensities in a single-channel 2-D image (or a stack of such images). | |
90 | |
91 The tool produces a TSV file containing all detections, with the following columns: | |
92 | |
93 - ``frame``: The frame of the image stack | |
94 - ``pos_x``: The horizontal coordinate of the detection | |
95 - ``pos_y``: The vertical coordinate of the detection | |
96 - ``scale``: The scale at which the detection was found | |
97 - ``radius``: The radius of the detected spot | |
98 - ``intensity``: The mean intensity of the spot | |
99 | |
59 </help> | 100 </help> |
60 <citations> | 101 <citations> |
61 <citation type="doi">10.1097/j.pain.0000000000002642</citation> | 102 <citation type="doi">10.1097/j.pain.0000000000002642</citation> |
62 </citations> | 103 </citations> |
63 </tool> | 104 </tool> |