# Extract source data

**URL:** <https://mne.discourse.group/t/extract-source-data/3062>\
**Category:** Support & Discussions\
**Tags:** ﻿source-localization, meg\
**Created:** [April 29, 2021, 3:33pm UTC](https://mne.discourse.group/t/extract-source-data/3062 "2021-04-29T15:33:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrewchang123](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/andrewchang123/32/384_2.png) [@andrewchang123](https://mne.discourse.group/u/andrewchang123)\
**Post date:** [April 29, 2021, 3:33pm UTC](https://mne.discourse.group/t/extract-source-data/3062/1 "2021-04-29T15:33:13Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![drammock](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/drammock/32/4_2.png) [@drammock](https://mne.discourse.group/u/drammock)\
**Post date:** [April 29, 2021, 3:36pm UTC](https://mne.discourse.group/t/extract-source-data/3062/2 "2021-04-29T15:36:22Z")

</div>

I think [stc.in\_label()](https://mne.tools/stable/generated/mne.SourceEstimate.html?highlight=in_label#mne.SourceEstimate.in_label) is what you’re looking for?

---

<div class="post-metadata">

**Author:** ![andrewchang123](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/andrewchang123/32/384_2.png) [@andrewchang123](https://mne.discourse.group/u/andrewchang123)\
**Post date:** [April 29, 2021, 3:46pm UTC](https://mne.discourse.group/t/extract-source-data/3062/3 "2021-04-29T15:46:22Z")

</div>

I think it works! Thank you @drammock ! 😃
