This is a test version of Biostars. For the public version, visit https://www.biostars.org.
annotating Multiple Phylogenetic trees on the basis of color

Hello everyone,

I have multiple phylogenetic trees (more than 5000) in newick format and I want to color them according to their tip label. I know this can be done in package ape and phytools in R, but, I am not getting how to annotate multiple trees at once using these packages. What I want is graphical output with 1. colored annotation, 2. Midpoint root, 3. laddrise descending

Can someone please help me how to made this possible ?

r phylogenetic analyses ape

2 answers

Have you had a look at ETE form Python ? Its super easy to use if you know python.

http://etetoolkit.org/docs/latest/index.html

1)Traverse each node of a tree, or each terminal branch 2) Add a color attribute to each.
3) Then render the image.

Goodluck, R

If the R packages you are interested in don't offer a method for doing multiple trees simultaneously as a convenience method, which isn't that surprising, you can always write an R script to iterate over the trees and do them sequentially. Same goes for ETE in Python as @moranr suggested. You can take advantage of parallele processing fairly easily in Python with Map/Reduce or similar with the Multiprocessing package.

Log in to answer this question.