PhylogenyWrapper

Source: PhylogenyWrapper.js:20

Wraps a Phylogeny in a PHYX file and provides access to node, node labels and other information. Remember that a Phylogeny also has the additionalNodeProperties object which provides additional properties for nodes.


Constructor

new PhylogenyWrapper( phylogeny, defaultNomenCode, ): PhylogenyWrapper

Instance Methods

getTaxonomicUnitsForNodeLabel()

Return a list of taxonomic units for a node label.

If the additionalNodeProperties for this node label includes taxonomic units (using representsTaxonomicUnits = obo:CDAO_0000187), then those taxonomic units are used. Otherwise, one will be constructed using the default nomenclatural code set up when this PhylogenyWrapper was set up.

Static Methods

normalize()

Return a normalized form of the phylogeny.