# HG changeset patch # User imgteam # Date 1712244208 0 # Node ID 8f76184ca03f36192e61c33ec42afed9be80d003 # Parent 6ad1d3cfdea189b513664b3342a6f504eb1d7841 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_filter_segmentation_by_features/ commit c045f067a57e8308308cf6329060c7ccd3fc372f diff -r 6ad1d3cfdea1 -r 8f76184ca03f 2d_filter_segmentation_by_features.xml --- a/2d_filter_segmentation_by_features.xml Mon Nov 13 22:10:21 2023 +0000 +++ b/2d_filter_segmentation_by_features.xml Thu Apr 04 15:23:28 2024 +0000 @@ -1,5 +1,12 @@ - - + + + + creators.xml + tests.xml + + + + operation_3443 @@ -12,15 +19,20 @@ pandas tifffile - - - + - - - + + + @@ -30,12 +42,45 @@ - + - Filter label image by rules (e.g., remove large or deformed objects). - Rules file has a specific format (cols: ,f1,2, rows: feature_name, min, max). The features have to be also profived in a specific format (cols: label, f1, f2). + + **Filters a label map by rules (e.g., remove large or deformed objects).** + + The properties of the labeled image regions (features) must be provided in a specific tabular format + (columns: ``label``, ``feature1``, ``feature2``, and so on, where ``feature1`` and ``feature2`` can be arbitrary strings). + Each row corresponds to a labeled image region. + An example is given below. + + +-------+-------+---------------------+ + | label | area | eccentricity | + +-------+-------+---------------------+ + | 1 | 344 | 0.42521053699241596 | + +-------+-------+---------------------+ + | 2 | 434 | 0.47679001553231926 | + +-------+-------+---------------------+ + | 3 | 907 | 0.9973539531125177 | + +-------+-------+---------------------+ + | 4 | 14320 | 0.17131009631035327 | + +-------+-------+---------------------+ + + The rules also must be supplied in a specific tabular format with three rows. + The top-left cell is empty, and the rest of the first row corresponds to the feature names (such as ``feature1`` or ``feature2``, see above). + The rest of the first column corresponds to the two values ``min`` and ``max``. + Each of the rows defines the minimum and maximum values for the corresponding features. + A labeled image region is retrained if and only if it passes all checks with repsect to the given ``min`` and ``max`` values. + An example is given below. + + +-----+--------+--------------+ + | | area | eccentricity | + +-----+--------+--------------+ + | min | 500 | 0. | + +-----+--------+--------------+ + | max | 100000 | 0.5 | + +-----+--------+--------------+ + 10.1016/j.jbiotec.2017.07.019 diff -r 6ad1d3cfdea1 -r 8f76184ca03f creators.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/creators.xml Thu Apr 04 15:23:28 2024 +0000 @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + + diff -r 6ad1d3cfdea1 -r 8f76184ca03f tests.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests.xml Thu Apr 04 15:23:28 2024 +0000 @@ -0,0 +1,95 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +