[Mne_analysis] Python implementation of mne_morph_labels?

Sheraz Khan, PhD sheraz at nmr.mgh.harvard.edu
Tue Jul 11 13:43:50 EDT 2017
Search archives:

Yes!!

Some sample code

import mne
import glob

labels_fname  = glob.glob(op.join(data_path, 'labels', '*.label'))
labels = [mne.read_label(label, subject='fsaverageSK', color='r')
          for label in labels_fname]
for index, label in enumerate(labels):
    label.values.fill(1.0)
    labels[index] = label
labels = [label.morph('fsaverageSK', subject, subjects_dir=subjects_dir)
for label in labels]

HTH

-------------------------
Sheraz Khan, M.Eng, Ph.D.
Instructor in Neurology

Athinoula A. Martinos Center for Biomedical Imaging
Massachusetts General Hospital
Harvard Medical School

McGovern Institute for Brain Research
Massachusetts Institute of Technology

Tel:   +1 617-643-5634
Fax:   +1 617-948-5966
Email: sheraz at nmr.mgh.harvard.edu
       sheraz at mit.edu
Web:   http://sheraz.mit.edu
> Hi,
>
> Is there a Python implementation of the mne_morph_labels function that
> morphs labels from individual subjects' brains onto the average subject's
> brain?
>
> Thanks and Best Regards,
> Gladia
> _______________________________________________
> Mne_analysis mailing list
> Mne_analysis at nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis




More information about the Mne_analysis mailing list