Learn R Programming

ggtree (version 1.4.11)

read.hyphy: read.hyphy

Description

read HYPHY output

Usage

read.hyphy(nwk, ancseq, tip.fasfile = NULL)

Arguments

nwk
tree file in nwk format, one of hyphy output
ancseq
ancestral sequence file in nexus format, one of hyphy output
tip.fasfile
tip sequence file

Value

A hyphy object

Examples

Run this code
nwk <- system.file("extdata/HYPHY", "labelledtree.tree", package="ggtree")
ancseq <- system.file("extdata/HYPHY", "ancseq.nex", package="ggtree")
read.hyphy(nwk, ancseq)

Run the code above in your browser using DataLab