ECOG contact selection in GUI

ECOGelectrode_selection.tif (563.9 KB)

Dear Francois,

I need to save in a .mat file (the labels) of a group of contacts selected manually by clicking on each of them individually in the gui; once each contact is highlighted (turns red), where is this information saved, either before, and I see after, I close the projection image? Thank you, Octavian.

Related, in the patient image attached, when clicking on a contact, a different one gets activated (for example in the attached, clicking on FTG22 gets FTG 9 activated), it seems that this affects only if the channels are viewed from the Common files folder, but not if they are visualized as initiated from the recordings folders- this is a 1 channel file per subject setting, and the problem persists after reloading the subject, thank you again.

I need to save in a .mat file (the labels) of a group of contacts selected manually by clicking on each of them individually in the gui; once each contact is highlighted (turns red), where is this information saved,

global GlobalData
GlobalData.DataViewer.SelectedRows

Related, in the patient image attached, when clicking on a contact, a different one gets activated (for example in the attached, clicking on FTG22 gets FTG 9 activated)

I can't reproduce this.
Could you package a minimal example dataset and share it with me?

Dear Francois,
I sent you a subject yesterday via email. Once the issue is identified, I have another plight.
The selection of electrodes is for mapping them to a resection volume. I found that manual selection is better than using a binary mask to select them in matlab. As for the manual selection, I found that the easiest way to visualize the contacts for selection is in MRI viewer, way better than MR 3D or surface views. However, it looks like one cannot select the contacts (click, turn them red) in MRI viewer, so I have to open another of the views specified to select these based on their proximity to the resection vol in MRI viewer. Would it be a long shot to add the click/selection property to MRI viewer? Thank you, Octavian

I think I fixed the selection issue in this commit:

Please update Brainstorm and try again.

Now when you click on a contact in the MRI Viewer, it selects the corresponding channel in the other figures. It won't highlight it in red in the MRI viewer though, this would require a lot more recoding.
Does it work for you?

Many thanks for both of your more than prompt commits, Francois, it's all working now well, Octavian.