This is a piece of code I came across for producing a functional label with using time course estimates from MEG/EEG data, for freesurfer use. I am wondering if something similar is available to estimate a functional label/region from fMRI data with similar
tresholding.