This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Approximating branch length values of Phygenetic tree with biopython

I have been using biopython 1.72 to display my phylogenetic tree files.

1) When I use the Phylo.draw fumction, it opens a window with tree drawn in it but it also writes the 'inner #' on every inner branch. Since it does not look good, moreover it also creates difficulty in reading the file. Can anyone help me removing the titles of inner branches?

2)Using the function 'Phylo.draw(pars_tree, branch_labels=lambda c: c.branch_length)' to display branch lengths as well on tree, the tree displays the branch length as it is (i.e., includes all numbers after decimal). While I want the numbers to be truncated to two after decimal point.

3) 'Phylo.draw' function opens the window which is very narrow and if the tree file is larger, all the branches are merged and it gets difficult to read what is written. Does anyone know any better display method?

biopython

0 answers

No answers yet.

Log in to answer this question.