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
REMOVE ISLANDS FROM AN ROI METRIC
   wb_command -metric-remove-islands
      <surface> - the surface to use for neighbor information
      <metric-in> - the input ROI metric
      <metric-out> - output - the output ROI metric

      [-corrected-areas] - vertex areas to use instead of computing them from
         the surface
         <area-metric> - the corrected vertex areas, as a metric

      Finds all connected areas in the ROI, and zeros out all but the largest
      one, in terms of surface area.