Chapter 7. Handling graphs

Table of Contents

Copy a set of graph attributes to another graph

Copy a set of graph attributes to another graph

HELP: command help for AimsGraphConvert

DATA: no data.

This case generally happens when working on automatically labelled sulci graphs. The nodes labels are given as the label attribute (automatic recognition labels), and you sometimes need to copy them to the name attribute (manual labelling). You have 2 possibilities to do it: manually or automatically.

MANUALLY: you can verify each value of label attribute and correct it if necessary. To do so, change the value of the name attribute in a browser window (using a right-click on a graph node), and save the graph as a new graph (right-click on the graph in Anatomist control window and select File => Save).

AUTOMATICALLY: you can use the AimsGraphConvert commandline. The following example shows how to use it:

prompt% AimsGraphConvert -i subjectAuto.arg -o subjectAutoName.arg -c label -d name 
This command has many other options, but for the current application, the useful ones are:

  • -i option: input graph, for instance an autolabelled.

  • -o option: output file name.

  • -c option: attribute to be copied.

  • -d option: destination attribute.