subsample_tree: Subsample a phylogenetic tree

View source: R/ggtree_function_extensions.R

subsample_treeR Documentation

Subsample a phylogenetic tree

Description

Subsample a phylogenetic tree by randomly selecting one node for all clades/subtrees of a maximum tip-root distance

Usage

subsample_tree(input_tree, cut_dist, plot_clades_to_prune = F)

Arguments

input_tree

Tree object (e.g. from ape)

cut_dist

max tip-root distance to select clades to be sub-sampled

plot_clades_to_prune

plot original input tree with clades to be pruned annotated [Default = False]

Value

Pruned tree object

Examples

subsample_tree(input_tree = tree_object, cut_dist = 0.02)

djw533/micro.gen.extra documentation built on Nov. 8, 2024, 5:11 a.m.