makeLCAtable: Get lowest common ancestor (all cluster pairs in tree)

View source: R/markerGenesAndMapping.r

makeLCAtableR Documentation

Get lowest common ancestor (all cluster pairs in tree)

Description

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.

Usage

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.


AllenInstitute/mfishtools documentation built on July 5, 2023, 4:20 p.m.