eelbrain.set_parc

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

Change the parcellation of an NDVar or SourceSpace dimension

Parameters
  • data (Union[NDVar, SourceSpace]) – NDVar or SourceSpace for which to set the parcellation.

  • parc (Union[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 (Optional[str]) – Name for the new NDVar.

Returns

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

Return type

data_with_parc