changeset 2:5bf8eb50b280 draft

planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/count_objects/ commit 3c2a4fed433e518fcd0bc8d4deffcc5c2346b2b5
author imgteam
date Sat, 08 Jul 2023 01:32:11 +0000
parents 664232d2a3f7
children b58447a2eed2
files count_objects.py count_objects.xml
diffstat 2 files changed, 5 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/count_objects.py	Wed Dec 18 05:01:56 2019 -0500
+++ b/count_objects.py	Sat Jul 08 01:32:11 2023 +0000
@@ -1,17 +1,16 @@
 #!/usr/bin/python
 
 import argparse
-import numpy as np
-import os
+
 import skimage.io
-from skimage.measure import regionprops 
+from skimage.measure import regionprops
 
 parser = argparse.ArgumentParser(description='Count Objects')
 parser.add_argument('input_file', type=argparse.FileType('r'),
                     help='Label input file')
 parser.add_argument('output_file', type=argparse.FileType('w'),
                     help='Tabular output file')
-args = parser.parse_args() 
+args = parser.parse_args()
 
 img_raw = skimage.io.imread(args.input_file.name)
 res = len(regionprops(img_raw))
--- a/count_objects.xml	Wed Dec 18 05:01:56 2019 -0500
+++ b/count_objects.xml	Sat Jul 08 01:32:11 2023 +0000
@@ -1,4 +1,4 @@
-<tool id="ip_count_objects" name="Count Objects" version="0.0.4">
+<tool id="ip_count_objects" name="Count Objects" version="0.0.5">
     <description>in labled images</description>
     <requirements>
         <requirement type="package" version="0.14.2">scikit-image</requirement>
@@ -11,7 +11,7 @@
     ]]>
     </command>
     <inputs> 
-        <param name="input" type="data" format="tiff" label="Source file" />
+        <param name="input" type="data" format="tiff,png" label="Source file" />
     </inputs>
     <outputs>
         <data format="tabular" name="output" />