FastICA

This function runs FastICA using some common settings applied for TMS-EEG data analysis. See the publications listed below for further details. tesa_fastica uses EEGLAB pop_runica function. A stabilization option is also included which can help if data are not converging.

Note that this script requires that the FastICA algorithm is included in the Matlab path. The package can be downloaded from: http://research.ics.aalto.fi/ica/fastica/code/dlcode.shtml

After running FastICA, this function also ranks and sorts the components by percentage variance explained by each time course.

After running this function, independent components representing artifacts can be automatically detected using the automatic component selection function.

EEGLAB user interface

1. Select the approach for FastICA from the drop down menu. The symmetric approach is more stable and is therefore recommended.

2. Select the contrast function (g) from the drop down menu.

3. Turn on or off the stabilization version of the FastICA algorithm. This can help if FastICA is not converging. See the FastICA help for further information.

Scripts

Base function

EEG = tesa_fastica( EEG ); Default use

EEG = tesa_fastica( EEG, 'key1',value1... ); Custom input

Pop function

EEG = pop_tesa_fastica( EEG ); Pop up window

EEG = pop_tesa_fastica( EEG, 'key1',value1... ); Custom input

Required inputs

Optional inputs (key/value pairs)

Outputs

Examples

EEG = pop_tesa_fastica( EEG ); Default use

EEG = pop_tesa_fastica( EEG, 'g', 'gauss', 'stabilization', 'on' ); Uses the gauss contrast function and turns on the stabilized FastICA version to aid with convergence.

Last updated