get_data

get_data(task: str, root: str | PathLike, prefix: str = 'BIDS-\\d\\.\\d_') BIDSLayout[source][source]

Gets the data for a subject and task.

Parameters:
  • task (str) – The task to get the data for, by default “SentenceRep”

  • root (PathLike) – The path to the lab directory, by default LAB_root

  • prefix (str, optional) – The prefix of the BIDS directory, by default ‘BIDS’

Returns:

layout – The BIDSLayout for the subject.

Return type:

BIDSLayout

Examples

>>> import mne
>>> bids_root = mne.datasets.epilepsy_ecog.data_path(verbose=False)
>>> parent = op.dirname(bids_root)
>>> get_data('epilepsy-ecog-data', parent, "MNE-")
BIDS Layout: ... | Subjects: 1 | Sessions: 1 | Runs: 0

Examples using ieeg.io.get_data

Load IEEG Data Example

Load IEEG Data Example