[Mne_analysis] example code about overlaying .w file on the inflatedbrain surface.
Junpeng.zhang@gmail.com
junpeng.zhang at gmail.com
Wed Mar 20 22:51:27 EDT 2013
Hi Martin,
Thank you for your help!
I will try it.
Best wishes,
Junpeng
------------------ Original ------------------
From: "Martin Luessi"<mluessi at nmr.mgh.harvard.edu>;
Date: Thu, Mar 21, 2013 09:57 AM
To: "sheraz"<sheraz at nmr.mgh.harvard.edu>;
Cc: "Junpeng.zhang at gmail.com"<junpeng.zhang at gmail.com>; "mne_analysis"<mne_analysis at nmr.mgh.harvard.edu>;
Subject: Re: [Mne_analysis] example code about overlaying .w file on the inflatedbrain surface.
On 03/20/13 21:32, sheraz at nmr.mgh.harvard.edu wrote:
> I used mri_surf2surf(freesurfer) to convert w file to mgz file, mgz worked
> with mne-python
As far as I know, MNE-Python cannot read .mgz surface files. To show a
..w file on an inflated surface you can do (assuming you have
activity-lh.w and activity-rh.w):
stc = mne.read_source_estimate('activity')
stc.plot(subject=subject, subjects_dir=subjects_dir, hemi='lh')
The first call will read both .w files and the second will show the
activity on the left hemisphere. Note you need MNE-Python 0.6 or newer
for this.
I hope this helps,
Martin
>
>> Hi MNEers,
>>
>>
>> I can overlay a .w file on the inflated brain surface in classical
>> MNE-analyze GUI.
>> Now I try to use mne-python.
>>
>>
>> Anyone have a quick code about how to load a .w file and overlaying it on
>> the inflated brain surface?
>> The expected results should look like this,
>>
>>
>>
>> If you can not see above pic, please open the attachment to have a look.
>> Thanks in advance.
>>
>>
>> Best,
>> Junpeng_______________________________________________
>> Mne_analysis mailing list
>> Mne_analysis at nmr.mgh.harvard.edu
>> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
>
> _______________________________________________
> Mne_analysis mailing list
> Mne_analysis at nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
>
>
--
Martin Luessi, Ph.D.
Research Fellow
Department of Radiology
Athinoula A. Martinos Center for Biomedical Imaging
Massachusetts General Hospital
Harvard Medical School
149 13th Street
Charlestown, MA 02129
Fax: +1 617 726-7422
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 Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20130321/a1f8b90a/attachment.html
More information about the Mne_analysis
mailing list