View source: R/01_tree_structure.R
| treeinfo | R Documentation |
treeinfo() provides the basic information from a phylogenic tree
without the distances.
treeinfo(tree)
tree |
A "phylo" structured tree file |
This is adapted from Tao Wang and Hongyu Zhao (2017)
A list object contains necessary information from the tree.
The output has the following properties:
Nnodes: integer the number of nodes in the given "phylo" tree
Ntips: integer the number of tips/leaves in the given "phylo" tree
Tredge: matrix the matrix for the edges information;
each row represents the two ends of the edges
TreeMat: matrix the matrix consists of logical values;
the binary value of each taxa (by row) belongs to
a given leaf or inner node (by col).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.