BEAST v2.7.8 Documentation: feast.fileio.TraitSetFromTaxonSet

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.
Initialize a trait set from a taxon set. Permits similar functionality to the 'autoconfigure' option in BEAUti.

Inputs:

delimiter, everythingBeforeFirst, everythingAfterLast, takeGroup, traitname, units, value, taxa, dateFormat

 

delimiter
type: java.lang.String
Delimiter used to split taxon names.
Required input

 

everythingBeforeFirst
type: java.lang.Boolean
Use everything before this delimiter.
Optional input. Default: false

 

everythingAfterLast
type: java.lang.Boolean
Use everything before this delimiter.
Optional input. Default: false

 

takeGroup
type: java.lang.Integer
Use everthing in this group.
Optional input. Default: -1

 

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

 

units
type: beast.base.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
Optional input

 

taxa
type: beast.base.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