Phylogenies: Adding Colors
1
1
Entering edit mode
11.2 years ago
Lee Katz ★ 3.2k

Hi Biostars, I am wondering how to decorate a tree properly on the command line. I need to add colors to specific nodes that I have in a separate spreadsheet. I am able to do that with Bio::TreeIO and the other BioPerl modules. However, how do I add colors? Looking at Nexus files generated from FigTree, it looks possible. I am just wondering how to implement it in BioPerl.

While we're on the subject, how do we do other things like adding bold, underline, italics, font changes, etc? Thank you!

edit I just want to bump this up in case this question got pushed down too far. I'm looking forward to making pretty trees!

phylogeny bioperl • 4.9k views
ADD COMMENT
3
Entering edit mode
11.1 years ago
Josh Herr 5.8k

Hi Lee Katz,

I do most of my phylogenetic tree editing in FigTree, which I like a lot, and do any pre-publication cleaning in Illustrator. As far as command line, I have let go of any BioPerl I was using, and now when I want to generate phylogenetic trees and place accents on them I use BioPython and particularly the ETE package (which now has nice integration with ipython-notebook).

ADD COMMENT
0
Entering edit mode

So if I understand correctly, your strategy is to simply make a PDF out of a given tree? Not to apply color and font attributes to a tree file?

ADD REPLY
1
Entering edit mode

I don't think that's what he meant. You can still add color/font attributes with Illustrator. As a matter of fact, in my opinion, Illustrator works much more efficiently in aesthetics perspective than using command line tools. I usually edit my trees (and other things, such as graphics file generated with R), to the extent that the actual data represented by the image is not distorted.

ADD REPLY
0
Entering edit mode

+1, yes, thanks for clarifying my post youngcsong

ADD REPLY

Login before adding your answer.

Traffic: 1849 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