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
USE LOTS OF MEMORY TO RESAMPLE DCONN
   wb_command -cifti-resample-dconn-memory
      <cifti-in> - the cifti file to resample
      <cifti-template> - a cifti file containing the cifti space to resample to
      <template-direction> - the direction of the template to use as the
         resampling space, ROW or COLUMN
      <surface-method> - specify a surface resampling method
      <volume-method> - specify a volume interpolation method
      <cifti-out> - output - the output cifti file

      [-surface-largest] - use largest weight instead of weighted average when
         doing surface resampling

      [-volume-predilate] - dilate the volume components before resampling
         <dilate-mm> - distance, in mm, to dilate

         [-nearest] - use nearest value dilation

         [-weighted] - use weighted dilation (default)

            [-exponent] - specify exponent in weighting function
               <exponent> - exponent 'n' to use in (1 / (distance ^ n)) as the
                  weighting function (default 7)

            [-legacy-cutoff] - use v1.3.2 logic for the kernel cutoff

      [-surface-postdilate] - dilate the surface components after resampling
         <dilate-mm> - distance, in mm, to dilate

         [-nearest] - use nearest value dilation

         [-linear] - use linear dilation

         [-weighted] - use weighted dilation (default)

            [-exponent] - specify exponent in weighting function
               <exponent> - exponent 'n' to use in (area / (distance ^ n)) as
                  the weighting function (default 6)

            [-legacy-cutoff] - use v1.3.2 logic for the kernel cutoff

      [-affine] - use an affine transformation on the volume components
         <affine-file> - the affine file to use

         [-flirt] - MUST be used if affine is a flirt affine
            <source-volume> - the source volume used when generating the affine
            <target-volume> - the target volume used when generating the affine

      [-warpfield] - use a warpfield on the volume components
         <warpfield> - the warpfield to use

         [-fnirt] - MUST be used if using a fnirt warpfield
            <source-volume> - the source volume used when generating the
               warpfield

      [-left-spheres] - specify spheres for left surface resampling
         <current-sphere> - a sphere with the same mesh as the current left
            surface
         <new-sphere> - a sphere with the new left mesh that is in register
            with the current sphere

         [-left-area-surfs] - specify left surfaces to do vertex area
            correction based on
            <current-area> - a relevant left anatomical surface with current
               mesh
            <new-area> - a relevant left anatomical surface with new mesh

         [-left-area-metrics] - specify left vertex area metrics to do area
            correction based on
            <current-area> - a metric file with vertex areas for the current
               mesh
            <new-area> - a metric file with vertex areas for the new mesh

      [-right-spheres] - specify spheres for right surface resampling
         <current-sphere> - a sphere with the same mesh as the current right
            surface
         <new-sphere> - a sphere with the new right mesh that is in register
            with the current sphere

         [-right-area-surfs] - specify right surfaces to do vertex area
            correction based on
            <current-area> - a relevant right anatomical surface with current
               mesh
            <new-area> - a relevant right anatomical surface with new mesh

         [-right-area-metrics] - specify right vertex area metrics to do area
            correction based on
            <current-area> - a metric file with vertex areas for the current
               mesh
            <new-area> - a metric file with vertex areas for the new mesh

      [-cerebellum-spheres] - specify spheres for cerebellum surface resampling
         <current-sphere> - a sphere with the same mesh as the current
            cerebellum surface
         <new-sphere> - a sphere with the new cerebellum mesh that is in
            register with the current sphere

         [-cerebellum-area-surfs] - specify cerebellum surfaces to do vertex
            area correction based on
            <current-area> - a relevant cerebellum anatomical surface with
               current mesh
            <new-area> - a relevant cerebellum anatomical surface with new mesh

         [-cerebellum-area-metrics] - specify cerebellum vertex area metrics to
            do area correction based on
            <current-area> - a metric file with vertex areas for the current
               mesh
            <new-area> - a metric file with vertex areas for the new mesh

      This command does the same thing as running -cifti-resample twice, but
      uses memory up to approximately 2x the size that the intermediate file
      would be.  This is because the intermediate dconn is kept in memory,
      rather than written to disk, and the components before and after
      resampling/dilation have to be in memory at the same time during the
      relevant computation.  The <template-direction> argument should usually
      be COLUMN, as dtseries, dscalar, and dlabel all have brainordinates on
      that direction.  If spheres are not specified for a surface structure
      which exists in the cifti files, its data is copied without resampling or
      dilation.  Dilation is done with the 'nearest' method, and is done on
      <new-sphere> for surface data.  Volume components are padded before
      dilation so that dilation doesn't run into the edge of the component
      bounding box.

      To get the v1.3.2 and earlier behavior of weighted dilation, specify
      exponent of 2 for surface and volume, and -legacy-cutoff for both surface
      and volume.

      The <volume-method> argument must be one of the following:

      CUBIC
      ENCLOSING_VOXEL
      TRILINEAR

      The <surface-method> argument must be one of the following:

      ADAP_BARY_AREA
      BARYCENTRIC