Hi everyone,
I am currently running a first-level GLM analysis of task-based fMRI data. The data were preprocessed with fMRIPrep, where I flagged three dummy scans. When building the first-level GLM in Nilearn, I load the confounds using load_confounds(), and I pass the resulting sample_mask to first_level_model.fit().
I am unsure how the events should be aligned in this case. Specifically, should the event onsets be aligned
(1) with the start of the actual task (i.e., after the dummy scans), or
(2) with the start of the acquisition including the dummy scans (similar to how the confounds are indexed)?
Here is my code:
confounds_simple, sample_mask = load_confounds(
fmri_img,
strategy=["motion"],
motion="basic",
)
first_level_model = FirstLevelModel(t_r=tr,
smoothing_fwhm=6.0,
mask_img=mask,
)
first_level_model = first_level_model.fit(fmri_img,
events=events,
confounds=confounds_simple,
sample_masks=sample_mask,
)
I would appreciate any clarification on the correct alignment strategy.
Best regards,
Annkathrin