xcp_d.utils.bids.collect_run_data
- xcp_d.utils.bids.collect_run_data(layout, bold_file, cifti, target_space)[source]
Collect data associated with a given BOLD file.
- Parameters:
layout (
bids.layout.BIDSLayout) – BIDSLayout indexing the ingested (e.g., fMRIPrep-format) derivatives.bold_file (
str) – Path to the BOLD file.cifti (
bool) – Post-process surface data (CIFTIs) instead of volumetric data (NIFTIs). This parameter is overridden when DCAN- or HCP-format data are provided. Default is False. Whether to collect files associated with a CIFTI image (True) or a NIFTI (False).target_space – Used to find NIfTIs in the appropriate space if
ciftiisTrue.
- Returns:
run_data – A dictionary of file types (e.g., “confounds”) and associated filenames.
- Return type: