eelbrain.set_parc
- eelbrain.set_parc(data, parc, dim='source', mask=False, name=None)
Change the parcellation of an
NDVar
orSourceSpace
dimension- Parameters
data (Union[NDVar, SourceSpace]) –
NDVar
orSourceSpace
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’slabel
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.
- Returns
Shallow copy of
data
with the source space parcellation set toparc
.- Return type
data_with_parc