compute_times_ca: Common Ancestors Times

View source: R/generic_functions.R

compute_times_caR Documentation

Common Ancestors Times

Description

compute_times_ca computes the times t_ij between the root and the common ancestor of two tips i, j.

Usage

compute_times_ca(phy)

Arguments

phy

a phylogenetic tree of class phylo.

Details

This function relies on ape functions node.depth.edgelength and mrca.

Value

a matrix of times of shared evolution, ordered as the tips of the tree. The matrix is of type symmetricMatrix-class.


pbastide/PhylogeneticEM documentation built on Feb. 12, 2024, 1:27 a.m.