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
REPLACE DATA IN A STRUCTURE IN A CIFTI FILE
   wb_command -cifti-replace-structure
      <cifti> - the cifti to modify
      <direction> - which dimension to interpret as a single map, ROW or COLUMN

      [-volume-all] - replace the data in all volume components
         <volume> - the input volume

         [-from-cropped] - the input is cropped to the size of the data

      [-discard-unused-labels] - when operating on a dlabel file, drop any
         unused label keys from the label table

      [-label-collision] - how to handle conflicts between label keys
         <action> - 'ERROR', 'LEFT_SURFACE_FIRST', or 'LEGACY', default
            'ERROR', use 'LEGACY' to match v1.4.2 and earlier

      [-label] - repeatable - replace the data in a surface label component
         <structure> - the structure to replace the data of
         <label> - the input label file

      [-metric] - repeatable - replace the data in a surface component
         <structure> - the structure to replace the data of
         <metric> - the input metric

      [-volume] - repeatable - replace the data in a volume component
         <structure> - the structure to replace the data of
         <volume> - the input volume

         [-from-cropped] - the input is cropped to the size of the component

      This is a fairly low-level command, you probably want to use
      -cifti-create-dense-from-template instead.

      You must specify at least one of -metric, -label, -volume, or -volume-all
      for this command to do anything.  Input volumes must line up with the
      output of -cifti-separate.  For dtseries/dscalar, use COLUMN, and if your
      dconn matrix will be fully symmetric, COLUMN is more efficient.  The
      -volume-all option must not be specified when using a -volume option.  A
      -metric option must not be specified when using a -label option, and is
      not recommended on a label-type cifti file.  For each <structure>
      argument, use one of the following strings:

      CORTEX_LEFT
      CORTEX_RIGHT
      CEREBELLUM
      ACCUMBENS_LEFT
      ACCUMBENS_RIGHT
      ALL_GREY_MATTER
      ALL_WHITE_MATTER
      AMYGDALA_LEFT
      AMYGDALA_RIGHT
      BRAIN_STEM
      CAUDATE_LEFT
      CAUDATE_RIGHT
      CEREBELLAR_WHITE_MATTER_LEFT
      CEREBELLAR_WHITE_MATTER_RIGHT
      CEREBELLUM_LEFT
      CEREBELLUM_RIGHT
      CEREBRAL_WHITE_MATTER_LEFT
      CEREBRAL_WHITE_MATTER_RIGHT
      CORTEX
      DIENCEPHALON_VENTRAL_LEFT
      DIENCEPHALON_VENTRAL_RIGHT
      HIPPOCAMPUS_LEFT
      HIPPOCAMPUS_RIGHT
      INVALID
      OTHER
      OTHER_GREY_MATTER
      OTHER_WHITE_MATTER
      PALLIDUM_LEFT
      PALLIDUM_RIGHT
      PUTAMEN_LEFT
      PUTAMEN_RIGHT
      THALAMUS_LEFT
      THALAMUS_RIGHT