popsize {phybase} | R Documentation |
This function computes the population size of the most recent common ancestor of two nodes.
popsize(inode, jnode, nodematrix)
inode |
the first node, it could be an internode. |
jnode |
the second node, it could be an internode. |
nodematrix |
the tree node matrix |
The function returns the population size of the most recent common ancestor of inode
and jnode
.
Liang Liu lliu@oeb.harvard.edu
treestr<-"((((H:0.00402,C:0.00402#0.035):0.00304,G:0.00706):0.00929,O:0.01635):0.1,W:0.11635);" nodematrix<-read.tree.nodes(treestr)$nodes popsize(1,2,nodematrix) #[1] -9 ##this tree does not have values for population size. popsize(1,1,nodematrix) #[1] 0.035 ##the population size for the species C is 0.035