Skip to content

Commit 36e4850

Browse files
authored
Update EEG_sources.md
DIPFIT plugin hyperlinked, Heading edited from EEG to EEG or ERP, added fieldtrip-lite plugin installation requirement, added "Background" and "Implementation", tutorial appendix added in the the relevant section
1 parent 21e8439 commit 36e4850

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

tutorials/09_source/EEG_sources.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ long_title: c. EEG source model
55
parent: 9. Source analysis
66
grand_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
2121
Using 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
2727
performed at selected time points, not throughout a time window. First,
2828
you must specify the DIPFIT settings on the selected dataset. Then, to fit a
2929
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.
6767
Advanced 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
7171
of Fieldtrip: when Robert Oostenveld, the first Fieldtrip developer,
7272
decided to release source imaging functions he had developed during his
7373
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
7878
perform source modeling using Fieldtrip applied to data in an EEGLAB
7979
dataset.
8080

81-
First, use DIPFIT to align the electrode
81+
Implementation: First, use DIPFIT to align the electrode
8282
locations with a head model of choice (menu item <span style="color: brown">Tools → Locate
8383
dipoles using DIPFIT → Head model and settings</span>). The resulting DIPFIT
8484
information may then be used to perform source localization in
@@ -108,7 +108,8 @@ EEG = pop_dipfit_settings( EEG, 'hdmfile',fullfile(bemPath, 'standard_vol.mat'),
108108

109109
Then calculate a volumetric leadfield matrix using Fieldtrip function
110110
*ft_prepare_leadfield*. Note that the head model is also used to
111-
assess whether a given voxel is within or outside the brain.
111+
assess whether a given voxel is within or outside the brain. (Note: Please ensure that the Fieldtrip-lite plugin is installed. If not, please go to File → Manage EEGLAB extensions to install the Fieldtrip-lite plugin in EEGLAB.)
112+
112113

113114
``` matlab
114115
%% Leadfield Matrix calculation
@@ -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

312314
This section was written by Arnaud Delorme with contributions and
313315
feedback from Robert Oostenveld and Scott Makeig.

0 commit comments

Comments
 (0)