BEAST v2.5.0 Documentation: beast.evolution.tree.TraitSet

A trait set represent a collection of properties of taxons, for the use of initializing a tree. The traits are represented as text content in taxon=value form, for example, for a date trait, wecould have a content of chimp=1950,human=1991,neander=-10000. All white space is ignored, so they canbe put on multiple tabbed lines in the XML. The type of node in the tree determines what happes with this information. The default Node only recognizes 'date', 'date-forward' and 'date-backward' as a trait, but by creating custom Node classes other traits can be supported as well.

Inputs:

traitname, units, value, taxa, dateFormat

 

traitname
type: java.lang.String
name of the trait, used as meta data name for the tree. Special traitnames that are recognized are 'date','date-forward' and 'date-backward'.
Required input

 

units
type: beast.evolution.tree.TraitSet$Units
name of the units in which values are posed, used for conversion to a real value. This can be [year, month, day] (default 'year')
Optional input

 

value
type: java.lang.String
traits encoded as taxon=value pairs separated by commas
Required input

 

taxa
type: beast.evolution.alignment.TaxonSet
contains list of taxa to map traits to
Required input

 

dateFormat
type: java.lang.String
the date/time format to be parsed, (e.g., 'dd/M/yyyy')
Optional input