# Cluster test adjacency matrix

**URL:** <https://mne.discourse.group/t/cluster-test-adjacency-matrix/2390>\
**Category:** Mailing List Archive (read-only)\
**Tags:** list-archive\
**Created:** [December 3, 2020, 10:13am UTC](https://mne.discourse.group/t/cluster-test-adjacency-matrix/2390 "2020-12-03T10:13:26Z")\
**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:** [December 3, 2020, 10:13am UTC](https://mne.discourse.group/t/cluster-test-adjacency-matrix/2390/1 "2020-12-03T10:13:26Z")

</div>

External Email - Use Caution

Dear MNE Community!

In my research I intend to perform the 1-sample cluster permutation test on  
the time course data extracted with PCA according to Desikan-Killiany  
cortical atlas.  
In order to perform the cluster test correctly I should provide the  
information on spatial connectivity of the 68 extracted Desikan-Killiany  
cortical labels (i.e., the adjacency matrix).  
However, while there are well defined functions such as  
mne.find\_ch\_connectivity or mne.spatial\_src\_connectivity, I had no luck  
figuring out any method to calculate the adjacency matrix for labels.  
Do you have any ideas on how I should treat the adjacency matrix problem in  
the cluster test if I use parcellised cortical labels?

Great thank you in advance!

Anna

---

<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:** [December 4, 2020, 5:31pm UTC](https://mne.discourse.group/t/cluster-test-adjacency-matrix/2390/2 "2020-12-04T17:31:42Z")

</div>

External Email - Use Caution

We don't currently have a function for this but we could add one fairly  
easily I think based on the FreeSurfer triangulations. Could you open a  
GitHub issue about it?

Eric

---

<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:** [December 9, 2020, 6:13pm UTC](https://mne.discourse.group/t/cluster-test-adjacency-matrix/2390/3 "2020-12-09T18:13:58Z")

</div>

External Email - Use Caution

Hi Anna and Eric,

Correct me if there is already an issue opened in github since I haven't  
found one to follow. I would like to use a similar test in the future.  
Shall I make a feature request?  
Let me know. Thanks!

best,  
Dip
