How to obtain MNI coords using mne.vertex_to_mni (newbie)

External Email - Use Caution

Hi,

In order to obtain the MNI coordinates of my MEG data, I have to use
mne.vertex_to_mni.
Could someone give me an example of its usage?

As for the first argument, how to obtain the vertex numbers of my data? I'm
new in Python. Then, second argument, I can't find what code is right or
left hemisphere. Is there a way to get in one output both hemispheres (=the
whole brain)?

Thank you,
Adela

This is the help of the function:

mne.vertex_to_mni(*vertices*, *hemis*, *subject*, *subjects_dir=None*,
*mode=None*, *verbose=None*)
[source]
<http://github.com/mne-tools/mne-python/blob/master/doc/<string>#L1129-L1187>
<https://martinos.org/mne/dev/generated/mne.vertex_to_mni.html#mne.vertex_to_mni>

Convert the array of vertices for a hemisphere to MNI coordinates.
Parameters: *vertices* : int, or list of int

Vertex number(s) to convert
*hemis* : int, or list of int

Hemisphere(s) the vertices belong to

Name of the subject to load surfaces from.
*subjects_dir* : string, or None

Path to SUBJECTS_DIR if it is not set in the environment.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20180510/1b707dc9/attachment-0001.html

External Email - Use Caution

hi,

what do you mean your MEG data?

vertices here are SourceEstimate (aka stc) vertices.

HTH
Alex