Workbench Command is a set of command-line tools that can be used to perform simple and complex operations within Connectome Workbench.
REGRESS SPATIAL MAP OUT OF A METRIC FILE
wb_command -metric-regression
<metric-in> - the metric to regress from
<metric-out> - output - the output metric
[-roi] - only regress inside an roi
<roi-metric> - the area to use for regression, as a metric
[-column] - select a single column to regress from
<column> - the column number or name
[-remove] - repeatable - specify a metric to regress out
<metric> - the metric file to use
[-remove-column] - select a column to use, rather than all
<column> - the column number or name
[-keep] - repeatable - specify a metric to include in regression, but not
remove
<metric> - the metric file to use
[-keep-column] - select a column to use, rather than all
<column> - the column number or name
For each regressor, its mean across the surface is subtracted from its
data. Each input map is then regressed against these, and a constant
term. The resulting regressed slopes of all regressors specified with
-remove are multiplied with their respective regressor maps, and these
are subtracted from the input map.