decendDist: Get the relative rates of two decendant branches.

Description Usage Arguments References

View source: R/rrelrates.R

Description

Get the relative rates of two decendant branches.

Usage

1
decendDist(bnode, t, finalrates)

Arguments

bnode

a node in the tree with two decendants

t

the tree

finalrates

ancestral relative rates, which are used as multipliers Method: Get the average distance from bnode to all decendant tips (avgdist). For each of bnode's direct child nodes (c1,c2): Get the total distance from this node to each tip (c1dist,c2dist). Divide this total by avgdist (rate1,rate2). If bnode is not the root node: Multiply each rate by the ancestor relative rate.

References

Tamura et al. 2012 PNAS


rachelss/rrelrates documentation built on May 26, 2019, 8:52 p.m.