Hello-
I know how to use mri_convert and mris_convert to obtain ascii files of thickness values that I can read into stats software, but I'm having trouble going the other direction. Is there a good way to convert ascii lists of vertex values into mgh files so I can view them as overlays or utilize commands like mri_surfcluster?
Thanks, Jim
If you have matlab, the easiest thing may be to load the ascii into matlab, then use MRIwrite.m to save it out. To make it easier, use mri_convert to convert the lh.thickness to mgh format, the use MRIread.m to load in the lh.thickness. The data are stored in the .vol field of the struct. Then just replace the .vol data with your ascii data and use MRIwrite to save it
doug
James Porter wrote:
Hello-
I know how to use mri_convert and mris_convert to obtain ascii files of thickness values that I can read into stats software, but I'm having trouble going the other direction. Is there a good way to convert ascii lists of vertex values into mgh files so I can view them as overlays or utilize commands like mri_surfcluster?
Thanks, Jim
can you save them from matlab? I don't think mris_convert supports reading of ascii curv files, just writing. Alternatively you could just leave them in ascii format (names .asc) and most of our stuff should read them properly.
cheers Bruce
On Mon, 21 Jun 2010, James Porter wrote:
Hello-
I know how to use mri_convert and mris_convert to obtain ascii files of thickness values that I can read into stats software, but I'm having trouble going the other direction. Is there a good way to convert ascii lists of vertex values into mgh files so I can view them as overlays or utilize commands like mri_surfcluster?
Thanks, Jim
freesurfer@nmr.mgh.harvard.edu