annotate label_to_binary.xml @ 0:5da15c3bafed draft default tip

planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/label_to_binary/ commit 0a64a49d4a0ac3438544244a8b871be2fc144766
author imgteam
date Wed, 13 Mar 2024 14:55:31 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
5da15c3bafed planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/label_to_binary/ commit 0a64a49d4a0ac3438544244a8b871be2fc144766
imgteam
parents:
diff changeset
1 <tool id="label_to_binary" name="Convert label map to binary image" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="22.05">
5da15c3bafed planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/label_to_binary/ commit 0a64a49d4a0ac3438544244a8b871be2fc144766
imgteam
parents:
diff changeset
2 <description>with NumPy</description>
5da15c3bafed planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/label_to_binary/ commit 0a64a49d4a0ac3438544244a8b871be2fc144766
imgteam
parents:
diff changeset
3 <macros>
5da15c3bafed planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/label_to_binary/ commit 0a64a49d4a0ac3438544244a8b871be2fc144766
imgteam
parents:
diff changeset
4 <token name="@TOOL_VERSION@">1.26.4</token>
5da15c3bafed planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/label_to_binary/ commit 0a64a49d4a0ac3438544244a8b871be2fc144766
imgteam
parents:
diff changeset
5 <token name="@VERSION_SUFFIX@">0</token>
5da15c3bafed planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/label_to_binary/ commit 0a64a49d4a0ac3438544244a8b871be2fc144766
imgteam
parents:
diff changeset
6 </macros>
5da15c3bafed planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/label_to_binary/ commit 0a64a49d4a0ac3438544244a8b871be2fc144766
imgteam
parents:
diff changeset
7 <edam_operations>
5da15c3bafed planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/label_to_binary/ commit 0a64a49d4a0ac3438544244a8b871be2fc144766
imgteam
parents:
diff changeset
8 <edam_operation>operation_3443</edam_operation>
5da15c3bafed planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/label_to_binary/ commit 0a64a49d4a0ac3438544244a8b871be2fc144766
imgteam
parents:
diff changeset
9 </edam_operations>
5da15c3bafed planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/label_to_binary/ commit 0a64a49d4a0ac3438544244a8b871be2fc144766
imgteam
parents:
diff changeset
10 <xrefs>
5da15c3bafed planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/label_to_binary/ commit 0a64a49d4a0ac3438544244a8b871be2fc144766
imgteam
parents:
diff changeset
11 <xref type="bio.tools">galaxy_image_analysis</xref>
5da15c3bafed planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/label_to_binary/ commit 0a64a49d4a0ac3438544244a8b871be2fc144766
imgteam
parents:
diff changeset
12 </xrefs>
5da15c3bafed planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/label_to_binary/ commit 0a64a49d4a0ac3438544244a8b871be2fc144766
imgteam
parents:
diff changeset
13 <requirements>
5da15c3bafed planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/label_to_binary/ commit 0a64a49d4a0ac3438544244a8b871be2fc144766
imgteam
parents:
diff changeset
14 <requirement type="package" version="1.26.4">numpy</requirement>
5da15c3bafed planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/label_to_binary/ commit 0a64a49d4a0ac3438544244a8b871be2fc144766
imgteam
parents:
diff changeset
15 <requirement type="package" version="0.18.1">scikit-image</requirement>
5da15c3bafed planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/label_to_binary/ commit 0a64a49d4a0ac3438544244a8b871be2fc144766
imgteam
parents:
diff changeset
16 </requirements>
5da15c3bafed planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/label_to_binary/ commit 0a64a49d4a0ac3438544244a8b871be2fc144766
imgteam
parents:
diff changeset
17 <command><![CDATA[
5da15c3bafed planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/label_to_binary/ commit 0a64a49d4a0ac3438544244a8b871be2fc144766
imgteam
parents:
diff changeset
18
5da15c3bafed planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/label_to_binary/ commit 0a64a49d4a0ac3438544244a8b871be2fc144766
imgteam
parents:
diff changeset
19 ## Inputs
5da15c3bafed planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/label_to_binary/ commit 0a64a49d4a0ac3438544244a8b871be2fc144766
imgteam
parents:
diff changeset
20
5da15c3bafed planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/label_to_binary/ commit 0a64a49d4a0ac3438544244a8b871be2fc144766
imgteam
parents:
diff changeset
21 python '$__tool_directory__/label_to_binary.py'
5da15c3bafed planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/label_to_binary/ commit 0a64a49d4a0ac3438544244a8b871be2fc144766
imgteam
parents:
diff changeset
22 '$input'
5da15c3bafed planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/label_to_binary/ commit 0a64a49d4a0ac3438544244a8b871be2fc144766
imgteam
parents:
diff changeset
23 '$bg_label'
5da15c3bafed planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/label_to_binary/ commit 0a64a49d4a0ac3438544244a8b871be2fc144766
imgteam
parents:
diff changeset
24
5da15c3bafed planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/label_to_binary/ commit 0a64a49d4a0ac3438544244a8b871be2fc144766
imgteam
parents:
diff changeset
25 ## Outputs
5da15c3bafed planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/label_to_binary/ commit 0a64a49d4a0ac3438544244a8b871be2fc144766
imgteam
parents:
diff changeset
26
5da15c3bafed planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/label_to_binary/ commit 0a64a49d4a0ac3438544244a8b871be2fc144766
imgteam
parents:
diff changeset
27 ./output.tif
5da15c3bafed planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/label_to_binary/ commit 0a64a49d4a0ac3438544244a8b871be2fc144766
imgteam
parents:
diff changeset
28
5da15c3bafed planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/label_to_binary/ commit 0a64a49d4a0ac3438544244a8b871be2fc144766
imgteam
parents:
diff changeset
29 ]]>
5da15c3bafed planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/label_to_binary/ commit 0a64a49d4a0ac3438544244a8b871be2fc144766
imgteam
parents:
diff changeset
30 </command>
5da15c3bafed planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/label_to_binary/ commit 0a64a49d4a0ac3438544244a8b871be2fc144766
imgteam
parents:
diff changeset
31 <inputs>
5da15c3bafed planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/label_to_binary/ commit 0a64a49d4a0ac3438544244a8b871be2fc144766
imgteam
parents:
diff changeset
32 <param name="input" type="data" format="tiff,png" label="Input image (label map)" />
5da15c3bafed planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/label_to_binary/ commit 0a64a49d4a0ac3438544244a8b871be2fc144766
imgteam
parents:
diff changeset
33 <param argument="--bg_label" type="integer" value="0" label="Background label" />
5da15c3bafed planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/label_to_binary/ commit 0a64a49d4a0ac3438544244a8b871be2fc144766
imgteam
parents:
diff changeset
34 </inputs>
5da15c3bafed planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/label_to_binary/ commit 0a64a49d4a0ac3438544244a8b871be2fc144766
imgteam
parents:
diff changeset
35 <outputs>
5da15c3bafed planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/label_to_binary/ commit 0a64a49d4a0ac3438544244a8b871be2fc144766
imgteam
parents:
diff changeset
36 <data format="tiff" name="output" from_work_dir="output.tif" />
5da15c3bafed planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/label_to_binary/ commit 0a64a49d4a0ac3438544244a8b871be2fc144766
imgteam
parents:
diff changeset
37 </outputs>
5da15c3bafed planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/label_to_binary/ commit 0a64a49d4a0ac3438544244a8b871be2fc144766
imgteam
parents:
diff changeset
38 <tests>
5da15c3bafed planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/label_to_binary/ commit 0a64a49d4a0ac3438544244a8b871be2fc144766
imgteam
parents:
diff changeset
39 <test>
5da15c3bafed planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/label_to_binary/ commit 0a64a49d4a0ac3438544244a8b871be2fc144766
imgteam
parents:
diff changeset
40 <param name="input" value="input1.tif" />
5da15c3bafed planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/label_to_binary/ commit 0a64a49d4a0ac3438544244a8b871be2fc144766
imgteam
parents:
diff changeset
41 <param name="bg_label" value="0" />
5da15c3bafed planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/label_to_binary/ commit 0a64a49d4a0ac3438544244a8b871be2fc144766
imgteam
parents:
diff changeset
42 <output name="output" value="output1.tif" ftype="tiff" compare="sim_size" delta_frac="0.1"/>
5da15c3bafed planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/label_to_binary/ commit 0a64a49d4a0ac3438544244a8b871be2fc144766
imgteam
parents:
diff changeset
43 </test>
5da15c3bafed planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/label_to_binary/ commit 0a64a49d4a0ac3438544244a8b871be2fc144766
imgteam
parents:
diff changeset
44 </tests>
5da15c3bafed planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/label_to_binary/ commit 0a64a49d4a0ac3438544244a8b871be2fc144766
imgteam
parents:
diff changeset
45 <help>
5da15c3bafed planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/label_to_binary/ commit 0a64a49d4a0ac3438544244a8b871be2fc144766
imgteam
parents:
diff changeset
46 This tools converts a label map (objects labeled by different labels/values) to a binary image.
5da15c3bafed planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/label_to_binary/ commit 0a64a49d4a0ac3438544244a8b871be2fc144766
imgteam
parents:
diff changeset
47
5da15c3bafed planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/label_to_binary/ commit 0a64a49d4a0ac3438544244a8b871be2fc144766
imgteam
parents:
diff changeset
48 The input image is converted by assigning white (pixel value 255) to image regions corresponding to labeled objects,
5da15c3bafed planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/label_to_binary/ commit 0a64a49d4a0ac3438544244a8b871be2fc144766
imgteam
parents:
diff changeset
49 and black (pixel value 0) to image regions corresponding to image background (by default, this is label 0).
5da15c3bafed planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/label_to_binary/ commit 0a64a49d4a0ac3438544244a8b871be2fc144766
imgteam
parents:
diff changeset
50 </help>
5da15c3bafed planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/label_to_binary/ commit 0a64a49d4a0ac3438544244a8b871be2fc144766
imgteam
parents:
diff changeset
51 <citations>
5da15c3bafed planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/label_to_binary/ commit 0a64a49d4a0ac3438544244a8b871be2fc144766
imgteam
parents:
diff changeset
52 <citation type="doi">10.1038/s41586-020-2649-2</citation>
5da15c3bafed planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/label_to_binary/ commit 0a64a49d4a0ac3438544244a8b871be2fc144766
imgteam
parents:
diff changeset
53 </citations>
5da15c3bafed planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/label_to_binary/ commit 0a64a49d4a0ac3438544244a8b871be2fc144766
imgteam
parents:
diff changeset
54 </tool>