Description Usage Arguments Value Author(s) See Also Examples
This function computes the population size of the most recent common ancestor of two nodes.
1 | 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@uga.edu
1 2 3 4 5 6 7 | 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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.