cubids.validator.build_subject_paths

build_subject_paths(bids_dir)[source]

Build a dictionary of BIDS directories with one subject each.

Parameters:

bids_dir (str) – The root directory of the BIDS dataset.

Returns:

A dictionary where the keys are subject labels and the values are lists of file paths associated with each subject.

Return type:

dict

Raises:

ValueError – If no subjects are found in the specified directory.