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:
- subject
str
Subject name in Freesurfer subjects dir. Only when instantiated by means of
prepare_sesame()
.- subjects_dir
str
| 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()
- fwd
Forward
object The forward solution.
- parc
str
The parcellation to use, e.g.,
'aparc'
or'aparc.a2009s'
.- sel_labels
list
ofstr
The cortical labels to use.
- ratio
float
The ratio of high prior probability cortical areas to low prior probability cortical areas probability value. If None, it is set to 1.
- subject
- Returns:
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