# mapping channel number to label

**URL:** <https://mne.discourse.group/t/mapping-channel-number-to-label/134>\
**Category:** Mailing List Archive (read-only)\
**Tags:** list-archive\
**Created:** [June 4, 2009, 9:10pm UTC](https://mne.discourse.group/t/mapping-channel-number-to-label/134 "2009-06-04T21:10:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [June 4, 2009, 9:10pm UTC](https://mne.discourse.group/t/mapping-channel-number-to-label/134/1 "2009-06-04T21:10:03Z")

</div>

Hello,

I used mne\_compute\_raw\_inverse on averaged data, with 36 labels per  
hemisphere in my --labeldir. My resulting fif file has 72 time series,  
which I imagine are the average of the activations in each label. I  
was wondering how I can map the channel number (e.g. lh-Jz 075096)  
back to label name. I found the page in the manual that describes this  
channel name, but I couldn't understand how to map it back to my label  
file.

Also, is there a way to run the command above for multiple sets at the  
same time, creating just one .fif file with several sets in it? I'm  
currently going around it by using for loops, but it'd be nice if I  
could do everything with just one command.

Thanks in advance,

Gus

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [June 5, 2009, 6:53pm UTC](https://mne.discourse.group/t/mapping-channel-number-to-label/134/2 "2009-06-05T18:53:14Z")

</div>

Hi Gus,

> Hello,
> 
> I used mne\_compute\_raw\_inverse on averaged data, with 36 labels per  
> hemisphere in my --labeldir. My resulting fif file has 72 time  
> series, which I imagine are the average of the activations in each  
> label. I was wondering how I can map the channel number (e.g. lh-Jz  
> 075096) back to label name. I found the page in the manual that  
> describes this channel name, but I couldn't understand how to map it  
> back to my label file.

The newest MNE version 2.6.1 contains mne\_read\_label\_file function  
which you can use to read label files. To find which label the vertex  
number (in your case 75096) is in do the following:

1. Load all the labels from your labeldir.

2. Using the 'intersect' Matlab function determine which label has the  
vertex of interest. If the labels are not overlapping, there should be  
only one such label.

> Also, is there a way to run the command above for multiple sets at  
> the same time, creating just one .fif file with several sets in it?  
> I'm currently going around it by using for loops, but it'd be nice  
> if I could do everything with just one command.

Unfortunately, you need multiple runs of the program to process  
multiple sets.

- Matti
