Workbench Command is a set of command-line tools that can be used to perform simple and complex operations within Connectome Workbench.
COMPUTE GEODESIC DISTANCES FROM ALL VERTICES wb_command -surface-geodesic-distance-all-to-all <surface> - the surface to compute on <cifti-out> - output - single-hemisphere dconn containing the distances [-roi] - only output distances for vertices inside an ROI <roi-metric> - the ROI as a metric file [-limit] - stop at a specified 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 [-naive] - use only neighbors, don't crawl triangles (not recommended) Computes geodesic distance from every vertex to every vertex, outputting a single-hemisphere dconn file. If you are only interested in a few vertices, see -surface-geodesic-distance. When -limit is specified, any vertex beyond the limit is assigned the value -1. The -roi option makes the output file smaller by not outputting distances to or from vertices outside the ROI, but paths are still allowed to go outside the ROI when finding distances to other vertices. 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.