Getting electrode coordinates after simulations

2 views
Skip to first unread message

Gabriel

unread,
Sep 18, 2025, 8:59:26 AM (7 days ago) Sep 18
to roast-users

Hello,

I am currently working with ROAST to simulate electrode placements and brain electric fields. After running the simulation, I would like to retrieve the coordinates of the electrodes (in MNI or voxel space), but I haven’t found a method or an output file where these coordinates are stored. Could they be stored in the _seg8.mat file? Or should I exctract them manually using the mask_elec.nii file?
I have checked the documentation and several forums, but I wasn’t able to locate this information or figure out how to extract or convert the coordinates correctly.

Does anyone know of a workflow or script to access and extract electrode coordinates after the simulation has run?
Any help or advice would be much appreciated!


Yu (Andy) Huang

unread,
Sep 18, 2025, 11:04:53 AM (7 days ago) Sep 18
to Gabriel, roast-users
Hi Gabriel,

Electrode coordinates are not output by roast, but you can get them by loading the mask_elec.nii file where each placed electrode is marked by a unique number.

In the upcoming release of Roast V4, the transform from voxel space to MNI space (mri2mni) will be output in the log file and option file. For now you can compute the transform using data stored in _seg8.mat file.

Hope this helps.

--
You received this message because you are subscribed to the Google Groups "roast-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to roast-users...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/roast-users/563cb5bc-e0a2-40d7-8ed1-3f7747e52512n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages