[Mne_analysis] electrodes locations

Nìkεsh Bαjαj bajaj.nikkey at gmail.com
Mon Mar 11 17:25:06 EDT 2019
Search archives:

        External Email - Use Caution        

Here is shortcode to achieve the same:

----------
*import mne*

*# lets say you have the list of channels*
*ch_names =
['AF3','F7','F3','FC5','T7','P7','O1','O2','P8','T8','FC6','F4','F8','AF4']*

*# creating montage with 10-20 system*
*montage = mne.channels.read_montage('standard_1020',ch_names)*

*# here are the locations (x,y,z) for channels given in list: ch_names*
*xyz = montage.pos*

*# Don't forget, the order of xyz loc is not the same as your list so check
here the channel names corresponding to xyz*
*ch_names1 = montage.ch_names*
------------

---
Regards
*Nikesh Bajaj*

*Queen Mary University of London, UK &*
*University of Genova, Italy*
*n.bajaj at qmul.ac.uk <n.bajaj at qmul.ac.uk>*

*nikeshbajaj.in <http://nikeshbajaj.in>**+44-7459047121*
+39-3512763903
+91-9041150067


On Mon, Mar 11, 2019 at 10:12 PM Nìkεsh Bαjαj <bajaj.nikkey at gmail.com>
wrote:

> In addition to Alex's comment, you could check the file, from which xyz
> location for each channel is read.
> here is 10-20 system file
> https://github.com/mne-tools/mne-python/blob/master/mne/channels/data/montages/standard_1020.elc.
>
> <https://github.com/mne-tools/mne-python/blob/master/mne/channels/data/montages/standard_1020.elc>
> You must have the same files in your local machine at  ..
> /mne/channels/data/montages/'.
>
>
> ---
> Regards
> *Nikesh Bajaj*
> *n.bajaj at qmul.ac.uk <n.bajaj at qmul.ac.uk>*
> *nikeshbajaj.in <http://nikeshbajaj.in>*
>
> On Mon, Mar 11, 2019 at 3:15 PM Alexandre Gramfort <
> alexandre.gramfort at inria.fr> wrote:
>
>>         External Email - Use Caution
>>
>> hi,
>>
>> you can do something like this:
>>
>> locs = [c['loc'] for c in epochs.info['chs']]
>>
>> you can have a look at the plot_sensors function to see how we use these
>> internally.
>>
>> HTH
>> Alex
>>
>>
>> On Sun, Mar 10, 2019 at 2:36 PM A S <eng.emetsasa at gmail.com> wrote:
>>
>>>         External Email - Use Caution
>>>
>>> Hi all,
>>> Is there a function in mne-python that extract electrodes x,y,z 3d
>>> positions from epoched data? I tried but couldn't find.
>>>
>>> Thanks in advance for help
>>>
>>> _______________________________________________
>>> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20190311/9a6d0654/attachment.html 


More information about the Mne_analysis mailing list