cortex.utils.get_roi_verts

cortex.utils.get_roi_verts(subject, roi=None, mask=False, overlay_file=None)[source]

Return vertices for the given ROIs, or all ROIs if none are given.

Parameters
subjectstr

Name of the subject

roistr, list or None, optional

ROIs to fetch. Can be ROI name (string), a list of ROI names, or None, in which case all ROIs will be fetched.

maskbool

if True, return a logical mask across vertices for the roi if False, return a list of indices for the ROI

Returns
roidictdict

Dictionary of {roi name : roi verts}. ROI verts are for both hemispheres, with right hemisphere vertex numbers sequential after left hemisphere vertex numbers.