brain_deer.infrastructure.bids.layout

Index a BIDS dataset on disk (pybids when available, lightweight fallback otherwise).

Classes

BIDSDataset

Indexed BIDS dataset (files are not loaded into memory).

Functions

open_dataset(→ BIDSDataset)

Open and index a BIDS dataset directory.

validate_dataset(→ tuple[bool, list[str], list[str]])

Lightweight validation without external tools.

Module Contents

class brain_deer.infrastructure.bids.layout.BIDSDataset

Indexed BIDS dataset (files are not loaded into memory).

events_for_bold(bold_item: brain_deer.infrastructure.bids.entities.BIDSItem) → pathlib.Path | None

Best-effort *_events.tsv for a bold file.

brain_deer.infrastructure.bids.layout.open_dataset(root: str | pathlib.Path) → BIDSDataset

Open and index a BIDS dataset directory.

brain_deer.infrastructure.bids.layout.validate_dataset(dataset: BIDSDataset) → tuple[bool, list[str], list[str]]

Lightweight validation without external tools.