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 DLABEL FILE wb_command -cifti-label-modify-keys <cifti-in> - the input dlabel file <remap-file> - text file with old and new key values <cifti-out> - output - the output dlabel file [-column] - select a single column to use <column> - the column 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.