cubids.workflows.add_file_collections

add_file_collections(bids_dir, use_datalad, force_unlock, n_cpus=1)[source]

Add file collection metadata to the sidecars of each NIfTI file in the BIDS dataset.

Parameters:
  • bids_dir (pathlib.Path) – Path to the BIDS directory.

  • use_datalad (bool) – Use datalad to track changes.

  • force_unlock (bool) – Force unlock the dataset.