I use the standard procedure in MNE to perform the source localization procedure for the EEG data acquired during the experiment. I have met a problem with the results.
The value range for evoked/epochs is -10 - 10 uV, which is normal.
But the results of the source localization are on the 1e-13 level, which is wired. I did double-check my code. It looks correct.
Does anyone have been to this before?
Thank you very much.
- MNE version: e.g. 0.24.0
- operating system: e.g. macOS 12
Hello,
Please share your code and more information.
We can not guess what is going wrong based on the information you provide.
Best,
Mathieu
Thank you for reminding me.
Here’s the code. I think it’s pretty standard.
======================================================================
Load Epoch
epochs = read_epochs(Congruent_epoch_fame, verbose=False)
1 = incongruent, 0 = congruent
conditions = epochs.events[:, -1]
times = epochs.times
Load fwd model
fwd_fame = forward_path+sub_name+‘-fwd.fif’
fwd = read_forward_solution(fwd_fame)
Load inverse
cov_fame = Congruent_inv_path+sub_name+‘-inv.fif’
inv = read_inverse_operator(cov_fame, verbose=False)
Load morph map
morph_fame = Congruent_morph_maps_path+sub_name+‘-fsaverage_morph.mat’
morph_mat = loadmat(morph_fame)[‘morph_mat’]
epochs = read_epochs(icaed_Congruent_epoch_fame, verbose=False)
evoked = epochs.average()
evoked.set_eeg_reference(projection=True)
stc = apply_inverse(evoked, inv, method=method, lambda2=lambda2,
pick_ori=None)
src = inv[‘src’]
Plot
initial_time = 0.1
brain = stc.plot(initial_time=initial_time,
subjects_dir=DARPA_Recons_path, smoothing_steps=7)
======================================================================
I got the reason for this problem.
Sorry to waste your time.
I choose a different “method”. The problem is gone.
Thank you very much for your interest.