datahipy.bids.participant module

Utility functions to retrieve participant-level information from a BIDS dataset.

datahipy.bids.participant.get_participants_info(bids_dir)[source]

Update the input dataset_desc dictionary with information from the participants.tsv file.

Parameters

dataset_descdict

Input dictionary with the dataset content to be indexed.

bids_dirstr

Path to the BIDS dataset.

Returns

dataset_descdict

Updated dictionary with the dataset content to be indexed.

datahipy.bids.participant.get_subject_bidsfile_info(bids_dir, **kwargs)[source]

Return a list of dictionaries with BIDS file information for a given subject.

Parameters

bids_dirstr

Path to the BIDS dataset.

kwargsdict

Dictionary of arguments key/value to pass to the pybids BIDSLayout.get() function.

Returns

subject_infolist

List of dictionaries with BIDS file information for a given subject.