[Eeglablist] Questions on DIPFIT (Source Localization)
Haneen Alsuradi
haneen at nyu.edu
Fri Dec 6 05:42:46 PST 2024
Hi,
I have some questions on source localization using DIPFIT as this is my
first time using this plugin.
I preprocessed my EEG data and I have 30 .set files, each for one subject.
The .set files have ICA weights calculated, and the data is epoched -3 to 4
around the onset. The actual task was performed between 0 and 3 seconds.
I would like to perform source localization (using the automated dipole
fitting), focusing on dipoles with RV <15%.
I would like to loop over my subjects and get the source localization done
for each subject.
My questions are:
1) Since the task is between 0 to 3, do I have to epoch again and
re-calculate the ICA weights, given that I want to get the source
localization for the task period and not before/after the task period?
2) I noticed that the dipfit results are stored in the EEG.dipfit.model
field. I do understand the subfields [rv, active, and select]. However, I
am not very sure I understand what the subfields of:
posxyz, momxyz, diffmap, sourcepot, datapot store?
3) How can I aggregate the results of source localization for all subjects
into a single figure? I would like to accomplish this through code (using
the EEG structures) and not from the GUI.
4) Given a Tal value of a dipole, how can I get the name of that location
(i.e. SMA, MCC).
Thank you in advance for any help you could provide!!
PS:
I got the steps converted from GUI into code:
EEG = pop_loadset('filename',set_file,'filepath',filepath);
EEG = pop_runica(EEG, 'icatype', 'runica', 'extended',1,'interrupt','on');
EEG=pop_chanedit(EEG, 'lookup',
'./eeglab2021.0/plugins/dipfit/standard_BEM/elec/standard_1005.elc');
EEG = eeg_checkset( EEG );
EEG = pop_dipfit_settings( EEG, 'hdmfile',
'./eeglab2021.0/plugins/dipfit/standard_BEM/standard_vol.mat','coordformat',
'MNI','mrifile',
'/Users/hha243/Desktop/MacBook/NYUPostDoc/TAship/eeglab2021.0/plugins/dipfit/standard_BEM/standard_mri.mat'
,'chanfile',
'/Users/hha243/Desktop/MacBook/NYUPostDoc/TAship/eeglab2021.0/plugins/dipfit/standard_BEM/elec/standard_1005.elc'
,'coord_transform',[0 0 0 0 0 -1.5708 1 1 1] ,'chansel',[1:60] );
EEG = pop_multifit(EEG, [1:60] ,'threshold',15,'dipplot','off','plotopt',{
'normlen','on'});
Best
Haneen
More information about the eeglablist
mailing list