[Mne_analysis] modify the channel
Phillip Alday
phillip.alday at mpi.nl
Fri Jul 10 07:45:32 EDT 2020
Please keep the list in CC.
The channels module has the tools to load and manipulate montages (both
custom and built-in):
https://mne.tools/stable/python_reference.html#module-mne.channels
I would not recommend modifying the actual files for the built-in
montages because that would change the behavior of MNE for all data,
including examples that depend on the built-ins working as they are
distributed.
For the difference between montage and layout, see the glossary
(https://mne.tools/stable/glossary.html), but here the relevant points:
layout
A |Layout|
<https://mne.tools/stable/generated/mne.channels.Layout.html#mne.channels.Layout>
gives sensor positions in 2 dimensions (defined by |x|, |y|,
|width|, and |height| values for each sensor). It is primarily used
for illustrative purposes (i.e., making diagrams of approximate
sensor positions in top-down diagrams of the head, so-called
topographies or topomaps).
montage
EEG channel names and the relative positions of the sensor w.r.t.
the scalp. While layout are 2D locations, montages give 3D
locations. A montage can also contain locations for HPI points,
fiducial points, or extra head shape points. See |DigMontage|
<https://mne.tools/stable/generated/mne.channels.DigMontage.html#mne.channels.DigMontage>
for the API of the corresponding object class.
HTH
Phillip
On 10/7/20 1:23 pm, Abdallah Qusaibe wrote:
> Hi Phillip,
>
> I hope you are well,
>
> Yes the montage file of the sensors, do you know how can I modify it?
> for example to modify the orientation of the sensor,
>
> Regards
> Abdallah
>
> On Fri, 10 Jul 2020 at 13:17, Phillip Alday <phillip.alday at mpi.nl
> <mailto:phillip.alday at mpi.nl>> wrote:
>
> Hi,
>
> What do you mean with channel file? The montage file with
> electrode coordinates and names? Can you tell us more about what
> the end goal is / why you want to modify this file?
>
> Best,
>
> Phillip
>
> On 10/7/20 12:23 pm, Abdallah Qusaibe wrote:
>>
>> External Email - Use Caution
>>
>> Dear Mne community,
>>
>> Can you please give me a real example, how can I modify the
>> channel file?
>>
>> Kind regards
>> Abdallah
>>
>> _______________________________________________
>> Mne_analysis mailing list
>> Mne_analysis at nmr.mgh.harvard.edu <mailto: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/20200710/263a84f0/attachment-0002.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
Url : http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200710/263a84f0/attachment-0001.bin
-------------- next part --------------
External Email - Use Caution
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200710/263a84f0/attachment-0003.html
More information about the Mne_analysis
mailing list