Learn R Programming

MSCquartets (version 3.1)

treeOfBlobs: Tree of blobs for a network

Description

Given extended newick, an evonet object, or an igraph object for a network, return its reduced, unrooted tree of blobs. Here 'reduced' means all nodes resulting from 2-blobs are suppressed, as are edges above the network's LSA.

Usage

treeOfBlobs(net, plot = FALSE)

Value

An object of class phylo containing the unrooted topological tree derived from the network by contracting all blobs. All edge lengths are 1.

Arguments

net

A network, supplied as an extended Newick string, an evonet object, or an igraph object

plot

if TRUE (default), plot the tree of blobs.

See Also

TINNIK

Examples

Run this code
network = "(((a:1,d:1):1,(b:1)#H1:1):1,(#H1,c:1):2);"
plot(read.evonet(text=network))
treeOfBlobs(network, plot=TRUE)

Run the code above in your browser using DataLab