Workbench Command is a set of command-line tools that can be used to perform simple and complex operations within Connectome Workbench.
FILTER CLUSTERS BY SURFACE AREA wb_command -metric-find-clusters <surface> - the surface to compute on <metric-in> - the input metric <value-threshold> - threshold for data values <minimum-area> - threshold for cluster area, in mm^2 <metric-out> - output - the output metric [-less-than] - find values less than <value-threshold>, rather than greater [-roi] - select a region of interest <roi-metric> - the roi, as a metric [-corrected-areas] - vertex areas to use instead of computing them from the surface <area-metric> - the corrected vertex areas, as a metric [-column] - select a single column <column> - the column number or name [-size-ratio] - ignore clusters smaller than a given fraction of the largest cluster in map <ratio> - fraction of the largest cluster's area [-distance] - ignore clusters further than a given distance from the largest cluster <distance> - how far from the largest cluster a cluster can be, edge to edge, in mm [-start] - start labeling clusters from a value other than 1 <startval> - the value to give the first cluster found Outputs a metric with nonzero integers for all vertices within a large enough cluster, and zeros elsewhere. The integers denote cluster membership (by default, first cluster found will use value 1, second cluster 2, etc). Cluster values are not reused across maps of the output, but instead keep counting up. By default, values greater than <value-threshold> are considered to be in a cluster, use -less-than to test for values less than the threshold. To apply this as a mask to the data, or to do more complicated thresholding, see -metric-math.