pnpl.datasets.mixins.BIDSMixin

pnpl.datasets.mixins.BIDSMixin#

class pnpl.datasets.mixins.BIDSMixin[source]#

Mixin for loading raw BIDS MEG data.

Classes using this mixin should have: - data_path: str - Base data directory (BIDS root)

__init__()#

Methods

__init__()

get_bids_raw_path(subject, session, task, run)

Construct path to raw BIDS MEG file.

get_calibration_files()

Get paths to Maxwell filter calibration files.

get_derivatives_path(subject, session[, ...])

Construct path to derivatives directory.

get_headpos_path(subject, session, task, run)

Construct path to cached head position file.

get_preprocessed_path(subject, session, ...)

Construct path to preprocessed file in derivatives.

load_head_positions(subject, session, task, run)

Load cached head positions from CSV file.

load_preprocessed_bids(subject, session, ...)

Load a preprocessed FIF file from the derivatives directory.

load_raw_bids(subject, session, task, run[, ...])

Load raw MEG data from BIDS structure.

raw_bids_exists(subject, session, task, run)

Check if raw BIDS data exists for given identifiers.