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

View source: R/calibrations_congruify.R

congruify_and_mrca_multiPhyloR Documentation

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

Description

congruify_and_mrca_multiPhylo congruifies a target tree against all source chronograms in a multiPhylo object, and gets nodes of target tree that correspond to the most recent common ancestor (mrca) of taxon pairs in the congruified calibrations. It calls congruify_and_mrca_phylo(), and phytools::findMRCA() to get mrca nodes.

Usage

congruify_and_mrca_multiPhylo(phy, source_chronograms)

Arguments

phy

A phylo object.

source_chronograms

A multiPhylo object, output of datelife_search().

Value

a data.frame of node ages from source_chronograms and corresponding mrca nodes in target tree phy. attributes(return)$phy stores the congruified and mrca matched phylogeny.


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