pycrostates.datasets.lemon.data_path#

pycrostates.datasets.lemon.data_path(subject_id, condition)[source]#

Get path to a local copy of preprocessed EEG recording from the LEMON dataset.

Get path to a local copy of preprocessed EEG recording from the mind-brain-body dataset of MRI, EEG, cognition, emotion, and peripheral physiology in young and old adults[1]. If there is no local copy of the recording, this function will fetch it from the online repository and store it. The default location is ~/pycrostates_data.

Parameters:
subject_idstr

The subject id to use. For example '010276'. The list of available subjects can be found on this FTP server.

conditionstr

Can be 'EO' for eyes open condition or 'EC' for eyes closed condition.

Returns:
pathPath

Path to a local copy of the requested recording.

Notes

The lemon datasets is composed of EEGLAB files. To use the MNE reader mne.io.read_raw_eeglab(), the pymatreader optional dependency is required. Use the following installation method appropriate for your environment:

  • pip install pymatreader

  • conda install -c conda-forge pymatreader

Note that an environment created via the MNE installers includes pymatreader by default.

References

Examples using pycrostates.datasets.lemon.data_path#

The ModKMeans object

The ModKMeans object

Subject level analysis with resampling

Subject level analysis with resampling

Group-level analysis from individual clusters

Group-level analysis from individual clusters

Group level analysis from individual GFP peaks

Group level analysis from individual GFP peaks

Evaluating clustering fits

Evaluating clustering fits

Global Field Power peaks

Global Field Power peaks

Resampling

Resampling

Spatial Filter

Spatial Filter

Microstate Segmentation

Microstate Segmentation

Entropy and related measures

Entropy and related measures