Analysis functions for fMRI data