Re: [Freesurfer] MEG time series to surface overlay

2017-03-15 Thread Dorothy Sincasto
Thanks. For the record, I used mris_convert to convert a .surf file to a .mgh file, then I used mri= MRIread(file.mgh), and I changed the mri.vol for the source data in a 1 x nvertices x 1 x ntimepoints, and save it with MRIwrite. Cheers, Dorothy On Wed, Mar 15, 2017 at 9:34 AM, Douglas N Greve

Re: [Freesurfer] MEG time series to surface overlay

2017-03-15 Thread Douglas N Greve
you can use mri_surf2surf to convert a .w file to another format On 03/15/2017 12:33 PM, Bruce Fischl wrote: > I see. We don't really support w files anymore. Can you write it out > as a .mgz/.mgh instead? Have sourcedata be nvertices x 1 x 1 x > ntimepoints and use MRIwrite or save_mgh > > On

Re: [Freesurfer] MEG time series to surface overlay

2017-03-15 Thread Bruce Fischl
I see. We don't really support w files anymore. Can you write it out as a .mgz/.mgh instead? Have sourcedata be nvertices x 1 x 1 x ntimepoints and use MRIwrite or save_mgh On Wed, 15 Mar 2017, Dorothy Sincasto wrote: Hi Bruce, first I do: [vertex_coords, faces, magic] = read_surf('rh.13475.

Re: [Freesurfer] MEG time series to surface overlay

2017-03-15 Thread Dorothy Sincasto
Hi Bruce, first I do: [vertex_coords, faces, magic] = read_surf( 'rh.13475.midthickness.decimated.05.surf') I have a time series variable sourcedata = 6149X 149646. Is a double and the numbers are in the range of -1.181711152525857e-14 then i try to write it: write_wfile(/'path/rh.13475.midth

Re: [Freesurfer] MEG time series to surface overlay

2017-03-14 Thread Bruce Fischl
Can you send us the full command you ran and the full screen output? Thanks Bruce > On Mar 14, 2017, at 9:33 PM, Dorothy Sincasto wrote: > > Hi, > > I have MEG time series for every vertex in a decimated surface (~6000 > vertices). I want to create a file (i think is called overlay) in which

[Freesurfer] MEG time series to surface overlay

2017-03-14 Thread Dorothy Sincasto
Hi, I have MEG time series for every vertex in a decimated surface (~6000 vertices). I want to create a file (i think is called overlay) in which the timeseries are saved, like an fMRI mgz overlay. How can I do that with matlab? I have tried read_surf for reading the midthickness surface file, an