Elaine,

you can read the tree using the 'ape' package in R:
library(ape)
tree<-read.nexus('path_to_your_tree.nex')

then, you will find the tip labels in the following vector:
tree$tip.label

you can change the names by selecting one element in the vector and
modifying it, for example:
tree$tip.label[20]<-"Paridae"
or
tree$tip.label['BB3']<-"Paridae"

Florian



2013/4/3 Elaine Kuo <[email protected]>

> Hello
>
> I have downloaded a phylogenetic tree of global birds. (.nex file)
> Some of its tips are labelled as codes, such as BB3 and BB4.
>
> I want to rename the codes with normal family names.
> Please kindly advise the package and command to do it.
> Thank you.
>
> Elaine
>
>         [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-phylo mailing list - [email protected]
> https://stat.ethz.ch/mailman/listinfo/r-sig-phylo
> Searchable archive at
> http://www.mail-archive.com/[email protected]/
>

        [[alternative HTML version deleted]]

_______________________________________________
R-sig-phylo mailing list - [email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-phylo
Searchable archive at http://www.mail-archive.com/[email protected]/

Reply via email to