-
Notifications
You must be signed in to change notification settings - Fork 258
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
Loading freesurfer surface mesh and CRAS offset #1101
Comments
The coordinates are presented as they are stored. FreeSurfer applies an additional offset stored in https://github.com/Washington-University/HCPpipelines/blob/3a6406cc065227a45b147f2e08ce09f171de21df/PostFreeSurfer/scripts/FreeSurfer2CaretConvertAndRegisterNonlinear.sh#L158-L167 I can't remember how HCP does it, but fMRIPrep applies the translation directly to the coordinates and then zeros out the translation. But this is just in the GIFTI translations. |
Ok I see, thanks for the feedback. There was already a solution contributed to nilearn that was never finished so I will pick it up from there, just wanted to verify that for nibabel this is intentionally done in terms of how the coordinates are loaded for these surfaces. |
I'd say it's more-or-less intentional, and we certainly can't change it now without potentially breaking people's pipelines. We could add a parameter like ( But from a development perspective, I wouldn't want to force users to use the absolute latest version of nibabel to use the latest nilearn (what if we have a bug that some other dependency needs to pin the version around?); you want to wait a while for a feature to have been around before depending on it. So whether or not we add some feature to nibabel, you probably want to go ahead with the nilearn-side fix for the time being. |
Yes clear and I agree. Thanks again! |
Hello, this issue concerns this open pull request nilearn/nilearn#2215.
In brief, it was pointed out that there is an offset observed between loaded surface mesh (extracted by Freesurfer) and volume data that is related to CRAS coordinates. I am wondering whether it is an issue to address on nilearn's side or nibabel's. This could concern the function
nibabel.freesurfer.io.read_geometry
not loading the coordinates correctly. Let me know what you think. Thanks!The text was updated successfully, but these errors were encountered: