Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
droyston opened this issue Dec 3, 2020 · 6 comments
Open

Comments

@droyston
Copy link

droyston commented Dec 3, 2020

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
Copy link
Collaborator

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

@dipterix
Copy link
Collaborator

dipterix commented Dec 3, 2020

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
Copy link
Author

droyston commented Dec 3, 2020

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
Copy link
Collaborator

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
Copy link
Author

droyston commented Dec 3, 2020

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
Copy link
Collaborator

dipterix commented Dec 3, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants