tp_phylo_2_TreePPL
takes an object of class phylo
and returns
a TreePPL json str ready to print in a data file for TreePPL use.
Arguments
- phylo_tree
an object of class ape::phylo.
- age
a string that determine the way the age of the node are calculated (default "branch-length").
"branch-length" : Root's age = NA, branch-length from the parent branch
"top-down" : Root's age = 0.0, cumulative branch-length from root
"down-top" : Leaf's age = 0.0, cumulative branch-length from leaf