-
Notifications
You must be signed in to change notification settings - Fork 576
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
[BUG] NiftiLabelsMasker missing signal #4113
Comments
Thx for reporting. |
@andreifoldes I've seen this happen before due to resampling. The labels masker by default resamples the labels_img to the data and this could result in small regions getting wiped out. See |
Isn't it addressed by #3761 |
No explicitly but yes. These new returns will help the user map the output back to the input |
Yes, nice catch, that's probably it! A warning raised would be nice! |
Is sending the files still necessary? Actually upon second thought maybe its something else because but files are in the native space so resampling shouldn't be doing much of anything :) |
If you still don't understand what's going on, it's a goo idea to share the files. Best, |
@andreifoldes actually a warning should be raised, see nilearn/nilearn/maskers/nifti_labels_masker.py Lines 562 to 567 in e4dc5ad
Can you double check if that is raised? If that's not the case then sending the files or providing a minimal reproducible example to raise the same error might be necessary |
Yes, thank you, will check this week and also send data! |
Is there an existing issue for this?
Operating system
Operating system version
Python version
nilearn version
0.10.2
Expected behavior
I have a mask with certified 8 non-zero values and would expect 8 numbers from NiLabelsMasker, that is indeed the case for all but one of my participants:
Current behavior & error messages
This is what I got:
8 non-zero values go in, 7 values come out. No warning or error message...
Steps and code to reproduce bug
No response
The text was updated successfully, but these errors were encountered: