powered by
Converts an igraph network into a phylogenetic tree as a phylo object.
igraph_to_phylo(tree, solve_multichotomies)
phylogenetic tree
igraph object
boolean - whether to remove multichotomies in the resulting phylogenetic tree using ape::multi2di
phylo_object <- igraph_to_phylo(AntibodyForests::small_af[["S1"]][["clonotype1"]]$igraph)
Run the code above in your browser using DataLab