eelbrain.set_parc(data, parc, dim='source', mask=False, name=None)

Change the parcellation of an NDVar or SourceSpace dimension

  • data (NDVar | SourceSpace) – NDVar or SourceSpace for which to set the parcellation.

  • parc (str | Factor) – New parcellation. Can be specified as Factor assigning a label to each source vertex, or a string specifying a FreeSurfer parcellation (stored as *.annot files in the subject’s label directory).

  • dim (str) – Name of the dimension to operate on (usually 'source', the default).

  • mask (bool) – Remove unknown-* vertices.

  • name (str) – Name for the new NDVar.


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

Return type: