Menu

Package that provides tools for brain MRI Deep Learning pre-processing.

Note

This page is a reference documentation. It only explains the function signature, and not how to use it. Please refer to the gallery for the big picture.

brainprep.utils.get_bids_keys(filename)[source]

Extract BIDS ‘participant_id’, ‘session’ and ‘run’ keys from a filename.

Parameters:

filename : str

a bids path.

Returns:

keys : dict

the retrieved BIDS keys/values, no key if no match. Add the file name in ‘ni_path’.

Follow us

© 2025, brainprep developers