add node labels to tree with script or R?

221 views
Skip to first unread message

Ruhfel

unread,
Jul 19, 2014, 4:42:12 PM7/19/14
to figtree...@googlegroups.com
Dear all,

I am looking for a way to add two labels to each node in a tree dated with Beast. Here is an example of what the tree looks like:
((Taxon1:14.321397751196178,Taxon2:14.321397751196178):37.6652281913876,Taxon3:51.986622105263194):39.47327979904299)... etc.

In another file I have a list of nodes in the tree identified by most recent common ancestor of two taxa. All nodes in the tree are labeled this way, for example:

MRCA Taxon1 Taxon4
MRCA Taxon1 Taxon2
Etc

For each of these MRCAs I also have two labels I would like to place at each node
MRCA Taxon1 Taxon4
Label1=value1
Labe2=value2

After adding the labels I would  like to be able to open the tree in FigTree and display both values to help me make the figure for publication. I think I could display one value as a node label and the other value as a branch label.

Does anyone have any suggestions on how to do this?

Many thanks in advance for the help,
Brad

ber...@gmail.com

unread,
Nov 22, 2014, 2:43:29 PM11/22/14
to figtree...@googlegroups.com
If you are already in R, you can use APE and nodelabels to make nice trees with labels...

 nodelabels(Label,NodeNum,cex=0.7, bg=ColorName,col="white",frame="c")


Rachel

unread,
Dec 4, 2014, 8:15:43 PM12/4/14
to figtree...@googlegroups.com
I want to follow this discussion because I want to do the same, only OUTSIDE figtree (in another program like treegraph).

R
Reply all
Reply to author
Forward
0 new messages