beauchamplab / rave

For all RAVE info, including installation instructions, visit
https://beauchamplab.github.io/rave
23 stars 5 forks source link

(question) How to configure electrode locations/coordinate frame #47

Open droyston opened 3 years ago

droyston commented 3 years ago

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?

jmagnotti commented 3 years ago

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

dipterix commented 3 years ago

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
droyston commented 3 years ago

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

jmagnotti commented 3 years ago

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

droyston commented 3 years ago

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

dipterix commented 3 years ago

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.