Calculates the vector for lowest common ancestor for every pair of leaves in a tree and returns a vector in a specific format for faster look-up.

makeLCAtable(dend, includeInternalNodes = FALSE, verbose = FALSE)

Arguments

dend

a cluster dendrogram

includeInternalNodes

should internal nodes be included in the output?

verbose

if TRUE, status will be printed to the screen, since function is relatively slow for large trees (default FALSE)

Value

The function will return a vector for lowest common ancestor for every pair of leaves in dend. Vector names are l1|||l2 for string parsing in other functions.