bids_atlas.utils.generate_json_sidecar_file

bids_atlas.utils.generate_json_sidecar_file(atlas_name, filename, version=None)[source]

Create .json file for the obtained atlas.

Parameters:
  • atlas_name (str) – The name of the atlas.

  • filename (str) – The file naming pattern of the atlas.

  • version (str) – The version of the atlas.

Return type:

Generated atlas.json file in the specified directory.

Examples

Create dataset_description.json for the AAL atlas.

>>>generate_json_sidecar_file(‘AAL’, ‘/home/user/bids_atlas_datasets/AAL/atlas-AAL_res-2_dseg.nii.gz’)