Learn R Programming

MSCquartets (version 3.1)

compatibleSplits: Extract compatible splits

Description

Given an object of class splits, first discards any with weight less than a tolerance, and then further removes all remaining splits that are incompatible with any other remaining one.

Usage

compatibleSplits(sp, tol = 0, plot = FALSE)

Value

splits objects containing only those that are compatible and high weight

Arguments

sp

an object of class splits

tol

splits with weights below tol are dropped

plot

a logical; if TRUE plots tree displaying remaining spilts

See Also

treeFromSplits, TINNIK

Examples

Run this code
data(pTableYeastRokas)
dist=NANUQdist(pTableYeastRokas, alpha=.05, beta=.95,outfile=NULL)
nn=neighborNet(dist)
plot(nn,"2D")
tob=treeFromSplits(compatibleSplits(nn$splits),plot=TRUE) #produce tree of blobs of splits graph

Run the code above in your browser using DataLab