bids_util¶
Functions
|
|
|
|
|
|
|
Group files by suffix. |
|
|
|
Split a filename into BIDS-relevant components. |
|
Update the dictionary with a new entity. |
|
- group_by_suffix(file_list)[source]¶
Group files by suffix.
- Parameters:
file_list (list) – List of file paths.
- Returns:
Dictionary with suffixes as keys and file lists as values.
- Return type:
dict
- parse_bids_filename(file_path)[source]¶
Split a filename into BIDS-relevant components.
- Parameters:
file_path (str) – Path to be parsed.
- Returns:
Dictionary with keys ‘basename’, ‘suffix’, ‘prefix’, ‘ext’, ‘bad’, and ‘entities’.
- Return type:
dict
Notes
Splits into BIDS suffix, extension, and a dictionary of entity name-value pairs.