eelbrain.set_parc(ndvar, parc, dim='source')

Change the parcellation of an NDVar with SourceSpace dimension

ndvar : NDVar

NDVar with SourceSpace dimension.

parc : None | str | Factor

Parcellation to identify source space vertex locations. Can be specified as Factor assigning a label to each source, or a string specifying a FreeSurfer parcellation (stored as *.annot files with the MRI).

dim : str

Name of the dimension to operate on (usually ‘source’, the default).

out_ndvar : NDVar

Shallow copy of ndvar with the source space parcellation set to parc.