read.hyphy: read.hyphy

Description Usage Arguments Value Author(s) Examples

View source: R/hyphy.R

Description

read HYPHY output

Usage

1
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

Author(s)

Guangchuang Yu https://guangchuangyu.github.io

Examples

1
2
3
nwk <- system.file("extdata/HYPHY", "labelledtree.tree", package="treeio")
ancseq <- system.file("extdata/HYPHY", "ancseq.nex", package="treeio")
read.hyphy(nwk, ancseq)

Example output

'hyphy' S4 object that stored information of 
	 '/usr/local/lib/R/site-library/treeio/extdata/HYPHY/labelledtree.tree'and '/usr/local/lib/R/site-library/treeio/extdata/HYPHY/ancseq.nex' .
...@ tree:
Phylogenetic tree with 15 tips and 13 internal nodes.

Tip labels:
	K, N, D, L, J, G, ...
Node labels:
	Node1, Node2, Node3, Node4, Node5, Node12, ...

Unrooted; includes branch lengths.

with the following features available:
	'tip sequence not available...
'.
Warning message:
In get.fields(object) : tip sequence not available...

treeio documentation built on Nov. 21, 2020, 2:01 a.m.