-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
restrict_forward_to_label vs stc.in_label methods #11689
Comments
@larsoner can you have a look at this. thanks, |
no they should not be the same as the inverse operator sees "all available sources" when doing the unmixing. Can this explain the issue? |
@agramfort Hi! Isn't it the forward matrix that we are only considering here to calculate the sensitivity maps? I don't see any unmixing/inverse in the original mne code. As per I know, the sensitivity maps/topography for each dipole is the column of the leadfield matrix. I would expect the sensitivity topography remains intact over a type sensors for individual dipole. It should be independent of computing a full brain or small ROI forward sol'. Or, are you saying computing a forward| Ledfields for a dipole (say : source space with single dipole) will be different than for a full brain forward| Leadfields and extracting only the forward| Leadfields for that dipole? In that case, creating these maps with a small ROI using thanks! |
I think it's due to the normalization by the max: Lines 512 to 513 in 68e4f89
We should probably add a note that for |
Argh no there is some deeper bug. I'll keep looking... |
Yes! Even without the normalization, values are different between M1 and M2. |
Description of the problem
I am testing sensitivity profiles/maps of different sensor types ('grad', 'eeg', 'mag') for different labels.
During testing, I tried 2 methods:
Method1: restrict the forward sol' with some particular labels and then compute sensitivity maps (mean across vertices of the labels).
Method2: compute sensitivity maps for a full forward sol' and use stc.in_label () method by passing the labels to extract the particular labels sensitivity.
Expected outcomes: since both of the methods follow similar ways of calculating sensitivity maps. The outcomes of these two should be similar.
Steps to reproduce
Link to data
No response
Expected results
The outcomes of these two methods should be similar.
Actual results
grad method1 output: 0.69
grad method2 output: 0.26
eeg method1 output: 0.86
eeg method2 output: 0.46
mag method1 output: 0.74
mag method2 output: 0.36
Additional information
mne sys_info() output
Platform Linux-5.19.0-41-generic-x86_64-with-glibc2.35
Python 3.9.16 (main, Mar 1 2023, 18:22:10) [GCC 11.2.0]
Executable /home/dip_meg/anaconda3/envs/mne/bin/python
CPU x86_64 (4 cores)
Memory 15.5 GB
Core
├☑ mne 1.4.0
.
.
The text was updated successfully, but these errors were encountered: