# HG changeset patch # User imgteam # Date 1699913421 0 # Node ID 6ad1d3cfdea189b513664b3342a6f504eb1d7841 # Parent e576b73a2e2fbad01ae5c2c3f72a5dc7f3667a7b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_filter_segmentation_by_features/ commit 2286a6c9da88596349ed9d967c51541409c0a7bf diff -r e576b73a2e2f -r 6ad1d3cfdea1 2d_filter_segmentation_by_features.py --- a/2d_filter_segmentation_by_features.py Mon Jul 22 05:00:03 2019 -0400 +++ b/2d_filter_segmentation_by_features.py Mon Nov 13 22:10:21 2023 +0000 @@ -1,8 +1,10 @@ import argparse import sys -import skimage.io + +import pandas as pd +import skimage.io import skimage.util -import pandas as pd + if __name__ == "__main__": parser = argparse.ArgumentParser(description='Filter segmentation by features') @@ -15,8 +17,8 @@ img_in = skimage.io.imread(args.input_file.name) features = pd.read_csv(args.feature_file, delimiter="\t") rules = pd.read_csv(args.rule_file, delimiter="\t") - - cols = [a for a in rules.columns if not 'Unnamed' in a] + + cols = [a for a in rules.columns if 'Unnamed' not in a] for a_c in cols: a_min = rules[rules.ix[:, 0] == 'min'][a_c] a_max = rules[rules.ix[:, 0] == 'max'][a_c] diff -r e576b73a2e2f -r 6ad1d3cfdea1 2d_filter_segmentation_by_features.xml --- a/2d_filter_segmentation_by_features.xml Mon Jul 22 05:00:03 2019 -0400 +++ b/2d_filter_segmentation_by_features.xml Mon Nov 13 22:10:21 2023 +0000 @@ -1,17 +1,23 @@ - - Filter segmentation by rules - + + + + operation_3443 + + + galaxy_image_analysis + + scikit-image pillow pandas tifffile - - - - - + + + + +