write.tree.string {phybase}R Documentation

Write a tree file

Description

The function writes tree strings to a file in NEXUS or PHYLIP format.

Usage

write.tree.string(X, format = "Nexus", file = "", name = "")

Arguments

X a vector of tree strings
format tree file format
file the file name
name the species names

Details

If name is provided, the function will use name as the species names in the translation block in the NEXUS tree file. Otherwise, the species names will be extracted from the tree strings.

Value

The function returns a tree file in the format of NEXUS or PHYLIP.

Author(s)

Liang Liu lliu@oeb.harvard.edu

References

Felsenstein, J. The Newick tree format. http://evolution.genetics.washington.edu/phylip/newicktree.html

See Also

write.subtree, read.tree.string


[Package phybase version 1.1 Index]