osl_ephys.source_recon.freesurfer_utils#
Wrappers for Freesurfer.
Functions#
|
Setup FreeSurfer. |
Check FreeSurfer is installed. |
|
|
Get paths to all FreeSurfer files. |
|
Files used in coregistration by FreeSurfer. |
|
|
|
Wrapper for |
|
Module Contents#
- osl_ephys.source_recon.freesurfer_utils.setup_freesurfer(directory, subjects_dir=None)[source]#
Setup FreeSurfer.
- Parameters:
directory (str) – Path to FreeSurfer installation.
- osl_ephys.source_recon.freesurfer_utils.get_freesurfer_filenames(subjects_dir, subject)[source]#
Get paths to all FreeSurfer files.
Files will be in subjects_dir/subject/.
- Parameters:
subjects_dir (string) – Directory containing the subject directories.
subject (string) – Subject directory name to put the coregistration files in.
- Returns:
files – A dict of files generated and used by RHINO. Contains three keys: - ‘surf’: containing surface extraction file paths. - ‘coreg’: containing coregistration file paths. - ‘fwd_model’: containing the forward model file path.
- Return type:
dict
- osl_ephys.source_recon.freesurfer_utils.get_coreg_filenames(subjects_dir, subject)[source]#
Files used in coregistration by FreeSurfer.
Files will be in subjects_dir/subject/.
- Parameters:
subjects_dir (string) – Directory containing the subject directories.
subject (string) – Subject directory name to put the coregistration files in.
- Returns:
filenames – A dict of files generated and used by FreeSurfer.
- Return type:
dict
- osl_ephys.source_recon.freesurfer_utils.make_watershed_bem(outdir, subject, **kwargs)[source]#
Wrapper for
mne.bem.make_watershed_bemmaking a watershed BEM with FreeSurfer.