rave icon indicating copy to clipboard operation
rave copied to clipboard

(question) How to configure electrode locations/coordinate frame

Open droyston opened this issue 5 years ago • 6 comments

I am trying to add electrode coordinates in the electrodes.csv meta file, using the individual-space coordinates compatible with the Freesurfer reconstruction, but the RAVE render shows all electrodes at a single point near the origin of the render space. Which coordinate frame/range of locations does RAVE expect?

droyston avatar Dec 03 '20 18:12 droyston

Can you post the electrodes.csv file that you are using? If you're using freesurfer locations, they should work

jmagnotti avatar Dec 03 '20 18:12 jmagnotti

Thanks @droyston ,

This is a good question. We are using tkrRAS coordinate.

Please check freesurfer document on how to transform from scanner or MNI305 to tkrRAS.

TalXFM, Torig and Norig can be obtained via rave code in R:

# Change project/subject to project and subject
brain = rave::rave_brain2("project/subject")

# Talairach
brain$xfm

# Norig
brain$Norig

# Torig
brain$Torig

dipterix avatar Dec 03 '20 19:12 dipterix

Can you post the electrodes.csv file that you are using? If you're using freesurfer locations, they should work

Yes I can, the file is attached (converted to txt because the comment doesn't appear to support csv)

electrodes.txt

droyston avatar Dec 03 '20 19:12 droyston

These values are really tiny... how did you extract these? Perhaps they are fractional values of the total space? You could try multiplying them by 256 and see if that fixes the problem

jmagnotti avatar Dec 03 '20 20:12 jmagnotti

These values are really tiny... how did you extract these? Perhaps they are fractional values of the total space? You could try multiplying them by 256 and see if that fixes the problem

These coordinates are extracted from the coregistered channel objects in Brainstorm, and appear to align correctly in Brainstorm's surface-viewer

droyston avatar Dec 03 '20 20:12 droyston

Hmm, not sure how brainstorm handles coordinate. They have their own coordinate system in the Brainstorm MRI structure files. However, they can be transformed to CRS, MRI, MNI via its toolbox.

dipterix avatar Dec 03 '20 21:12 dipterix