Crate modewise_dataset

Crate modewise_dataset 

Source
Expand description

Finds recordings on disk by file patterns and loads them as pipeline inputs.

Patterns use {entity} placeholders, for example sub-{subject}/func/sub-{subject}_task-{task}_run-{run}_bold.h5, so BIDS and BIDS-like layouts of any modality are described the same way.

Structs§

ChannelsSpec
Channel tables, read once and offered to pipelines as one more input.
Dataset
A dataset spec with its recordings discovered.
DatasetSpec
Where a dataset lives and how to find and read its recordings.
InputSpec
ParticipantTable
ParticipantsSpec
Tables with one row per subject, joined on the subject entity.
Pattern
A relative path with {entity} placeholders.
Recording
One matched set of entity values, with the file for each input.
TableSpec

Enums§

DatasetError
Format
LayoutName
TableFormat

Functions§

read_events_tsv
read_participants
read_table
schaefer_channel
<k>Networks_<LH|RH>_<network>[_<region>…][_<n>], as in the Schaefer and Yan parcellations. Returns None for text that is not such a label.
tian_channel
<region>-<lh|rh>, as in the Tian subcortex atlas; without a hemisphere suffix the whole label is the region.