How to annotate nodes in trees using R?
1
1
Entering edit mode
7.5 years ago
Speed.Lee ▴ 30

Hi, I am a newbie in biology. Currently, I am working with R to generate trees (but not in biology, for other subjects). I just have some concern using phangron and ape (other packages of R is OK if they can solve this problem).

My data is like this, binary datasets.

Format of data

And what I want to generate are trees like this: all the characteristics made the difference are labelled in the tree (automatically, not point by me after generated the tree). I do not mind if they are annotated at nodes or on edges.

Tree format wanted

Is it possible? How can I do it? Thanks in advance for the comments.

R • 2.3k views
ADD COMMENT
0
Entering edit mode
7.5 years ago

Check itol's website. Also, see http://docs.phylotoast.org/en/latest/scripts/iTol.html

ADD COMMENT
1
Entering edit mode

Thanks, this is a great website, but I am afraid it is not so suitable for me because I need to finish it by R.

I found Last common ancestor method mentioned on the website might be helpful for this topic, so I decide to do some research on it. Thanks again for the help!

ADD REPLY
0
Entering edit mode

Try - ggtree and phyloseq packages

ADD REPLY

Login before adding your answer.

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