cubids.metadata_merge.group_by_acquisition_sets

group_by_acquisition_sets(files_tsv, output_prefix, acq_group_level)[source]

Find unique sets of Key/Param groups across subjects.

This writes out the following files: - <output_prefix>_AcqGrouping.tsv: A tsv with the mapping of subject/session to

acquisition group.

  • <output_prefix>_AcqGrouping.json: A data dictionary for the AcqGrouping.tsv.

  • <output_prefix>_AcqGroupInfo.txt: A text file with the summary of acquisition.

  • <output_prefix>_AcqGroupInfo.json: A data dictionary for the AcqGroupInfo.txt.

Parameters:
  • files_tsv (str) – Path to the files tsv.

  • output_prefix (str) – Prefix for output files.

  • acq_group_level ({"subject", "session"}) – Level at which to group acquisitions.