Custom SVG attributes with ETE
1
1
Entering edit mode
8.7 years ago
lelle ▴ 830

Is there a way to add attributes to the SVG output of the ETE tree drawing toolkit?

I am drawing phylogenetic trees as svg and would like to add the NCBI taxonomy ID as ID attribute to the node in the SVG. This would let me select them easily with java script, when using the SVG in a html page.

svg etetoolkit phylogenetic-tree • 1.6k views
ADD COMMENT
2
Entering edit mode
8.7 years ago
jhc ★ 3.0k

Unfortunately this is not possible. The closest you can get is to generate a png image and use the pixel map dictionary returned by the tree.render() function.

ADD COMMENT

Login before adding your answer.

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