MetadataTree
- public class tyche.evolution.tree.MetadataTree extends beast.base.evolution.tree.Tree
A Tree that can store extra metadata for its tips.
- Map tipMetaData
HashMap of metadata hash maps
i.e. tipMetaData.get(“traitName”) will return a hashmap that maps each tip to its traitName value.
- protected void processTraits(List traitList)
Process trait sets.
- Parameters:
traitList – List of trait sets.
- public Object getTipMetaData(String pattern, String tipID)
Get the metadata value associated with a tip by its trait name
- Parameters:
pattern – a String representing the name of the trait
tipID – a String representing the taxon/ID of the tip to get metadata for
- Returns:
Object representing the metadata value of trait name ‘pattern’ associated with tip ‘tipID’
- public Set getTipMetaDataNames()
Get the names of the metadata traits associated with this tree.
- Returns:
Set of Strings containing all the metadata/trait names associated with this tree.