sesameeg.utils.prior_loc_from_labels

sesameeg.utils.prior_loc_from_labels(subject, subjects_dir, fwd, parc, sel_labels, ratio=None)[source]

Construct the prior probability of active source locations starting from given FreeSurfer/MNE labels.

Parameters:
subjectstr

Subject name in Freesurfer subjects dir. Only when instantiated by means of prepare_sesame().

subjects_dirstr | None

If not None, this directory will be used as the subjects directory instead of the value set using the SUBJECTS_DIR environment variable. Only when instantiated by means of prepare_sesame()

fwdForward object

The forward solution.

parcstr

The parcellation to use, e.g., 'aparc' or 'aparc.a2009s'.

sel_labelslist of str

The cortical labels to use.

ratiofloat

The ratio of high prior probability cortical areas to low prior probability cortical areas probability value. If None, it is set to 1.

Returns:
prior_loc_arrndarray of float, shape (n_verts, )

The prior probability of active source locations.

Examples using sesameeg.utils.prior_loc_from_labels

Compute SESAME inverse solution on evoked data with given source location prior

Compute SESAME inverse solution on evoked data with given source location prior