Hi Bruce:
Is there a way that I can load the MEG timecourse data on the freesurfer surface? Is it possible that we could get the timecourse waveform for a specific point on the surface? Thanks!
Tao
sure, if you save it in the right format. The easiest thing to do would be to save it as a volume, where the 1st spatial dimension is # of vertices on the surface, and the last (4th one) is the # of time points (the 2nd and 3rd would both be 1). Or there are other formats you can save in if you like, include our "w-file" format. I've attached a matlab file for writing it.
cheers, Bruce
On Fri, 2 Feb 2007, T. Song wrote:
Hi Bruce:
Is there a way that I can load the MEG timecourse data on the freesurfer surface? Is it possible that we could get the timecourse waveform for a specific point on the surface? Thanks!
Tao
Actually, I think the w file only holds one time point, so that prob wont work. If you want to go the matlab route, you can do something like:
mri_convert lh.curv lh.curv.mgh # convert to mgh for a template
then in matalb
f = MRIread('lh.curv.mgh');
f will be a struct f.vol will be a 4d matrix of size 1 x nverices x 1 x 1 Just change f.vol to your data (packing the time dim appropriately), then MRIwrite(f,'yourdata.mgh');
On Fri, 2 Feb 2007, Bruce Fischl wrote:
sure, if you save it in the right format. The easiest thing to do would be to save it as a volume, where the 1st spatial dimension is # of vertices on the surface, and the last (4th one) is the # of time points (the 2nd and 3rd would both be 1). Or there are other formats you can save in if you like, include our "w-file" format. I've attached a matlab file for writing it.
cheers, Bruce
On Fri, 2 Feb 2007, T. Song wrote:
Hi Bruce:
Is there a way that I can load the MEG timecourse data on the freesurfer surface? Is it possible that we could get the timecourse waveform for a specific point on the surface? Thanks!
Tao
oops, you're right. Anders wrote another format for multiple time points, but I can't seem to find it. The volume is the best way to go these days though.
Bruce
On Fri, 2 Feb 2007, Doug Greve wrote:
Actually, I think the w file only holds one time point, so that prob wont work. If you want to go the matlab route, you can do something like:
mri_convert lh.curv lh.curv.mgh # convert to mgh for a template
then in matalb
f = MRIread('lh.curv.mgh');
f will be a struct f.vol will be a 4d matrix of size 1 x nverices x 1 x 1 Just change f.vol to your data (packing the time dim appropriately), then MRIwrite(f,'yourdata.mgh');
On Fri, 2 Feb 2007, Bruce Fischl wrote:
sure, if you save it in the right format. The easiest thing to do would be to save it as a volume, where the 1st spatial dimension is # of vertices on the surface, and the last (4th one) is the # of time points (the 2nd and 3rd would both be 1). Or there are other formats you can save in if you like, include our "w-file" format. I've attached a matlab file for writing it.
cheers, Bruce
On Fri, 2 Feb 2007, T. Song wrote:
Hi Bruce:
Is there a way that I can load the MEG timecourse data on the freesurfer surface? Is it possible that we could get the timecourse waveform for a specific point on the surface? Thanks!
Tao
If the time course is in the proper format, then you can. It needs to be in one of the "volume" formats, eg mgh or mgh. The number of cols should equal the number of vertices, the number of rows = # of slices = 1, and the 4th dim is time.
Then run
tksurfer subject hemi surf -timecourse yourfile.mgh
doug
On Fri, 2 Feb 2007, T. Song wrote:
Hi Bruce:
Is there a way that I can load the MEG timecourse data on the freesurfer surface? Is it possible that we could get the timecourse waveform for a specific point on the surface? Thanks!
Tao
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
freesurfer@nmr.mgh.harvard.edu