collapseEdges {MSCquartets}R 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)

[Package MSCquartets version 2.0 Index]