Previous changeset 1:664232d2a3f7 (2019-12-18) Next changeset 3:b58447a2eed2 (2023-11-13) |
Commit message:
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/count_objects/ commit 3c2a4fed433e518fcd0bc8d4deffcc5c2346b2b5 |
modified:
count_objects.py count_objects.xml |
b |
diff -r 664232d2a3f7 -r 5bf8eb50b280 count_objects.py --- a/count_objects.py Wed Dec 18 05:01:56 2019 -0500 +++ b/count_objects.py Sat Jul 08 01:32:11 2023 +0000 |
b |
@@ -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)) |
b |
diff -r 664232d2a3f7 -r 5bf8eb50b280 count_objects.xml --- a/count_objects.xml Wed Dec 18 05:01:56 2019 -0500 +++ b/count_objects.xml Sat Jul 08 01:32:11 2023 +0000 |
b |
@@ -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" /> |