I prefer python, therefore I came up with the following “solution”. Of course I trust the authors from the brainGraph package here. I did not check so far, if I would come to the same solution when computing the coordinates myself using Freesurfer. I also still wonder if there’s an “official” table provided by the Freesurfer developers.
from rpy2.robjects.packages import importr
import rpy2.robjects as ro
from rpy2.robjects import pandas2ri
# Activate the pandas conversion
pandas2ri.activate()
# Import the 'brainGraph' package
brainGraph = importr('brainGraph')
# Access the 'destrieux' object
destrieux = ro.r['destrieux']
# Convert the R dataframe to a pandas dataframe, then sort by hemisphere
# and id
df = pandas2ri.rpy2py(destrieux)
df = df.sort_values(['hemi','index'])
df will look like this:
name x.mni y.mni ... hemi index class
4 lG_and_S_frontomargin -24.026 53.836 ... 1 1 2
5 lG_and_S_occipital_inf -39.270 -81.242 ... 1 2 2
6 lG_and_S_paracentral -7.879 -36.062 ... 1 3 2
7 lG_and_S_subcentral -56.559 -11.103 ... 1 4 2
8 lG_and_S_transv_frontopol -15.187 61.795 ... 1 5 2
.. ... ... ... ... ... ... ...
144 rS_suborbital 8.781 42.174 ... 2 144 3
145 rS_subparietal 10.497 -50.187 ... 2 145 3
146 rS_temporal_inf 53.027 -39.850 ... 2 146 3
147 rS_temporal_sup 48.138 -43.634 ... 2 147 3
148 rS_temporal_transverse 51.842 -22.388 ... 2 148 3