Skip to contents

Congruify a patristic matrix array from a given phylo object.

Usage

patristic_matrix_array_phylo_congruify(
  patristic_matrix,
  target_tree,
  dating_method = "PATHd8",
  attempt_fix = TRUE
)

Arguments

patristic_matrix

A patristic matrix, rownames and colnames must be taxa.

target_tree

A phylo object. Use this in case you want a specific backbone for the output tree.

dating_method

The method used for tree dating.

attempt_fix

Default to TRUE. If congruification results in NA branch lengths, it will attempt to fix them.

Value

A matrix.