Misalignment of PSF activity for right hemispheric source activity !! potential bug?

External Email - Use Caution

Dear MNE users,

I am trying to find out the PSF for a particular vertex (i.e., centre
activity of a label). I am mainly interested in the auditory cortex labels.
I am following this example with slightly modified codes :
https://mne.tools/stable/auto_examples/inverse/plot_psf_ctf_vertices.html#sphx-glr-auto-examples-inverse-plot-psf-ctf-vertices-py

It works for left hemispheric source location however it doesn't work for
right hemispheric sources in my data. PSF projects all the right
hemispheric source activity into the left hemisphere.
I tested the code with mne sample data in order to see if there are some
potential bugs. The results are similar.

You can see the screenshots and I have also uploaded the code to replicate
the results.
Let me know what you think and if I am missing something.

best,
Dip
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200706/f6638420/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Sample_left_auditory_cortex_psf.png
Type: image/png
Size: 530711 bytes
Desc: not available
Url : http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200706/f6638420/attachment-0002.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sample_right_auditory_cortex_psf.png
Type: image/png
Size: 525325 bytes
Desc: not available
Url : http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200706/f6638420/attachment-0003.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: plot_psf_ctf_vertices_test.py
Type: text/x-python
Size: 3821 bytes
Desc: not available
Url : http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200706/f6638420/attachment-0001.py

External Email - Use Caution

hi Dip,

try this:

# get the source idx
sources = [np.where(vertno_hemi == centre_vertex)[0][0]]
sources_rh = np.array(sources) + forward['src'][0]['inuse'].sum() #
do not forget to add number of dipoles in left hemi
# get PSF for dSPM at one vertex
stc_psf = get_point_spread(rm_lor, forward['src'], sources_rh, norm=True)

HTH
Alex

External Email - Use Caution

Hi, Thanks! that works perfectly.

best,
Dip