collapseEdges: Collapse short tree edges

collapseEdgesR Documentation

Collapse short tree edges

Description

Set all edges of a tree with short lengths to be zero.

Usage

collapseEdges(tree, delta)

Arguments

tree

a phylo object

delta

minimum edge length to retain

Value

a phylo object

Examples

tree=read.tree(text="((a:1,b:1):.5,(c:.5,d:2):1);")
newtree=collapseEdges(tree,delta=1)
write.tree(newtree)

MSCquartets documentation built on Oct. 31, 2024, 1:08 a.m.