cross posting from NITRC: CONN : functional connectivity toolbox: help, I hope that’s ok.
I am trying to convert some gifti files from fmriprep to nifti. When I run the command:
conn_surf_gii2nii(’/path/to/file/lh.file.gii’)
or the command:
conn_surf_gii2nii(’/path/to/file/lh.file.gii’,’/path/to/file/rh.file.gii’,’/path/to/file/output.nii’)
I get the error:
Attempt to execute SCRIPT conn_surf_gii2nii as a function:
/path/to/conn/conn20b/conn/conn_surf_gii2nii.m
I am new to conn and matlab, so I initially though it may be a general problem with my setup, but I was able to run:
conn_gz2nii(’/path/to/file/file.nii.gz’)
After some googling I ran the command:
which -all ‘conn_surf_gii2nii’
and got the output:
/path/to/conn/conn20b/conn/conn_surf_gii2nii.m
so I don’t seem to have any extra files with the same name messing things up.
How do I get conn_surf_gii2nii to run?
Thanks!