|
TreeDyn Scripting | Commands |
|
|
Commands library
|
| Commands (alphabetic order) | AN | ANmatrix | color | find | font | ID | legend | operation | shape | stipple | symbol | tabulation | text | |
operation ![]() |
The operation command set the current graphical operation. Operations are now referenced by Ids. For instance, operation l01 set the current graphical operation to Leaf Foreground Color. It means that queries (Find process, Localisation process) will hightlight matching leaves by switching their foreground color to the current color. The script "color red ; operation l01 ; find A*" will update the foreground color to red for leaves begining with the character "A". Operations list Nota Bene: previous scripts using key words for operations are still readables by TreeDyn. |
color ![]() |
The color command enables setting of the current color.
TreeeDyn recognizes many symbolic color names (eg, red) when specifying colors.
The symbolic names recognized by TreeDyn and their 8-bit RGB values are here |
tabulation ![]() |
tabulation help you managing the display of text or symbols organised in columns and in regards of leaves.
|
find ![]() |
the find command help you locating leaves on a tree knowing their name. Patterns may be used on leaves names, helping you to detect clusters. It may be usefull if the leaves names integrate knowledge throught a given code. |
AN ![]() |
the AN command is for ANnotation. A labels file is necessary.
A first argument is either "LeavesReplace", "LeavesAdd" or Columns.
ex.1: AN LeavesReplace {Labels {Name}} replace the leaves name by the value of the variable "Name" from the "Labels" file ex.2: AN LeavesAdd {Labels {TypeStrain}} add the value of the variable "Name" from the "Labels" file The AN command have a second argument which is optional. It enables a format of the annotation with a prefix, a suffix and finally a translation on the ordinate axis. For instance the command AN LeavesAdd {Labels {TypeStrain}} {prefix "(" suffix ")"} will add the strings "(" and ")" before and after the annotation respectively. Moreover the annotation can be translated on the Y axis with the option exposant $value. For instance, with the following command the annotation will be translate of 3 pixels on the Y axis: AN LeavesAdd {Labels {TypeStrain}} {prefix "(" exposant -3 suffix ")"} Finally, AN Columns {Labels {TypeStrain}} add the values of the TypeStrain variables in regards of leaves and as a column. |
ID ![]() |
The ID command is for IDentification. A labels file is necessary. |
loadtree ![]() |
The loadtree command is for opening a tree file in a new document. |
loadlabel ![]() |
The loadlabel command is for loading a labels file. |
ANmatrix ![]() |
ANmatrix is an specific annotation command for binary variables. This command needs an annotations file whith variables having values 1 or 0. Once the annotations file loaded, the ANmatrix command is used with one argument : the list of the variable you want to project as a boxes matrix, with one colmun per variable. For instance, the script ANmatrix sample02 {Sp1 Sp2 Sp3 Sp4 Sp5 Sp6 Sp7 Sp8 Sp9} returns the following result :
|