read nhx tree file

read.nhx(file)

Arguments

file

nhx file

Value

nhx object

Author

Guangchuang Yu https://guangchuangyu.github.io

Examples

nhxfile <- system.file("extdata/NHX", "ADH.nhx", package="treeio") read.nhx(nhxfile)
#> 'treedata' S4 object that stored information of #> '/cache/treeio/extdata/NHX/ADH.nhx'. #> #> [email protected] phylo: #> Phylogenetic tree with 8 tips and 4 internal nodes. #> #> Tip labels: #> ADH2, ADH1, ADHY, ADHX, ADH4, ADH3, ... #> #> Rooted; includes branch lengths. #> #> with the following features available: #> 'S', 'D', 'B'.