mne-tools / mne-python

MNE: Magnetoencephalography (MEG) and Electroencephalography (EEG) in Python
https://mne.tools
BSD 3-Clause "New" or "Revised" License
2.68k stars 1.31k forks source link

Suggestion: find_labels_adjacency() function for cortical labels #8646

Open anntabueva opened 3 years ago

anntabueva commented 3 years ago

Describe the new feature or enhancement

Apparently, among functions that compute adjacency matrix for channels and sources, MNE currently does not have a function that computes the spatial adjacency matrix for cortical labels (e.g., Desikan-Killiani atlas with 68 cortical labels). Similar to mne.channels.find_ch_adjacency() function, such function should have list of labels as input and return the scipy.sparse.csr_matrix of labels adjacency with shape (n_labels, n_labels). The output of such function could be used for cluster permutational statistics.

Describe your proposed implementation

I suggest it can be done relatively easy using FreeSurfer triangulations.

lqxxgnd commented 2 weeks ago

i agree with you!

larsoner commented 2 weeks ago

Agreed this would be good, if someone is up for giving it a shot feel free to open a PR!