Your mris_convert command looks correct. I’m able to do the conversion like this with dev version:

 

mris_convert --annot label/rh.aparc.annot.gii surf/rh.white.gii rh.aparc.annot

 

I’m wondering which Freesurfer you are running. If you do ‘mris_info surf.gii’, what does it report?

 

Best,

 

Yujing

 

From: freesurfer-bounces@nmr.mgh.harvard.edu <freesurfer-bounces@nmr.mgh.harvard.edu> On Behalf Of Westin, Karin
Sent: Saturday, February 24, 2024 6:10 PM
To: freesurfer@nmr.mgh.harvard.edu
Subject: [Freesurfer] mris_convert reading surf.gii files?

 

        External Email - Use Caution        

Hi

 

I'm trying to create an .annot file from a label.gii file using an HCP fsavarage.surf.gii file (eg mris_convert --annot my_label.label.gii fsaverage_template.L.surf.gii lh.my_annot.annot). However I keep getting the error

 

** failed to open GIFTI XML file 'fs_L-to-fs_LR_fsaverage.L_LR.spherical_std.164k_fs_L.surf.gii'

mrisReadGIFTIdanum: gifti_read_image() returned NULL

 

Is there a better way to read/open CIFTI files using mris_convert?

 

Best and thanks

Karin