Workbench Command is a set of command-line tools that can be used to perform simple and complex operations within Connectome Workbench.
COMPUTE GEODESIC DISTANCE FROM ONE VERTEX TO THE ENTIRE SURFACE wb_command -surface-geodesic-distance <surface> - the surface to compute on <vertex> - the vertex to compute geodesic distance from <metric-out> - output - the output metric [-naive] - use only neighbors, don't crawl triangles (not recommended) [-limit] - stop at a certain distance <limit-mm> - distance in mm to stop at [-corrected-areas] - vertex areas to use instead of computing them from the surface <area-metric> - the corrected vertex areas, as a metric Unless -limit is specified, computes the geodesic distance from the specified vertex to all others. The result is output as a single column metric file, with a value of -1 for vertices that the distance was not computed for. The -corrected-areas option should be used when the input is a group average surface - group average surfaces have significantly less surface area than individual surfaces do, and therefore distances measured on them would be smaller than measuring them on individual surfaces. In this case, the input to this option should be a group average of the output of -surface-vertex-areas for each subject. If -naive is not specified, the algorithm uses not just immediate neighbors, but also neighbors derived from crawling across pairs of triangles that share an edge.