@@ -5,7 +5,7 @@ long_title: c. EEG source model
5
5
parent : 9. Source analysis
6
6
grand_parent : Tutorials
7
7
---
8
- Equivalent dipole source localization of EEG data
8
+ Equivalent dipole source localization of EEG or ERP data
9
9
========================================
10
10
{: .no_toc }
11
11
@@ -21,9 +21,9 @@ Equivalent dipole source localization of EEG data
21
21
Using DIPFIT to fit one dipole to EEG or ERP scalp maps
22
22
--------
23
23
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
27
27
performed at selected time points, not throughout a time window. First,
28
28
you must specify the DIPFIT settings on the selected dataset. Then, to fit a
29
29
time 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.
67
67
Advanced source reconstruction using DIPFIT/Fieldtrip
68
68
--------
69
69
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
71
71
of Fieldtrip: when Robert Oostenveld, the first Fieldtrip developer,
72
72
decided to release source imaging functions he had developed during his
73
73
dissertation 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
78
78
perform source modeling using Fieldtrip applied to data in an EEGLAB
79
79
dataset.
80
80
81
- First, use DIPFIT to align the electrode
81
+ Implementation: First, use DIPFIT to align the electrode
82
82
locations with a head model of choice (menu item <span style =" color : brown " >Tools → Locate
83
83
dipoles using DIPFIT → Head model and settings</span >). The resulting DIPFIT
84
84
information may then be used to perform source localization in
@@ -110,6 +110,7 @@ Then calculate a volumetric leadfield matrix using Fieldtrip function
110
110
* ft_prepare_leadfield* . Note that the head model is also used to
111
111
assess whether a given voxel is within or outside the brain.
112
112
113
+
113
114
``` matlab
114
115
%% Leadfield Matrix calculation
115
116
dataPre = eeglab2fieldtrip(EEG, 'preprocessing', 'dipfit'); % convert the EEG data structure to fieldtrip
@@ -308,6 +309,7 @@ Relevant Fieldtrip tutorials
308
309
- [ Minimum norm
309
310
estimates] ( http://www.fieldtriptoolbox.org/tutorial/minimumnormestimate/ )
310
311
for MEG, but can be adapted for EEG
312
+ - [ Previous tutorial version of DIPFIT] ( https://sccn.ucsd.edu/eeglab/dipfittut/dipfit.htmlold )
311
313
312
314
This section was written by Arnaud Delorme with contributions and
313
315
feedback from Robert Oostenveld and Scott Makeig.
0 commit comments