congruify_and_mrca_phylo: Congruify nodes of a tree topology to nodes from a source...

View source: R/calibrations_congruify.R

congruify_and_mrca_phyloR Documentation

Congruify nodes of a tree topology to nodes from a source chronogram, and find the mrca nodes

Description

congruify_and_mrca congruifies a target tree against a single source chronogram, and gets nodes of target tree that correspond to the most recent common ancestor (mrca) of taxon pairs from the congruified calibrations. It uses phytools::findMRCA() to get mrca nodes.

Usage

congruify_and_mrca_phylo(phy, source_chronogram, reference)

Arguments

phy

A phylo object.

source_chronogram

A phylo object, output of datelife_search().

reference

A character string indicating the study reference that the source_chronogram comes from.

Value

a data.frame of node ages from source_chronograms and corresponding mrca nodes in target tree phy.


datelife documentation built on July 10, 2023, 2:02 a.m.