comparison overlay_images.xml @ 3:22ff7c705a83 draft

planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/overlay_images/ commit 8cd85b185acbfaa9ee6f4e9a389abc1f7b7c44bb
author imgteam
date Wed, 08 Nov 2023 19:57:15 +0000
parents b74693340624
children 37662cbf44b8
comparison
equal deleted inserted replaced
2:b74693340624 3:22ff7c705a83
1 <tool id="ip_overlay_images" name="Overlay Images" version="0.0.3" profile="20.05"> 1 <tool id="ip_overlay_images" name="Overlay images" version="0.0.3-3" profile="20.05">
2 <description>for visualization</description> 2 <description></description>
3 <edam_operations>
4 <edam_operation>operation_3443</edam_operation>
5 </edam_operations>
6 <xrefs>
7 <xref type="bio.tools">galaxy_image_analysis</xref>
8 </xrefs>
3 <requirements> 9 <requirements>
4 <requirement type="package" version="0.18.1">scikit-image</requirement> 10 <requirement type="package" version="0.18.1">scikit-image</requirement>
5 <requirement type="package" version="3.3.4">matplotlib</requirement> 11 <requirement type="package" version="3.3.4">matplotlib</requirement>
6 <requirement type="package" version="2020.10.1">tifffile</requirement> 12 <requirement type="package" version="2020.10.1">tifffile</requirement>
7 <requirement type="package" version="1.20.2">numpy</requirement> 13 <requirement type="package" version="1.20.2">numpy</requirement>
8 </requirements> 14 </requirements>
9 <command detect_errors="aggressive"> 15 <command detect_errors="aggressive">
10 <![CDATA[ 16 <![CDATA[
11 python '$__tool_directory__/overlay_images.py' 17 python '$__tool_directory__/overlay_images.py'
12 '$method_option.im1' '$method_option.im2' ./output.tif 18 '$method_option.im1' '$method_option.im2'
19 #if $method_option.method == "seg_contour"
20 ./output.png
21 #else
22 ./output.tif
23 #end if
13 --method $method_option.method 24 --method $method_option.method
14 #if $method_option.method == "blending" 25 #if $method_option.method == "blending"
15 --alpha $method_option.alpha 26 --alpha $method_option.alpha
16 #elif $method_option.method == "seg_contour" 27 #elif $method_option.method == "seg_contour"
17 --thickness $method_option.thickness 28 --thickness $method_option.thickness
46 <param name="label_color" type="color" value="#ffff00" label="Label color"/> 57 <param name="label_color" type="color" value="#ffff00" label="Label color"/>
47 </when> 58 </when>
48 </conditional> 59 </conditional>
49 </inputs> 60 </inputs>
50 <outputs> 61 <outputs>
51 <data format="tiff" name="out" from_work_dir="output.tif" /> 62 <data format="tiff" name="out_tiff" from_work_dir="output.tif" label="${tool.name} on ${on_string} output:tiff">
63 <filter>method_option['method'] != 'seg_contour'</filter>
64 </data>
65 <data format="png" name="out_png" from_work_dir="output.png" label="${tool.name} on ${on_string} output:png">
66 <filter>method_option['method'] == 'seg_contour'</filter>
67 </data>
52 </outputs> 68 </outputs>
53 <tests> 69 <tests>
54 <test> 70 <test expect_num_outputs="1">
55 <param name="im1" value="mask1.tif"/> 71 <param name="im1" value="mask1.tif"/>
56 <param name="im2" value="mask1r.tif"/> 72 <param name="im2" value="mask1r.tif"/>
57 <param name="method" value="coloc_vis"/> 73 <param name="method" value="coloc_vis"/>
58 <output name="out" value="test1.tif" ftype="tiff" compare="sim_size" delta_frac="0.1"/> 74 <output name="out_tiff" value="test1.tif" ftype="tiff" compare="sim_size" delta_frac="0.1"/>
59 </test> 75 </test>
60 <test> 76 <test expect_num_outputs="1">
61 <param name="im1" value="mask1.tif"/> 77 <param name="im1" value="mask1.tif"/>
62 <param name="im2" value="mask1r.tif"/> 78 <param name="im2" value="mask1r.tif"/>
63 <param name="method" value="blending"/> 79 <param name="method" value="blending"/>
64 <param name="alpha" value="0.3"/> 80 <param name="alpha" value="0.3"/>
65 <output name="out" value="test2.tif" ftype="tiff" compare="sim_size" delta_frac="0.1"/> 81 <output name="out_tiff" value="test2.tif" ftype="tiff" compare="sim_size" delta_frac="0.1"/>
66 </test> 82 </test>
67 <test> 83 <test expect_num_outputs="1">
68 <param name="im1" value="sample1.tif"/> 84 <param name="im1" value="sample1.tif"/>
69 <param name="im2" value="mask1.tif"/> 85 <param name="im2" value="mask1.tif"/>
70 <param name="method" value="seg_contour"/> 86 <param name="method" value="seg_contour"/>
71 <param name="thickness" value="2"/> 87 <param name="thickness" value="2"/>
72 <param name="color" value="#ff0000"/> 88 <param name="color" value="#ff0000"/>
73 <param name="show_label" value="--show_label"/> 89 <param name="show_label" value="--show_label"/>
74 <output name="out" value="test3.tif" ftype="tiff" compare="sim_size" delta_frac="0.1"/> 90 <output name="out_png" value="test3.png" ftype="png" compare="sim_size" delta_frac="0.1"/>
75 </test> 91 </test>
76 <test> 92 <test expect_num_outputs="1">
77 <param name="im1" value="sample1.tif"/> 93 <param name="im1" value="sample1.tif"/>
78 <param name="im2" value="mask2.tif"/> 94 <param name="im2" value="mask2.tif"/>
79 <param name="method" value="seg_contour"/> 95 <param name="method" value="seg_contour"/>
80 <param name="thickness" value="2"/> 96 <param name="thickness" value="2"/>
81 <param name="color" value="#ff0000"/> 97 <param name="color" value="#ff0000"/>
82 <output name="out" value="test4.tif" ftype="tiff" compare="sim_size" delta_frac="0.1"/> 98 <output name="out_png" value="test4.png" ftype="png" compare="sim_size" delta_frac="0.1"/>
83 </test> 99 </test>
84 </tests> 100 </tests>
85 <help> 101 <help>
86 **What it does** 102 **What it does**
87 103