SEEG electrode localization (Curry/Rave)

Hi,

I'm working on importing sEEG electrode positions from Curry / RAVE into the Brainstorm, and running into alignment issues despite several attempts. Here’s what I’ve done so far:

Coregistered the CT to the MRI and it looked good.
I imported the .pom file (attached) from Curry into Brainstorm, but the electrodes appeared far outside the brain (screenshot attached).
Figured .pom coordinates were in CT space, so I applied the same transformation matrices used during the CT-to-MRI coregistration (vox2ras and reg) to transform the coordinates. Loaded the transformed .pom file. This improved the alignment slightly, but they were still not in the correct anatomical location.

I then switched to using RAVE, which provided multiple coordinate options: originalCoordinates, RAS, MNI, and MRIvoxel. Chose the RAS coordinates and created a plain .txt file with:
No header
First column: contact label
Next 3 columns: X, Y, Z coordinates (tab-separated)
In Brainstorm, I tried importing this file using both:
"Import channel file", and
"Add EEG position > Import from file", selecting the format:
"EEG: ASCII: Name, XYZ (tab-separated), scale = 1'
This placed the electrodes closer to the brain, but they still clearly misaligned (I tested with just RAB contacts).

MRI is in the native space (file content pic attached)
Did not try electrode localization in the brainstorm because some contacts have non-uniform spacing.

Please let me know what is it that im doing wrong and how do i fix it.

all.pom (18.5 KB)

Thanks

Hi @ariyas,

The expected coordinate system for loading .pom files into Brainstorm is LPS. Please check the related discussion for more details:

and files from rave too? they need to be converted to LPS first? and is it correct to import as ascii? what scale should be used? Thanks

I converted RAVE T1 coordinates from RAS-LPS - imported into brainstorm as a txt file scale-1.
its still off. its supposed to be where its in in the pic labelled curry. iIm not sure what wrong. MRIs are in the same space.

testelectrodest1ras_to_lps.txt (806 Bytes)

@ariyas would it be possible to share the MRI and the CT files somewhere to better debug the issue.

Yes, please! here is the link..

Here is the electrode file from rave
electrodes_[20250707_152716].csv (63.2 KB)

Thank you for sharing. Can you grant me access to the data ? I sent a request via email just now. I will check them and get back to you.

@ariyas I have a few follow-up questions regarding Curry.

  1. What steps do you follow in Curry to do the localization ? Do you coregister the CT to the MRI first and then localize the contacts on the coregistered CT or do something else.
  2. Can you share the LPS .pom coordinates from Curry ?

All .pom files are attached.
PAN-LPS - Copy.pom (19.3 KB)
PAN-manuallyTranformed.pom (19.6 KB)
PAN-LPS - Copy.pom (19.3 KB)
LPS-MRI - Copy.pom (19.4 KB)
MNI - Copy.pom (19.3 KB)
RAS-MRI - Copy.pom (19.4 KB)
Scanner-CT - Copy.pom (19.5 KB)
Scanner-MRI - Copy.pom (19.4 KB)
RAS-CT - Copy.pom (19.5 KB)
all.pom (18.5 KB)

Thank you @ariyas for sharing these. I will get back to you.