gastropy.load_fmri_egg

Contents

gastropy.load_fmri_egg#

gastropy.load_fmri_egg(session='0001')[source]#

Load a sample fMRI-EGG recording.

Returns an 8-channel EGG recording collected during fMRI, downsampled to 10 Hz, with scanner trigger onset times.

Parameters:

session (str) – Session identifier. Available: "0001", "0003", "0004", "0008" (from the semi_precision study).

Returns:

Dictionary with keys:

  • signal : ndarray, shape (8, n_samples) — EGG data in Volts

  • sfreq : float — sampling rate (10.0 Hz)

  • ch_names : ndarray of str — channel labels

  • trigger_times : ndarray — R128 scanner trigger onsets (seconds)

  • tr : float — fMRI repetition time (1.856 s)

  • duration_s : float — recording duration in seconds

  • source : str — data source identifier

  • session : str — session identifier

Return type:

dict

Examples

>>> import gastropy as gp
>>> data = gp.load_fmri_egg()
>>> data["signal"].shape
(8, 7795)
>>> data["sfreq"]
10.0