visbrain.objects.BrainObj.parcellize¶
-
BrainObj.
parcellize
(self, file, select=None, hemisphere=None, data=None, cmap='viridis', clim=None, vmin=None, under='gray', vmax=None, over='red')[source][source]¶ Parcellize the brain surface using a .annot file.
This method require the nibabel package to be installed.
- Parameters
- filestring
Path to the .annot file.
- selectarray_like | None
Select the structures to display. Use either a list a index or a list of structure’s names. If None, all structures are displayed.
- hemispherestring | None
The hemisphere for the parcellation. If None, the hemisphere will be inferred from file name.
- dataarray_like | None
Use data to be transformed into color for each parcellate.
- cmapstring | ‘viridis’
The colormap to use.
- climtuple | None
The colorbar limits. If None, (data.min(), data.max()) will be used instead.
- vminfloat | None
Minimum threshold.
- vmaxfloat | None
Maximum threshold.
- understring/tuple/array_like | ‘gray’
The color to use for values under vmin.
- overstring/tuple/array_like | ‘red’
The color to use for values over vmax.