Workbench Command is a set of command-line tools that can be used to perform simple and complex operations within Connectome Workbench.
CHANGE KEY VALUES IN A VOLUME LABEL FILE wb_command -volume-label-modify-keys <volume-in> - the input volume label file <remap-file> - text file with old and new key values <volume-out> - output - the output volume label file [-subvolume] - select a single subvolume <subvolume> - the subvolume number or name <remap-file> should have lines of the form 'oldkey newkey', like so: 3 5 5 8 8 2 This would change the current label with key '3' to use the key '5' instead, 5 would use 8, and 8 would use 2. Any collision in key values results in the label that was not specified in the remap file getting remapped to an otherwise unused key. Remapping more than one key to the same new key, or the same key to more than one new key, results in an error. This will not change the appearance of the file when displayed, as it will change the key values in the data at the same time.