brain_deer.infrastructure.bids.tractometry

Precomputed per-streamline statistics (SBA-style TSV/NPY in derivatives).

Functions

find_tractometry_file(→ Optional[pathlib.Path])

Locate a *_tractometry.tsv / *_stats.tsv / *_stats.npy for a tract.

load_tractometry_scalars(→ Optional[list[numpy.ndarray]])

Load per-streamline scalars and expand to per-point arrays.

Module Contents

brain_deer.infrastructure.bids.tractometry.find_tractometry_file(dataset: brain_deer.infrastructure.bids.layout.BIDSDataset, tract_item: brain_deer.infrastructure.bids.entities.BIDSItem) → pathlib.Path | None

Locate a *_tractometry.tsv / *_stats.tsv / *_stats.npy for a tract.

brain_deer.infrastructure.bids.tractometry.load_tractometry_scalars(path: pathlib.Path, streamlines: Sequence[numpy.ndarray]) → list[numpy.ndarray] | None

Load per-streamline scalars and expand to per-point arrays.