# How to create a Label？

**URL:** <https://mne.discourse.group/t/how-to-create-a-label/2604>\
**Category:** Support & Discussions\
**Tags:** ﻿source-localization\
**Created:** [January 27, 2021, 2:16pm UTC](https://mne.discourse.group/t/how-to-create-a-label/2604 "2021-01-27T14:16:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Xiaofang](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/xiaofang/32/265_2.png) [@Xiaofang](https://mne.discourse.group/u/Xiaofang)\
**Post date:** [January 27, 2021, 2:16pm UTC](https://mne.discourse.group/t/how-to-create-a-label/2604/1 "2021-01-27T14:16:54Z")

</div>

**If you have a question or issue with MNE-Python, please include the following info:**

- MNE-Python version: 0.22.0
- operating system: Win10

Hellllllllo bro!  
I have a question trouble me sometimes  
How to creat a Label subject from SourceSpace?In many examples,the Label subject is load by function Read\_label(),i want to creat a Label from my own Interested region.Build a array to creat Label is very time wasting，is there a function that i can select a region from Brain model?

---

<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:** [January 27, 2021, 4:12pm UTC](https://mne.discourse.group/t/how-to-create-a-label/2604/2 "2021-01-27T16:12:56Z")

</div>

Currently it is not possible to generate freeform labels by, e.g., using a mouse cursor to draw on the cortical surface. One option is to read labels from a known cortical parcellation, using [mne.read\_labels\_from\_annot()](https://mne.tools/stable/generated/mne.read_labels_from_annot.html#mne.read_labels_from_annot). Another option is to start with a seed vertex and grow the label spatially using [mne.grow\_labels()](https://mne.tools/stable/generated/mne.grow_labels.html#mne.grow_labels). A third option is to start with an existing SourceEstimate object, and create a label from any non-zero vertices in it, using [mne.stc\_to\_label()](https://mne.tools/stable/generated/mne.stc_to_label.html#mne.stc_to_label). Note also that labels can be combined using the `+` operator, so you could for example use `grow_labels()` to create several and then merge them into a single label using `+`.

---

<div class="post-metadata">

**Author:** ![richard](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/richard/32/15_2.png) [@richard](https://mne.discourse.group/u/richard)\
**Post date:** [January 30, 2021, 11:28am UTC](https://mne.discourse.group/t/how-to-create-a-label/2604/3 "2021-01-30T11:28:57Z")

</div>

> [@drammock](#):
>
> Currently it is not possible to generate freeform labels by, e.g., using a mouse cursor to draw on the cortical surface.

This should be possible using FreeView though, right? (It’s been a while since I last looked into this.)

---

<div class="post-metadata">

**Author:** ![agramfort](https://avatars.discourse-cdn.com/v4/letter/a/7c8e57/32.png) [@agramfort](https://mne.discourse.group/u/agramfort)\
**Post date:** [January 30, 2021, 12:33pm UTC](https://mne.discourse.group/t/how-to-create-a-label/2604/4 "2021-01-30T12:33:58Z")

</div>

it’s possible with mne\_analyze (mne-C command)

Alex

---

<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:** [January 30, 2021, 2:15pm UTC](https://mne.discourse.group/t/how-to-create-a-label/2604/5 "2021-01-30T14:15:08Z")

</div>

Yes, I think FreeView allows this. I think there’s also a way to do this from MNE-C.
