meegpype.interfaces.mne.bem moduleπ
- class meegpype.interfaces.mne.bem.MakeWatershedBEM(from_file=None, resource_monitor=None, ignore_exception=False, **inputs)π
Bases:
BaseInterface- Mandatory Inputs:
subject (a string) β Subject name (required).
subjects_dir (a pathlike object or string representing an existing directory) β Subjects directory.
- Optional Inputs:
T1 (a boolean) β If True, pass the -T1 flag. By default (None), this takes the same value as gcaatlas.
atlas (a boolean) β Specify the βatlas option for mri_watershed.
brainmask (a string or os.PathLike object) β The filename for the brainmask output file, Can be for example β../../mri/brainmask.mgzβ to overwrite the brainmask obtained via recon-all -autorecon1.
copy (a boolean) β If True (default), use copies instead of symlinks for surfaces (if they do not already exist).
gcaatlas (a boolean) β Specify the βbrain_atlas option for mri_watershed.
overwrite (a boolean) β Overwrite existing files.
preflood (a float) β Change the preflood height.
verbose (a boolean) β Enable verbose mode (printing of log messages).
volume (a string) β Defaults to T1.
- Outputs:
brain_surf (a string or os.PathLike object referring to an existing file)
head (a string or os.PathLike object referring to an existing file)
inner_skull (a string or os.PathLike object referring to an existing file)
outer_skin (a string or os.PathLike object referring to an existing file)
outer_skull (a string or os.PathLike object referring to an existing file)
subject (a string) β Subject name.
subjects_dir (a pathlike object or string representing a directory) β Subjects directory.
watershed_brain_surf (a string or os.PathLike object referring to an existing file) β Original watershed brain surface.
watershed_inner_skull (a string or os.PathLike object referring to an existing file) β Original watershed inner skull surface.
watershed_outer_skin (a string or os.PathLike object referring to an existing file) β Original watershed outer skin surface.
watershed_outer_skull (a string or os.PathLike object referring to an existing file) β Original watershed outer skull surface.
- class meegpype.interfaces.mne.bem.SetupForwardModel(from_file=None, resource_monitor=None, ignore_exception=False, **inputs)π
Bases:
BaseInterface- Mandatory Inputs:
fname (a string or os.PathLike object) β Output base name. Will be prepend by -bem.fif and -sol.fif.
inner_skull (a pathlike object or string representing an existing file) β Inner skull surface (FreeSurfer format).
subject (a string) β Subject name (required).
- Optional Inputs:
conductivity (an array) β Defines the brain compartment conductivity. The default value is 0.3 S/m.
ico (an integer) β The surface ico downsampling to use, e.g. 5=20484, 4=5120, 3=1280. If None, no subsampling is applied.
outer_skin (a pathlike object or string representing an existing file) β Outer skin surface (FreeSurfer format). Required for a 3-layer model.
outer_skull (a pathlike object or string representing an existing file) β Outer skull surface (FreeSurfer format). Required for a 3-layer model.
overwrite (a boolean) β Overwrite existing files.
verbose (a boolean) β Enable verbose mode (printing of log messages).
- Outputs:
bem_solution (a pathlike object or string representing an existing file) β The resulting file containing the BEM solution.
bem_surfaces (a pathlike object or string representing an existing file) β The resulting file containing the BEM model.