changeset 3:0e7be7c35f15 draft default tip

planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/split_labelmaps/ commit c86a1b93cb7732f7331a981d13465653cc1a2790
author imgteam
date Wed, 24 Apr 2024 08:13:26 +0000
parents 7a2e2e3cf836
children
files split_labelmap.py split_labelmap.xml
diffstat 2 files changed, 7 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/split_labelmap.py	Thu Apr 04 15:26:45 2024 +0000
+++ b/split_labelmap.py	Wed Apr 24 08:13:26 2024 +0000
@@ -1,11 +1,11 @@
 import argparse
 import warnings
 
+import giatools.io
 import numpy as np
 import scipy
 import skimage.draw
 import skimage.io
-from imageio import imread as io_imread
 from skimage.measure import regionprops
 
 # split_label_image takes a label image and outputs a similar file with the given name where the labeled
@@ -15,7 +15,7 @@
 def split_labelmap(labelmap, outputfile):
 
     # Information from the label map.
-    label_img = io_imread(labelmap)
+    label_img = giatools.io.imread(labelmap)
     xtot, ytot = label_img.shape
     props = regionprops(label_img)
     N = len(props)
--- a/split_labelmap.xml	Thu Apr 04 15:26:45 2024 +0000
+++ b/split_labelmap.xml	Wed Apr 24 08:13:26 2024 +0000
@@ -1,4 +1,4 @@
-<tool id="ip_split_labelmap" name="Split label map using morphological operators" version="0.2-2">
+<tool id="ip_split_labelmap" name="Split label map using morphological operators" version="0.2-3" profile="20.05">
     <description></description>
     <macros>
         <import>creators.xml</import>
@@ -14,9 +14,10 @@
         <xref type="bio.tools">galaxy_image_analysis</xref>
     </xrefs>
     <requirements>  
-        <requirement type="package" version="0.14.2">scikit-image</requirement>
-        <requirement type="package" version="1.15.4">numpy</requirement>
-        <requirement type="package" version="0.15.1">tifffile</requirement>
+        <requirement type="package" version="0.18.1">scikit-image</requirement>
+        <requirement type="package" version="1.23.3">numpy</requirement>
+        <requirement type="package" version="2020.10.1">tifffile</requirement>
+        <requirement type="package" version="0.1">giatools</requirement>
     </requirements>
     <command detect_errors="aggressive"> 
         <![CDATA[