Workbench Command is a set of command-line tools that can be used to perform simple and complex operations within Connectome Workbench.
WEIGHTED STATISTICS ALONG CIFTI COLUMNS wb_command -cifti-weighted-stats <cifti-in> - the input cifti [-spatial-weights] - use vertex area and voxel volume as weights [-left-area-surf] - use a surface for left vertex areas <left-surf> - the left surface to use, areas are in mm^2 [-right-area-surf] - use a surface for right vertex areas <right-surf> - the right surface to use, areas are in mm^2 [-cerebellum-area-surf] - use a surface for cerebellum vertex areas <cerebellum-surf> - the cerebellum surface to use, areas are in mm^2 [-left-area-metric] - use a metric file for left vertex areas <left-metric> - metric file containing left vertex areas [-right-area-metric] - use a metric file for right vertex areas <right-metric> - metric file containing right vertex areas [-cerebellum-area-metric] - use a metric file for cerebellum vertex areas <cerebellum-metric> - metric file containing cerebellum vertex areas [-cifti-weights] - use a cifti file containing weights <weight-cifti> - the weights to use, as a cifti file [-column] - only display output for one column <column> - the column to use (1-based) [-roi] - only consider data inside an roi <roi-cifti> - the roi, as a cifti file [-match-maps] - each column of input uses the corresponding column from the roi file [-mean] - compute weighted mean [-stdev] - compute weighted standard deviation [-sample] - estimate population stdev from the sample [-percentile] - compute weighted percentile <percent> - the percentile to find [-sum] - compute weighted sum [-show-map-name] - print map index and name before each output If the mapping along column is brain models, for each column of the input, the specified operation is done on each surface and across all voxels, and the results are printed separately. For other mapping types, the operation is done on each column, and one number per map is printed. Exactly one of -spatial-weights or -cifti-weights must be specified. Use -column to only give output for a single column. Use -roi to consider only the data within a region. Exactly one of -mean, -stdev, -percentile or -sum must be specified. Using -sum with -spatial-weights (or with -cifti-weights and a cifti containing weights of similar meaning) is equivalent to integrating with respect to area and volume. When the input is binary ROIs, this will therefore output the area or volume of each ROI.