Add background_removal tool (skimage)#125
Conversation
kostrykin
left a comment
There was a problem hiding this comment.
Thanks a lot for this work!
There are a few comments below.
Also, please feel free to add yourself as a creator, as in:
You can find the planemo output on this site for example: https://github.com/BMCV/galaxy-image-analysis/actions/runs/9907411219 |
…ml, added test based on macros
rmassei
left a comment
There was a problem hiding this comment.
Accepted all the changes and added the macro tests
…loaded the new output with the 16bits input, fixed the creator.xml and tool xml
There was a problem hiding this comment.
So I think there was a misunderstanding about my previous comment :)
#125 (comment)
I mean, the issue that the range of values is changed by the tool remains, even after you changed the test input data to an uint16 image. We need to dig a bit deeper here.
First, lets see how the wrapped functions change the data type:
- skimage.filters.difference_of_gaussians changes everything to float.
- skimage.morphology.white_tophat does not change the data type.
- skimage.restoration.rolling_ball does not change the data type either.
So we only need to care for conversion to float. I suggest something like the above, but maybe it can be done more elegantly.
…put file format to the same input format
|
thanks @kostrykin, I did not get the problem in the first place. |
There was a problem hiding this comment.
Thanks @rmassei, I think we are almost done :) only a few minor comments below.
And there are a few flake8 linting issues which need to be addressed:
https://github.com/BMCV/galaxy-image-analysis/actions/runs/9937226470/job/27448034390?pr=125#step:6:1
tools/background_removal/background_removal.py:28:1: W293 blank line contains whitespace
tools/background_removal/background_removal.py:29:1: E302 expected 2 blank lines, found 1
tools/background_removal/background_removal.py:29:53: W291 trailing whitespace
tools/background_removal/background_removal.py:30:8: W291 trailing whitespace
tools/background_removal/background_removal.py:31:63: W291 trailing whitespace
tools/background_removal/background_removal.py:32:8: W291 trailing whitespace
tools/background_removal/background_removal.py:33:42: W291 trailing whitespace
tools/background_removal/background_removal.py:34:21: W291 trailing whitespace
tools/background_removal/background_removal.py:35:41: W291 trailing whitespace
tools/background_removal/background_removal.py:36:48: W291 trailing whitespace
tools/background_removal/background_removal.py:37:42: W291 trailing whitespace
tools/background_removal/background_removal.py:38:47: W291 trailing whitespace
tools/background_removal/background_removal.py:39:41: W291 trailing whitespace
tools/background_removal/background_removal.py:40:46: W291 trailing whitespace
tools/background_removal/background_removal.py:41:10: W291 trailing whitespace
tools/background_removal/background_removal.py:42:79: W291 trailing whitespace
|
https://github.com/BMCV/galaxy-image-analysis/actions/runs/9937821722?pr=125
I think this is due to #124 @bernt-matthias Any idea how to fix this? Shall we add it back again? |
|
yes, I got the same error locally before running |
https://github.com/BMCV/galaxy-image-analysis/actions/runs/9946388590/job/27477147950#step:6:222 Not sure what this error means. @bgruening do you know? On the one hand it says that |
| description: Background removal filters using scikit-image | ||
| long_description: Tool to perform a background removal using 1) Rolling-Ball Algorithm, 2) Difference of Gaussians and 3) Top-Hat Filter | ||
| name: background_removal | ||
| owner: ufz |
There was a problem hiding this comment.
the owner is wrong, we can only push to imgteam
|
Please change the owner in the shed.yml file |
Hi!
I think it would be nice to have in the collection a tool to automatically perform background removal from an intensity image.
This tool is based on skimage and more info can be found here.
At the present, three potential options:
Original



Rolling-Ball
Difference of Gaussians
Output is a 3 channel, 16 bit TIFFFOR THE CONTRIBUTOR — Please fill out if applicable
Please make sure you have read the CONTRIBUTING.md document (last updated: 2024/04/23).
If this PR adds or updates a tool or tool collection: