Using Workbench Command

Workbench Command is a set of command-line tools that can be used to perform simple and complex operations within Connectome Workbench.

Full Documentation:

Documentation Home
FIND EXTREMA IN A METRIC FILE
   wb_command -metric-extrema
      <surface> - the surface to use for distance information
      <metric-in> - the metric to find the extrema of
      <distance> - the minimum distance between identified extrema of the same
         type
      <metric-out> - output - the output extrema metric

      [-presmooth] - smooth the metric before finding extrema
         <kernel> - the size of the gaussian smoothing kernel in mm, as sigma
            by default

         [-fwhm] - kernel size is FWHM, not sigma

      [-roi] - ignore values outside the selected area
         <roi-metric> - the area to find extrema in, as a metric

      [-threshold] - ignore small extrema
         <low> - the largest value to consider for being a minimum
         <high> - the smallest value to consider for being a maximum

      [-sum-columns] - output the sum of the extrema columns instead of each
         column separately

      [-consolidate-mode] - use consolidation of local minima instead of a
         large neighborhood

      [-only-maxima] - only find the maxima

      [-only-minima] - only find the minima

      [-column] - select a single column to find extrema in
         <column> - the column number or name

      Finds extrema in a metric file, such that no two extrema of the same type
      are within <distance> of each other.  The extrema are labeled as -1 for
      minima, 1 for maxima, 0 otherwise.  If -only-maxima or -only-minima is
      specified, then it will ignore extrema not of the specified type.  These
      options are mutually exclusive.

      If -roi is specified, not only is data outside the roi not used, but any
      vertex on the edge of the ROI will never be counted as an extrema, in
      case the ROI cuts across a gradient, which would otherwise generate
      extrema where there should be none.

      If -sum-columns is specified, these extrema columns are summed, and the
      output has a single column with this result.

      By default, a datapoint is an extrema only if it is more extreme than
      every other datapoint that is within <distance> from it.  If
      -consolidate-mode is used, it instead starts by finding all datapoints
      that are more extreme than their immediate neighbors, then while there
      are any extrema within <distance> of each other, take the two extrema
      closest to each other and merge them into one by a weighted average based
      on how many original extrema have been merged into each.

      By default, all input columns are used with no smoothing, use -column to
      specify a single column to use, and -presmooth to smooth the input before
      finding the extrema.