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
Nifti to surface does not work #4
Comments
Hi @seralouk, Thanks for opening this issue and providing the data. I tested this out with the CLI and CLI: And with The output viewed in freeview: So, it seems to be working as expected on my end. I'm running this on a Linux machine (Ubuntu 20.04). However, when checked your file I noticed it included several NaNs, which were also flagged by freeview (18542 vertices in the left hemisphere, 17465 vertices in the right hemisphere). Perhaps replacing NaNs in your file might resolve things on your end? |
I noticed in the above figure that the sign has been swapped (i.e negative voxels are positive vertices on the surface, and vice versa). This was true even after replacing NaNs with 0. I checked with two other stat maps I have, each created using different software (nilearn and SPM) and the projections were correct (no sign flipping). So this issue seems to be specific to your file. As a temporary fix, you could a) replace the NaNs with 0, and b) flip the sign of voxels |
Hello,
First of all, thanks for this amazing repo.
I have a 3D nifti file that I would like to project to the fsaverage surface for a nice visualization output.
My nifti file is already in MNI space.
I have tried the following but the output an empty nii.gz files.
How can I solve this issue?
Data:https://easyupload.io/260ldc
Pass: makis
The text was updated successfully, but these errors were encountered: