Illustration of revelant parameters onto the spatial reconstruction of SEEG electrodes

Hi all,

After being able to do the anatomical reconstruction of SEEG electrodes for almost 20 patients in a pretty smooth and straightforward way - thank you for that! - we are now hoping to be able to do some illustrations.

It would be useful to be able to plot the overall coverage of the population and some ROIs and/ or relevant functional results onto one single brain, coded by color or shape. However, so far we were only able to plot ROIs onto different brains (by creating a dummy patient with only electrodes located in the ROI).
I discussed with @as_dub about it but so far we are not aware of any built-in solutions. Does someone manage to do it?

Thank you all for your help!
Anais

Hi @Anais, this action is not available yet in Brainstorm. However, it is possible to do it in this way:

Hi @Raymundo! Thank you for your help! These are the steps we have been following so far but they don't allow to color-code different types of relevant information onto the same brain yet. We will find a work around for now! Thanks

What kind of information are you looking to color code?

For instance the overall coverage with the different patients represented in different colors or the responsive electrodes compared to the entire coverage.
In other words: ways to highlight group effects onto only one brain.

For subject color, you could change directly the colors of the electrodes from one patient to have the same color in the IEEG panel:

  1. In the IEEG panel select the option Display contacts as spheres
  2. Select all the electrodes from one patient and then click on the color wheel (iconColorSelection)

In this example electrodes A and B belong to one Subject

Note: An update was pushed (02-sep-2024) since, there was an error message when changing the colors for multiple electrodes at the same time.

1 Like

Hi Anais, hi Raymundo,

Thank you Raymundo for your response and the debugging :slight_smile:

I have two additional questions on this topic:

  1. Is there a way to set the colors of each recording contact?

  2. Is there a way to automatically set the colors of the electrodes/contacts to a specific feature of interest (e.g. patient, ROIs, etc.)? Do you plan to offer this feature? (again, happy to help)

Best,
AnneSo

1 Like

Hi @as_dub, @Anais

Yes, there is a way, but this is exposed yet.
This is the way we use to plot data on the electrode-contact.

  1. Right-click on data > SEEG > 3D electrodes (cortex)
  2. Click on the Display contacts as sphere button on the iEEG panel

As you may know, we can identify the ROI for each contact, as shown in here:
https://neuroimage.usc.edu/brainstorm/Tutorials/ECoG#Anatomical_labelling
For the moment this information is saved in a .tsv file

Currently we are polishing some of the new features for iEEG, and this Group level displays are one of the features we want to add. I'll coordinate with @chinmay.chinara to avoid reinventing the wheel.


To answer the original question.
Yes, it is possible to plot arbitrary data on the Group electrode-contacts.
But currently, only through a "hacky" way: to generate a "data" file with the information we want to plot

  1. Import the file containing all the electrodes-contacts in the CoReg subject. The total number of channels (48 in this example) will be indicated
    image

  2. Generate a matrix file with the same number of channels and only two samples
    File > Simulate > Simulate generic signals
    image

  3. Export the created matrix file to Matlab right-click File > Export to Matlab.
    And modify the Value field, so both columns have the same values, and the values correspond to the "data" to plot for the electrode-contacts. The order is the same as in the channel file. For this example values random integers 1 to 5

    image

  4. Import the modified matrix structure right-click File > Import from Matlab

  5. Create a "raw" data file from the matrix. right-click Review as raw

  6. Replace the channel file in the new raw folder. Copy and past the channel file from the Intra-subject folder

  7. Now you can plot as usual with right-click on data > SEEG > 3D electrodes (cortex).
    Adjust the colormap to reflect better the values that were assigned to each contact

    image

    You can create custom maps as well. E.g., to have only 5 colors:
    https://neuroimage.usc.edu/brainstorm/Tutorials/Colormaps

    image

2 Likes