rrf.rates: Estimate relative lineage rates.

Description Usage Arguments Value Author(s) References Examples

View source: R/rrf.rates.R

Description

This function estimates relative lineage rates from a branch length tree using the relative rate framework (RRF).

Usage

1
rrf.rates(tree.name = "", outgroup = "", filename = "")

Arguments

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 file.

Value

A table of relative lineage rates (<filename>_RRF_rates.csv).

Author(s)

Qiqing Tao (qiqing.tao@temple.edu) and Sudhir Kumar

References

K. Tamura et al. Mol. Biol. Evol. (2018) 35:1770-1782. doi:10.1093/molbev/msy044.

Examples

1
2
3
# Please download the "example.nwk" from https://github.com/cathyqqtao/RRF/tree/main/data.

rrf.rates(tree.name = "data/example.nwk", outgroup = c("Ornithorhynchus_anatinus", "Zaglossus_bruijni", "Tachyglossus_aculeatus"), filename = "data/example")

cathyqqtao/RRF documentation built on Dec. 19, 2021, 1:55 p.m.