[R-sig-phylo] How to replace a clade with a single node?

2012-03-01 Thread Ania Tassinari
Hello everyone, I am working with a large tree with ~450 tips. Some leaves are redundant as the organisms come from same Genus. I would like to be able to replace the redundant clades with a single leaf representative of the members of the clade. For example, if I have: library(ape) myNewick =

Re: [R-sig-phylo] How to replace a clade with a single node?

2012-03-01 Thread Emmanuel Paradis
Hello Ania, See the functions drop.tip and bind.tree. They both have an 'interactive' option. If you want to use node labels, if available, you can find a node number from its label, say xyz, with: grep(xyz, phy$node.label) + Ntip(phy) Best, Emmanuel -Original Message- From: Ania