makeL1 function

Matrix of branch lengths along a root-to-node path

Matrix of branch lengths along a root-to-node path

This function produces a nnn * n matrix, where n=number of internal branches. Each row represents the branch lengths aligned along a root-to-node path.

makeL1(tree)

Arguments

  • tree: a phylogenetic tree. The tree needs not to be ultrametric and fully dichotomous.

Returns

The function returns a nnn * n matrix of branch lengths for all root-to-node paths (one per each node of the tree).

Examples

data("DataApes") DataApes$Tstage->Tstage makeL1(tree=Tstage)->ml1

Author(s)

Pasquale Raia, Silvia Castiglione, Carmela Serio, Alessandro Mondanaro, Marina Melchionna, Mirko Di Febbraro, Antonio Profico, Francesco Carotenuto

  • Maintainer: Silvia Castiglione
  • License: GPL-2
  • Last published: 2025-03-23

Useful links