# mne\_analyze, mne\_compute\_raw\_inverse questions

**URL:** <https://mne.discourse.group/t/mne-analyze-mne-compute-raw-inverse-questions/136>\
**Category:** Mailing List Archive (read-only)\
**Tags:** list-archive\
**Created:** [June 10, 2009, 9:32pm UTC](https://mne.discourse.group/t/mne-analyze-mne-compute-raw-inverse-questions/136 "2009-06-10T21:32:29Z")\
**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 10, 2009, 9:32pm UTC](https://mne.discourse.group/t/mne-analyze-mne-compute-raw-inverse-questions/136/1 "2009-06-10T21:32:29Z")

</div>

Hello folks -

A colleague and I noticed some seeming inconsistencies in how these  
two programs compute waveforms on a per-label basis, and I want to see  
if we can clear this up.

When using mne\_compute\_raw\_inverse without the -labeldir switch, the  
program provides output in terms of "sources per label", and provides  
a waveform for each of those sources. When using the -labeldir switch,  
the program provides a single waveform per label. That waveform is NOT  
the average of all sources in the first method, as can be seen by  
simply exporting with and without the switch, and averaging the  
results of the second and comparing it to the first.

When using mne\_analyze, waveforms are obtained using the timecourse  
manager, which seems to compute the values on a per-voxel basis, with  
multiple options as to how the voxels can be combined (averaging,  
maximum, etc.). A cursory examination shows that the timecourse  
created using this model is different again from either of the above  
two methods.

I was wondering if one of the developers could explain the difference  
between these three methods of acquiring an ROI timecourse using a  
label. Thanks in advance -

Sincerely,  
Eliezer Kanal

---

<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 11, 2009, 2:54pm UTC](https://mne.discourse.group/t/mne-analyze-mne-compute-raw-inverse-questions/136/2 "2009-06-11T14:54:39Z")

</div>

I'm interest in the answers for these questions as well, but I'd like  
to jump in this discussion to ask a somewhat related question. I think  
I'm just having problems with the terminology, but it'd be good to  
clarify it.

When I run mne\_compute\_raw\_inverse for a single label, I get the  
activation for all the sources within the label (correct?). In the  
screen output of this program, I see that my forward solution has  
about 13000 sources, and if my label is the entire left hemisphere I  
get the estimates for about 6500 sources, which makes sense. Using  
mne\_analyze, when selecting a label there are several ways to combine  
the activations in the vertices, as Eliezer pointer out. However,  
based on how the brain was tessellated, it seems to me that there are  
a lot more vertices than sources, right? Is there a mapping between  
sources and vertices? If I run the same command with labeldir, do I  
get the average of the sources in each label, or vertices? Also, is  
there a way to get one of the other four options, instead of the  
average?

Thanks in advance,

Gus
