EEGLab

Overview

EEGLAB is an interactive Matlab toolbox for processing continuous and event-related EEG, MEG and other electrophysiological data incorporating independent component analysis (ICA), time/frequency analysis, artifact rejection, event-related statistics, and several useful modes of visualization of the averaged and single-trial data.

We have NOT centrally installed EEGLab. Instead, we provide instructions on how you can download it and install in your iCSF home directory (it isn’t a huge download.) This is due to the twice-yearly updates provided by EEGLab. It will be easier for you to keep your own version up-to-date.

Restrictions on use

This software is open source and may be used by all CSF users.

Set up procedure

You should do the following steps to download and install EEGLab in your home directory (or other RDS area if you prefer.) We do NOT recommend installing EEGLab in your scratch area.

Install Instructions

Please do the following on the iCSF node you’ve logged in to (you only need to do this setup once):

# You can change this path but we recommend keeping your apps in a directory
# to keep your iCSF home directory tidy:
mkdir -p ~/software/
cd ~/software
# Download and unpack
module load tools/env/proxy
wget https://sccn.ucsd.edu/eeglab/currentversion/eeglab_current.zip
unzip eeglab_current.zip
ls
# At the time of writing this shows a new dir named:
eeglab2023.0

# Now configure matlab
module load apps/binapps/matlab/2021a
export MATLABPATH=~/software/eeglab2023.0      # Use your path if different
matlab
  #
  # Now in the matlab GUI:
  Press the "Preferences" button in the ribbon at the top
  Select "Web" from the list on the left side of the pop-up
  Tick the "Use a proxy server to connect to the internet" option
  Proxy host: proxy.man.ac.uk
  Proxy port: 3128
  Hit "OK"

# Now run eeglab by typing the following at the matlab prompt:
eeglab
  #
  # A new window should pop-up - this is EEGLab - use the menus in that window.

EEGLab is now installed. Read on for what to do each time you want to use it.

Create your own modulefile

To make starting EEGLab easier each time you use it, you can create your own modulefile as follows. Run the following commands on the iCSF login node (on any node), not at the matlab prompt!

# Create a directory for the modulefile. The ~/privatemodules/ name is required (don't change that part.)
mkdir -p ~/privatemodules/eeglab

# Now create a file named after the EEGLab version containing the 3 lines show in bold.
# You can use gedit to do this:
gedit ~/privatemodules/eeglab/2023.0
#%Module1.0
module load apps/binapps/matlab/R2021a
prepend-path MATLABPATH $env(HOME)/software/eeglab2023.0

# Or instead of using gedit, cut-n-past the following 5 lines in to your shell window exactly as shown:
cat > 2023.0 <<'EOF'
#%Module1.0
module load apps/binapps/matlab/R2021a
prepend-path MATLABPATH $env(HOME)/software/eeglab2023.0
EOF

# Note: If you make a mistake, edit the file again with gedit:
# gedit ~/privatemodules/eeglab/2023.0

You now have a modulefile you can use every time you want to run EEGLab.

Running the application

If you created your own modulefile (see above) you can do:

# We need to load the special 'use.own' modulefile first
module load use.own  eeglab/2023.0
matlab
>> eeglab

If you didn’t create your own modulefile, do:

module load apps/binapps/matlab/R2021a
export MATLABPATH=~/software/eeglab2023.0
matlab
>> eeglab

Further info

Updates

None.

Last modified on June 12, 2023 at 9:11 am by George Leaver