-
Notifications
You must be signed in to change notification settings - Fork 14
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
Indexing error during analysis (load_sub_input_dict) #340
Comments
What version are you using? |
0.5.1 , the error also happened using 0.5.0 |
Can you please try to reproduce with |
If you look at the preprocessing QC outputs, you will likely see things were are "very wrong". |
After trying with the |
I think I might have a lead as what could be causing the problem. After the preprocessing, the functionnal images don't have all the same dimensions in the coronal slices. Some are 52x40 pixels (the problematic images) and the other are 53x40. This is interesting because the missing index is 53 for the problematic subjects (see first post). I'm wondering if this could be caused by the the Now, I'm currently to preprocess my dataset whitout |
Hi @essheh , sorry for the delays on my end, and thank for investigating this. I looked into it, and my suspicion is that your images don't have the same voxel resolution, and since RABIES preserves original image dimension by default, the inconsistent dimensions cause an error at the analysis stage. This is something I should fix. However, this does mean however you cannot run any group-wise analyses like group-ICA (unless MELODIC allows it somehow), as your images don't currently align. Something that would fix your issue with the current RABIES version would be to resample your images to the same resolution in commonspace using the --commonspace_resampling parameter during preprocessing. I'll work on a better fix to the issue separately. |
Hi @Gab-D-G , you were absolutely right, for some reasons, my images had really small differences in voxel resolution in one of the dimensions and that was exactly what was causing the errors. I've fixed my problem by redefining the resolution in all my images to be the same. So thank you for your help! Also, congratulation on building this fMRI rodent pipeline, during my master I've tried many ways of doing functionnal connectivity analysis and it's been by far the easiest (thanks to Docker) and most unconstrained way of doing it that I've found. |
Bug description
I'm currently running RABIES on the dataset available at this adress https://data.mendeley.com/datasets/fmb2fwb53f/2 , the preprocess and the confound corrections seems to be working fine, but when I run the analysis outputs for some subjects of the dataset (3, 9, 10, 11) an indexing error happens ("IndexError: boolean index did not match indexed array along dimension 2; dimension is 52 but corresponding boolean dimension is 53") see analysis log file for more details.
RABIES calls
I am running the following scripts:
Preprocess:
Confoud correction:
Analysis:
Log files
rabies_preprocess.log
rabies_confound_correction.log
rabies_analysis.log
The text was updated successfully, but these errors were encountered: