ancandtime {phybase} | R Documentation |
This function returns the ancestors of a node and their divergence times.
ancandtime(inode, nodematrix, nspecies)
inode |
a node in the tree. |
nodematrix |
the tree matrix. |
nspecies |
number of species (taxa) in the tree. |
Liang Liu
treestr<-"((((H:0.00402,C:0.00402):0.00304,G:0.00706):0.00929,O:0.01635):0.1,W:0.11635);" nodematrix<-read.tree.nodes(treestr)$nodes inode<-6 ancandtime(inode,nodematrix,nspecies=5)