Serialize an annotated phylogenetic tree
This function takes the given tree object and returns a string
representing the tree in the requested format. The difference between
"newick.named" formats is that the
former uses only node numbers in its output, whereas the latter uses
the tip labels (sanitized and deduplicated if necessary).
a phylogentic tree, with optional annotations
a format specifier; either
The tree object should be either a
"multiPhylo" object. It may optionally be augmented with
annotations, as described in the documentation for the
The output is a string suitable for writing to a file.
a string containing a serialized tree.