Workbench Command is a set of command-line tools that can be used to perform simple and complex operations within Connectome Workbench.
OUTPUT GEODESIC DISTANCES AS TEXT wb_command -surface-geodesic-distance-sparse-text <surface> - the surface to compute on <limit> - the geodesic distance limit in mm <text-out> - output - the output text file [-corrected-areas] - vertex areas to use to correct the distances on a group-average surface <area-metric> - the corrected vertex areas, as a metric [-naive] - use only neighbors, don't crawl triangles (not recommended) Similar to -geodesic-distance-all-to-all, but outputs in a text format that only lists the in-range vertices. Each line in the output text file is a list of pairs, like '<vertex>,<distance>,<vertex>,<distance>,...' in csv format. 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.