Extract Phylogenetic Eigenvectors to represent the phylogenetic relationship in a matrix format for use as NN features.

iucnn_prepare_phy(phy, variance_fraction = 0.8, numeigen = NULL)

Arguments

phy

phylogenetic te in phylo format

variance_fraction

select number of Eigenvalues that cumulative explain a specified fraction of variance

numeigen

select the number eigenvalues

Value

a matrix of phylogenetic Eigenvectors

Examples

if (FALSE) {
library(ape)
tree <- rphylo(n = 10, birth=0.1, death=0)
iucnn_prepare_phy(phy = tree)
}