Learn R Programming

AntibodyForests (version 1.1.0)

igraph_to_phylo: Converts an igraph network into a phylogenetic tree as a phylo object.

Description

Converts an igraph network into a phylogenetic tree as a phylo object.

Usage

igraph_to_phylo(tree, solve_multichotomies)

Value

phylogenetic tree

Arguments

tree

igraph object

solve_multichotomies

boolean - whether to remove multichotomies in the resulting phylogenetic tree using ape::multi2di

Examples

Run this code
phylo_object <- igraph_to_phylo(AntibodyForests::small_af[["S1"]][["clonotype1"]]$igraph)

Run the code above in your browser using DataLab