Description Usage Arguments Value Author(s) References Examples
View source: R/rrf.rates.times.R
This function estimates relative lineage rates and node times from a branch length tree using the relative rate framework (RRF).
1 | rrf.rates.times(tree.name = "", outgroup = "", filename = "", plot = TRUE)
|
tree.name |
a file name of the branch length tree that is in the Newick format. |
outgroup |
a character list containing names of tips belonging to the rooting outgroup, which will be removed in the calculation. If outgroup = "" (the default), the input tree must be rooted and no tips will be removed. |
filename |
a file name specified for the output files. |
plot |
logical. If TRUE (default), the inferred timetree is plotted with the branches colored by the relative rates. |
A table of relative lineage rates and node times (<filename>_RRF_table.csv).
A timetree with branches colored by the relative rates (<filename>_RRF_timetree.nexus).
Qiqing Tao (qiqing.tao@temple.edu) and Sudhir Kumar
K. Tamura et al. Mol. Biol. Evol. (2018) 35:1770-1782. doi:10.1093/molbev/msy044.
1 2 3 | # Please download the "example.nwk" from https://github.com/cathyqqtao/RRF/tree/main/data.
rrf.rates.times(tree.name = "data/example.nwk", outgroup = c("Ornithorhynchus_anatinus", "Zaglossus_bruijni", "Tachyglossus_aculeatus"), filename = "data/example", plot = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.