write_labels_to_annot(labels, subject=None, parc=None, overwrite=False, subjects_dir=None, annot_fname=None, colormap='hsv', hemi='both', verbose=None)¶
Create a FreeSurfer annotation from a list of labels.
listwith instances of
The labels to create a parcellation from.
The subject for which to write the parcellation.
The parcellation name to use.
Overwrite files if they already exist.
The path to the freesurfer subjects reconstructions. It corresponds to Freesurfer environment variable SUBJECTS_DIR.
Filename of the .annot file. If not None, only this file is written and ‘parc’ and ‘subject’ are ignored.
Colormap to use to generate label colors for labels that do not have a color specified.
- hemi‘both’ | ‘lh’ | ‘rh’
The hemisphere(s) for which to write *.annot files (only applies if annot_fname is not specified; default is ‘both’).
Vertices that are not covered by any of the labels are assigned to a label named “unknown”.