diff --git a/src/fmripost_aroma/workflows/base.py b/src/fmripost_aroma/workflows/base.py index ae44247..c9ca0eb 100644 --- a/src/fmripost_aroma/workflows/base.py +++ b/src/fmripost_aroma/workflows/base.py @@ -207,6 +207,15 @@ def init_single_subject_wf(subject_id: str): # Patch standard-space BOLD files into 'bold' key subject_data['bold'] = listify(subject_data['bold_mni152nlin6asym']) + if not subject_data['bold_mni152nlin6asym']: + task_id = config.execution.task_id + raise RuntimeError( + f"No MNI152NLin6Asym:res-2 BOLD images found for participant {subject_id} and " + f"task {task_id if task_id else ''}. " + "All workflows require MNI152NLin6Asym:res-2 BOLD images. " + f"Please check your BIDS filters: {config.execution.bids_filters}." + ) + # Make sure we always go through these two checks if not subject_data['bold']: task_id = config.execution.task_id