Learn R Programming

pegas (version 1.3)

cophenetic.haploNet: Cophenetic Matrix on Haplotype Networks

Description

This function calculates the cophenetic distance on a network. The output can be used to find nodes with short distances to most nodes.

Usage

# S3 method for haploNet
cophenetic(x)

Value

a numeric matrix with colnames and rownames set to the labels of the network nodes.

Arguments

x

an object of class "haploNet".

Author

Emmanuel Paradis

Details

The results of the function are likely to be approximate in most cases with reticulations in the network. In the case of MSTs, the results are exact.

See Also

cophenetic.phylo in ape, cophenetic for the generic function

Examples

Run this code
example(mst)
coph <- cophenetic(r)
rowSums(coph)

Run the code above in your browser using DataLab