eelbrain.set_parc
- eelbrain.set_parc(data, parc, dim='source', mask=False, name=None)
Change the parcellation of an
NDVarorSourceSpacedimension- Parameters:
data (NDVar | SourceSpace) –
NDVarorSourceSpacefor which to set the parcellation.parc (str | Factor) – New parcellation. Can be specified as
Factorassigning a label to each source vertex, or a string specifying a FreeSurfer parcellation (stored as*.annotfiles in the subject’slabeldirectory).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
datawith the source space parcellation set toparc.- Return type:
data_with_parc