treeinfo: Title: Extract Structural Information from a Phylo Tree

View source: R/01_tree_structure.R

treeinfoR Documentation

Title: Extract Structural Information from a Phylo Tree

Description

treeinfo() provides the basic information from a phylogenic tree without the distances.

Usage

treeinfo(tree)

Arguments

tree

A "phylo" structured tree file

Details

This is adapted from Tao Wang and Hongyu Zhao (2017)

Value

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).


Goodgolden/LDTM documentation built on May 25, 2022, 5:25 p.m.