# HG changeset patch
# User imgteam
# Date 1713946299 0
# Node ID 5bc8cdc17fd05cf603e9f3924a6a514e8318494f
# Parent 2436a8807ad1a4b6195a3a7510290d1e4f96175c
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_feature_extraction/ commit c86a1b93cb7732f7331a981d13465653cc1a2790
diff -r 2436a8807ad1 -r 5bc8cdc17fd0 2d_feature_extraction.py
--- a/2d_feature_extraction.py Thu Apr 04 15:23:23 2024 +0000
+++ b/2d_feature_extraction.py Wed Apr 24 08:11:39 2024 +0000
@@ -1,9 +1,9 @@
import argparse
+import giatools.io
import numpy as np
import pandas as pd
import skimage.feature
-import skimage.io
import skimage.measure
import skimage.morphology
import skimage.segmentation
@@ -57,9 +57,9 @@
raw_image = None
if args.raw_file is not None:
- raw_image = skimage.io.imread(args.raw_file.name)
+ raw_image = giatools.io.imread(args.raw_file.name)
- raw_label_image = skimage.io.imread(label_file)
+ raw_label_image = giatools.io.imread(label_file)
df = pd.DataFrame()
if label_file_binary:
@@ -124,4 +124,4 @@
df['convexity'] = area / (perimeter * perimeter)
del df['it']
- df.to_csv(out_file, sep='\t', line_terminator='\n', index=False)
+ df.to_csv(out_file, sep='\t', lineterminator='\n', index=False)
diff -r 2436a8807ad1 -r 5bc8cdc17fd0 2d_feature_extraction.xml
--- a/2d_feature_extraction.xml Thu Apr 04 15:23:23 2024 +0000
+++ b/2d_feature_extraction.xml Wed Apr 24 08:11:39 2024 +0000
@@ -2,7 +2,7 @@
with scikit-image
creators.xml
- 0.14.2
+ 0.18.1
0
@@ -17,9 +17,10 @@
scikit-image
- pandas
- numpy
- tifffile
+ pandas
+ numpy
+ tifffile
+ giatools