@@ -5,7 +5,7 @@ long_title: c. EEG source model
55parent : 9. Source analysis
66grand_parent : Tutorials
77---
8- Equivalent dipole source localization of EEG data
8+ Equivalent dipole source localization of EEG or ERP data
99========================================
1010{: .no_toc }
1111
@@ -21,9 +21,9 @@ Equivalent dipole source localization of EEG data
2121Using DIPFIT to fit one dipole to EEG or ERP scalp maps
2222--------
2323
24- Though the implementation of the DIPFIT plugin has not been expressly
25- designed to fit dipoles to raw ERP or EEG scalp maps, EEGLAB provides a
26- command-line function allowing DIPFIT to do so . Fitting may only be
24+ EEGLAB provides a command-line implementation of the [ DIPFIT plugin] ( https://github.com/sccn/dipfit ) to fit
25+ dipoles to raw ERP or EEG scalp maps that has otherwise not been
26+ expressly designed anywhere else . Fitting may only be
2727performed at selected time points, not throughout a time window. First,
2828you must specify the DIPFIT settings on the selected dataset. Then, to fit a
2929time point at 100 ms in an average ERP waveform (for example) from the
@@ -67,7 +67,7 @@ Its graphical output is the same as the script shown in the next section.
6767Advanced source reconstruction using DIPFIT/Fieldtrip
6868--------
6969
70- DIPFIT relies on Fieldtrip, though in fact, DIPFIT was also an ancestor
70+ Background: DIPFIT relies on Fieldtrip, though in fact, DIPFIT was also an ancestor
7171of Fieldtrip: when Robert Oostenveld, the first Fieldtrip developer,
7272decided to release source imaging functions he had developed during his
7373dissertation work, he first packaged them in EEGLAB as DIPFIT. A few
@@ -78,7 +78,7 @@ maintained for use in Fieldtrip. Below is a short tutorial on how to
7878perform source modeling using Fieldtrip applied to data in an EEGLAB
7979dataset.
8080
81- First, use DIPFIT to align the electrode
81+ Implementation: First, use DIPFIT to align the electrode
8282locations with a head model of choice (menu item <span style =" color : brown " >Tools → Locate
8383dipoles using DIPFIT → Head model and settings</span >). The resulting DIPFIT
8484information may then be used to perform source localization in
@@ -110,6 +110,7 @@ Then calculate a volumetric leadfield matrix using Fieldtrip function
110110* ft_prepare_leadfield* . Note that the head model is also used to
111111assess whether a given voxel is within or outside the brain.
112112
113+
113114``` matlab
114115%% Leadfield Matrix calculation
115116dataPre = eeglab2fieldtrip(EEG, 'preprocessing', 'dipfit'); % convert the EEG data structure to fieldtrip
@@ -308,6 +309,7 @@ Relevant Fieldtrip tutorials
308309- [ Minimum norm
309310 estimates] ( http://www.fieldtriptoolbox.org/tutorial/minimumnormestimate/ )
310311 for MEG, but can be adapted for EEG
312+ - [ Previous tutorial version of DIPFIT] ( https://sccn.ucsd.edu/eeglab/dipfittut/dipfit.htmlold )
311313
312314This section was written by Arnaud Delorme with contributions and
313315feedback from Robert Oostenveld and Scott Makeig.
0 commit comments