New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Working with probabilistic atlas #386
Comments
Hi @orduek, most of our mask functions are not designed to work with probabilistic masks, only binary ones. It's easy to convert to binary using the Here is an example for how to binarize a single map, |
@ejolly should we consider adding in a weighted mean for probablistic maps at some point? |
I'm willing to help with implementation if needed |
That would be great @orduek if you're up for it! I think at this point, it probably makes the most sense to add this to the It's going to be a little tricky to think through how a weighted mask would work with all of the options. We currently have 3 methods implemented, mean, median, and PCA. Mean is pretty straightforward, if it is non-binary, it would compute the weighted mean. This should automatically normalize so not a big deal if probabilities don't sum to 1. For median, we might try something like a weighted median. PCA is going to be a bit trickier. I might recommend just outputting a Unfortunately, for |
Sounds good. I'll have a go at it and let you know once I stumble into some issues. |
I tried to use Brain_Data to load a mask based on DiFuMo atlas (https://parietal-inria.github.io/DiFuMo/)
Using the standard method (loading mask with Brain_Data and using expand_mask) doesn't work.
When looking at the loaded atlas, I find that it is already loaded as expanded. But then, trying to use roi_to_brain doesn't work as well.
The text was updated successfully, but these errors were encountered: