changeset 1:e7fdea8385f0 draft

planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/voronoi_tesselation commit c045f067a57e8308308cf6329060c7ccd3fc372f
author imgteam
date Thu, 04 Apr 2024 15:26:55 +0000
parents 8b74843c136e
children 412d7478ec92
files creators.xml test-data/input1_result.tiff voronoi_tessellation.xml
diffstat 3 files changed, 40 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/creators.xml	Thu Apr 04 15:26:55 2024 +0000
@@ -0,0 +1,23 @@
+<macros>
+
+    <xml name="creators/bmcv">
+        <organization name="Biomedical Computer Vision Group, Heidelberg Universtiy" alternateName="BMCV" url="http://www.bioquant.uni-heidelberg.de/research/groups/biomedical_computer_vision.html" />
+        <yield />
+    </xml>
+
+    <xml name="creators/alliecreason">
+        <person givenName="Allison" familyName="Creason"/>
+        <yield/>
+    </xml>
+
+    <xml name="creators/bugraoezdemir">
+        <person givenName="Bugra" familyName="Oezdemir"/>
+        <yield/>
+    </xml>
+
+    <xml name="creators/thawn">
+        <person givenName="Till" familyName="Korten"/>
+        <yield/>
+    </xml>
+    
+</macros>
Binary file test-data/input1_result.tiff has changed
--- a/voronoi_tessellation.xml	Sat Mar 09 22:27:23 2024 +0000
+++ b/voronoi_tessellation.xml	Thu Apr 04 15:26:55 2024 +0000
@@ -1,8 +1,9 @@
 <tool id="voronoi_tessellation" name="Compute Voronoi tessellation" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="23.0">
     <description>with scikit-image</description>
     <macros>
+        <import>creators.xml</import>
         <token name="@TOOL_VERSION@">0.22.0</token>
-        <token name="@VERSION_SUFFIX@">0</token>
+        <token name="@VERSION_SUFFIX@">1</token>
     </macros>
     <edam_operations>
         <edam_operation>operation_3443</edam_operation>
@@ -12,9 +13,9 @@
         <xref type="biii">scikit-image</xref>
     </xrefs>
     <requirements>
+        <requirement type="package" version="@TOOL_VERSION@">scikit-image</requirement>
         <requirement type="package" version="1.26.4">numpy</requirement>
         <requirement type="package" version="1.12.0">scipy</requirement>
-        <requirement type="package" version="0.22.0">scikit-image</requirement>
     </requirements>
     <command><![CDATA[
     
@@ -29,7 +30,7 @@
     ]]>
     </command>
     <inputs>
-        <param name="input" type="data" format="png,tiff" label="Labeled image" />
+        <param name="input" type="data" format="png,tiff" label="Input image" help="Must be a label map." />
     </inputs>
     <outputs>
        <data format="tiff" name="result" from_work_dir="result.tiff" />
@@ -37,12 +38,23 @@
     <tests>
         <test>
             <param name="input" value="input1.tiff" />
-            <output name="result" value="input1_result.tiff" ftype="tiff" compare="sim_size" delta="0" />
+            <output name="result" ftype="tiff">
+                <assert_contents>
+
+                    <has_image_width width="10"/>
+                    <has_image_height height="10"/>
+                    <has_image_channels channels="1"/>
+                    <has_image_n_labels n="4"/>
+                    <has_image_n_labels n="0" labels="0"/>
+
+                </assert_contents>
+            </output>
         </test>
     </tests>
     <help>
 
-        This tool computes Voronoi tessellations for labeled images.
+        **Computes Voronoi tessellations for labeled images.**
+
         Voronoi tessellations are also known as Vornoi diagrams, or Dirichlet tessellations.
         Zero labels are treated as image background.