help > Surface-based preprocessing with NHP data (NMT, ico6): incorrect dimensions error after vol2surf
Showing 1-1 of 1 posts
Display:
Results per page:
Dec 18, 2025  02:12 PM | Lisa Boschi
Surface-based preprocessing with NHP data (NMT, ico6): incorrect dimensions error after vol2surf

Hi everyone,


I'm struggling with surface-based preprocessing in CONN using NHP resting-state fMRI data. I have already tried to replace the fsaverage template in conn/utils/surf with an NMT template resampled to ico6. I also tried running the preprocessing using an NMT template at ico8 resolution (like fsaverage), and in that case I did not get any errors.


When I changed the resolution in conn_surf_extract (line 32), the output of the volume-to-surface resampling step is correctly renamed to surf6.nii. However, the surface smoothing step fails with the following error, and the GUI is not able to display the functional output, neither in the Functional tab nor in the QA plots:


 


ERROR DESCRIPTION:

Error using conn_surf_smooth

Incorrect dimensions in file D:\sub-1002\func1\ursub-1002_task-rest_bold.surf6.nii (9340704 voxels)

Error in conn_setup_preproc (line 3297)

filenameout=conn_surf_smooth(filename,this_diffusionsteps);

Error in conn (line 1386)

ok=conn_setup_preproc('',varargin{2:end});

Error in conn_menumanager (line 124). 

 


I also tried defining the ico6 resolution in conn_surf_write (where it calls conn_surf_dims(6)), and in conn_surf_dimscheck, but the error persists.


Do you have any suggestions? Has anyone already tried changing the ico resolution in CONN, either with non-human primate or human data? 


Thank you.