Beispiel #1
0
def bids_autograb(bids_dir):
    bids_dir = path.abspath(path.expanduser(bids_dir))
    layout = BIDSLayout(bids_dir, validate=False)
    df = layout.to_df()

    # Unclear in current BIDS specification, we refer to BOLD/CBV as modalities and func/anat as types
    df = df.rename(columns={'datatype': 'type', 'suffix': 'modality'})
    return df