write.tree.string {phybase} | R Documentation |
The function writes tree strings to a file in NEXUS or PHYLIP format.
write.tree.string(X, format = "Nexus", file = "", name = "")
X |
a vector of tree strings |
format |
tree file format |
file |
the file name |
name |
the species names |
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.
The function returns a tree file in the format of NEXUS or PHYLIP.
Liang Liu lliu@oeb.harvard.edu
Felsenstein, J. The Newick tree format. http://evolution.genetics.washington.edu/phylip/newicktree.html
write.subtree
, read.tree.string