eelbrain.load.fiff.stc_ndvar

eelbrain.load.fiff.stc_ndvar(stc, subject, src, subjects_dir=None, method=None, fixed=None, name=None, check=True, parc='aparc', connectivity=None, sss_filename='{subject}-{src}-src.fif')

Convert one or more mne.SourceEstimate objects to an NDVar.

Parameters:
stc : SourceEstimate | list of SourceEstimates | str

The source estimate object(s) or a path to an stc file. Volum and vector source estimates are supported.

subject : str

MRI subject (used for loading MRI in PySurfer plotting)

src : str

The kind of source space used (e.g., ‘ico-4’).

subjects_dir : None | str

The path to the subjects_dir (needed to locate the source space file).

method : ‘MNE’ | ‘dSPM’ | ‘sLORETA’ | ‘eLORETA’

Source estimation method (optional, used for generating info).

fixed : bool

Source estimation orientation constraint (optional, used for generating info).

name : str | None

Ndvar name.

check : bool

If multiple stcs are provided, check if all stcs have the same times and vertices.

parc : None | str

Parcellation to add to the source space.

connectivity : ‘link-midline’

Modify source space connectivity to link medial sources of the two hemispheres across the midline.

sss_filename : str

Filename template for the MNE source space file.