ffrprep.datasets.download_stimuli¶
- ffrprep.datasets.download_stimuli(dataset_path=None)[source]¶
Download FFR stimulus files into a BIDS-compliant
stimuli/directory.Stimulus files are referenced by the
stim_filecolumn of each BIDSevents.tsvand consumed by stimulus-aware analyses (e.g.ffrprep.analysis.corr_stim_to_resp()). They are shared across subjects, so they land at<dataset>/ffrprep_raw_data/stimuli/per the BIDS specification. After downloading, everysub-*/eeg/*_events.tsvis augmented with astim_filecolumn based onSTIM_FILE_MAPso the downstream analysis has the linkage to operate on.- Parameters:
dataset_path (string, optional) – Path where the files will be saved. If None, the files will be saved in the current working directory.
- Returns:
stim_dir – Path to the
stimuli/directory under the dataset root.- Return type:
Path