Define expression at a node as the MEAN expression for each leaf as default (using the median removes all specific marker genes!)

leafToNodeMedians(dend, medianDat, branches = getBranchList(dend), fnIn = mean)

Arguments

dend

dendrogram for mapping. Ignored if medianDat is passed

medianDat

median expression data at each node

branches

a particular format of branch information from the dendrogram structure

fnIn

function to use to wrap up to the node level (default = mean)

Value

a matrix of mean node expression (rows=genes, columns=nodes)