changeset 1:faa34f06aa6c draft

"planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/count_objects/ commit 3d389fdec0db29cf6fbd783c0501455bf624fa90"
author imgteam
date Wed, 18 Dec 2019 09:57:25 +0000
parents 784d5cf56c82
children 803426d364aa
files count_objects.py count_objects.xml
diffstat 2 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/count_objects.py	Sat Feb 09 14:16:39 2019 -0500
+++ b/count_objects.py	Wed Dec 18 09:57:25 2019 +0000
@@ -4,14 +4,14 @@
 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	Sat Feb 09 14:16:39 2019 -0500
+++ b/count_objects.xml	Wed Dec 18 09:57:25 2019 +0000
@@ -3,13 +3,14 @@
     <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>
     </requirements>
     <command>
     <![CDATA[
         python '$__tool_directory__/count_objects.py' '$input' '$output'
     ]]>
     </command>
-    <inputs>
+    <inputs> 
         <param name="input" type="data" format="tiff" label="Source file" />
     </inputs>
     <outputs>