How to make a label file

A labels file is set of records in a text file format.
There is one record per row in a label file.
A record begin with the name of a leaf which is followed by a list of variable/value(s) pairs.
Ex. 1:
SKI2 Subcellular_loc Cytoplasmic Cellular_Role RNA_turnover FuncCat RNA-binding_protein
SKI3 Subcellular_loc {Cytoplasmic Nuclear} Cellular_Role RNA_turnover
The Ex.1 is a labels file with 2 records. The first row is a record related to the "SKI2" leaf. There is 3 variables : Subcellular_loc, Cellular_Role and FuncCat. Each variable have a value, respectively: Cytoplasmic, RNA_turnover and RNA-binding_protein.
The second row is a record related to the "SKI3" leaf. This record has 2 variables which are Subcellular_loc and Cellular_Role.
Here, the variable Subcellular_loc is multi-valued : Cytoplasmic and Nuclear. Brackets must be used for such a list of values.
Also, the FuncCat variable is not present in the SKI3 record, simply because we do not have information for this leaf regarding this variable.
Nota Bene:
- brackets "{" and "}" must be used for list of values.
- brackets "{" and "}" must be used with variables names containing spaces.
- records of a given labels file do not have necessary the same variables list. In case of unknown values it is nevertheless possible to used generic values such as "0", "Unknown", "NS", and so on
- there is no order to respect in the variable/values pair list between the differents records.
- leaves names, variable names and values are string characters without space.
- leaves names, variables and their values do not contain the following characters: {, }, (, ), [, ], *, ?, ". Numbers are possibles.
- for localisation/labelisation processes the leave names must be exactly the same between the graphical representation and the label file. In particular upper/lower cases must be respected.
- a given label file may contains several records related to the same leave, with or without new variables.
- it is possible to distributed information on differents labels files.
If you have a leaves (rows) * variables (columns) labels matrix, you may translate it into a TreeDyn labels file using the Library panel (option 4).
|