Gets the most recent common ancestor (MRCA) of two nodes.
Source:R/inferDivergenceTimes.R
getMRCA.RdComputes the most recent common ancestor of two nodes, given their timelines from TimeTree.
Arguments
- taxid1
An integer: The NCBI id of one taxon
- taxid2
An integer: The NCBI id of the other taxon
- timelines
A named list mapping each node to its timeline from TimeTree. Each timeline contains all ancestors of the node up to the root of the Tree of Life. A timeline is represented as a dataframe with one row per ancestor.