-
Notifications
You must be signed in to change notification settings - Fork 3
Description
I am trying to use to_freesurfer.py with the output of my own pipeline (rather than timeseries_corrected_runXX.nii from prisma_preproc.py) to align my denoised data to freesurfer (e.g. ICA-FIX followed by FSL fslswapdim func_run01.nii.gz x -z y func_run01.nii.gz and, to obtain the tkreg.dat, I use mri_coreg, bbregister) but I get this obscure error (as suggested here https://wikis.nyu.edu/pages/viewpage.action?pageId=86054639, the tkreg.dat is not applied before submitting to to_freesurfer.py):
python to_freesurfer.py -s -o /Volumes/HD02/Ganzfeld/S14 -v /Volumes/HD02/Ganzfeld/S14/fsurf/tkreg_run01.dat /Volumes/HD02/Ganzfeld/S14/fsurf/func_run01.nii.gz --verbose
...
AttributeError: 'Subject' object has no attribute 'voxel_to_native_matrix'
I have try reinstalling nypipe (as suggested here: https://wikis.nyu.edu/pages/viewpage.action?pageId=86054639), different python versions and environments and neuropythy versions, module versions, etc. Nothing seems to fix the issue on my mac (Os 10.14 Mojave).
For the moment, applying tkreg.dat on the swapped denoised data func_run01.nii.gz (using mri_vol2vol) and then mri_vol2surf does it. However, it would be great to make it work! final aim is to reduce dependence on Matlab, mrVista and move to python based solutions. (e.g. neuropythy, pycortex, etc).
I also get it using python 2.7. Big headache. Any clue??? Eager to make it work! :)
Thanks and best wishes,
Nicolas