Learn R Programming

PhySortR (version 1.0.9)

convert.eNewick: Converts Extended Newick Format to Traditional Newick Format

Description

Takes a phylogenetic tree in extended Newick format and converts it to traditional Newick format that can be directly manipulated by packages such as ape and phytools.

Usage

convert.eNewick(eNewick)

Value

phylogenetic tree in traditional Newick format.

Arguments

eNewick

phylogenetic tree in extended Newick format.

Examples

Run this code
 ### Converts the phylogenetic tree into traditional Newick format. 
 tree <- "((A:0.1,(B:0.3,C:0.2):0.2[60]):0.4[100],(E:0.12,F:0.09):0.4[100]);"
 new.tree <- convert.eNewick(tree)
 new.tree

Run the code above in your browser using DataLab