cortex.freesurfer.import_flat

cortex.freesurfer.import_flat(fs_subject, patch, hemis=['lh', 'rh'], cx_subject=None, flat_type='freesurfer', auto_overwrite=False, freesurfer_subject_dir=None, clean=True)[source]

Imports a flat brain from freesurfer

NOTE: This will delete the overlays.svg file for this subject, since THE FLATMAPS WILL CHANGE, as well as all cached information (e.g. old flatmap boundaries, roi svg intermediate renders, etc).

Parameters
fs_subjectstr

Freesurfer subject name

patchstr

Name of flat.patch.3d file; e.g., “flattenv01”

hemislist

List of hemispheres to import. Defaults to both hemispheres.

cx_subjectstr

Pycortex subject name

freesurfer_subject_dirstr

directory for freesurfer subjects. None defaults to evironment variable $SUBJECTS_DIR

cleanbool

If True, the flat surface is cleaned to remove the disconnected polys.