seek_localize.label_elecs_anat¶
-
seek_localize.label_elecs_anat(bids_path: mne_bids.path.BIDSPath, img_fname: Union[str, pathlib.Path], fs_lut_fpath: Union[str, pathlib.Path], verbose: bool = True, **kwargs)[source]¶ Label electrode anatomical location based on an annotated image volume.
- Parameters
- bids_path
BIDSPath The BIDS path constructed using
mne_bids.BIDSPath()that leads to the*electrodes.tsvfile.- img_fname
str|pathlib.Path The file path for the image volume. Must be a Nifti file.
- fs_lut_fpath
str|pathlib.Path The file path for the
FreeSurferColorLUT.txtfile.- verbosebool
Verbosity.
- kwargs
dict Keyword arguments to be passed to
seek_localize.convert_elec_coords().
- bids_path
- Returns
- elecs_df
pd.DataFrame DataFrame for electrodes.tsv file. If you would like to save it to disc. Suggested code
elecs_df.to_csv(bids_path, sep=’ ‘, index=None)
- elecs_df