External Email - Use Caution
Dear Freesurfer experts,
A quick question. I am trying to convert my cortical thickness analysis results into a gifti file preferably combining left and right, like so:
mris_convert --combinesurfs lh.gamma.mgh rh.gamma.mgh both.gamma.gii
I get this error:
error: ERROR: MRISread: file 'lh.gamma.mgh' has 0 vertices!
Probably trying to use a scalar data file as a surface!
It then try to convert a single hemi:
mris_convert lh.gamma.mgh test.gii but I get the same error.
The gamma file looks fine to me, so I am not sure what the issue is.
I am running this version of freesurfer: freesurfer-darwin-macOS-7.2.0-20210713-aa8f76b
Could someone provide an example how this is done?
Thank you so much! Lauri Tuominen
Hi Lauri,
Can you try the following syntax to convert single hemi?
mris_convert -c lh.gamma.mgh lh.white lh.gamma.mg.gii
I think '--combinesurfs' works on surface files only. I don't know how to combine thickness files.
Best,
Yujing
From: freesurfer-bounces@nmr.mgh.harvard.edu freesurfer-bounces@nmr.mgh.harvard.edu On Behalf Of Lauri Tuominen Sent: Friday, January 13, 2023 12:29 PM To: freesurfer@nmr.mgh.harvard.edu Subject: [Freesurfer] mris_convert to gifti
External Email - Use Caution
Dear Freesurfer experts,
A quick question. I am trying to convert my cortical thickness analysis results into a gifti file preferably combining left and right, like so:
mris_convert --combinesurfs lh.gamma.mgh rh.gamma.mgh both.gamma.gii
I get this error:
error: ERROR: MRISread: file 'lh.gamma.mgh' has 0 vertices!
Probably trying to use a scalar data file as a surface!
It then try to convert a single hemi:
mris_convert lh.gamma.mgh test.gii but I get the same error.
The gamma file looks fine to me, so I am not sure what the issue is.
I am running this version of freesurfer: freesurfer-darwin-macOS-7.2.0-20210713-aa8f76b
Could someone provide an example how this is done?
Thank you so much! Lauri Tuominen
freesurfer@nmr.mgh.harvard.edu