Workbench Command is a set of command-line tools that can be used to perform simple and complex operations within Connectome Workbench.
CORRELATE CIFTI ROWS AND TAKE GRADIENT wb_command -cifti-correlation-gradient <cifti> - the input cifti <cifti-out> - output - the output cifti [-left-surface] - specify the left surface to use <surface> - the left surface file [-left-corrected-areas] - vertex areas to use instead of computing them from the left surface <area-metric> - the corrected vertex areas, as a metric [-right-surface] - specify the right surface to use <surface> - the right surface file [-right-corrected-areas] - vertex areas to use instead of computing them from the right surface <area-metric> - the corrected vertex areas, as a metric [-cerebellum-surface] - specify the cerebellum surface to use <surface> - the cerebellum surface file [-cerebellum-corrected-areas] - vertex areas to use instead of computing them from the cerebellum surface <area-metric> - the corrected vertex areas, as a metric [-surface-presmooth] - smooth on the surface before computing the gradient <surface-kernel> - the size of the gaussian surface smoothing kernel in mm, as sigma by default [-volume-presmooth] - smooth the volume before computing the gradient <volume-kernel> - the size of the gaussian volume smoothing kernel in mm, as sigma by default [-presmooth-fwhm] - smoothing kernel sizes are FWHM, not sigma [-undo-fisher-z] - apply the inverse fisher small z transform to the input [-fisher-z] - apply the fisher small z transform to the correlations before taking the gradient [-surface-exclude] - exclude vertices near each seed vertex from computation <distance> - geodesic distance from seed vertex for the exclusion zone, in mm [-volume-exclude] - exclude voxels near each seed voxel from computation <distance> - distance from seed voxel for the exclusion zone, in mm [-covariance] - compute covariance instead of correlation [-mem-limit] - restrict memory usage <limit-GB> - memory limit in gigabytes [-double-correlation] - do two correlations before taking the gradient [-fisher-z-first] - after the FIRST correlation, apply fisher small z transform (ie, artanh) [-no-demean-first] - instead of correlation for the FIRST operation, do dot product of rows, then normalize by diagonal [-covariance-first] - instead of correlation for the FIRST operation, compute covariance For each structure, compute the correlation of the rows in the structure, and take the gradients of the resulting rows, then average them. Memory limit does not need to be an integer, you may also specify 0 to use as little memory as possible (this may be very slow).