Channel order in connectivity analysis

Dear Sir

My question is, how can we change the order of the channels when displaying the connectivity matrix and graph?

This issue is in a situation where we have not changed the initial order of the channels.

1 Like

If you are just wanting to change the name of the channels so that they end up in a different order you can just individually change the name of the channels.
But this will not change the data (it will only change the name of the channel).

Perhaps the following thread might be useful for you?

I think that by changing the name of the channels, the signal and their characteristics will remain the same as before.

For example, I want to put frontal electrodes together(near each other), central electrodes together(near each other), etc. in the attached graph.

1 Like

For the moment, the positions of the channels around the circle are given by the order in the channel file.
The first channel node is the first node at the left of the 12-o-clock, then it continuous anti-clockwise, thus the last channel is the 12-o-clock node.

You can manually change the order for the graph, by re-ordening the resulting connectivity file ()

See this code:

Before:

After:

It think it would be so useful a GUI option for changing electrode order in connectivity graphs
hopefully

best regards

Absolutely, agree! Re-ordering for connectivity graphs is already implemented in Brainstorm for Scouts, they are ordered according their brain localization.

https://neuroimage.usc.edu/brainstorm/Tutorials/ConnectivityGraph

A similar approach will be added for EEG and MEG sensors.

1 Like

just doing ping
I think everyone would love this feature in BS!

1 Like

I think the script is not working anymore,
I got this error:

Error using reshape
To RESHAPE the number of elements must not change.

The previous script only considered [NxN] connectivity matrices, that where time and frequency static (one connectivity value across time and across frequency).

I have now updated the script to handle cases where the metric is time and/or frequency defined.

Give it a try:

1 Like

Thank you!
The script worked!

It showed a weird error message in the end:
Reference to non-existent field 'Figure'.