Visualize Tree In Phylobayes
1
0
Entering edit mode
10.7 years ago
ce13210 • 0

Hi I am using Phylobayes and I need to visualize the .con.tree file after using the READBP command How canI visualize the tree in a phylogenetic manner?

tree visualization • 2.6k views
ADD COMMENT
0
Entering edit mode

To which format does Phylobayes print out the trees? Is it newick format?

ADD REPLY
0
Entering edit mode
7.7 years ago

I was having the same problem. Here is how I solved it:

  1. Set the proper working directory where your tree is located:

    setwd("~/Desktop/tree_here/")

  2. load Ape:

    library(ape)

  3. Read the tree into R using Ape:

    tree <- read.tree("dayhoff_bpcomp.con.tre")

  4. Write the tree to an output file using Ape:

    write.tree(tree, file = "tree.newick.tre")

I'm not sure why this works, as I cannot see any meaningful difference between the original tree and tree.newick.tre, they even have the same number of characters! However, once I went through these steps, figtree had no problem opening the tree.

ADD COMMENT

Login before adding your answer.

Traffic: 2621 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6