[Biopython] Using Phylo to draw trees with images in nodes

Jaime Tovar jmtc21 at bath.ac.uk
Fri Oct 17 14:23:23 UTC 2014


Hi Peter,

I'm trying to produce a simple version of a tree like this one:

http://etetoolkit.org/static/img/gallery/phylo400x400.png

With the small pictures of the species in the terminal nodes and the
species names, not the rest of the complicated stuff.

The images I have are in jpg and png. But I guess I can use python to
transform into the format needed.

Thanks!

Jaime.


On 17/10/14 14:41, Peter Cock wrote:
> On Fri, Oct 17, 2014 at 2:05 PM, Jaime Tovar <jmtc21 at bath.ac.uk> wrote:
>> Hi all,
>>
>> Sorry, seems my google fu is low today. Have been trying to find information
>> about a way to add small images next to the species names in trees generated
>> with Biopython/Phylo. But I'm not even sure it is possible. I want to do
>> something in the likes of trees produced with ETE2. I can't use ETE2 because
>> of problems with the dependencies :(.
>>
>> Thanks in advance for any help!
>>
>> Jaime.
> Hi Jaime,
>
> Can you post a link to the kind of image you want to make? I'm not
> familiar with ETE2 so I'm not entirely sure what you are asking for.
> However, I suspect it is not yet possible with the Bio.Phylo code as it
> is, but extending it or automating adding the images on top of the tree
> output might be?
>
> Which of the backends or image types are you hoping to use? e.g. SVG, PNG?
>
> Peter



More information about the Biopython mailing list