# functional network from raw resting state MEG

**URL:** <https://mne.discourse.group/t/functional-network-from-raw-resting-state-meg/2194>\
**Category:** Mailing List Archive (read-only)\
**Tags:** list-archive\
**Created:** [May 21, 2020, 12:55pm UTC](https://mne.discourse.group/t/functional-network-from-raw-resting-state-meg/2194 "2020-05-21T12:55:57Z")\
**Posts on this page:** 3\
**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:** [May 21, 2020, 12:55pm UTC](https://mne.discourse.group/t/functional-network-from-raw-resting-state-meg/2194/1 "2020-05-21T12:55:57Z")

</div>

External Email - Use Caution

Hello everyone,

I am almost new to MNE, Please be patient with me.  
I am trying to calculate the functional network from raw resting state MEG  
data from here  
\<http://How\_to\_Build\_a\_Functional\_Connectomic\_Biomarker\_for\_Mild\_Cognitive\_Impairment\_from\_Source\_Reconstructed\_MEG\_Resting-State\_Activity\_-\_Raw\_data\_I\_Controls\_/6210158\>  
.  
I am following this example:  
Compute source space connectivity and visualize it using a circular graph  
\<[https://mne.tools/stable/auto\_examples/connectivity/plot\_mne\_inverse\_label\_connectivity.html](https://mne.tools/stable/auto_examples/connectivity/plot_mne_inverse_label_connectivity.html)\>

The problem is there is no \*meg-inv.fif\* file in the dataset.  
an I am stuck in these lines:

inverse\_operator  
\<[https://mne.tools/stable/generated/mne.minimum\_norm.InverseOperator.html#mne.minimum\_norm.InverseOperator](https://mne.tools/stable/generated/mne.minimum_norm.InverseOperator.html#mne.minimum_norm.InverseOperator)\>  
= read\_inverse\_operator  
\<[https://mne.tools/stable/generated/mne.minimum\_norm.read\_inverse\_operator.html#mne.minimum\_norm.read\_inverse\_operator](https://mne.tools/stable/generated/mne.minimum_norm.read_inverse_operator.html#mne.minimum_norm.read_inverse_operator)\>(fname\_inv  
\<[https://docs.python.org/3/library/stdtypes.html#str](https://docs.python.org/3/library/stdtypes.html#str)\>)

stcs = apply\_inverse\_epochs  
\<[https://mne.tools/stable/generated/mne.minimum\_norm.apply\_inverse\_epochs.html#mne.minimum\_norm.apply\_inverse\_epochs](https://mne.tools/stable/generated/mne.minimum_norm.apply_inverse_epochs.html#mne.minimum_norm.apply_inverse_epochs)\>(epochs  
\<[https://mne.tools/stable/generated/mne.Epochs.html#mne.Epochs](https://mne.tools/stable/generated/mne.Epochs.html#mne.Epochs)\>,  
inverse\_operator  
\<[https://mne.tools/stable/generated/mne.minimum\_norm.InverseOperator.html#mne.minimum\_norm.InverseOperator](https://mne.tools/stable/generated/mne.minimum_norm.InverseOperator.html#mne.minimum_norm.InverseOperator)\>,  
lambda2 \<[https://docs.python.org/3/library/functions.html#float](https://docs.python.org/3/library/functions.html#float)\>,  
method \<[https://docs.python.org/3/library/stdtypes.html#str](https://docs.python.org/3/library/stdtypes.html#str)\>,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pick\_ori="normal", return\_generator=True)

Gramfort, 2013. MEG and EEG data analysis with MNE-Python. \*Frontiers in  
neuroscience\*, \*7\*, p.267.  
This article clearly explain why we need a SourceEstimate object

Is it still possible to calculate the functional network from this dataset  
or I should look for something else?

here is the output of \*raw.info \<[http://raw.info](http://raw.info)\>\*:  
\*MADCN0001\_tsss\_mc.fif\*  
\<Info | 23 non-empty values  
acq\_pars: ACQch001 110113 ACQch002 110112 ACQch003 110111 ACQch004 110122  
...  
bads: []  
ch\_names: MEG0113, MEG0112, MEG0111, MEG0122, MEG0123, MEG0121, MEG0132,  
...  
chs: 204 GRAD, 102 MAG, 1 EEG, 3 STIM, 9 CHPI  
custom\_ref\_applied: False  
description: Vectorview system  
dev\_head\_t: MEG device -\> head transform  
dig: 322 items (3 Cardinal, 4 HPI, 315 Extra)  
events: 1 item (list)  
experimenter: Common account for MEG work (meg)  
file\_id: 4 items (dict)  
highpass: 0.1 Hz  
hpi\_meas: 1 item (list)  
hpi\_results: 1 item (list)  
hpi\_subsystem: 2 items (dict)  
line\_freq: 50.0  
lowpass: 330.0 Hz  
meas\_date: 2013-11-05 12:09:28 UTC  
meas\_id: 4 items (dict)  
nchan: 319  
proc\_history: 1 item (list)  
proj\_id: 1 item (ndarray)  
proj\_name: qsm  
projs: []  
sfreq: 1000.0 Hz  
subject\_info: 7 items (dict)

---

<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:** [May 22, 2020, 7:41pm UTC](https://mne.discourse.group/t/functional-network-from-raw-resting-state-meg/2194/2 "2020-05-22T19:41:52Z")

</div>

External Email - Use Caution

there are many ways to do what you suggest.

can you refer to a paper from which you would like to replicate the analysis?

to get started with mne I would start with these tutorials:

[https://mne.tools/stable/auto\_tutorials/index.html](https://mne.tools/stable/auto_tutorials/index.html)

Alex

---

<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:** [May 24, 2020, 6:25pm UTC](https://mne.discourse.group/t/functional-network-from-raw-resting-state-meg/2194/3 "2020-05-24T18:25:41Z")

</div>

External Email - Use Caution

Thank you Alex,  
I used the connectivity in sensor space for now to get an initial result.  
I think I need to have some background study about source localization.  
I am using this paper paper.

Marcos, A., Maestu, F. and Pereda, E., How to Build a Functional  
Connectomic Biomarker for Mild Cognitive Impairment from Source  
Reconstructed MEG Resting-State Activity: The Combination of ROI  
Representation and Connectivity Estimator Matters.

I am eager to hear if you have any suggestions.

best,  
Abolfazl  
-------------- next part --------------  
An HTML attachment was scrubbed...  
URL: [http://mail.nmr.mgh.harvard.edu/pipermail/mne\_analysis/attachments/20200524/36c21a38/attachment.html](http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200524/36c21a38/attachment.html)
