PlyloToMatrix converts a previously existing phylogenetic tree to a corresponding distance matrix using the cophenetic distance. Then, there is the option to utilize this custom distance matrix as an input distance matrix to AntibodyForest function. The user is responsible for specifying a correct and valid distance matrix. In particular, the size of distance matrix must match the number of sequences for each network in each repertoire.

AbForests_PlyloToMatrix(tree_name)

Arguments

tree_name

a plylogenetic tree (phylo object).

Value

dist_mat The corresponding distance matrix uses the cophenetic distance between two observations that have been clustered. This distance is defined to be the intergroup dissimilarity at which the two observations are first combined into a single cluster.

See also

AntibodyForest

Examples

if (FALSE) {
PlyloToMatrix(tree_name)
}