Re: [Freesurfer] mris_convert reading surf.gii files?

2024-02-26 Thread Huang, Yujing
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-boun...@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

___
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
The information in this e-mail is intended only for the person to whom it is 
addressed.  If you believe this e-mail was sent to you in error and the e-mail 
contains patient information, please contact the Mass General Brigham 
Compliance HelpLine at https://www.massgeneralbrigham.org/complianceline 
<https://www.massgeneralbrigham.org/complianceline> .
Please note that this e-mail is not secure (encrypted).  If you do not wish to 
continue communication over unencrypted e-mail, please notify the sender of 
this message immediately.  Continuing to send or respond to e-mail after 
receiving this message means you understand and accept this risk and wish to 
continue to communicate over unencrypted e-mail. 


[Freesurfer] mris_convert reading surf.gii files?

2024-02-24 Thread Westin, Karin
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

___
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
The information in this e-mail is intended only for the person to whom it is 
addressed.  If you believe this e-mail was sent to you in error and the e-mail 
contains patient information, please contact the Mass General Brigham 
Compliance HelpLine at https://www.massgeneralbrigham.org/complianceline 
 .
Please note that this e-mail is not secure (encrypted).  If you do not wish to 
continue communication over unencrypted e-mail, please notify the sender of 
this message immediately.  Continuing to send or respond to e-mail after 
receiving this message means you understand and accept this risk and wish to 
continue to communicate over unencrypted e-mail.