Extract source data

Hi everyone,

I would like to extract the source time series from my MEG recording. So far that I am able to do all the required preprocessing steps, including freesurfer cortical reconstruction, and successfully use mne.minimum_norm.apply_inverse() to do the inverse operation and get a stc file.

I want to extract all the source time series data of a given region (more specifically, auditory cortex).
The function mne.extract_label_time_course() is similar to what I want. However, I want to extract all the individual time series within a given label, rather than just one one averaged time series from a label.

May I ask how could I do it? Many thanks!

Sincerely,
Andrew

  • MNE-Python version: 0.23.0
  • Python: 3.9.2
  • operating system: Mac OS 10.15.7

I think stc.in_label() is what you’re looking for?

1 Like

I think it works! Thank you @drammock ! :smiley: