create_participant_tsv

bidsaid.files.create_participant_tsv(bids_dir, save_df=False, return_df=True)[source]

Creates a basic dataframe for the “participants.tsv” file.

Parameters

bids_dirstr or Path

The root of BIDS compliant directory.

save_dfbool, bool=False

Save the dataframe to the root of the BIDS compliant directory.

return_dfstr, default=True

Returns dataframe if True else return None.

Returns

pandas.DataFrame or None

The dataframe if return_df is True.