comparison overlay_segmentation_mask.xml @ 0:5f83d67e30f1 draft default tip

planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/overlay_segmentation_mask/ commit 787ebcc8daa1834214bc92c201c921c704ef2d1f
author thomaswollmann
date Mon, 07 Jan 2019 05:38:10 -0500 (2019-01-07)
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:5f83d67e30f1
1 <?xml version="1.0"?>
2 <tool name="Overlay Segmentation Mask" id="ip_overlay_segmentation" version="0.0.6">
3 <description>Overlay Segmentation Mask</description>
4 <requirements>
5 <requirement type="package" version="0.14.0">scikit-image</requirement>
6 <requirement type="package" version="3.0.2">matplotlib</requirement>
7 <requirement type="package" version="5.3.0">pillow</requirement>
8 <requirement type="package" version="0.10.0">tifffile</requirement>
9 </requirements>
10 <stdio>
11 <exit_code level="fatal" range="1:"/>
12 </stdio>
13 <command interpreter="python"><![CDATA[overlay_segmentation_mask.py
14 $greyscale
15 #if str($label_option.label) == '--label'
16 --label --label_color '$label_option.label_color'
17 #end if
18 --thickness $thickness
19 --stroke_color '$stroke_color'
20 '$input_image' '$input_mask' ./tmp.png
21 && mv ./tmp.png '$output'
22 ]]>
23 </command>
24 <inputs>
25 <param name="input_image" type="data" label="Image Source File" format="tif,bmp,jpg,png"/>
26 <param name="input_mask" type="data" label="Mask Source File" format="tif,bmp,jpg,png"/>
27 <param name="greyscale" type="boolean" checked='true' truevalue='--grey' falsevalue='' label="Image Is Greyscale" />
28 <param name="thickness" size="4" type="float" value="0.3" label="Thickness" />
29 <param name="stroke_color" type="color" value="#ff0000" label="Stroke Color"/>
30 <conditional name="label_option">
31 <param name="label" type="boolean" checked='false' truevalue='--label' falsevalue='' label="Plot Labels" />
32 <when value=""> </when>
33 <when value="--label">
34 <param name="label_color" type="color" value="#ffff00" label="Label Color"/>
35 </when>
36 </conditional>
37 </inputs>
38 <outputs>
39 <data format="png" name="output" />
40 </outputs>
41 <tests>
42 <test>
43 <conditional name="label_option">
44 <param name="label" value="--label"/>
45 <param name="label_color" value="#ffff00"/>
46 </conditional>
47 <param name="stroke_color" value="#ffaa00"/>
48 <param name="label_option['label']" value="--label"/>
49 <param name="input_image" value="sample.tif"/>
50 <param name="input_mask" value="sample_seg.tif"/>
51 <param name="greyscale" value="--grey"/>
52 <output name="output" value="outt.png" ftype="png" compare="sim_size"/>
53 </test>
54 </tests>
55 <help>
56 This tool overlays a segmentation mask over an image.
57 </help>
58 <citations>
59 <citation type="doi">10.7717/peerj.453</citation>
60 </citations>
61 </tool>