eelbrain.gui.select_components

eelbrain.gui.select_components(path, data, sysname=None, connectivity=None, decim=None)

GUI for selecting ICA-components

Parameters
  • path (Union[Path, str]) – Path to the ICA file.

  • data (Union[Dataset, BaseRaw]) – Data to use for displying component time course during source selection. Can be specified as mne.io.Raw object with continuous data, or as Dataset with epoched data (data['epochs'] should contain an mne.Epochs object). Optionally, data['index'] can provide labels to display for epochs (the default is range(n_epochs)). Further Factor can be used to plot condition averages.

  • sysname (Optional[str]) – Optional, to define sensor connectivity.

  • connectivity (Union[str, Sequence, None]) – Optional, to define sensor connectivity (see eelbrain.load.fiff.sensor_dim()).

  • decim (Optional[int]) – Decimate the data for display (only applies when data is a Raw object; default is to spproximate 100 Hz samplingrate).

Notes

The ICA object does not need to be computed on the same data that is in ds. For example, the ICA can be computed on a raw file but component selection done using the epochs that will be analyzed.

Note

If the terminal becomes unresponsive after closing the GUI, try disabling prompt_toolkit with configure(): eelbrain.configure(prompt_toolkit=False).